邓洁 : 修改地图店铺列表渲染细节
This commit is contained in:
@@ -142,9 +142,22 @@
|
|||||||
},
|
},
|
||||||
computed: {
|
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() {
|
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: {
|
methods: {
|
||||||
handleEdit(shopid) {
|
handleEdit(shopid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user