diff --git a/pages/store/shopStreet/index.vue b/pages/store/shopStreet/index.vue index 53397e0..1797acc 100644 --- a/pages/store/shopStreet/index.vue +++ b/pages/store/shopStreet/index.vue @@ -42,7 +42,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -106,7 +106,7 @@ - + @@ -122,7 +122,7 @@ - + @@ -488,12 +488,18 @@ }) }, // 进店 - goStore(id) { + goStore(item) { + let _this = this; + let merId = item.mer_id || 0; if (this.hide_mer_status != 1 && this.sotreParam.merchant_type != 2) { uni.navigateTo({ - url: `/pages/store/home/index?id=${id}` + url: `/pages/store/home/index?id=${merId}` }) } + else if(this.sotreParam.merchant_type == 2){ + let img = item.mer_avatar || ''; + if(img.length > 0) this.$util.previewImage(img); + } }, searchSubmit: function(e) { let that = this; @@ -565,8 +571,11 @@ url: `/pages/goods_details/index?id=${product.product_id}` }) } - } - + else{ + let img = product.image || ''; + if(img.length > 0) this.$util.previewImage(img); + } + }, },