diff --git a/common/share.js b/common/share.js index 74aa431..5f9b5c4 100644 --- a/common/share.js +++ b/common/share.js @@ -93,17 +93,28 @@ export default { }) } }, - isGoHome(){ + isGoHome(path){ - /* 黑名单:不允许分享 */ + /* 黑名单:不允许分享,分享的跳转至首页 */ let arr =[ "/physical-merchants/settleAccounts/settleAccounts",//订单确认 "/physical-merchants/classify/order/pay",//收银台页 "/physical-merchants/classify/order/paymentResult",//支付结果 ]; + + // #ifdef H5 let str = this.localPath.split('#')[1]; str = str.split("?")[0]; return arr.includes(str) + // #endif + + + // #ifdef MP-WEIXIN + return arr.includes(path) + // #endif + + + }, }, @@ -147,6 +158,11 @@ export default { // #ifdef MP-WEIXIN onShareAppMessage(res) { this.share.path = this.getCurrentRouteYm(); + + if(this.isGoHome(this.share.path.split('?')[0])){ + this.share.path = "/pages/tabBar/home/home" + } + // console.log(this.share.path, "this.share.path", res); return { title: this.share.title, diff --git a/pages/goods/goods-list/goods-list.vue b/pages/goods/goods-list/goods-list.vue index 2ffa6ab..688bdd0 100644 --- a/pages/goods/goods-list/goods-list.vue +++ b/pages/goods/goods-list/goods-list.vue @@ -4,17 +4,22 @@ - - - + + + - + + + @@ -27,8 +32,8 @@ - - + + {{row.couponName}} 限购{{row.limitNumber}}件 @@ -53,7 +58,9 @@ - + + + @@ -73,16 +80,17 @@ imgadres: 'noorder.png', imageUrl: app.globalData.imgUrl, // 轮播图片 - swiperList: [{ - id: 1, - src: 'url1', - img: 'banner2.png' - }, - { - id: 2, - src: 'url2', - img: 'banner3.png' - } + swiperList: [ + // { + // id: 1, + // src: 'url1', + // img: 'banner2.png' + // }, + // { + // id: 2, + // src: 'url2', + // img: 'banner3.png' + // } ], currentSwiper: 0, pageNum: 1, @@ -397,7 +405,7 @@ } .goodsli { - margin-left: 10px; + margin-left: 100px; padding-top: 5px; } @@ -406,9 +414,15 @@ border: 1px solid #3da7e7; border-radius: 5px; color: #3da7e7; - width: 55px; + // width: 55px; + display: inline-block; padding: 3px; } + .itemContainer{ + box-sizing: border-box; + padding: 10px; + background: #ffffff; + } // .info { // display: flex; diff --git a/pages/goods/goods.vue b/pages/goods/goods.vue index b80b814..ccdd20b 100644 --- a/pages/goods/goods.vue +++ b/pages/goods/goods.vue @@ -73,11 +73,13 @@ ———— 商品详情 ———— - - + + + 赠送卡券 diff --git a/pages/goods/refuel-details/refuel-details.vue b/pages/goods/refuel-details/refuel-details.vue index eecbdfd..df5c6fd 100644 --- a/pages/goods/refuel-details/refuel-details.vue +++ b/pages/goods/refuel-details/refuel-details.vue @@ -110,7 +110,7 @@ - + @@ -128,7 +128,7 @@ - + 选择油号 选择油枪 汽油油号 @@ -147,7 +147,7 @@ - + diff --git a/pages/goods/refuel/refuel.vue b/pages/goods/refuel/refuel.vue index bb66e3e..2e8392f 100644 --- a/pages/goods/refuel/refuel.vue +++ b/pages/goods/refuel/refuel.vue @@ -48,7 +48,7 @@ - + 筛选距离 油号选择 diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index e3ce30b..b08f616 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -112,7 +112,7 @@ {{item.name}} - 更多 + 更多 { @@ -543,7 +546,7 @@ uni.navigateBack({ delta:index - }) + }) */ }, diff --git a/physical-merchants/classify/goodsDetail/goodsDetail.vue b/physical-merchants/classify/goodsDetail/goodsDetail.vue index 5277dda..2546f17 100644 --- a/physical-merchants/classify/goodsDetail/goodsDetail.vue +++ b/physical-merchants/classify/goodsDetail/goodsDetail.vue @@ -40,7 +40,7 @@ 保障 - 破损包赔 · 假一赔四 · 退货运费险 + 破损包退 · 假一赔四 @@ -60,7 +60,7 @@ --> - + ———— 商品详情 ———— @@ -105,7 +105,7 @@ 破损包退 - 签收72小时之内。发现商品破损或商品变形等,保存有限证件,商家24小时内响应并退款,诚信用户享受极速退款 + 签收72小时之内。发现商品破损或商品变形等,保存有限证件,商家24小时内响应并退款 @@ -116,14 +116,14 @@ 正品保障,假一赔四 - + @@ -294,7 +294,7 @@ .imageUrl + temp); this.goodsDetail.detailImg = res.return_data.detailImg.split(",").map(temp => this .imageUrl + temp); - console.log(this.goodsDetail, ) + // console.log(this.goodsDetail, ) // let list =item.map(temp=>this.imageUrl + temp) diff --git a/subPages/coupon-package/coupon-package.vue b/subPages/coupon-package/coupon-package.vue index 36b02ef..72dbd17 100644 --- a/subPages/coupon-package/coupon-package.vue +++ b/subPages/coupon-package/coupon-package.vue @@ -4,16 +4,21 @@ - + - + + + @@ -21,8 +26,8 @@ - - + + {{row.title}} 限购{{row.purchaseNum}}件 @@ -34,7 +39,9 @@ - + + + @@ -162,12 +169,16 @@