Commit 4b44a5fa authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 33149f26
......@@ -110,8 +110,6 @@
data() {
return {
vipList: [],
needClick: false,
tempSign: false,
selectedIndex: 0,
os: 'android',
checked: false,
......@@ -136,7 +134,6 @@
this.hintText = this.vipList[0].trailRemark;
if (data.list != null) {
// this.selectedIndex = data.list[0].activityType;
for (let i = 0; i < data.list.length; i++) {
if (data.list[i].activityType == 1) {
this.selectedIndex = i;
......@@ -162,9 +159,6 @@
}
});
},
clickAgreeBtn() {
this.needClick = !this.needClick
},
dialogClose() {
this.$refs.alertDialog.close();
},
......@@ -173,8 +167,6 @@
this.hintText = this.vipList[this.selectedIndex].trailRemark;
},
clickAgree() {
// let url = 'https://mints-web.mints-id.com/agreements/scandemon/gmxy.html';
// navigateTo(`/pages/brower/brower?url=` + url);
this.$refs.alertDialog.open();
},
handlePay() {
......@@ -233,7 +225,6 @@
data: ttData.params.data,
byteAuthorization: ttData.params.byteAuthorization,
success: (res) => {
that.tempSign = true;
tt.hideLoading();
tt.sign({
businessType: ttData.params.businessType,
......@@ -244,26 +235,6 @@
fail: (res) => {
// this.slotParam = JSON.stringify(res);
// this.$refs.select.open('center');
setTimeout(() => {
that.post({
url: '/user/baseMsg',
showLoading: false,
success: ({
data
}) => {
if (data.expireTime > 0) {
// 处理抖音签约逻辑
if (that.tempSign) {
that.tempSign = false;
message.notify('签约成功');
setTimeout(() => {
navigateBack()
}, 1000);
}
}
}
});
}, 500);
}
})
},
......@@ -349,8 +320,11 @@
showLoading: true,
success: ({
data
}) => {
that.paySuccess(largeType);
}) => {
message.notify('支付成功');
setTimeout(() => {
navigateBack()
}, 1000);
}
});
},
......
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