Commit 60067686 authored by 杨梦雪's avatar 杨梦雪

11

parent 34984425
...@@ -459,8 +459,19 @@ export default { ...@@ -459,8 +459,19 @@ export default {
closeWebSocket() { closeWebSocket() {
this.websocket && this.websocket.close(); this.websocket && this.websocket.close();
}, },
// 立即支付-按钮
paying() { paying() {
if (this.has_amount == 0) {
getWxConfig({ pay_type: 3 }).then((res) => {
console.log(res, "signUpInit");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
this.$message.success(res.data.err_msg);
});
this.$emit("getstatus", 6);
}else {
// transfer_account 判断微信支付宝或者银行卡支付
if (this.transfer_account == 0) { if (this.transfer_account == 0) {
this.dialogChoose = true; this.dialogChoose = true;
} else { } else {
...@@ -471,22 +482,17 @@ export default { ...@@ -471,22 +482,17 @@ export default {
this.hideUpload = true; this.hideUpload = true;
} }
} }
}
// setTimeout(this.signUpInit(this.status_wx), 1000);
}, },
signUpInit(status_wx) { signUpInit() {
signUpInit({}).then((res) => { signUpInit({}).then((res) => {
console.log(res, "signUpInit"); console.log(res, "signUpInit");
if (res.data.code != 200) { if (res.data.code != 200) {
return this.$message.error(res.data.message); return this.$message.error(res.data.message);
} }
// this.status = res.data.status;
// 点击下一步传值给status,更新
if (status_wx) {
this.status = status_wx;
console.log(this.status, "status_wx");
} else {
this.status = res.data.status; this.status = res.data.status;
// console.log(this.status, "11111");
}
// return; // return;
// 点击下一步传值给status,更新 // 点击下一步传值给status,更新
if (this.status == 4) { if (this.status == 4) {
...@@ -502,13 +508,41 @@ export default { ...@@ -502,13 +508,41 @@ export default {
this.status = 2; this.status = 2;
} }
} }
this.confirmSignUpDialogFu = true; if (res.data.pay_amount == 0) {
getWxConfig({ pay_type: 3 }).then((res) => {
console.log(res, "signUpInit");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
this.$message.success(res.data.err_msg);
});
}
// pay_amount支付金额等于0,直接跳到成功页面
} else if (this.status == 5) { } else if (this.status == 5) {
this.type = "pay"; this.type = "pay";
this.confirmSignUpDialogFu = true; // pay_amount支付金额等于0,直接跳到成功页面
} else if (this.status == 6) { if (res.data.pay_amount == 0) {
this.type = "success"; this.type = "success";
this.$emit("getstatus", 6);
} else {
// transfer_account 判断微信支付宝或者银行卡支付
if (this.transfer_account == 0) {
this.dialogChoose = true;
} else {
this.bankDialogVisible = true;
console.log(this.fileList);
console.log(this.fileList != []);
if (this.fileList.length >= 1) {
this.hideUpload = true;
}
}
}
} }
// else if (this.status == 6) {
// this.type = "success";
// }
this.$emit("getstatus", res.data.status);
}); });
}, },
getAccount() { getAccount() {
......
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