修复上传身份证问题
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user