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

This commit is contained in:
gyq 2025-01-16 09:38:39 +08:00
commit ff72d7b087
3 changed files with 17 additions and 24 deletions

View File

@ -244,17 +244,10 @@
platform: platform, platform: platform,
qdCode: qdCodeion, qdCode: qdCodeion,
}) })
if (res.code === 0) { if (res.code === 0) {
uni.setStorageSync('token', res.token) uni.setStorageSync('token', res.token)
uni.setStorageSync('userId', res.user.userId) uni.setStorageSync('userInfo', res.user)
uni.setStorageSync('phone', res.user.phone)
uni.setStorageSync('invitationCode', res.user.invitationCode)
//
if (res.user.qdCod) {
uni.setStorageSync('qdCod', res.user.qdCod)
}
uni.showToast({ uni.showToast({
title: '注册成功', title: '注册成功',
icon: 'none' icon: 'none'

View File

@ -83,7 +83,7 @@
<view style="width: 0;height: 0;overflow: hidden;"> <view style="width: 0;height: 0;overflow: hidden;">
<!-- 激励视频广告 --> <!-- 激励视频广告 -->
<ad-rewarded-video ref="adRewarded" :adpid="data.adpid" :loadnext="true" <ad-rewarded-video ref="adRewardedw" :adpid="data.adpid" :loadnext="true"
:url-callback="data.urlCallback" @load="onadload" @close="onadclose" @error="onaderror"> :url-callback="data.urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
</ad-rewarded-video> </ad-rewarded-video>
</view> </view>
@ -121,14 +121,14 @@
ruleList: [] ruleList: []
}) })
const adRewarded = ref(null); const adRewardedw = ref(null);
onLoad(() => { onLoad(() => {
if ( uni.getSystemInfoSync().platform == 'android' ) { // if ( uni.getSystemInfoSync().platform == 'android' ) {
data.adpid = 1531580352 // data.adpid = 1531580352
} // }
if ( uni.getSystemInfoSync().platform == 'ios' ) { // if ( uni.getSystemInfoSync().platform == 'ios' ) {
data.adpid = 1373604770 data.adpid = 1373604770
} // }
getExtractFei(); getExtractFei();
getMoneyDetail(); getMoneyDetail();
@ -145,7 +145,7 @@
onReady(() => { onReady(() => {
nextTick(()=>{ nextTick(()=>{
data.adRewardedVideoloadNum = 0 data.adRewardedVideoloadNum = 0
adRewarded.value.load(); adRewardedw.value.load();
}) })
getCanCash() getCanCash()
}) })
@ -231,7 +231,7 @@
} }
data.adRewardedVideoloadNum++ data.adRewardedVideoloadNum++
setTimeout(() => { setTimeout(() => {
adRewarded.value.load(); adRewardedw.value.load();
}, 1000); // 10 }, 1000); // 10
console.log("广告加载失败",e) console.log("广告加载失败",e)
} }
@ -274,7 +274,7 @@
userId: uni.getStorageSync('userInfo').userId, userId: uni.getStorageSync('userInfo').userId,
extra: 'cash:'+uni.getStorageSync('userInfo').userId + "" + new Date().getTime(), extra: 'cash:'+uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
} }
adRewarded.value.show(); adRewardedw.value.show();
} else { } else {
getOut() getOut()
} }

View File

@ -110,12 +110,12 @@
}) })
const adRewarded = ref(null); const adRewarded = ref(null);
onShow(() => { onShow(() => {
if ( uni.getSystemInfoSync().platform == 'android' ) { // if ( uni.getSystemInfoSync().platform == 'android' ) {
datas.adpid = 1531580352 // datas.adpid = 1531580352
} // }
if ( uni.getSystemInfoSync().platform == 'ios' ) { // if ( uni.getSystemInfoSync().platform == 'ios' ) {
datas.adpid = 1373604770 datas.adpid = 1373604770
} // }
if (uni.getStorageSync("token")) { if (uni.getStorageSync("token")) {
getTaskdata() getTaskdata()
getsignIn() getsignIn()