From dfd958472d93797df2aa8edd53a4420f2c9fb47d Mon Sep 17 00:00:00 2001 From: hly <2783385703@qq.com> Date: Tue, 19 Aug 2025 14:45:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将默认环境从"develop"改为"trial" - 在个人中心页面添加测试按钮用于跳转订单支付成功页 - 支付成功页的二维码改为从configMap动态获取 - 首页添加历史记录配置功能,支持动态显示数据 --- pages/index.vue | 47 +++++++++++++++++++++++++++++--- pages/personalCenter/index.vue | 6 ++++ pages_order/order/payOrderSuccessful.vue | 11 ++++++-- utils/getUrl.js | 2 +- 4 files changed, 58 insertions(+), 8 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 9024855..9c34eaf 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -194,7 +194,27 @@ --> - + + + + + + {{ item.count }} + {{ item.time }} + + + + + *数据来源于猫妈狗爸平台 + + + + @@ -375,6 +395,7 @@ num: "47131", numTime: "2024.12.12", }, + historyRecordConfig : [], currentCoupon: null, companionList: [], isMember: false, @@ -387,9 +408,10 @@ CouponItem, CouponRulePopup }, - mounted() { - this.getCalendarDate(); - }, + // onLoad() { + // this.getCalendarDate(); + + // }, methods: { closeNewUserPopup() { this.isNewUser = false; @@ -900,6 +922,23 @@ longitude: 121.49857, latitude: 31.22514 }); + + + uni.$on('initConfig', r => { + + let homejson = this.$store.state.configMap.home_config + + console.log('homejson', homejson); + + if(homejson && homejson.paramValueText){ + try{ + let home = JSON.parse(homejson.paramValueText) + this.historyRecordConfig = home && home.historyRecords || [] + }catch(e){} + } + }) + + this.getCalendarDate() } } diff --git a/pages/personalCenter/index.vue b/pages/personalCenter/index.vue index ebbfa0b..3c8b33a 100644 --- a/pages/personalCenter/index.vue +++ b/pages/personalCenter/index.vue @@ -250,6 +250,12 @@ } }, methods: { + testBtn(){ + uni.reLaunch({ + // url: '/pages_order/order/orderList' + url: '/pages_order/order/payOrderSuccessful' + }); + }, onGetPhoneNumber(e){ if(e.detail.errMsg=="getPhoneNumber:fail user deny"){ //用户拒绝授权 diff --git a/pages_order/order/payOrderSuccessful.vue b/pages_order/order/payOrderSuccessful.vue index 5b814a6..f1eeab0 100644 --- a/pages_order/order/payOrderSuccessful.vue +++ b/pages_order/order/payOrderSuccessful.vue @@ -13,7 +13,8 @@ 请及时添加服务顾问的企业微信 - @@ -58,14 +59,18 @@