From b921258ea508d9d1b72188f80a019c54cbf9b84d Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Fri, 26 Sep 2025 18:09:28 +0800 Subject: [PATCH] fix --- static/js/CommonFunction.js | 8 ++++++++ subPackages/pointsMall/index.vue | 2 +- subPackages/techan/order.vue | 9 +++++++++ subPackages/user/coupon.vue | 2 +- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js index 712d3bb..fbd9e4a 100644 --- a/static/js/CommonFunction.js +++ b/static/js/CommonFunction.js @@ -10,6 +10,14 @@ Vue.prototype.envPropObj = { score_daily_recommend: 679, // 积分商城-分类-全部 score_type_all: 680, + // 积分商城-活动规则 + score_rule_id: 2, + + // 正式环境 + // use_recommend_tag_id: 674, + // score_daily_recommend: 673, + // score_type_all: 672, + // score_rule_id: 7, } // 格式化富文本 diff --git a/subPackages/pointsMall/index.vue b/subPackages/pointsMall/index.vue index 7d0e4d0..9164b10 100644 --- a/subPackages/pointsMall/index.vue +++ b/subPackages/pointsMall/index.vue @@ -177,7 +177,7 @@ this.getJXList() this.getTypeList() this.getProdListByType() - this.getRule(2) + this.getRule(this.envPropObj.score_rule_id) }, methods: { // 签到 diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue index 869ab27..6af395b 100644 --- a/subPackages/techan/order.vue +++ b/subPackages/techan/order.vue @@ -312,6 +312,8 @@ export default { isShoppingCart: false, isInDeliveryTime: true, + firstInit: null, + }; }, @@ -321,6 +323,10 @@ export default { } this.$store.commit("choseCoupon", ""); this.handleOrderGoods() + setTimeout(()=>{ + this.firstInit = true + },2000) + }, onShow() { if (!this.isShoppingCart) { @@ -328,6 +334,9 @@ export default { } // 更新自提点 uni.$on("updateDataByConnect",this.getDataByConnect) + if (this.firstInit) { + this.getDelivery() + } }, onUnload(){ uni.$off("updateDataByConnect",this.getDataByConnect) diff --git a/subPackages/user/coupon.vue b/subPackages/user/coupon.vue index 500d05a..0d987e6 100644 --- a/subPackages/user/coupon.vue +++ b/subPackages/user/coupon.vue @@ -199,7 +199,7 @@ key: that.password }, "/api/coupon/get_coupon").then((res) => { console.log(res.code); - if (res.code == 200) { + if (res.code == 200 || res.code == 1) { that.coupon = [] that.navActive = 0 this.getList(this.navList[0])