From 44648e99712564b1a931446a1377af99211108f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 15 Oct 2021 18:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=8B=E6=8B=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0=EF=BC=8C=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E4=BF=83?= =?UTF-8?q?=E9=94=80=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages.json | 3 +- pages/product/goods.vue | 69 +++++++++---------- pages/product/product/popup/address.vue | 2 +- pages/product/product/popup/goods.vue | 36 +++++----- pages/product/product/popup/popup.js | 2 +- pages/product/product/product.scss | 8 +-- .../product/promotion/-promotion-details.vue | 22 ++++-- pages/product/product/style.scss | 59 ++++------------ pages/tabbar/home/index.vue | 10 +-- pages/tabbar/home/views.vue | 1 + 11 files changed, 102 insertions(+), 114 deletions(-) diff --git a/manifest.json b/manifest.json index aee0991..b301f08 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "lili商城", "appid" : "__UNI__C100675", "description" : "", - "versionName" : "4.0.44", - "versionCode" : 4000044, + "versionName" : "4.0.45", + "versionCode" : 4000045, "transformPx" : false, "app-plus" : { "compatible" : { diff --git a/pages.json b/pages.json index 0690b0b..1666bc6 100644 --- a/pages.json +++ b/pages.json @@ -10,7 +10,8 @@ "style": { "navigationBarTitleText": "首页", "navigationStyle": "custom", // 隐藏系统导航栏 - "navigationBarTextStyle": "black" + "navigationBarTextStyle": "black", + "enablePullDownRefresh":true } }, diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 3e9a9c9..59e4a3e 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -204,24 +204,25 @@ - + - - - 优惠 - × + + 优惠 + + + + 促销活动 + + + + + 可领优惠券 + + + - - - 促销活动 - - - - 可领优惠券 - - - - + { + setTimeout(() => { uni.navigateBack(); - },500) + }, 500); } // 这里是绑定分销员 if (distributionId || this.$store.state.distributionId) { @@ -625,14 +629,14 @@ export default { */ closePopupAddress(val) { this.addressFlag = val; - this.maskFlag = false; + // this.maskFlag = false; }, /** * 商品规格子级关闭回调 */ closePopupBuy(val) { this.buyMask = val; - this.maskFlag = false; + // this.maskFlag = false; }, /** 参与拼团 创建拼团 */ @@ -708,7 +712,7 @@ export default { */ getGoodsCollectionFun(goodsId) { if (storage.getHasLogin()) { - API_Members.getGoodsIsCollect("GOODS",goodsId ).then((res) => { + API_Members.getGoodsIsCollect("GOODS", goodsId).then((res) => { this.favorite = res.data.result; }); } @@ -730,7 +734,7 @@ export default { /** * 获取相似商品列表 - * + * */ getOtherLikeGoods() { getGoodsList({ @@ -775,22 +779,21 @@ export default { * 规格弹窗开关 */ shutMask(flag, buyFlag, type) { - // type是指是否点击底部按钮 + this.promotionFlag = false; + this.buyMask = false; + this.addressFlag = false; if (flag) { switch (flag) { case 1: //优惠券弹窗 - this.maskFlag = true; - this.cuxiao = true; + this.promotionFlag = true; break; - case 3: - this.maskFlag = true; this.addressFlag = true; break; case 4: //添加购物车直接购买,查看已选 弹窗 // 判断是否是一个规格 - this.maskFlag = true; + this.buyMask = true; if (buyFlag == "PINTUAN") { if (type.orderSn) { @@ -804,10 +807,6 @@ export default { break; } - } else { - this.maskFlag = false; - this.cuxiao = false; - this.buyMask = false; } }, @@ -820,7 +819,7 @@ export default { this.deleteGoodsCollectionFun(id); return false; } - API_Members.collectionGoods("GOODS",id ).then((res) => { + API_Members.collectionGoods("GOODS", id).then((res) => { if (res.data.success) { uni.showToast({ title: "收藏成功!", diff --git a/pages/product/product/popup/address.vue b/pages/product/product/popup/address.vue index ac8acf7..8c89866 100644 --- a/pages/product/product/popup/address.vue +++ b/pages/product/product/popup/address.vue @@ -1,5 +1,5 @@