fix: 补齐多品牌运行时内容数据

This commit is contained in:
que01 committed 2026-09-23 14:00:49 +08:00
1 parent f7fe6d6b20
commit 241c19812f
6 files changed
+188 -3

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ Page({
theme: workspace.theme || {},
hero: {
...this.data.hero,
image: activeBrand.heroImage || this.data.hero.image,
eyebrow: activeBrand.tagline || activeBrand.name,
title: firstOffering.name || activeBrand.name,
slogan: activeBrand.description || "以专业经验建立长期信任",
+1 -1
View File
@@ -8,6 +8,6 @@ module.exports = {
return app.globalData.brand || {};
},
get brandSlug() {
return app.globalData.brandSlug || "default-brand";
return wx.getStorageSync("brandSlug") || app.globalData.brandSlug || "default-brand";
},
};