From ca1cfb7575167426b0ede0e34504f3b91c2ec676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 24 Jun 2021 18:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=AE=A2=E6=9C=8D=E4=B8=8A?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E4=BB=A3=E7=A0=81=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/goods.vue | 58 +++++++++++++++++++++++--------- pages/product/product/style.scss | 24 ++++++------- 2 files changed, 54 insertions(+), 28 deletions(-) diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 45d9c17..1af435f 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -126,16 +126,16 @@ {{ selectedGoods.spec.specName }}-{{ selectedGoods.spec.specValue }} - 默认 - - - - - - - 送至 - - {{ + 默认 + + + + + + + 送至 + + {{ delivery.consigneeAddressPath | clearStrComma }} 暂无地址信息 @@ -548,9 +548,35 @@ export default { } }, linkMsgDetail() { + // 客服 + // #ifdef MP-WEIXIN + + const params = { + storeName: this.storeDetail.storeName, + goodsName: this.goodsDetail.goodsName, + goodsId: this.goodsDetail.goodsId, + goodsImg: this.goodsDetail.thumbnail, + price: this.goodsDetail.promotionPrice || this.goodsDetail.price, + // originalPrice: this.goodsDetail.original || this.goodsDetail.price, + uuid: storage.getUuid(), + token: storage.getAccessToken(), + sign: this.storeDetail.yzfSign, + mpSign: this.storeDetail.yzfMpSign, + }; uni.navigateTo({ - url: "/pages/product/customerservice/index", + url: + "/pages/product/customerservice/index?params=" + + encodeURIComponent(JSON.stringify(params)), }); + // #endif + // #ifndef MP-WEIXIN + const sign = this.storeDetail.yzfSign; + uni.navigateTo({ + url: + "/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" + + sign, + }); + // #endif }, // 格式化金钱 1999 --> [1999,00] formatPrice(val) { @@ -878,10 +904,10 @@ export default { diff --git a/pages/product/product/style.scss b/pages/product/product/style.scss index 7a28f6b..0afd13c 100644 --- a/pages/product/product/style.scss +++ b/pages/product/product/style.scss @@ -136,18 +136,18 @@ page { > .headerList { flex: 8; } - > div:nth-child(2) { - flex: 1; - .headerList{ - display: flex; - div{ - flex: 1; - } - } - } - > div:nth-child(3) { - width: 100rpx; - } + // > div:nth-child(2) { + // flex: 1; + // .headerList{ + // display: flex; + // div{ + // flex: 1; + // } + // } + // } + // > div:nth-child(3) { + // width: 100rpx; + // } justify-content: space-between; }