公告优化更新

This commit is contained in:
GaoHao 2025-01-09 17:07:40 +08:00
parent 1740c48292
commit f53512d2a3
2 changed files with 13 additions and 3 deletions

View File

@ -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')

View File

@ -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