邓洁 : 修改地图店铺列表渲染细节

This commit is contained in:
邓洁
2023-11-27 14:18:18 +08:00
parent e04e0a3859
commit 0bbe5b6be6

View File

@@ -142,9 +142,22 @@
},
computed: {
},
watch: {
shopInfo(newVal, oldVal) {
if (newVal.pics.includes(",")) {
this.leftImage = this.$api.imgUrl + newVal.pics.split(',')[0]
} else {
this.leftImage = this.$api.imgUrl + newVal.pics
}
}
},
created() {
this.leftImage = this.$api.imgUrl + this.shopInfo.pics.split(',')[0]
if (this.shopInfo.pics.includes(",")) {
this.leftImage = this.$api.imgUrl + this.shopInfo.pics.split(',')[0]
} else {
this.leftImage = this.$api.imgUrl + this.shopInfo.pics
}
},
methods: {
handleEdit(shopid) {