审核模式
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
} from '../../../services/good/fetchGoodsDetailsComments';
|
||||
|
||||
import { cdnBase } from '../../../config/index';
|
||||
import { fetchGoodsCaseView } from '../../../services/home/home';
|
||||
import { withPromoter, promoterQuery } from '../../../utils/promoter';
|
||||
|
||||
const imgPrefix = `${cdnBase}/`;
|
||||
@@ -74,6 +75,7 @@ Page({
|
||||
duration: 500,
|
||||
interval: 5000,
|
||||
soldNum: 0, // 已售数量
|
||||
caseView: wx.getStorageSync('goodsCaseView') === true, // 案例展示:使用默认标题,不显示购买和规格
|
||||
},
|
||||
|
||||
handlePopupHide() {
|
||||
@@ -409,8 +411,20 @@ Page({
|
||||
this.setData({
|
||||
spuId: spuId,
|
||||
});
|
||||
this.applyCaseView();
|
||||
this.getDetail(spuId);
|
||||
this.getCommentsList(spuId);
|
||||
this.getCommentsStatistics(spuId);
|
||||
},
|
||||
|
||||
async applyCaseView() {
|
||||
if (this.data.caseView) {
|
||||
wx.setNavigationBarTitle({ title: '' });
|
||||
}
|
||||
const caseView = await fetchGoodsCaseView();
|
||||
this.setData({ caseView });
|
||||
if (caseView) {
|
||||
wx.setNavigationBarTitle({ title: '' });
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user