Commit f4ceb345 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent a76dd303
...@@ -104,12 +104,13 @@ ...@@ -104,12 +104,13 @@
this.handleClose(); this.handleClose();
}, },
handleShow() { handleShow() {
let that = this;
this.$refs.coinPop.open('bottom'); this.$refs.coinPop.open('bottom');
this.post({ this.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts/point',
data: { data: {
vedioId: this.vedioId vedioId: that.point <= 0 ? null : that.vedioId
}, },
showLoading: false, showLoading: false,
success: ({ success: ({
...@@ -154,7 +155,7 @@ ...@@ -154,7 +155,7 @@
this.post({ this.post({
url: '/vip/getVipPayParams', url: '/vip/getVipPayParams',
data: { data: {
vedioId: this.vedioId, vedioId: that.point <= 0 ? null : that.vedioId,
pid: vipBean.pid, pid: vipBean.pid,
payChannel: 'WEIXIN' payChannel: 'WEIXIN'
}, },
......
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
var zs_channel = ''; // 自有渠道 var zs_channel = ''; // 自有渠道
var vedio_id = ''; // 自有剧 var vedio_id = ''; // 自有剧
var zs_os=''; var zs_os='';
var remark1='';
var remark2='';
var remark3='';
var vedioIndex='';
zs_os = wx.getSystemInfoSync().platform; zs_os = wx.getSystemInfoSync().platform;
...@@ -79,6 +83,10 @@ ...@@ -79,6 +83,10 @@
product_type = obj.query.product_type ?? '' product_type = obj.query.product_type ?? ''
zs_channel = obj.query.zs_channel ?? '' zs_channel = obj.query.zs_channel ?? ''
vedio_id = obj.query.vedio_id ?? '' 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 ?? '' != ''){ }else if(obj.query.ksChannel ?? '' != ''){
// 快手渠道参数 // 快手渠道参数
channel = 'kuaishou' channel = 'kuaishou'
...@@ -92,6 +100,10 @@ ...@@ -92,6 +100,10 @@
product_type = obj.query.product_type ?? '' product_type = obj.query.product_type ?? ''
zs_channel = obj.query.zs_channel ?? '' zs_channel = obj.query.zs_channel ?? ''
vedio_id = obj.query.vedio_id ?? '' vedio_id = obj.query.vedio_id ?? ''
remark1 = obj.query.remark1 ?? ''
remark2 = obj.query.remark2 ?? ''
remark3 = obj.query.remark3 ?? ''
vedioIndex = obj.query.vedio_index ?? ''
}else{ }else{
// 自有渠道 // 自有渠道
...@@ -120,7 +132,11 @@ ...@@ -120,7 +132,11 @@
projectId: projectId, projectId: projectId,
productType: product_type, productType: product_type,
vedioId: vedio_id, vedioId: vedio_id,
remark1:remark1,
remark2:remark2,
remark3:remark3,
os:zs_os, os:zs_os,
vedioIndex:vedioIndex,
zsChannel: zs_channel zsChannel: zs_channel
}, },
showLoading: false, 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