|
...
|
...
|
@@ -312,7 +312,7 @@ Page({ |
|
|
|
let data=res.data
|
|
|
|
console.log('data',data);
|
|
|
|
let coupon_dataList=[]
|
|
|
|
let home,chef,marketing,reserve,swich_phone,is_comments,signboard,store,homeColor,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;
|
|
|
|
let home,chef,marketing,coupon,reserve,swich_phone,is_comments,signboard,store,homeColor,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;
|
|
|
|
chef = util.determine(data.chef);
|
|
|
|
reserve = util.determine(data.reserve);
|
|
|
|
marketing = util.determine(data.marketing);
|
|
...
|
...
|
@@ -320,9 +320,11 @@ Page({ |
|
|
|
store = util.determine(data.store);
|
|
|
|
home = util.determine(data.home);
|
|
|
|
swich_phone = reserve && reserve.swich_phone?reserve.swich_phone:'';
|
|
|
|
is_comments = marketing && marketing.is_comments?marketing.is_comments:'';
|
|
|
|
let coupon=marketing?util.determine(marketing.coupon_data):'';
|
|
|
|
marketing.coupon_data_comments=(marketing && is_comments=='1' && marketing.is_comments_coupon=='1')?util.determine(marketing.coupon_data_comments):'';
|
|
|
|
if(marketing){
|
|
|
|
is_comments = marketing.is_comments?marketing.is_comments:'';
|
|
|
|
coupon=marketing.coupon_data?util.determine(marketing.coupon_data):'';
|
|
|
|
marketing.coupon_data_comments=(is_comments=='1' && marketing.is_comments_coupon=='1')?util.determine(marketing.coupon_data_comments):'';
|
|
|
|
}
|
|
|
|
// is_cash 代金券 is_discount折扣券 is_dish菜品券 只有代金券有几折显示
|
|
|
|
if(coupon && util.getType(coupon)=='object'){
|
|
|
|
coupon.stringifyUse=JSON.stringify(coupon.use)
|
...
|
...
|
|