首页优化
This commit is contained in:
@@ -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 ? '详情' : '商品详情' });
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user