Commit f4ceb345 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent a76dd303
......@@ -104,12 +104,13 @@
this.handleClose();
},
handleShow() {
let that = this;
this.$refs.coinPop.open('bottom');
this.post({
url: '/vip/getVipProducts/point',
data: {
vedioId: this.vedioId
vedioId: that.point <= 0 ? null : that.vedioId
},
showLoading: false,
success: ({
......@@ -154,7 +155,7 @@
this.post({
url: '/vip/getVipPayParams',
data: {
vedioId: this.vedioId,
vedioId: that.point <= 0 ? null : that.vedioId,
pid: vipBean.pid,
payChannel: 'WEIXIN'
},
......
......@@ -62,6 +62,10 @@
var zs_channel = ''; // 自有渠道
var vedio_id = ''; // 自有剧
var zs_os='';
var remark1='';
var remark2='';
var remark3='';
var vedioIndex='';
zs_os = wx.getSystemInfoSync().platform;
......@@ -79,6 +83,10 @@
product_type = obj.query.product_type ?? ''
zs_channel = obj.query.zs_channel ?? ''
vedio_id = obj.query.vedio_id ?? ''
remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? ''
remark3 = obj.query.remark3 ?? ''
vedioIndex = obj.query.vedio_index ?? ''
}else if(obj.query.ksChannel ?? '' != ''){
// 快手渠道参数
channel = 'kuaishou'
......@@ -92,6 +100,10 @@
product_type = obj.query.product_type ?? ''
zs_channel = obj.query.zs_channel ?? ''
vedio_id = obj.query.vedio_id ?? ''
remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? ''
remark3 = obj.query.remark3 ?? ''
vedioIndex = obj.query.vedio_index ?? ''
}else{
// 自有渠道
......@@ -120,7 +132,11 @@
projectId: projectId,
productType: product_type,
vedioId: vedio_id,
remark1:remark1,
remark2:remark2,
remark3:remark3,
os:zs_os,
vedioIndex:vedioIndex,
zsChannel: zs_channel
},
showLoading: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment