|
|
@@ -6,7 +6,7 @@
|
|
|
|
|
|
<view v-for="item in serviceObjectList" class="store-content">
|
|
|
<view class="store-img">
|
|
|
- <image v-if="item.imgUrl" :src="item.imgUrl" mode=""></image>
|
|
|
+ <image v-if="item.facePhotoUrl" :src="item.facePhotoUrl" mode=""></image>
|
|
|
<image v-else src="../../static/logo.png" mode=""></image>
|
|
|
</view>
|
|
|
<view class="content">
|
|
|
@@ -51,6 +51,9 @@
|
|
|
mounted() {
|
|
|
},
|
|
|
onLoad() {
|
|
|
+
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
// 查询服务对象列表
|
|
|
this.listServiceObject();
|
|
|
},
|
|
|
@@ -72,7 +75,7 @@
|
|
|
for(let i = 0; i <items.length; i++) {
|
|
|
if (items[i].facePhoto){
|
|
|
this.$api.getImgUrlByOssId({ossId:items[i].facePhoto}).then(res=>{
|
|
|
- items[i].facePhoto = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
+ items[i].facePhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
})
|
|
|
}
|
|
|
}
|