From 26ecf5f4c864877ee7f6a3513ab1cb982bdb510c Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 15 Aug 2025 15:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E9=A1=B50.?= =?UTF-8?q?8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 51 ++--- pages/activity/application.vue | 11 +- pages/activity/appointmentSuccess.vue | 6 +- pages/personalCenter/personalCenter.vue | 272 ++++++++++++++++++++++++ 4 files changed, 303 insertions(+), 37 deletions(-) create mode 100644 pages/personalCenter/personalCenter.vue diff --git a/pages.json b/pages.json index 702d111..8024395 100644 --- a/pages.json +++ b/pages.json @@ -174,39 +174,40 @@ } }, { - "path" : "pages/activity/application", - "style" : - { - "navigationStyle": "custom" - } + "path": "pages/activity/application", + "style": { + "navigationStyle": "custom" + } }, { - "path" : "pages/activity/appointmentSuccess", - "style" : - { - "navigationStyle": "custom" - } + "path": "pages/activity/appointmentSuccess", + "style": { + "navigationStyle": "custom" + } }, { - "path" : "pages/activity/reservationVegetarianMeals", - "style" : - { - "navigationStyle": "custom" - } + "path": "pages/activity/reservationVegetarianMeals", + "style": { + "navigationStyle": "custom" + } }, { - "path" : "pages/activity/ReservationSuccess", - "style" : - { - "navigationStyle": "custom" - } + "path": "pages/activity/ReservationSuccess", + "style": { + "navigationStyle": "custom" + } }, { - "path" : "pages/activity/myReservation", - "style" : - { - "navigationStyle": "custom" - } + "path": "pages/activity/myReservation", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/personalCenter/personalCenter", + "style": { + "navigationStyle": "custom" + } } ], "subPackages": [ diff --git a/pages/activity/application.vue b/pages/activity/application.vue index 037b6f0..8799281 100644 --- a/pages/activity/application.vue +++ b/pages/activity/application.vue @@ -96,8 +96,6 @@ export default { // 活动ID activityId: "", - // 活动名称 - activityName: "", // 加载状态 loading: false, @@ -132,10 +130,6 @@ export default { if (options.actId) { this.activityId = parseInt(options.actId); } - // 如果传递了活动名称,使用传递的名称 - if (options.activityName) { - this.activityName = decodeURIComponent(options.activityName); - } this.fetchActivitySlots(); }, methods: { @@ -275,11 +269,10 @@ export default { date: this.getSelectedDateLabel(), time: this.getSelectedTimeLabel(), number: this.getSelectedNumberLabel(), - activityName: this.activityName || "活动", }; const queryString = Object.keys(params) - .map((key) => `${key}=${encodeURIComponent(params[key])}`) - .join("&"); + .map(key => `${key}=${encodeURIComponent(params[key])}`) + .join('&'); uni.navigateTo({ url: `/pages/activity/appointmentSuccess?${queryString}`, }); diff --git a/pages/activity/appointmentSuccess.vue b/pages/activity/appointmentSuccess.vue index e30c0ec..72fe763 100644 --- a/pages/activity/appointmentSuccess.vue +++ b/pages/activity/appointmentSuccess.vue @@ -6,7 +6,7 @@ 您提交的预约已成功! - + 预约日期:{{ date }} 预约时段:{{ time }} @@ -40,8 +40,8 @@ export default { methods: { // 返回首页 back() { - uni.switchTab({ - url: '/pages/index/index' + uni.navigateTo({ + url: `/pages/nearbystores/index`, }); }, }, diff --git a/pages/personalCenter/personalCenter.vue b/pages/personalCenter/personalCenter.vue new file mode 100644 index 0000000..a9bf419 --- /dev/null +++ b/pages/personalCenter/personalCenter.vue @@ -0,0 +1,272 @@ + + + + +