修复bug
This commit is contained in:
@@ -135,6 +135,7 @@ function getUser () {
|
||||
}
|
||||
// 提領賬戶管理接口
|
||||
var isPrevBool = false;
|
||||
var isRealCertifyBool = 1;
|
||||
var updateNums = 0;
|
||||
function getAccounts () {
|
||||
showLoading()
|
||||
@@ -181,16 +182,19 @@ function getAccounts () {
|
||||
}
|
||||
if (res.accountType == 2) {
|
||||
updateNums = res.updateNum;
|
||||
isRealCertifyBool = res.isRealCertify;
|
||||
// 判断是否认证
|
||||
if (res.isRealCertify == 0) {
|
||||
if (isRealCertifyBool == 0) {
|
||||
$('.withdrawal input').attr('placeholder', '請先進行實名認證');
|
||||
$('.authentication span').text('未實名');
|
||||
realName = false;
|
||||
} else {
|
||||
realName = true;
|
||||
$('.withdrawal input').attr('placeholder', '請先選擇提領賬戶');
|
||||
$('.withdrawal input').attr('placeholder', '請輸入提領金幣數額');
|
||||
$('.authentication span').text('已實名');
|
||||
}
|
||||
} else {
|
||||
$('.withdrawal input').attr('placeholder', '請輸入提領金幣數額');
|
||||
}
|
||||
if (accountType == 2) {
|
||||
$('.authentication').show();
|
||||
@@ -303,6 +307,21 @@ $('.switch .pub_in .ok').click(function () {
|
||||
$('.accountPub').hide();
|
||||
$('.switch').hide();
|
||||
calculate();
|
||||
if (accountType == 2) {
|
||||
// 判断是否认证
|
||||
if (isRealCertifyBool == 0) {
|
||||
$('.withdrawal input').attr('placeholder', '請先進行實名認證');
|
||||
$('.authentication span').text('未實名');
|
||||
realName = false;
|
||||
} else {
|
||||
realName = true;
|
||||
$('.withdrawal input').attr('placeholder', '請輸入提領金幣數額');
|
||||
$('.authentication span').text('已實名');
|
||||
}
|
||||
} else {
|
||||
$('.withdrawal input').attr('placeholder', '請輸入提領金幣數額');
|
||||
}
|
||||
|
||||
})
|
||||
// 确定输入提領弹窗按钮
|
||||
$('.goldPub .goldPub_in .but').click(function () {
|
||||
|
@@ -14,6 +14,11 @@ $(function () {
|
||||
var timer = null;
|
||||
var env = EnvCheck();
|
||||
var urlObj = getQueryString();
|
||||
console.log(urlObj.uid);
|
||||
if (urlObj.uid) {
|
||||
sessionStorage.setItem("uid", urlObj.uid);
|
||||
sessionStorage.setItem("ticket", urlObj.ticket);
|
||||
}
|
||||
if (env == 'test') {
|
||||
var vConsole = new VConsole();
|
||||
}
|
||||
@@ -156,12 +161,12 @@ $(function () {
|
||||
certType: 0,
|
||||
code: identityCode,
|
||||
identityNumber: encryptDes(personId, "1ea53d260ecf11e7b56e00163e046a26"),
|
||||
metaInfo:JSON.stringify(metaInfo),
|
||||
phone: encryptDes(86+phone, "1ea53d260ecf11e7b56e00163e046a26"),
|
||||
returnUrl: urlPrefix + '/peko/modules/h5Income/withdrawal.html',
|
||||
metaInfo: JSON.stringify(metaInfo),
|
||||
phone: encryptDes(86 + phone, "1ea53d260ecf11e7b56e00163e046a26"),
|
||||
returnUrl: urlPrefix + `/peko/modules/identity/new.html?uid=${sessionStorage.getItem("uid")}&ticket=${sessionStorage.getItem("ticket")}`,
|
||||
uid: pubInfo.uid,
|
||||
username: encryptDes(name, "1ea53d260ecf11e7b56e00163e046a26"),
|
||||
};
|
||||
};
|
||||
networkRequest({
|
||||
type: 'post',
|
||||
url: urlPrefix + '/certification/initFace',
|
||||
@@ -215,7 +220,7 @@ $(function () {
|
||||
}, 1000)
|
||||
|
||||
var requestParam = {
|
||||
phone: encryptDes(86+phone, "1ea53d260ecf11e7b56e00163e046a26"),
|
||||
phone: encryptDes(86 + phone, "1ea53d260ecf11e7b56e00163e046a26"),
|
||||
uid: pubInfo.uid,
|
||||
ticket: pubInfo.ticket
|
||||
};
|
||||
|
Reference in New Issue
Block a user