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