ios判断设置
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<template v-if="$common.isIosExamine">
|
<template v-if="datas.setindexdata">
|
||||||
<view class="gongao">
|
<view class="gongao">
|
||||||
<view class="gongaoicon">
|
<view class="gongaoicon">
|
||||||
公告
|
公告
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<contentlist :list='datas.list'></contentlist>
|
<contentlist :list='datas.list'></contentlist>
|
||||||
<image v-if="$common.isIosExamine" @click="goMsg()" src="@/static/index/red-pack-new.gif"
|
<image v-if="datas.setindexdata" @click="goMsg()" src="@/static/index/red-pack-new.gif"
|
||||||
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;" mode=""></image>
|
style="width: 200rpx;height: 200rpx;position: fixed;right: 10rpx;bottom: 180rpx;" mode=""></image>
|
||||||
<up-modal :show="datas.version.show" :confirm-text="datas.version.confirmText"
|
<up-modal :show="datas.version.show" :confirm-text="datas.version.confirmText"
|
||||||
:showCancelButton="datas.version.cancelText!=''" @confirm='confirmUpdateVersion' :title="datas.version.title"
|
:showCancelButton="datas.version.cancelText!=''" @confirm='confirmUpdateVersion' :title="datas.version.title"
|
||||||
@@ -93,11 +93,15 @@
|
|||||||
useCommonStore
|
useCommonStore
|
||||||
} from '@/store/common.js'
|
} from '@/store/common.js'
|
||||||
const $common = useCommonStore()
|
const $common = useCommonStore()
|
||||||
onShow(()=>{
|
onShow(() => {
|
||||||
console.log('cash:'+uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),'debug')
|
console.log('cash:' + uni.getStorageSync('userInfo').userId + "" + new Date().getTime(), 'debug')
|
||||||
// 判断ios是否审核
|
// 判断ios是否审核
|
||||||
$common.init()
|
$common.init()
|
||||||
$common.setversion()
|
let sysInfo = uni.getSystemInfoSync()
|
||||||
|
let isIos = sysInfo.platform == 'ios'
|
||||||
|
if (isIos) {
|
||||||
|
datas.setindexdata = $common.isIosExamine
|
||||||
|
}
|
||||||
})
|
})
|
||||||
let datas = reactive({
|
let datas = reactive({
|
||||||
noticeList: [], //公告列表
|
noticeList: [], //公告列表
|
||||||
@@ -112,14 +116,15 @@
|
|||||||
rule_content: '', // 首页弹窗内容
|
rule_content: '', // 首页弹窗内容
|
||||||
ruleIndex: 0,
|
ruleIndex: 0,
|
||||||
ruleList: [],
|
ruleList: [],
|
||||||
|
|
||||||
version: {
|
version: {
|
||||||
show: false,
|
show: false,
|
||||||
title: "",
|
title: "",
|
||||||
content: "",
|
content: "",
|
||||||
confirmText: "",
|
confirmText: "",
|
||||||
cancelText: "",
|
cancelText: "",
|
||||||
}
|
},
|
||||||
|
setindexdata :"false"
|
||||||
})
|
})
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
versionUpdate()
|
versionUpdate()
|
||||||
@@ -128,7 +133,7 @@
|
|||||||
datas.isExamine = $common.isIosExamine || 0
|
datas.isExamine = $common.isIosExamine || 0
|
||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
if(!uni.getStorageSync('ruleShow')){
|
if (!uni.getStorageSync('ruleShow')) {
|
||||||
announcement({
|
announcement({
|
||||||
type: 0
|
type: 0
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -139,7 +144,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
onReachBottom(() => {
|
onReachBottom(() => {
|
||||||
++datas.page
|
++datas.page
|
||||||
@@ -160,7 +165,7 @@
|
|||||||
}
|
}
|
||||||
if (uni.getSystemInfoSync().platform == 'ios') {
|
if (uni.getSystemInfoSync().platform == 'ios') {
|
||||||
version = res.iosVersion
|
version = res.iosVersion
|
||||||
$common.setversion(widgetInfo.version,version)
|
$common.setversion(widgetInfo.version, version)
|
||||||
}
|
}
|
||||||
version = res.version
|
version = res.version
|
||||||
// && uni.getSystemInfoSync().platform == 'android'
|
// && uni.getSystemInfoSync().platform == 'android'
|
||||||
|
|||||||
Reference in New Issue
Block a user