提现优化
This commit is contained in:
@@ -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: '',
|
||||||
@@ -210,7 +210,6 @@
|
|||||||
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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user