公告优化
This commit is contained in:
@@ -126,7 +126,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { $cache_config } from '@/store/cashe.js'
|
import { $cache_config, $cache_index } from '@/store/cashe.js'
|
||||||
import { init } from '@/utils/init.js'
|
import { init } from '@/utils/init.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
isWithdraw: false,
|
isWithdraw: false,
|
||||||
withdrawNum: $cache_config.withdrawNum,
|
withdrawNum: $cache_config.withdrawNum,
|
||||||
ruleIndex: 0,
|
ruleIndex: 0,
|
||||||
ruleList: []
|
ruleList: $cache_config.ruleIndex||[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -182,6 +182,7 @@
|
|||||||
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)
|
||||||
this.ruleInit()
|
this.ruleInit()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -281,7 +281,7 @@
|
|||||||
rule_title: '',
|
rule_title: '',
|
||||||
rule_content: '',
|
rule_content: '',
|
||||||
ruleIndex: 0,
|
ruleIndex: 0,
|
||||||
ruleList: []
|
ruleList: $cache_config.ruleIndex || []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
@@ -438,6 +438,7 @@
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.ruleShow = true
|
this.ruleShow = true
|
||||||
this.ruleList = res.data
|
this.ruleList = res.data
|
||||||
|
$cache_config.set('ruleIndex',this.ruleList)
|
||||||
this.ruleInit()
|
this.ruleInit()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user