Commit f4ceb345 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent a76dd303
...@@ -103,13 +103,14 @@ ...@@ -103,13 +103,14 @@
this.$emit('paySuccess', largeType); this.$emit('paySuccess', largeType);
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: ({
...@@ -120,7 +121,7 @@ ...@@ -120,7 +121,7 @@
// this.selectedIndex = data.list[0].activityType; // this.selectedIndex = data.list[0].activityType;
for (let i = 0; i < data.list.length; i++) { for (let i = 0; i < data.list.length; i++) {
if (data.list[i].activityType == 1) { if (data.list[i].activityType == 1) {
this.selectedIndex = i; this.selectedIndex = i;
break; break;
} }
} }
...@@ -153,8 +154,8 @@ ...@@ -153,8 +154,8 @@
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;
...@@ -78,7 +82,11 @@ ...@@ -78,7 +82,11 @@
tips2 = obj.query.tips2 ?? '' tips2 = obj.query.tips2 ?? ''
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,
os:zs_os, remark1:remark1,
remark2:remark2,
remark3:remark3,
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