| @@ -175,16 +175,19 @@ | |||||
| }, | }, | ||||
| updateInit() { | updateInit() { | ||||
| uni.request({ | |||||
| url: config.service.updateList, | |||||
| method: "GET", | |||||
| data: { | |||||
| let obj = { | |||||
| messageType: this.list[this.current].id, | messageType: this.list[this.current].id, | ||||
| projectId: uni.getStorageSync('buildingID').id, | |||||
| id: uni.getStorageSync('weapp_session_userInfo_data').accountId, | id: uni.getStorageSync('weapp_session_userInfo_data').accountId, | ||||
| num: this.pageNum, | num: this.pageNum, | ||||
| size: this.pageSize | size: this.pageSize | ||||
| }, | |||||
| } | |||||
| if (this.current == 0) { | |||||
| obj.projectId = uni.getStorageSync('buildingID').id | |||||
| } | |||||
| uni.request({ | |||||
| url: config.service.updateList, | |||||
| method: "GET", | |||||
| data: obj, | |||||
| header: { | header: { | ||||
| 'content-type': 'application/json', | 'content-type': 'application/json', | ||||
| 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token | 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token | ||||