From b93395d0dc400b91d9214fcad797b28674136802 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com>
Date: Tue, 10 Aug 2021 09:57:48 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BA=97=E9=93=BA=E8=81=94?=
=?UTF-8?q?=E7=B3=BB=E5=AE=A2=E6=9C=8D=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/product/mp-shopPage.scss | 6 ----
pages/product/shopPage.vue | 60 +++++++++++++++++++++++++++++++---
2 files changed, 55 insertions(+), 11 deletions(-)
delete mode 100644 pages/product/mp-shopPage.scss
diff --git a/pages/product/mp-shopPage.scss b/pages/product/mp-shopPage.scss
deleted file mode 100644
index d87bc0c..0000000
--- a/pages/product/mp-shopPage.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-.search{
- margin-top: 28rpx !important;
-}
-.status_bar{
- height: calc(var(--status-bar-height) + 188rpx ) !important;
-}
\ No newline at end of file
diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue
index 76ccb9f..5669860 100644
--- a/pages/product/shopPage.vue
+++ b/pages/product/shopPage.vue
@@ -24,6 +24,12 @@
{{storeInfo.storeDesc}}
+
+
+
+
+ 联系客服
+
@@ -92,6 +98,8 @@ import {
collectionGoods,
getGoodsIsCollect,
} from "@/api/members.js";
+
+import storage from "@/utils/storage";
import { getGoodsList } from "@/api/goods.js";
import { getAllCoupons } from "@/api/promotions.js";
export default {
@@ -134,9 +142,9 @@ export default {
// #endif
},
onShow() {
- this.goodsList = []
- this.categoryList = []
- this.couponList = []
+ this.goodsList = [];
+ this.categoryList = [];
+ this.couponList = [];
this.goodsParams.pageNumber = 1;
if (this.$options.filters.isLogin("auth")) {
this.enableGoodsIsCollect();
@@ -157,6 +165,37 @@ export default {
},
methods: {
+ /**
+ * 联系客服
+ */
+ linkKefuDetail() {
+ // 客服
+ // #ifdef MP-WEIXIN
+
+ const params = {
+
+ // originalPrice: this.goodsDetail.original || this.goodsDetail.price,
+ uuid: storage.getUuid(),
+ token: storage.getAccessToken(),
+ sign: this.storeInfo.yzfSign,
+ mpSign: this.storeInfo.yzfMpSign,
+ };
+ uni.navigateTo({
+ url:
+ "/pages/product/customerservice/index?params=" +
+ encodeURIComponent(JSON.stringify(params)),
+ });
+ // #endif
+ // #ifndef MP-WEIXIN
+ const sign = this.storeInfo.yzfSign;
+ uni.navigateTo({
+ url:
+ "/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" +
+ sign,
+ });
+ // #endif
+ },
+
/** 获取店铺分类 */
async getCategoryData() {
let res = await getStoreCategory(this.storeId);
@@ -173,9 +212,9 @@ export default {
},
/**商品分类中商品集合 */
- getCategoryGoodsList(val){
+ getCategoryGoodsList(val) {
uni.navigateTo({
- url: `/pages/product/shopPageGoods?title=${val.labelName}&id=${val.id}&storeId=${this.storeId}`
+ url: `/pages/product/shopPageGoods?title=${val.labelName}&id=${val.id}&storeId=${this.storeId}`,
});
},
@@ -481,4 +520,15 @@ export default {
}
}
}
+.kefu {
+ background: #f7f7f7;
+ height: 70rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-top: 32rpx;
+ border-radius: 10rpx;
+ font-size: 24rpx;
+ color: #999;
+}
\ No newline at end of file