合并代码
This commit is contained in:
@@ -244,16 +244,9 @@
|
|||||||
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: '注册成功',
|
||||||
|
|||||||
@@ -5,7 +5,10 @@
|
|||||||
<view class="row">类型:{{ item.title }}</view>
|
<view class="row">类型:{{ item.title }}</view>
|
||||||
<view class="row">内容:{{ item.content }}</view>
|
<view class="row">内容:{{ item.content }}</view>
|
||||||
<view class="row">时间:{{ item.createTime }}</view>
|
<view class="row">时间:{{ item.createTime }}</view>
|
||||||
<view class="btm">+{{ item.money }}</view>
|
<view class="btm">
|
||||||
|
<text class="add" v-if="item.type == 1">+{{ item.money }}</text>
|
||||||
|
<text class="sub" v-if="item.type == 2">-{{ item.money }}</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<emprty-card v-if="!listData.list.length && listData.status == 'nomore'" />
|
<emprty-card v-if="!listData.list.length && listData.status == 'nomore'" />
|
||||||
@@ -25,6 +28,11 @@ const listData = reactive({
|
|||||||
status: 'loading'
|
status: 'loading'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onReachBottom(() => {
|
||||||
|
listData.page++;
|
||||||
|
getList();
|
||||||
|
});
|
||||||
|
|
||||||
async function getList() {
|
async function getList() {
|
||||||
try {
|
try {
|
||||||
const res = await queryUserMoneyDetails({
|
const res = await queryUserMoneyDetails({
|
||||||
@@ -83,8 +91,13 @@ page {
|
|||||||
.btm {
|
.btm {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
color: rgb(253, 100, 22);
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
.add {
|
||||||
|
color: rgb(253, 100, 22);
|
||||||
|
}
|
||||||
|
.sub {
|
||||||
|
color: #5aaf2e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<view style="width: 0;height: 0;overflow: hidden;">
|
<view style="width: 0;height: 0;overflow: hidden;">
|
||||||
<!-- 激励视频广告 -->
|
<!-- 激励视频广告 -->
|
||||||
<ad-rewarded-video v-if="data.adRewardedShow" 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>
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
cashMoney: 0,
|
cashMoney: 0,
|
||||||
urlCallback: {},
|
urlCallback: {},
|
||||||
adpid: null,
|
adpid: null,
|
||||||
adRewardedShow: true,
|
adRewardedShow: false,
|
||||||
adRewardedVideoloadNum: 0,
|
adRewardedVideoloadNum: 0,
|
||||||
isWithdraw: false,
|
isWithdraw: false,
|
||||||
userInfo: null,
|
userInfo: null,
|
||||||
@@ -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()
|
||||||
})
|
})
|
||||||
@@ -227,14 +227,13 @@
|
|||||||
*/
|
*/
|
||||||
function onaderror(e) {
|
function onaderror(e) {
|
||||||
if ( data.adRewardedVideoloadNum >=3 ) {
|
if ( data.adRewardedVideoloadNum >=3 ) {
|
||||||
data.adRewardedShow = false;
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data.adRewardedVideoloadNum++
|
data.adRewardedVideoloadNum++
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
adRewarded.value.load();
|
adRewardedw.value.load();
|
||||||
}, 1000); // 10
|
}, 1000); // 10
|
||||||
console.log("广告加载失败")
|
console.log("广告加载失败",e)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -263,13 +262,19 @@
|
|||||||
* 提现触发
|
* 提现触发
|
||||||
*/
|
*/
|
||||||
function goWithdraw() {
|
function goWithdraw() {
|
||||||
|
|
||||||
if ( !data.isWithdraw ) {
|
if ( !data.isWithdraw ) {
|
||||||
|
if(!data.adRewardedShow){
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '广告加载失败,请稍后重试'
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
data.urlCallback = {
|
data.urlCallback = {
|
||||||
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()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
<!-- 激励视频广告 -->
|
<!-- 激励视频广告 -->
|
||||||
<view style="width: 0;height: 0;overflow: hidden;">
|
<view style="width: 0;height: 0;overflow: hidden;">
|
||||||
<!-- 激励视频广告 -->
|
<!-- 激励视频广告 -->
|
||||||
<ad-rewarded-video v-if="datas.adRewardedShow" ref="adRewarded" :adpid="datas.adpid" :loadnext="true"
|
<ad-rewarded-video ref="adRewarded" :adpid="datas.adpid" :loadnext="true"
|
||||||
:url-callback="datas.urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
|
:url-callback="datas.urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
|
||||||
</ad-rewarded-video>
|
</ad-rewarded-video>
|
||||||
</view>
|
</view>
|
||||||
@@ -104,20 +104,19 @@
|
|||||||
list: [],
|
list: [],
|
||||||
urlCallback: {},
|
urlCallback: {},
|
||||||
adpid: null,
|
adpid: null,
|
||||||
adRewardedShow: true,
|
adRewardedShow: false,
|
||||||
adRewardedVideoloadNum: 0,
|
adRewardedVideoloadNum: 0,
|
||||||
|
|
||||||
})
|
})
|
||||||
const adRewarded = ref(null);
|
const adRewarded = ref(null);
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
// 判断ios是否审核
|
|
||||||
$common.init()
|
$common.init()
|
||||||
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()
|
||||||
@@ -249,7 +248,6 @@
|
|||||||
*/
|
*/
|
||||||
function onaderror(e) {
|
function onaderror(e) {
|
||||||
if (datas.adRewardedVideoloadNum >= 3) {
|
if (datas.adRewardedVideoloadNum >= 3) {
|
||||||
datas.adRewardedShow = false;
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
datas.adRewardedVideoloadNum++
|
datas.adRewardedVideoloadNum++
|
||||||
@@ -318,6 +316,13 @@
|
|||||||
}
|
}
|
||||||
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
|
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
|
||||||
// 首次加载广告
|
// 首次加载广告
|
||||||
|
if(!datas.adRewardedShow){
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '广告加载失败,请稍后重试'
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
datas.urlCallback = {
|
datas.urlCallback = {
|
||||||
userId: uni.getStorageSync('userId'),
|
userId: uni.getStorageSync('userId'),
|
||||||
extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
|
extra: uni.getStorageSync('userId') + "" + new Date().getTime(),
|
||||||
|
|||||||
Reference in New Issue
Block a user