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] =?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()