首页公告优化
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"name" : "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.2.0",
|
"versionName" : "1.2.1",
|
||||||
"versionCode" : 120,
|
"versionCode" : 121,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -439,14 +439,17 @@
|
|||||||
this.ruleInit()
|
this.ruleInit()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
if(!uni.getStorageSync('ruleShow')){
|
||||||
if (res.code == 0&&res.data.length > 0) {
|
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
||||||
this.ruleShow = true
|
if (res.code == 0&&res.data.length > 0) {
|
||||||
this.ruleList = res.data
|
this.ruleShow = true
|
||||||
$cache_rule.set('ruleIndex',this.ruleList)
|
this.ruleList = res.data
|
||||||
this.ruleInit()
|
$cache_rule.set('ruleIndex',this.ruleList)
|
||||||
}
|
this.ruleInit()
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.page < this.pages) {
|
if (this.page < this.pages) {
|
||||||
@@ -486,6 +489,8 @@
|
|||||||
this.ruleIndex++
|
this.ruleIndex++
|
||||||
if( this.ruleIndex >= this.ruleList.length) {
|
if( this.ruleIndex >= this.ruleList.length) {
|
||||||
this.ruleIndex = 0
|
this.ruleIndex = 0
|
||||||
|
uni.setStorageSync('ruleShow', true)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.ruleShow = false
|
this.ruleShow = false
|
||||||
|
|||||||
Reference in New Issue
Block a user