From 899680b0c52abd425dd5836bad038ffd9cd40cab Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Thu, 16 Jan 2025 15:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/me/withdraw/index.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/me/withdraw/index.vue b/pages/me/withdraw/index.vue index 04ffedd..fbb17cc 100644 --- a/pages/me/withdraw/index.vue +++ b/pages/me/withdraw/index.vue @@ -101,7 +101,7 @@ import { linkTo } from '@/utils/app.js'; let data = reactive({ - ruleShow: true, + ruleShow: false, rule_title: "", rule_content: "", money: '', @@ -209,8 +209,7 @@ async function getCanCash() { canCash().then(res => { data.isWithdraw = res; - console.log(res) - console.log(uni.getStorageSync('adRewardedNum')) + console.log(res) if( uni.getStorageSync('adRewardedNum') >= 3 ){ data.isWithdraw = true; // uni.setStorageSync('adRewardedNum',0) @@ -253,9 +252,11 @@ const detail = e.detail if (detail && detail.isEnded) { // 正常播放结束 + console.log(data.urlCallback.extra) let res = await state({ extraKey: data.urlCallback.extra }) + console.log(res) uni.setStorageSync('adRewardedNum',0) getCanCash() } else { @@ -351,18 +352,22 @@ } function getMoney() { - let data = uni.showLoading({ title: '提现中' }); withdraw({ amount: data.money }).then(res => { + console.log(res) data.money = '' uni.setStorageSync('adRewardedNum',0) setTimeout(function() { getcashMoney() }, 1500) + uni.showToast({ + title: res.msg, + icon: 'none' + }) }).catch(res =>{ if (res.code == 9991) { uni.showToast({ @@ -372,6 +377,7 @@ setTimeout(function() { linkTo('/pages/me/withdraw/alipay') }, 1500) + }else{ } }) @@ -409,6 +415,7 @@ success: (e) => { if (e.confirm) { + console.log(data.money) getMoney(); getMoneyDetail(); }