Merge pull request '预览店铺执照' (#343) from zhy into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/343
This commit is contained in:
hansu 2020-09-05 17:09:36 +08:00
commit ed3a83c00e

View File

@ -25,7 +25,7 @@
<u-icon name="arrow-down" color="#999999" size="28"></u-icon>
</view>
<view class="image-list" v-if="info.business_licence_number_electronic">
<image :src="info.business_licence_number_electronic"></image>
<image :src="info.business_licence_number_electronic" @click="previewImage(info.business_licence_number_electronic)"></image>
</view>
</view>
</view>
@ -42,6 +42,15 @@ export default {
// console.log(res)
this.info = res.data
})
},
methods: {
previewImage(urls) {
// console.log(urls);
const imageList = [urls];
uni.previewImage({
urls: imageList,
});
},
}
};
</script>