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,
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'

View File

@ -83,7 +83,7 @@
<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">
</ad-rewarded-video>
</view>
@ -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()
}

View File

@ -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()