首页公告优化
This commit is contained in:
parent
b674358871
commit
b9100b58bb
|
|
@ -68,7 +68,8 @@
|
|||
|
||||
<script setup>
|
||||
import {
|
||||
reactive
|
||||
reactive,
|
||||
nextTick
|
||||
} from 'vue';
|
||||
import {
|
||||
announcement,
|
||||
|
|
@ -121,15 +122,19 @@
|
|||
versionUpdate()
|
||||
getMsg()
|
||||
getrecomVideo()
|
||||
datas.isExamine = $common.isExamine || 0
|
||||
})
|
||||
onReady(() => {
|
||||
announcement({
|
||||
type: 0
|
||||
}).then(res => {
|
||||
datas.ruleList = res
|
||||
ruleInit()
|
||||
if(!uni.getStorageSync('ruleShow')){
|
||||
datas.ruleShow = true
|
||||
})
|
||||
announcement({
|
||||
type: 0
|
||||
}).then(res => {
|
||||
datas.ruleList = res
|
||||
ruleInit()
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
onReachBottom(() => {
|
||||
++datas.page
|
||||
|
|
@ -226,6 +231,7 @@
|
|||
datas.ruleIndex++
|
||||
if (datas.ruleIndex >= datas.ruleList.length) {
|
||||
datas.ruleIndex = 0
|
||||
uni.setStorageSync('ruleShow', true)
|
||||
return
|
||||
}
|
||||
setTimeout(res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue