diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index d78cc2a..3df2123 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -38,7 +38,7 @@ {{storeInfo.merchant.type_name}} 自营 - {{storeInfo.store_name}} + {{storeInfo.store_name || ''}} @@ -200,7 +200,7 @@ - + - + 客服 @@ -1074,7 +1074,8 @@ if (storeInfo.video_link && storeInfo.slider_image.length > 1) { this.videoCoverImg = storeInfo.slider_image[0] storeInfo.slider_image.splice(0, 1) - } else if (storeInfo.video_link && storeInfo.slider_image.length === 1) { + } + else if (storeInfo.video_link && storeInfo.slider_image.length === 1) { this.videoCoverImg = storeInfo.slider_image[0] } that.$set(that, 'storeInfo', storeInfo); @@ -1117,21 +1118,33 @@ } that.$set(that, 'guarantee', res.data.guaranteeTemplate ? res.data.guaranteeTemplate : []); that.$set(that, 'shippingValue', res.data.temp ? res.data.temp.name : ''); - that.$set(that.specsInfo, 'params', res.data.params); - that.$set(that.storeInfo, 'merchant', res.data.merchant); + that.$set(that.specsInfo, 'params', res.data.params); that.$set(that.storeInfo, 'spu_id', res.data.spu_id); that.$set(that.storeInfo, 'community', res.data.community); that.$set(that.storeInfo, 'top_name', res.data.top_name); that.$set(that.storeInfo, 'atmosphere_pic', res.data.atmosphere_pic); + // 商户处理 + let merchant = res.data.merchant || {}; + let merId = Number(merchant.mer_id) || 0; + + console.log("相关商户信息") + console.log(merId) + + that.$set(that.storeInfo, 'merchant', (Number(merId) > 0 ? merchant : {})); + + + console.log("商户信息"); + console.log(that.storeInfo.merchant); + // 购物协议 that.$set(that, 'buy_agreement', res.data.buy_agreement ? (res.data.buy_agreement.content || '') : ''); if(that.buy_agreement) that.is_agree = false; that.$set(that, 'countdown', res.data.countdown ? (Number(res.data.countdown) > 0 ? Number(res.data.countdown) : 10) : 10); }) - if (that.isLogin) { - that.downloadFilePromotionCode(); - that.getCartCount(); - }; + if (that.isLogin) { + that.downloadFilePromotionCode(); + that.getCartCount(); + } // #ifdef H5 that.ShareInfo(); // #endif diff --git a/pages/store/shopStreet/index.vue b/pages/store/shopStreet/index.vue index c02af04..399dfe7 100644 --- a/pages/store/shopStreet/index.vue +++ b/pages/store/shopStreet/index.vue @@ -54,7 +54,7 @@ 自营 - + {{item.care_count<10000 ? item.care_count : (item.care_count/10000).toFixed(2)+'万'}}人关注 @@ -69,7 +69,7 @@ - + @@ -77,7 +77,7 @@ {{itemn.price}} - + @@ -93,7 +93,7 @@ 自营 - + {{item.care_count<10000 ? item.care_count : (item.care_count/10000).toFixed(2)+'万'}}人关注 @@ -106,7 +106,7 @@ - + @@ -114,7 +114,7 @@ {{itemn.price}} - + @@ -132,7 +132,7 @@ 自营 - + {{item.care_count<10000 ? item.care_count : (item.care_count/10000).toFixed(2)+'万'}}人关注 @@ -147,7 +147,7 @@ - + @@ -155,7 +155,7 @@ {{itemn.price}} - + @@ -488,7 +488,7 @@ }, // 进店 goStore(id) { - if (this.hide_mer_status != 1) { + if (this.hide_mer_status != 1 && this.sotreParam.merchant_type != 2) { uni.navigateTo({ url: `/pages/store/home/index?id=${id}` }) @@ -557,6 +557,17 @@ } }) }, + // 点击进入商品详情 + goProduct(product){ + if (this.sotreParam.merchant_type != 2) { + uni.navigateTo({ + url: `/pages/goods_details/index?id=${product.product_id}` + }) + } + } + + + }, //刷新 onPullDownRefresh() {}, diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index fcb2178..cef5110 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -24,10 +24,10 @@ - + - {{item.mer_name}} - + {{item.mer_name}} + @@ -114,24 +114,63 @@ + 配送方式 - + {{item.order.isTake==0 ? deliveryName :'到店核销'}} - - {{item.order.isTake==0 ? deliveryName :'到店核销'}} - + {{item.order.isTake==0 ? deliveryName :'到店核销'}} - {{item.take.mer_take_name}} - {{item.take.mer_take_address}} - - - 查看地图 - + + + + + 请选择提货点 + + + + + + + {{item.take.mer_take_name || ''}} + {{item.take.mer_take_address || ''}} + + + + + 查看地图 + + + + + + + + + + {{item.take.mer_take_name || ''}} + {{item.take.mer_take_address || ''}} + + + + + 查看地图 + + + + + @@ -1714,6 +1748,68 @@ text-align: right; } } +.store-address{ + .picker-content{ + width: 100% !important; + } + .point-content{ + width: 100%; + display: inline-flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; + .left{ + width: calc(100% - 130rpx); + .mer_take_name{ + width: 100%; + font-size: 30rpx; + height: 45rpx; + line-height: 45rpx; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .mer_take_address{ + width: 100%; + font-size: 26rpx; + height: 35rpx; + line-height: 35rpx; + color: #aaaaaa; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + .right{ + width: 130rpx; + display: inline-flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: flex-end; + align-items: center; + .map{ + .icon-chakanditu{} + .map_text{} + } + .icon-xiangxia{ + width: 60rpx; + text-align: right; + font-size: 35rpx; + cursor: pointer; + } + } + } + .point-multiple{ + .left{ + width: calc(100% - 200rpx) !important; + } + .right{ + width: 200rpx !important; + } + } +} + /deep/checkbox .uni-checkbox-input.uni-checkbox-input-checked, @@ -2373,7 +2469,7 @@ } .map { text-align: center; - padding-left: 40rpx; + padding-left: 25rpx; position: relative; &::before { content: '';