Browse Source

Merge branch 'master' of ssh://8.134.10.79:222/Leadfyy.co/uniapp-qxk

master
tmkook 3 years ago
parent
commit
3b38047633
  1. 1
      packages/agent/agent.vue
  2. 24
      packages/ratingQueryDetail/ratingQueryDetail.vue

1
packages/agent/agent.vue

@ -17,7 +17,6 @@
</view>
</view>
</view>
<view class="section_4"><!--*--></view>
</view>
</template>

24
packages/ratingQueryDetail/ratingQueryDetail.vue

@ -3,7 +3,7 @@
<view class="flex-col group_4">
<view class="flex-col section_2" v-if="imageList.length > 0">
<view class="flex-row equal-division">
<image :src="item" class="equal-division-item" v-for="(item, index) in imageList" :key="index" />
<image mode="aspectFit" :src="item" class="equal-division-item" v-for="(item, index) in imageList" :key="index" @click="previewImage(index)" />
</view>
</view>
<view class="flex-col section_3">
@ -90,8 +90,16 @@
computed: {
imageList(){
let list = [];
if(this.details.images){
list = String(this.details.images).split(',').splice(0, 2);
if(this.details.sub_order){
let count = this.details.sub_order.images_url.length;
list = this.details.sub_order.images_url;
if(count<3){
for(let i=0;i<3-count;i++){
list.push(null)
}
}
}
return list;
}
@ -108,7 +116,15 @@
uni.setClipboardData({
data: that.details.sub_order.pm_url
})
}
},
previewImage(current){
if(this.imageList[current]){
uni.previewImage({
urls: this.imageList,
current: current
})
}
},
}
};
</script>

Loading…
Cancel
Save