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, + + }; /**