From a0f899c3cdf78f3606553a269511d724ee067fdd Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 15 Jan 2025 17:50:53 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=8A=A0=E8=BD=BD?=
=?UTF-8?q?=E5=A4=B1=E8=B4=A5=E8=A7=A6=E5=8F=91=E6=8F=90=E9=86=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/me/withdraw/index.vue | 15 ++++++++++-----
pages/task/index.vue | 12 +++++++++---
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/pages/me/withdraw/index.vue b/pages/me/withdraw/index.vue
index 827f029..282d779 100644
--- a/pages/me/withdraw/index.vue
+++ b/pages/me/withdraw/index.vue
@@ -83,7 +83,7 @@
-
@@ -113,7 +113,7 @@
cashMoney: 0,
urlCallback: {},
adpid: null,
- adRewardedShow: true,
+ adRewardedShow: false,
adRewardedVideoloadNum: 0,
isWithdraw: false,
userInfo: null,
@@ -227,14 +227,13 @@
*/
function onaderror(e) {
if ( data.adRewardedVideoloadNum >=3 ) {
- data.adRewardedShow = false;
return
}
data.adRewardedVideoloadNum++
setTimeout(() => {
adRewarded.value.load();
}, 1000); // 10
- console.log("广告加载失败")
+ console.log("广告加载失败",e)
}
/**
@@ -263,8 +262,14 @@
* 提现触发
*/
function goWithdraw() {
-
if ( !data.isWithdraw ) {
+ if(!data.adRewardedShow){
+ uni.showToast({
+ icon: 'none',
+ title: '广告加载失败,请稍后重试'
+ });
+ return
+ }
data.urlCallback = {
userId: uni.getStorageSync('userInfo').userId,
extra: 'cash:'+uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
diff --git a/pages/task/index.vue b/pages/task/index.vue
index 5ad8e18..f6ab041 100644
--- a/pages/task/index.vue
+++ b/pages/task/index.vue
@@ -62,7 +62,7 @@
-
@@ -104,7 +104,7 @@
list: [],
urlCallback: {},
adpid: null,
- adRewardedShow: true,
+ adRewardedShow: false,
adRewardedVideoloadNum: 0,
})
@@ -247,7 +247,6 @@
*/
function onaderror(e) {
if (datas.adRewardedVideoloadNum >= 3) {
- datas.adRewardedShow = false;
return
}
datas.adRewardedVideoloadNum++
@@ -316,6 +315,13 @@
}
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
// 首次加载广告
+ if(!datas.adRewardedShow){
+ uni.showToast({
+ icon: 'none',
+ title: '广告加载失败,请稍后重试'
+ });
+ return
+ }
datas.urlCallback = {
userId: uni.getStorageSync('userId'),
extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
From 76db18804b1f6ed9764ab4a55ecfe61b4365b44f Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Thu, 16 Jan 2025 09:32:49 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=B9=BF=E5=91=8Aapd=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=EF=BC=8C=E6=B3=A8=E5=86=8C=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/login/register.vue | 11 ++---------
pages/me/withdraw/index.vue | 20 ++++++++++----------
pages/task/index.vue | 10 +++++-----
3 files changed, 17 insertions(+), 24 deletions(-)
diff --git a/pages/login/register.vue b/pages/login/register.vue
index 621940c..6f48436 100644
--- a/pages/login/register.vue
+++ b/pages/login/register.vue
@@ -244,17 +244,10 @@
platform: platform,
qdCode: qdCodeion,
})
-
if (res.code === 0) {
uni.setStorageSync('token', res.token)
- uni.setStorageSync('userId', res.user.userId)
- uni.setStorageSync('phone', res.user.phone)
- uni.setStorageSync('invitationCode', res.user.invitationCode)
- //设置渠道码
- if (res.user.qdCod) {
- uni.setStorageSync('qdCod', res.user.qdCod)
- }
-
+ uni.setStorageSync('userInfo', res.user)
+
uni.showToast({
title: '注册成功',
icon: 'none'
diff --git a/pages/me/withdraw/index.vue b/pages/me/withdraw/index.vue
index 282d779..dac6b4f 100644
--- a/pages/me/withdraw/index.vue
+++ b/pages/me/withdraw/index.vue
@@ -83,7 +83,7 @@
-
@@ -121,14 +121,14 @@
ruleList: []
})
- const adRewarded = ref(null);
+ const adRewardedw = ref(null);
onLoad(() => {
- if ( uni.getSystemInfoSync().platform == 'android' ) {
- data.adpid = 1531580352
- }
- if ( uni.getSystemInfoSync().platform == 'ios' ) {
+ // if ( uni.getSystemInfoSync().platform == 'android' ) {
+ // data.adpid = 1531580352
+ // }
+ // if ( uni.getSystemInfoSync().platform == 'ios' ) {
data.adpid = 1373604770
- }
+ // }
getExtractFei();
getMoneyDetail();
@@ -145,7 +145,7 @@
onReady(() => {
nextTick(()=>{
data.adRewardedVideoloadNum = 0
- adRewarded.value.load();
+ adRewardedw.value.load();
})
getCanCash()
})
@@ -231,7 +231,7 @@
}
data.adRewardedVideoloadNum++
setTimeout(() => {
- adRewarded.value.load();
+ adRewardedw.value.load();
}, 1000); // 10
console.log("广告加载失败",e)
}
@@ -274,7 +274,7 @@
userId: uni.getStorageSync('userInfo').userId,
extra: 'cash:'+uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
}
- adRewarded.value.show();
+ adRewardedw.value.show();
} else {
getOut()
}
diff --git a/pages/task/index.vue b/pages/task/index.vue
index f6ab041..ce90367 100644
--- a/pages/task/index.vue
+++ b/pages/task/index.vue
@@ -110,12 +110,12 @@
})
const adRewarded = ref(null);
onShow(() => {
- if ( uni.getSystemInfoSync().platform == 'android' ) {
- datas.adpid = 1531580352
- }
- if ( uni.getSystemInfoSync().platform == 'ios' ) {
+ // if ( uni.getSystemInfoSync().platform == 'android' ) {
+ // datas.adpid = 1531580352
+ // }
+ // if ( uni.getSystemInfoSync().platform == 'ios' ) {
datas.adpid = 1373604770
- }
+ // }
if (uni.getStorageSync("token")) {
getTaskdata()
getsignIn()
From 679bc382ddf0cb6d0e3a19edcc370d4e42848bc7 Mon Sep 17 00:00:00 2001
From: gyq <875626088@qq.com>
Date: Thu, 16 Jan 2025 09:38:33 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=87=91=E5=B8=81?=
=?UTF-8?q?=E6=98=8E=E7=BB=86=E7=B1=BB=E5=9E=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/me/gold_record.vue | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/pages/me/gold_record.vue b/pages/me/gold_record.vue
index dba0694..5d25343 100644
--- a/pages/me/gold_record.vue
+++ b/pages/me/gold_record.vue
@@ -5,7 +5,10 @@
类型:{{ item.title }}
内容:{{ item.content }}
时间:{{ item.createTime }}
- +{{ item.money }}
+
+ +{{ item.money }}
+ -{{ item.money }}
+
@@ -25,6 +28,11 @@ const listData = reactive({
status: 'loading'
});
+onReachBottom(() => {
+ listData.page++;
+ getList();
+});
+
async function getList() {
try {
const res = await queryUserMoneyDetails({
@@ -83,8 +91,13 @@ page {
.btm {
display: flex;
justify-content: flex-end;
- color: rgb(253, 100, 22);
font-weight: bold;
+ .add {
+ color: rgb(253, 100, 22);
+ }
+ .sub {
+ color: #5aaf2e;
+ }
}
}
}