Commit f4ceb345 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent a76dd303
......@@ -103,13 +103,14 @@
this.$emit('paySuccess', largeType);
this.handleClose();
},
handleShow() {
handleShow() {
let that = this;
this.$refs.coinPop.open('bottom');
this.post({
url: '/vip/getVipProducts/point',
data: {
vedioId: this.vedioId
url: '/vip/getVipProducts/point',
data: {
vedioId: that.point <= 0 ? null : that.vedioId
},
showLoading: false,
success: ({
......@@ -120,7 +121,7 @@
// this.selectedIndex = data.list[0].activityType;
for (let i = 0; i < data.list.length; i++) {
if (data.list[i].activityType == 1) {
this.selectedIndex = i;
this.selectedIndex = i;
break;
}
}
......@@ -153,8 +154,8 @@
this.post({
url: '/vip/getVipPayParams',
data: {
vedioId: this.vedioId,
data: {
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;
......@@ -78,7 +82,11 @@
tips2 = obj.query.tips2 ?? ''
product_type = obj.query.product_type ?? ''
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 ?? '' != ''){
// 快手渠道参数
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,
os:zs_os,
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