Browse Source

告警BUG优化/小程序文件配置

fanghuisheng 1 year ago
parent
commit
eb023039ac
3 changed files with 45 additions and 3 deletions
  1. 35 0
      project.config.json
  2. 7 0
      project.private.config.json
  3. 3 3
      src/pages/common/alarmMessage/index.vue

+ 35 - 0
project.config.json

@@ -0,0 +1,35 @@
+{
+  "appid": "wxadd37e2692c771db",
+  "compileType": "miniprogram",
+  "libVersion": "2.32.2",
+  "packOptions": {
+    "ignore": [],
+    "include": []
+  },
+  "setting": {
+    "packNpmManually": true,
+    "coverView": true,
+    "es6": true,
+    "postcss": true,
+    "minified": true,
+    "enhance": true,
+    "showShadowRootInWxmlPanel": true,
+    "packNpmRelationList": [
+      {
+        "packageJsonPath": "./package.json",
+        "miniprogramNpmDistDir": "./miniprogram/"
+      }
+    ],
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
+    },
+    "condition": false
+  },
+  "condition": {},
+  "editorSetting": {
+    "tabIndent": "insertSpaces",
+    "tabSize": 2
+  }
+}

+ 7 - 0
project.private.config.json

@@ -0,0 +1,7 @@
+{
+  "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+  "projectname": "usky-web-mobile",
+  "setting": {
+    "compileHotReLoad": true
+  }
+}

+ 3 - 3
src/pages/common/alarmMessage/index.vue

@@ -14,10 +14,10 @@
   >
     <template #default>
       <view class="content-area">
-        <view :id="index == allInfoList.length - 1 ? 'bottomInfo' : ''" v-for="(el, index) in allInfoList" :key="index" v-show="allInfoList.length > 0" @click="goContentDetails(all)">
+        <view :id="ind == allInfoList.length - 1 ? 'bottomInfo' : ''" v-for="(el, ind) in allInfoList" :key="ind" v-show="allInfoList.length > 0" @click="goContentDetails(el)">
           <view class="content-area-time font24">{{ el.time }}</view>
           <view class="content-area-center radius bg-white">
-            <image class="content-area-center-img radius mb10" v-if="el.img" :src="el.img" />
+            <image class="content-area-center-img radius mb10" v-if="el.sitePhoto" :src="el.sitePhoto" />
             <view class="content-area-center-title mb10">{{ el.deviceName }}</view>
             <view class="content-area-center-cont">
               <span class="label">设备号:</span>
@@ -82,7 +82,7 @@ function init() {
     if (requset.status === "SUCCESS") {
       requset.data.records.forEach((el) => {
         allInfoList.value.push({
-          img: "",
+          sitePhoto: el.sitePhoto,
           time: proxy.$common.jktTimes(el.alarmTime),
           deviceId: el.deviceId,
           deviceName: el.deviceName,