diff --git a/common/share.js b/common/share.js index 5a2f569..194202f 100644 --- a/common/share.js +++ b/common/share.js @@ -18,6 +18,25 @@ export default { imgUrl: 'https://hsg.dctpay.com/filesystem/wxApplets/logo.png', // 分享图标 }, resVerifyWx:null, + + shareArr:[ + '/qianzhu-Starbucks/home/home', + '/qianzhu-KFC/home/home', + '/pages/goods/goods-list/goods-list', + '/subPages/coupon-package/coupon-package', + '/subPages/coupon-packge-details/coupon-packge-details', + '/pages/goods/goods', + '/physical-merchants/classify/classify', + '/physical-merchants/classify/goodsDetail/goodsDetail', + '/physical-merchants/classify/goods-search/goods-search', + '/pages/goods/refuel/refuel',//在线加油列表 + '/pages/goods/refuel-details/refuel-details',//在线加油详情 + '/pages/goods/store-list/store-details',//门店详情 + '/pages/goods/HM-search/HM-search',//门店列表 + '/pages/tabBar/home/home', + '/pages/tabBar/category/category', + ], + } }, methods: { @@ -96,23 +115,23 @@ export default { isGoHome(path){ /* 黑名单:不允许分享,分享的跳转至首页 */ - let arr =[ - "/physical-merchants/settleAccounts/settleAccounts",//订单确认 - "/physical-merchants/classify/order/pay",//收银台页 - "/physical-merchants/classify/order/paymentResult",//支付结果 - "/physical-merchants/address/addNewAddress/addNewAddress",//添加地址 - "/physical-merchants/classify/poster/poster",//生成海报 - ]; + // let arr =[ + // "/physical-merchants/settleAccounts/settleAccounts",//订单确认 + // "/physical-merchants/classify/order/pay",//收银台页 + // "/physical-merchants/classify/order/paymentResult",//支付结果 + // "/physical-merchants/address/addNewAddress/addNewAddress",//添加地址 + // "/physical-merchants/classify/poster/poster",//生成海报 + // ]; // #ifdef H5 let str = this.localPath.split('#')[1]; str = str.split("?")[0]; - return arr.includes(str) + return !this.shareArr.includes(str) // #endif // #ifdef MP-WEIXIN - return arr.includes(path) + return !this.shareArr.includes(path) // #endif @@ -192,7 +211,8 @@ export default { this.share.path = this.getCurrentRouteYm(); if(this.isGoHome(this.share.path.split('?')[0])){ - this.share.path = "/pages/tabBar/home/home" + this.share.path = "/pages/tabBar/home/home"; + this.share.imageUrl = 'https://hsg.dctpay.com/filesystem/wxApplets/logo.png'; } // console.log(this.share.path, "this.share.path", res); diff --git a/components/goods-list/goods-list.vue b/components/goods-list/goods-list.vue index ae98295..4e25412 100644 --- a/components/goods-list/goods-list.vue +++ b/components/goods-list/goods-list.vue @@ -105,7 +105,11 @@ - + + + ———— 我是有底线的 ———— + + @@ -140,7 +144,7 @@ - - \ No newline at end of file diff --git a/components/shopcart.vue b/components/shopcart.vue index f8403ef..00761f9 100644 --- a/components/shopcart.vue +++ b/components/shopcart.vue @@ -7,9 +7,9 @@ {{getAllCount}} {{getAllCount}} - + - + @@ -216,7 +216,7 @@ } -