完成C端落地页融入白名单/白名单优惠券
This commit is contained in:
parent
34654e7afd
commit
8e9af90759
|
@ -101,7 +101,13 @@
|
|||
tiptext: '提示信息',
|
||||
plan_id: '',
|
||||
maskshow: false,
|
||||
disabledBtn: false
|
||||
disabledBtn: false,
|
||||
typeList:{//1 白名单 3 兑换码 4优惠券 8 优惠券白名单
|
||||
'1':'access_conf',
|
||||
'3':'exchange',
|
||||
'4':'coupon',
|
||||
'8':'coupon',
|
||||
}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
@ -134,13 +140,15 @@
|
|||
self.plan_id = res.data.plan_id
|
||||
this.pageType = res.data.page;
|
||||
sessionStorage.setItem('title', res.data.title);
|
||||
if (res.data.page == 3) {
|
||||
sessionStorage.setItem('product_list', JSON.stringify(res.data['exchange'].product_list));
|
||||
sessionStorage.setItem('product_detail', JSON.stringify(res.data['exchange'].product_detail));
|
||||
} else if (res.data.page == 1) {
|
||||
sessionStorage.setItem('product_list', JSON.stringify(res.data['access_conf'].product_list));
|
||||
sessionStorage.setItem('product_detail', JSON.stringify(res.data['access_conf'].product_detail));
|
||||
}
|
||||
sessionStorage.setItem('product_list', JSON.stringify(res.data[this.typeList[res.data.page]].product_list));
|
||||
sessionStorage.setItem('product_detail', JSON.stringify(res.data[this.typeList[res.data.page]].product_detail));
|
||||
// if (res.data.page == 3) {
|
||||
// sessionStorage.setItem('product_list', JSON.stringify(res.data['exchange'].product_list));
|
||||
// sessionStorage.setItem('product_detail', JSON.stringify(res.data['exchange'].product_detail));
|
||||
// } else if (res.data.page == 1) {
|
||||
// sessionStorage.setItem('product_list', JSON.stringify(res.data['access_conf'].product_list));
|
||||
// sessionStorage.setItem('product_detail', JSON.stringify(res.data['access_conf'].product_detail));
|
||||
// }
|
||||
self.loading = false;
|
||||
sessionStorage.setItem('linkId', linkId);
|
||||
//是否携带token
|
||||
|
@ -162,13 +170,7 @@
|
|||
}
|
||||
}).catch(err => { });
|
||||
} else {
|
||||
let keyName;
|
||||
if (this.pageType == 3) {
|
||||
captchaimg();
|
||||
keyName = 'exchange';
|
||||
} else if (this.pageType == 1) {
|
||||
keyName = 'access_conf';
|
||||
}
|
||||
let keyName=this.typeList[this.pageType];
|
||||
self.bgcolor = res.data[keyName].land.bg_color;
|
||||
self.ftcolor = res.data[keyName].land.font_color;
|
||||
self.topImg = res.data[keyName].land.top_image;
|
||||
|
|
Loading…
Reference in New Issue