diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue index 64bcf1f..ab57041 100644 --- a/pages/index/index/index.vue +++ b/pages/index/index/index.vue @@ -289,7 +289,7 @@ //获取直播房间号 getLiveRoom(){ this.$http.get({ - api: '/api/live' + api: 'api/live' }).then(res => { console.log('=======',res.data.data) if(res.data.data != null) { @@ -300,7 +300,7 @@ }, getAlertAd(){ this.$http.get({ - api: '/api/ad' + api: 'api/ad' }).then(res => { let alert = res.data.data.alert; this.alert = alert; diff --git a/pages/index/openScreenAd/openScreenAd.vue b/pages/index/openScreenAd/openScreenAd.vue index 20ea8a0..92147fd 100644 --- a/pages/index/openScreenAd/openScreenAd.vue +++ b/pages/index/openScreenAd/openScreenAd.vue @@ -30,10 +30,11 @@ methods: { getAd(){ this.$http.get({ - api: '/api/ad' + api: 'api/ad' }).then(res => { this.full = res.data.data.full; if(this.$isRight(res.data.data.full)){ + this.num = Number(res.data.data.full.duration) || 5; this.startTime(); }else{ this.next(); diff --git a/pages/order/confirm/confirm.vue b/pages/order/confirm/confirm.vue index a8dce23..76e93dd 100644 --- a/pages/order/confirm/confirm.vue +++ b/pages/order/confirm/confirm.vue @@ -232,6 +232,11 @@ let detail = res.data.data; this.order_detail = detail; this.address = res.data.data.address; + + if(!detail.order.brand.express && detail.order.brand.pick_self){ + this.mode = 1; // 只有自提时,切换显示到自提 + } + if(this.$isRight(detail.coupons)){ this.coupon_index = 0; } @@ -282,6 +287,15 @@ }, // 切换订单是邮寄还是自提 switchMode(mode){ + let detail = this.order_detail; + if(detail.order.brand.express && !detail.order.brand.pick_self && mode == 1){ + this.$msg('该订单只能邮寄哦'); + return; + }else if(!detail.order.brand.express && detail.order.brand.pick_self && mode == 0){ + this.$msg('该订单只能自提哦'); + return; + } + this.mode = mode; this.calcAmount(); }, diff --git a/pages/shop/goodsdetail.vue b/pages/shop/goodsdetail.vue index 0ebf85c..522769d 100644 --- a/pages/shop/goodsdetail.vue +++ b/pages/shop/goodsdetail.vue @@ -47,13 +47,19 @@ - + {{ goods_detail.name }} - 可自提/可邮寄 + + 可邮寄 + 可自提 + 可自提/可邮寄 + @@ -1348,4 +1354,11 @@ } } + + .share-btn{ + margin: 0; + padding: 0; + line-height: 1; + background-color: transparent; + } \ No newline at end of file