提现页面优化

This commit is contained in:
GaoHao 2025-01-16 11:24:24 +08:00
parent 76db18804b
commit c1f3c9a937
3 changed files with 14 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"version" : "1.0",
"configurations" : [
{
"playground" : "custom",
"playground" : "standard",
"type" : "uni-app:app-android"
},
{

View File

@ -2,7 +2,8 @@
export default {
onLaunch: function() {
console.log('App Launch');
uni.setStorageSync('adRewardedNum',0)
},
onShow: function() {
},

View File

@ -114,6 +114,7 @@
urlCallback: {},
adpid: null,
adRewardedShow: false,
adRewardedNum: 0,
adRewardedVideoloadNum: 0,
isWithdraw: false,
userInfo: null,
@ -131,6 +132,7 @@
// }
getExtractFei();
getMoneyDetail();
getCanCash()
})
onShow(() => {
@ -147,7 +149,6 @@
data.adRewardedVideoloadNum = 0
adRewardedw.value.load();
})
getCanCash()
})
onReachBottom(() => {
if (data.page * data.limit < data.totalCount) {
@ -209,6 +210,12 @@
async function getCanCash() {
canCash().then(res => {
data.isWithdraw = !res;
if( uni.getStorageSync('adRewardedNum') >= 3 ){
data.isWithdraw = true;
// uni.setStorageSync('adRewardedNum',0)
} else {
uni.setStorageSync('adRewardedNum',((uni.getStorageSync('adRewardedNum')||0)+1))
}
})
}
@ -218,6 +225,7 @@
*/
function onadload(e) {
data.adRewardedShow = true;
uni.setStorageSync('adRewardedNum',0)
console.log('广告数据加载成功');
}
@ -247,6 +255,7 @@
let res = await state({
extraKey: data.urlCallback.extra
})
uni.setStorageSync('adRewardedNum',0)
getCanCash()
} else {
// 退
@ -349,6 +358,7 @@
amount: data.money
}).then(res => {
data.money = ''
uni.setStorageSync('adRewardedNum',0)
setTimeout(function() {
getcashMoney()
}, 1500)