公告优化更新
This commit is contained in:
parent
1740c48292
commit
f53512d2a3
|
|
@ -173,20 +173,25 @@
|
|||
isWithdraw: false,
|
||||
withdrawNum: $cache_config.withdrawNum,
|
||||
ruleIndex: 0,
|
||||
ruleList: $cache_config.ruleIndex||[]
|
||||
ruleList: $cache_config.ruleCash||[]
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.getExtractFei();
|
||||
this.getMoneyDetail();
|
||||
|
||||
this.configInit()
|
||||
if ($cache_config.ruleCash) {
|
||||
this.ruleInit()
|
||||
return
|
||||
}
|
||||
this.$Request.getT("app/announcement", {type: 1}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.ruleList = res.data
|
||||
$cache_config.set('ruleIndex',this.ruleList)
|
||||
$cache_config.set('ruleCash',this.ruleList)
|
||||
this.ruleInit()
|
||||
}
|
||||
});
|
||||
this.configInit()
|
||||
},
|
||||
onShow() {
|
||||
this.token = uni.getStorageSync('token')
|
||||
|
|
|
|||
|
|
@ -434,6 +434,11 @@
|
|||
|
||||
},
|
||||
onReady() {
|
||||
if ($cache_config.ruleIndex) {
|
||||
this.ruleShow = true
|
||||
this.ruleInit()
|
||||
return
|
||||
}
|
||||
httpsRequest.getT("app/announcement", {type: 0}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.ruleShow = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue