diff --git a/api/complaint/complaint.js b/api/complaint/complaint.js new file mode 100644 index 0000000..c46993a --- /dev/null +++ b/api/complaint/complaint.js @@ -0,0 +1,25 @@ +import url from '../../constant/url.js'; + +/** + * 查询投诉待办 + * @param {Object} _that 上下文对象 + * @param {Object} _data 请求报文 + */ +export function loadTodoCompaint(_that,_data){ + return new Promise(function(reslove,reject){ + _that.context.get({ + url: url.listAuditComplaints, + data:_data, + success: function(res) { + reslove(res); + }, + fail: function(e) { + wx.showToast({ + title: "服务器异常了", + icon: 'none', + duration: 2000 + }) + } + }) + }); +} \ No newline at end of file diff --git a/pages/complaintList/complaintList.vue b/pages/complaintList/complaintList.vue index 052b13a..4d09f54 100644 --- a/pages/complaintList/complaintList.vue +++ b/pages/complaintList/complaintList.vue @@ -1,53 +1,32 @@