ios审核判断,抽奖没次数提示
This commit is contained in:
@@ -78,7 +78,8 @@
|
||||
import {
|
||||
onLoad,
|
||||
onReady,
|
||||
onReachBottom
|
||||
onReachBottom,
|
||||
onShow
|
||||
} from '@dcloudio/uni-app'
|
||||
import contentlist from './components/contentlist.vue'
|
||||
import {
|
||||
@@ -92,6 +93,10 @@
|
||||
useCommonStore
|
||||
} from '@/store/common.js'
|
||||
const $common = useCommonStore()
|
||||
onShow(()=>{
|
||||
// 判断ios是否审核
|
||||
$common.init()
|
||||
})
|
||||
let datas = reactive({
|
||||
noticeList: [], //公告列表
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
freeNumDay: 0,
|
||||
list: [],
|
||||
selectData: "",
|
||||
source:1
|
||||
source: 1
|
||||
}
|
||||
},
|
||||
onLoad(opt) {
|
||||
@@ -120,6 +120,11 @@
|
||||
})
|
||||
// 奖品的索引
|
||||
this.$refs.dialer.run(indexs)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '暂无抽奖次数',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
// 抽奖次数
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { onLoad, onPullDownRefresh } from '@dcloudio/uni-app';
|
||||
import { onLoad,onShow, onPullDownRefresh } from '@dcloudio/uni-app';
|
||||
import { selectByUserId, collectVideoSummary, selectUserMoney } from '@/api/me/me.js';
|
||||
import { linkTo } from '@/utils/app.js';
|
||||
import {
|
||||
@@ -122,6 +122,10 @@ const userInfo = ref({});
|
||||
|
||||
// 获取最近的三条观看历史
|
||||
const recordThree = ref([]);
|
||||
onShow(()=>{
|
||||
// 判断ios是否审核
|
||||
$common.init()
|
||||
})
|
||||
async function selectByUserIdAjax() {
|
||||
try {
|
||||
const res = await selectByUserId({ page: 1, limit: 3, classify: 3 });
|
||||
|
||||
@@ -110,10 +110,12 @@
|
||||
})
|
||||
const adRewarded = ref(null);
|
||||
onShow(() => {
|
||||
if ( uni.getSystemInfoSync().platform == 'android' ) {
|
||||
// 判断ios是否审核
|
||||
$common.init()
|
||||
if (uni.getSystemInfoSync().platform == 'android') {
|
||||
datas.adpid = 1531580352
|
||||
}
|
||||
if ( uni.getSystemInfoSync().platform == 'ios' ) {
|
||||
if (uni.getSystemInfoSync().platform == 'ios') {
|
||||
datas.adpid = 1373604770
|
||||
}
|
||||
if (uni.getStorageSync("token")) {
|
||||
|
||||
@@ -76,5 +76,6 @@ export const useCommonStore = defineStore("common", {
|
||||
return true
|
||||
}
|
||||
},
|
||||
|
||||
unistorage: true, // 开启后对 state 的数据读写都将持久化
|
||||
});
|
||||
Reference in New Issue
Block a user