Merge branch 'test' of e.coding.net:g-cphe0354/duanju/new_app into gyq

This commit is contained in:
gyq
2025-01-16 15:18:15 +08:00

View File

@@ -101,7 +101,7 @@
import { linkTo } from '@/utils/app.js'; import { linkTo } from '@/utils/app.js';
let data = reactive({ let data = reactive({
ruleShow: true, ruleShow: false,
rule_title: "", rule_title: "",
rule_content: "", rule_content: "",
money: '', money: '',
@@ -209,8 +209,7 @@
async function getCanCash() { async function getCanCash() {
canCash().then(res => { canCash().then(res => {
data.isWithdraw = res; data.isWithdraw = res;
console.log(res) console.log(res)
console.log(uni.getStorageSync('adRewardedNum'))
if( uni.getStorageSync('adRewardedNum') >= 3 ){ if( uni.getStorageSync('adRewardedNum') >= 3 ){
data.isWithdraw = true; data.isWithdraw = true;
// uni.setStorageSync('adRewardedNum',0) // uni.setStorageSync('adRewardedNum',0)
@@ -253,9 +252,11 @@
const detail = e.detail const detail = e.detail
if (detail && detail.isEnded) { if (detail && detail.isEnded) {
// 正常播放结束 // 正常播放结束
console.log(data.urlCallback.extra)
let res = await state({ let res = await state({
extraKey: data.urlCallback.extra extraKey: data.urlCallback.extra
}) })
console.log(res)
uni.setStorageSync('adRewardedNum',0) uni.setStorageSync('adRewardedNum',0)
getCanCash() getCanCash()
} else { } else {
@@ -351,18 +352,22 @@
} }
function getMoney() { function getMoney() {
let data =
uni.showLoading({ uni.showLoading({
title: '提现中' title: '提现中'
}); });
withdraw({ withdraw({
amount: data.money amount: data.money
}).then(res => { }).then(res => {
console.log(res)
data.money = '' data.money = ''
uni.setStorageSync('adRewardedNum',0) uni.setStorageSync('adRewardedNum',0)
setTimeout(function() { setTimeout(function() {
getcashMoney() getcashMoney()
}, 1500) }, 1500)
uni.showToast({
title: res.msg,
icon: 'none'
})
}).catch(res =>{ }).catch(res =>{
if (res.code == 9991) { if (res.code == 9991) {
uni.showToast({ uni.showToast({
@@ -372,6 +377,7 @@
setTimeout(function() { setTimeout(function() {
linkTo('/pages/me/withdraw/alipay') linkTo('/pages/me/withdraw/alipay')
}, 1500) }, 1500)
}else{
} }
}) })
@@ -409,6 +415,7 @@
success: (e) => { success: (e) => {
if (e.confirm) { if (e.confirm) {
console.log(data.money)
getMoney(); getMoney();
getMoneyDetail(); getMoneyDetail();
} }