From 391ee81b53667f02e7dad93f73ae81025a934796 Mon Sep 17 00:00:00 2001 From: minimaxagent1 Date: Wed, 6 Aug 2025 15:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=AD=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E8=87=B3=E7=A5=88=E7=A6=8F=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nearbystores/index.vue | 49 ++++++++++++++++++++++++------------ utils/router.js | 4 +++ 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/pages/nearbystores/index.vue b/pages/nearbystores/index.vue index 09f9c9d..719c23b 100644 --- a/pages/nearbystores/index.vue +++ b/pages/nearbystores/index.vue @@ -74,22 +74,22 @@ - - - - - - - - - - - - - - - - + + + + {{ bottomSection.prayerSection.title }} + + + + + + {{ bottomSection.prayerSection.prayerButton.title }} + + + {{ bottomSection.prayerSection.prayerButton.subtitle }} + + + @@ -390,6 +390,23 @@ import { getArticleById } from "../../api/article/article.js"; } }, + /** + * 跳转到祈福页面 + */ + goToPray() { + try { + console.log('跳转到祈福页面'); + // 使用navigateToPage方法,传入参数pray + navigateToPage('pray'); + } catch (error) { + console.error('跳转到祈福页面失败:', error); + uni.showToast({ + title: '页面跳转失败', + icon: 'none' + }); + } + }, + /** * 播放音频 */ diff --git a/utils/router.js b/utils/router.js index 512a999..77cd450 100644 --- a/utils/router.js +++ b/utils/router.js @@ -11,6 +11,7 @@ export const PAGE_ROUTES = { WALK_INTO: '/pages/walkInto/walkInto', INSTITUTIONAL_STRUCTURE: '/pages/institutionalStructure/institutionalStructure', ACTIVITY: '/pages/activity/activity', + PRAY: '/pages/pray/pray', // 待开发页面 @@ -39,6 +40,9 @@ export const PAGE_TYPE_MAP = { 'ancient': PAGE_ROUTES.ANCIENT, 'future': PAGE_ROUTES.FUTURE, 'index': PAGE_ROUTES.INDEX, + 'pray': PAGE_ROUTES.PRAY, + + }; /**