From 381d801611285d5747e195ca28f42ceda733e5f8 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Thu, 9 Jan 2025 15:27:39 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E5=B9=BF=E5=91=8A=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/me/withdraw/index.vue | 35 ++++++++++++++++++-----------------
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/pages/me/withdraw/index.vue b/pages/me/withdraw/index.vue
index 2e06413..284d6f1 100644
--- a/pages/me/withdraw/index.vue
+++ b/pages/me/withdraw/index.vue
@@ -25,7 +25,7 @@
- {{!data.isWithdraw?'观看广告提现':'立即提现'}}
+ {{data.isWithdraw?'立即提现':'观看广告提现'}}
实名认证
@@ -75,11 +75,13 @@
-
-
+
+
+
+
+
+
@@ -116,26 +118,26 @@
limit: 10,
totalCount: 0,
cashMoney: 0,
- urlCallback: null,
- adRewardedVideo: true,
+ urlCallback: {},
+ adRewardedShow: true,
adRewardedVideoloadNum: 0,
isWithdraw: false,
userInfo: null,
})
- const adRewardedVideo = ref(null);
+
+ const adRewarded = ref(null);
onLoad(() => {
getExtractFei();
getMoneyDetail();
})
onShow(() => {
- console.log(uni.getStorageSync('userInfo'))
getcashMoney()
getUserInfo();
})
onReady(() => {
nextTick(()=>{
data.adRewardedVideoloadNum = 0
- adRewardedVideo.value.load();
+ adRewarded.value.load();
})
getCanCash()
})
@@ -163,7 +165,7 @@
*/
async function getCanCash() {
canCash().then(res => {
- // data.isWithdraw = res;
+ data.isWithdraw = !res;
})
}
@@ -172,7 +174,7 @@
* @param {Object} e
*/
function onadload(e) {
- data.adRewardedVideo = true;
+ data.adRewardedShow = true;
console.log('广告数据加载成功');
}
@@ -182,12 +184,12 @@
*/
function onaderror(e) {
if ( data.adRewardedVideoloadNum >=3 ) {
- data.adRewardedVideo = false;
+ data.adRewardedShow = false;
return
}
data.adRewardedVideoloadNum++
setTimeout(() => {
- // adRewardedVideo.value.load();
+ adRewarded.value.load();
}, 1000); // 10
console.log("广告加载失败")
}
@@ -224,7 +226,7 @@
userId: uni.getStorageSync('userInfo').userId,
extra: 'cash:'+uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
}
- adRewardedVideo.value.show();
+ adRewarded.value.show();
} else {
getOut()
}
@@ -276,7 +278,6 @@
*/
function getcashMoney() {
selectUserMoney().then(res => {
- console.log(res)
data.mayMoney = res.amount || 0
})
}