修复上传身份证问题

This commit is contained in:
Dragon
2023-07-18 17:32:28 +08:00
parent 2f88fdc21d
commit bf6f941752
8 changed files with 14 additions and 12 deletions

View File

@@ -87,8 +87,8 @@ function getUploadToken (type) {
},
});
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {
toastMsg(res.message)
}
@@ -157,8 +157,8 @@ function withdrawUserAccount (name, idCardNo, accountNo, contact, thirdAccountNo
setTimeout(function () {
window.location.href = './withdrawal.html'
}, 500)
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {
toastMsg(res.message)
}
@@ -178,6 +178,8 @@ $('.but').click(function () {
toastMsg('請上傳身份證');
return;
}
withdrawUserAccount($('.box1 div .name').val(), $('.box1 div .card').val(), $('.box2 div .bankCard').val(), $('.box2 div .phone').val(), $('.box2 div .alipay').val(), $('.box2 div .address').val(), $('.box3 .idBox .z .documents').attr('src'), $('.box3 .idBox .z .documents').attr('src'));
withdrawUserAccount($('.box1 div .name').val(), $('.box1 div .card').val(), $('.box2 div .bankCard').val(), $('.box2 div .phone').val(), $('.box2 div .alipay').val(), $('.box2 div .address').val(),
$('.box3 .idBox .z .documents').attr('src'),
$('.box3 .idBox .f .documents').attr('src'));
}
})