首页公告优化

This commit is contained in:
GaoHao 2025-01-15 09:23:53 +08:00
parent b674358871
commit b9100b58bb
1 changed files with 13 additions and 7 deletions

View File

@ -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(() => {
if(!uni.getStorageSync('ruleShow')){
datas.ruleShow = true
announcement({
type: 0
}).then(res => {
datas.ruleList = res
ruleInit()
datas.ruleShow = true
})
}
})
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 => {