修复bug

This commit is contained in:
Dragon
2023-07-14 15:27:25 +08:00
parent f594d0de0c
commit 131a276e58
22 changed files with 82 additions and 24 deletions

View File

@@ -547,7 +547,7 @@ function getInfoFromClient () {
pubInfo.deviceId = "0";
pubInfo.deviceInfo = {
app: 'peko',
appVersion: '0.0.0',
appVersion: '9.9.9',
os: '0.0.0',
osVersion: '0.0.0',
channel: 'browser',

View File

@@ -30,7 +30,7 @@
<div class="box2">
<div>
<span>銀行卡號</span>
<input class="bankCard" type="number" placeholder="請填寫銀行卡號">
<input class="bankCard" type="text" placeholder="請填寫銀行卡號">
</div>
<div>
<span>手機號碼</span>

View File

@@ -164,6 +164,7 @@ input::placeholder {
left: 50%;
transform: translateX(-50%);
top: 0.3733333333rem;
z-index: 2;
}
.but {

View File

@@ -176,6 +176,7 @@ input {
left: 50%;
transform: translateX(-50%);
top: px2rem(28, );
z-index: 2;
}
}
}

View File

@@ -35,6 +35,10 @@ body {
font-weight: bold;
margin-bottom: 0.16rem;
margin-top: 0.4rem;
width: 6.5rem;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.myInfo div b {
color: #8A8CAB;

View File

@@ -41,6 +41,10 @@ body {
font-weight: bold;
margin-bottom: px2rem(12, );
margin-top: px2rem(30, );
width: 6.5rem;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
b {
@@ -100,6 +104,7 @@ body {
position: absolute;
}
}
.gold {
width: px2rem(690, );
height: px2rem(288, );
@@ -149,7 +154,8 @@ body {
top: px2rem(110, );
position: absolute;
}
.exchangeGold{
.exchangeGold {
width: px2rem(292, );
height: px2rem(80, );
line-height: px2rem(80, );
@@ -163,7 +169,8 @@ body {
border: px2rem(2, ) solid #93570B;
box-sizing: border-box;
}
.withdrawal{
.withdrawal {
width: px2rem(292, );
height: px2rem(80, );
line-height: px2rem(80, );

View File

@@ -164,6 +164,7 @@ input::placeholder {
left: 50%;
transform: translateX(-50%);
top: 0.3733333333rem;
z-index: 2;
}
.but {

View File

@@ -176,6 +176,7 @@ input {
left: 50%;
transform: translateX(-50%);
top: px2rem(28, );
z-index: 2;
}
}
}

View File

@@ -133,6 +133,7 @@ input::placeholder {
left: 50%;
transform: translateX(-50%);
top: 0.3733333333rem;
z-index: 2;
}
.but {

View File

@@ -141,6 +141,7 @@ input {
left: 50%;
transform: translateX(-50%);
top: px2rem(28, );
z-index: 2;
}
}
}

View File

@@ -164,6 +164,7 @@ input::placeholder {
left: 50%;
transform: translateX(-50%);
top: 0.3733333333rem;
z-index: 2;
}
.but {

View File

@@ -176,6 +176,7 @@ input {
left: 50%;
transform: translateX(-50%);
top: px2rem(28, );
z-index: 2;
}
}
}

View File

@@ -52,6 +52,10 @@ body {
font-weight: bold;
margin-bottom: 0.16rem;
margin-top: 0.4rem;
width: 6.5rem;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.myInfo div b {
color: #8A8CAB;

View File

@@ -59,6 +59,10 @@ body {
font-weight: bold;
margin-bottom: px2rem(12, );
margin-top: px2rem(30, );
width: 6.5rem;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
b {

View File

@@ -91,3 +91,16 @@ function getUser () {
$('.back').click(function () {
window.history.go(-1)
})
//返回页面 重新请求接口
var hiddenProperty = 'hidden' in document ? 'hidden' :
'webkitHidden' in document ? 'webkitHidden' :
'mozHidden' in document ? 'mozHidden' : null;
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
var onVisibilityChange = function () {
if (!document[hiddenProperty]) {
location.reload()
}
}
document.addEventListener(visibilityChangeEvent, onVisibilityChange);

View File

@@ -101,7 +101,10 @@ function oauthToken () {
networkRequest({
type: 'POST',
url: urlPrefix + '/oauth/token',
data: idOrPhone ? { "grant_type": "password", phone, password, client_id: "erban-client", "client_secret": "uyzjdhds" } : { grant_type: 'verify_code', phoneAreaCode, phone, code, client_id: "erban-client", "client_secret": "uyzjdhds" },
data: idOrPhone ? {
"grant_type": "password", phone, password, client_id: "erban-client", "client_secret": "uyzjdhds"
} :
{ grant_type: 'verify_code', phoneAreaCode, phone:`${code}${phone}`, code, client_id: "erban-client", "client_secret": "uyzjdhds" },
success (res) {
if (res.code === 200) {
token = res.data.access_token;

View File

@@ -46,7 +46,8 @@ function getConfig () {
data: { uid: pubInfo.uid },
success (res) {
if (res.code === 200) {
$('.box p b').text(res.data.weekMaxValue);
$('.box p .b2').text(res.data.weekLimitCount);
$('.box p .b1').text(res.data.minValue);
} else if (res.code ? res.code == 401 : JSON.parse(res).code == 401) {
window.location.href = './login.html'
} else {

View File

@@ -57,7 +57,7 @@ function getConfig () {
var str = `
<p>收益金幣達到${res.data.minValue}或以上可以申請提領</p>
<p>提領金幣必須為100的整倍數</p>
<p>每周可提領次數:<i>${res.data.weekMaxValue}</i></p>
<p>每周可提領次數:<i>${res.data.weekLimitCount}</i></p>
<p>提領手續費:<i>${res.data.chargeRate}%</i></p>
`
$('.withdrawal').append(str);
@@ -229,6 +229,7 @@ $('.switch .pub_in .ok').click(function () {
$('.account span').addClass('active');
$('.accountPub').hide();
$('.switch').hide();
calculate();
})
// 确定输入提領弹窗按钮
$('.goldPub .goldPub_in .but').click(function () {
@@ -245,6 +246,13 @@ $('.goldPub .goldPub_in .but').click(function () {
toastMsg(`提領金幣必須為100的整倍數`);
return
}
calculate();
return false;
})
// 计算汇率接口
function calculate () {
var num = $('.goldPub .goldPub_in input').val();
num.length == 0 ? num = $('.withdrawal input').val() : num;
showLoading()
networkRequest({
type: 'GET',
@@ -264,7 +272,6 @@ $('.goldPub .goldPub_in .but').click(function () {
} else {
toastMsg(res.message)
}
console.log();
hideLoading(layerIndex)
},
error (err) {
@@ -272,8 +279,7 @@ $('.goldPub .goldPub_in .but').click(function () {
toastMsg('網絡錯誤,請退出重進')
}
})
return false;
})
}
// 关闭二次确认提領按钮
$('.withDrawalPub').click(function () {
$('.withDrawalPub').hide();
@@ -290,10 +296,6 @@ $('.butBig').click(function () {
toastMsg('超出本周最大提领次数')
return
}
if (num >= weekMaxValue) {
toastMsg('超出本周最大提领金额')
return
}
$('.withDrawalPub .withDrawalPub_in p ').html(`確認通過 <b>${$('.account .active').text()}</b> 提領 <b>${num}</b>金幣?`)
$('.withDrawalPub .withDrawalPub_in span b ').html(`${$('.withdrawal .numBox b').text()}`)
$('.withDrawalPub').show();
@@ -361,3 +363,15 @@ $('.back').click(function () {
$('.income .rule').click(function () {
window.location.href = './rule.html';
})
//返回页面 重新请求接口
var hiddenProperty = 'hidden' in document ? 'hidden' :
'webkitHidden' in document ? 'webkitHidden' :
'mozHidden' in document ? 'mozHidden' : null;
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
var onVisibilityChange = function () {
if (!document[hiddenProperty]) {
location.reload()
}
}
document.addEventListener(visibilityChangeEvent, onVisibilityChange);

View File

@@ -50,11 +50,11 @@
<div class="box2">
<div>
<span>銀行收款賬戶</span>
<input class="bankAccount " type="number" placeholder="例666666">
<input class="bankAccount " type="text" placeholder="例666666">
</div>
<div>
<span>銀行名稱</span>
<input class="bankName" type="number" placeholder="例CIMB Bank">
<input class="bankName" type="text" placeholder="例CIMB Bank">
</div>
<div>
<span>SWIFT CODE</span>

View File

@@ -19,11 +19,11 @@
<div class="box2">
<div>
<span>Payoneer賬戶</span>
<input class="bankCard" type="number" placeholder="Payoneer賬戶">
<input class="bankCard" type="text" placeholder="Payoneer賬戶">
</div>
<div>
<span>真實姓名</span>
<input class="name" type="number" placeholder="例:張三">
<input class="name" type="text" placeholder="例:張三">
</div>
<div>
<span>身份證號</span>
@@ -62,7 +62,7 @@
<div class="rule">
<p>註意:</p>
<p>1.其他賬戶提領將由Payoneer發放</p>
<p>2.Payoneer的使用方法請聯繫客服 Wechat:xxxx 咨詢;</p>
<p>2.Payoneer的使用方法請聯繫客服 Wechat:sd245376 咨詢;</p>
<p>3.Payoneer賬戶必須與真實姓名一致否則提領不能到賬</p>
<p>4.請勿將賬號綁定他人的姓名,提領真實姓名綁定後不能修改,請謹慎操作;</p>
<p>5.首次進行提領流程時,會需要上傳您的身份證相關信息;</p>

View File

@@ -22,8 +22,8 @@
<p>可以通過接受別人打賞的禮物,獲得金幣。</p>
<p>3.收益提領规则</p>
<p>3.1. 1000金幣等於1美元根據提領地區匯率換算匯率每週更新</p>
<p>3.2. 每周可申請提領5次,次日發放;</p>
<p>3.3. 金幣數量需大於或等於<b></b>金幣才能申請提取;</p>
<p>3.2. 每周可申請提領<b class="b2"></b>次,次日發放;</p>
<p>3.3. 金幣數量需大於或等於<b class="b1"></b>金幣才能申請提取;</p>
<p>3.4. 如您的提領信息有誤無法發放,金幣原路退回帳號,請聯繫客服;</p>
<p>4.金幣兌換鑽石规则</p>
<p>金幣可兌換為鑽石兌換比例1000金幣=1000鑽石。</p>

View File

@@ -50,11 +50,11 @@
<div class="box2">
<div>
<span>銀行收款賬戶</span>
<input class="bankAccount " type="number" placeholder="例666666">
<input class="bankAccount " type="text" placeholder="例666666">
</div>
<div>
<span>銀行名稱</span>
<input class="bankName" type="number" placeholder="例CIMB Bank">
<input class="bankName" type="text" placeholder="例CIMB Bank">
</div>
<div>
<span>SWIFT CODE</span>