首页公告优化
This commit is contained in:
parent
4c0766d92b
commit
d42ed54b03
|
|
@ -108,6 +108,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
if(!uni.getStorageSync('ruleShow')){
|
||||
httpsRequest.getT("/app/announcement", {
|
||||
type: 0
|
||||
}).then(res => {
|
||||
|
|
@ -116,14 +117,11 @@
|
|||
this.ruleList = res.data
|
||||
$cache_rule.set('ruleIndex', this.ruleList)
|
||||
this.ruleInit()
|
||||
|
||||
|
||||
// this.ruleShow = true
|
||||
// this.rule_title = res.data[0].title
|
||||
// this.rule_content = res.data[0].content
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
onPullDownRefresh(){
|
||||
this.getrecomVideo()
|
||||
|
|
@ -144,6 +142,7 @@
|
|||
this.ruleIndex++
|
||||
if (this.ruleIndex >= this.ruleList.length) {
|
||||
this.ruleIndex = 0
|
||||
uni.setStorageSync('ruleShow', true)
|
||||
return
|
||||
}
|
||||
this.ruleShow = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue