From 29848591abcc9e678c7f179c06f285dfc3609584 Mon Sep 17 00:00:00 2001 From: minimaxagent1 Date: Thu, 7 Aug 2025 13:47:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=8C=81=E6=B3=95=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/abbot/abbot.vue | 9 +++++---- pages/nearbystores/index.vue | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pages/abbot/abbot.vue b/pages/abbot/abbot.vue index 9b871f1..0b4b02f 100644 --- a/pages/abbot/abbot.vue +++ b/pages/abbot/abbot.vue @@ -68,13 +68,14 @@ export default { return { activeTab: 0, // 当前激活的标签索引 tabs: [], - monkInfo: {} + monkInfo: {}, } }, - onLoad(options) { + onLoad() { + let id=uni.getStorageSync('abbotId') // 获取传递的参数 - if (options.id) { - this.fetchMonkDetail(options.id); + if (id) { + this.fetchMonkDetail(id); } }, methods: { diff --git a/pages/nearbystores/index.vue b/pages/nearbystores/index.vue index 719c23b..d3ef892 100644 --- a/pages/nearbystores/index.vue +++ b/pages/nearbystores/index.vue @@ -270,7 +270,9 @@ import { getArticleById } from "../../api/article/article.js"; endTime: response.data.endTime || '', audioUrl: response.data.audioUrl || '' }; - + + uni.setStorageSync('abbotId', response.data.abbotId); + // 重新启动跑马灯 this.stopMarquee(); this.startMarquee();