diff --git a/pages/index/index.js b/pages/index/index.js index 146a499..f402041 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -26,6 +26,7 @@ Page({ // 事件处理函数 onLoad: async function () { await this.getToken() + this.getIntelligentMessage() // await this.getIntelligentMessage() await this.getStaffbasicinfo() this.setData({ @@ -44,11 +45,11 @@ Page({ } }, onShow(){ - this.getIntelligentMessage() + this.getSituation() this.getInspRecord() }, - onPullDownRefresh() { +onPullDownRefresh() { this.setData({ pageNo:1, tableData:[] @@ -127,14 +128,16 @@ onScrollToLower(e){ item.typeName = '房屋信息采集' } else if (item.msgType === 'resident_categiry') { item.typeName='数据更新提醒' - } + }else if (item.msgType === 'srap_confirm') { + item.typeName='服务更新提醒' + } }) - +console.log( res.data.list); this.setData({ loadMoreType: res.data.list.length === this.data.pageSize ? 'more' : 'none', tableData: this.data.tableData.concat(res.data.list), }) - + console.log(this.data.tableData) if (this.data.tableData.length == 0) { this.setData({ loadMoreVisible: false, @@ -143,11 +146,6 @@ onScrollToLower(e){ } - - - - - }).catch(err=>{ console.log(err); this.setData({ diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 8afb9dd..2e4558e 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -144,7 +144,7 @@ {{item.readFlag != '1'?'未读':'已读'}} - {{item.typeName}} + {{item.msgType}} {{item.createdTime}} diff --git a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js index 15dd7b2..fc37d66 100644 --- a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js +++ b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.js @@ -328,7 +328,7 @@ handelClickSave(){ }) return false } - if(this.data.checkResultFlag == 0 && !this.data.currentDate){ + if(this.data.checkResultFlag == 0 && !this.data.currentDateShow){ wx.showToast({ title: '请选择拟复查时间', icon:'none' diff --git a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml index 9d25236..30b61a4 100644 --- a/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml +++ b/subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml @@ -186,5 +186,6 @@ max-date="{{ maxDate }}" bind:confirm="handelConfirmDate" bind:input="onInput" + bind:cancel="onCancel" /> \ No newline at end of file