首页优化

This commit is contained in:
Dev
2026-10-15 17:12:09 +08:00
parent 373ac94411
commit 30460cb925
5 changed files with 20 additions and 12 deletions
@@ -75,7 +75,7 @@ Page({
duration: 500,
interval: 5000,
soldNum: 0, // 已售数量
caseView: wx.getStorageSync('goodsCaseView') === true, // 案例展示:使用默认标题,不显示购买和规格
caseView: wx.getStorageSync('goodsCaseView') === true, // 案例展示:标题改为详情,不显示购买和规格
},
handlePopupHide() {
@@ -419,12 +419,10 @@ Page({
async applyCaseView() {
if (this.data.caseView) {
wx.setNavigationBarTitle({ title: '' });
wx.setNavigationBarTitle({ title: '详情' });
}
const caseView = await fetchGoodsCaseView();
this.setData({ caseView });
if (caseView) {
wx.setNavigationBarTitle({ title: '' });
}
wx.setNavigationBarTitle({ title: caseView ? '详情' : '商品详情' });
},
});