Browse Source

缩略图

seimin 11 months ago
parent
commit
8d2459b7d0
2 changed files with 5 additions and 3 deletions
  1. 1 1
      manifest.json
  2. 4 2
      pages/incidentDetail/incidentDetail.vue

+ 1 - 1
manifest.json

@@ -62,7 +62,7 @@
62 62
         "devServer" : {
63 63
             "proxy" : {
64 64
                 "/service" : {
65
-                    "target" : "http://192.168.4.105", //请求的目标域名
65
+                    "target" : "http://192.168.3.111", //请求的目标域名
66 66
                     "changeOrigin" : true, //是否跨域
67 67
                     "secure" : false
68 68
                 }

+ 4 - 2
pages/incidentDetail/incidentDetail.vue

@@ -31,7 +31,7 @@
31 31
           <view class="deital_item">
32 32
             <text class="name">报修图片:</text>
33 33
             <view class="value img">
34
-              <image class="imgItem" :src="img.previewUrl" mode="aspectFill" v-for="(img, i) in dataInfo.repairImgs" :key="i" @click="previewImg(i, 'repairImgs')"></image>
34
+              <image class="imgItem" :src="img.thumbFilePath" mode="aspectFill" v-for="(img, i) in dataInfo.repairImgs" :key="i" @click="previewImg(i, 'repairImgs')"></image>
35 35
             </view>
36 36
           </view>
37 37
           <view class="deital_item">
@@ -99,7 +99,7 @@
99 99
           <view class="deital_item">
100 100
             <text class="name">处理图片:</text>
101 101
             <view class="value img">
102
-              <image class="imgItem" :src="img.previewUrl" mode="aspectFill" v-for="(img, i) in dataInfo.handlerImgs" :key="i" @click="previewImg(i, 'handlerImgs')"></image>
102
+              <image class="imgItem" :src="img.thumbFilePath" mode="aspectFill" v-for="(img, i) in dataInfo.handlerImgs" :key="i" @click="previewImg(i, 'handlerImgs')"></image>
103 103
             </view>
104 104
           </view>
105 105
           <view class="deital_item">
@@ -390,6 +390,7 @@
390 390
       res.data = res.data || [];
391 391
       res.data.forEach(v => {
392 392
         v.previewUrl = location.origin + "/file" + v.relativeFilePath;
393
+        v.thumbFilePath = location.origin + "/file" + v.thumbFilePath;
393 394
       })
394 395
       dataInfo.repairImgs = res.data;
395 396
     })
@@ -406,6 +407,7 @@
406 407
       res.data = res.data || [];
407 408
       res.data.forEach(v => {
408 409
         v.previewUrl = location.origin + "/file" + v.relativeFilePath;
410
+        v.thumbFilePath = location.origin + "/file" + v.thumbFilePath;
409 411
       })
410 412
       dataInfo.handlerImgs = res.data;
411 413
     })