任务观看广告优化
This commit is contained in:
parent
2058c4af58
commit
a299b8e846
|
|
@ -98,7 +98,6 @@
|
||||||
import config from '@/commons/config.js';
|
import config from '@/commons/config.js';
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
loading:false,
|
loading:false,
|
||||||
qrcode: false,
|
|
||||||
earning: {
|
earning: {
|
||||||
inviteMoney: 0,
|
inviteMoney: 0,
|
||||||
inviteGoldMoney: 0,
|
inviteGoldMoney: 0,
|
||||||
|
|
@ -122,8 +121,6 @@
|
||||||
bgImg: '',
|
bgImg: '',
|
||||||
tuiguang: '',
|
tuiguang: '',
|
||||||
invitationCode: uni.getStorageSync('userInfo').invitationCode,
|
invitationCode: uni.getStorageSync('userInfo').invitationCode,
|
||||||
h5SaveImg: '',
|
|
||||||
haibaoImgH5: '',
|
|
||||||
inviteSignCount:0,
|
inviteSignCount:0,
|
||||||
canvasW: 350,
|
canvasW: 350,
|
||||||
canvasH: 667,
|
canvasH: 667,
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
})
|
})
|
||||||
const adRewarded = ref(null);
|
const adRewarded = ref(null);
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
$common.init()
|
// $common.init()
|
||||||
// if ( uni.getSystemInfoSync().platform == 'android' ) {
|
// if ( uni.getSystemInfoSync().platform == 'android' ) {
|
||||||
// datas.adpid = 1531580352
|
// datas.adpid = 1531580352
|
||||||
// }
|
// }
|
||||||
|
|
@ -276,6 +276,10 @@
|
||||||
let res = await state({
|
let res = await state({
|
||||||
extraKey: datas.urlCallback.extra
|
extraKey: datas.urlCallback.extra
|
||||||
})
|
})
|
||||||
|
uni.showToast({
|
||||||
|
title: '获得' + $common.freeDuration + '分钟免费时长',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
// 播放中途退出
|
// 播放中途退出
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,8 @@ const $map = {
|
||||||
922: 'withdrawNum',
|
922: 'withdrawNum',
|
||||||
500: 'payTips',
|
500: 'payTips',
|
||||||
914: 'goldBili', // 金币比例
|
914: 'goldBili', // 金币比例
|
||||||
919: 'isExamine' //是否ios审核中
|
919: 'isExamine', //是否ios审核中
|
||||||
|
921: 'freeDuration' //看广告免费分钟时长
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useCommonStore = defineStore("common", {
|
export const useCommonStore = defineStore("common", {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue