|
|
@ -3,7 +3,7 @@ |
|
|
<view class="flex-col group_4"> |
|
|
<view class="flex-col group_4"> |
|
|
<view class="flex-col section_2" v-if="imageList.length > 0"> |
|
|
<view class="flex-col section_2" v-if="imageList.length > 0"> |
|
|
<view class="flex-row equal-division"> |
|
|
<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> |
|
|
</view> |
|
|
<view class="flex-col section_3"> |
|
|
<view class="flex-col section_3"> |
|
|
@ -90,8 +90,16 @@ |
|
|
computed: { |
|
|
computed: { |
|
|
imageList(){ |
|
|
imageList(){ |
|
|
let list = []; |
|
|
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; |
|
|
return list; |
|
|
} |
|
|
} |
|
|
@ -108,7 +116,15 @@ |
|
|
uni.setClipboardData({ |
|
|
uni.setClipboardData({ |
|
|
data: that.details.sub_order.pm_url |
|
|
data: that.details.sub_order.pm_url |
|
|
}) |
|
|
}) |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
previewImage(current){ |
|
|
|
|
|
if(this.imageList[current]){ |
|
|
|
|
|
uni.previewImage({ |
|
|
|
|
|
urls: this.imageList, |
|
|
|
|
|
current: current |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|