master
xielei 2024-11-11 15:08:58 +08:00
parent ea921af657
commit 3a13cbe626
1 changed files with 21 additions and 9 deletions

View File

@ -59,6 +59,7 @@
const warnetm = moment().format("YYYY-MM-DD HH:mm:ss") const warnetm = moment().format("YYYY-MM-DD HH:mm:ss")
import SkInfo from '../skInfo/index.vue' import SkInfo from '../skInfo/index.vue'
import YlzList from '../ylzList/index.vue' import YlzList from '../ylzList/index.vue'
let timer= null;
export default { export default {
components: { components: {
SkInfo, SkInfo,
@ -143,14 +144,15 @@
}) })
}, },
getList() { getList() {
uni.$http.post('/gunshiApp/xyt/messageCenter/list', { console.log(11);
start: '', uni.$http.post('/gunshiApp/xyt/messageCenter/list', {
end: '' start: '',
}).then(res => { end: ''
if (res.data.code == 200) { }).then(res => {
this.messagelist = res.data.data if (res.data.code == 200) {
} this.messagelist = res.data.data
}) }
})
}, },
todetailmessgae() { todetailmessgae() {
uni.navigateTo({ uni.navigateTo({
@ -253,12 +255,22 @@
}, },
onShow() { onShow() {
this.getList(); var that = this;
that.getList();
timer = setInterval(function() {
that.getList();
}, 10000);
this.setInsert() this.setInsert()
this.getXcrwData(); this.getXcrwData();
this.getHandleData(); this.getHandleData();
this.getYjData(); this.getYjData();
}, },
onHide() {
console.log(222);
clearInterval(timer)
timer = null;
},
} }
</script> </script>