var t = require("../../../@babel/runtime/helpers/defineProperty"), e = getApp(); Page({ data: { sourceUrl: e.baseUrls.sourceUrl, page: { page: 1, rows: 10, isAccpet: "", handleStatus: "", areaCode: wx.getStorageSync("areaCode") }, baseUrl: e.baseUrls.caseUrl, imgUrl: e.baseUrls.baseImgUrl, caseList: [] }, getList: function() { var a = this; e.restAjax.get(e.restAjax.path(e.apis.myCaseList, [ e.baseUrls.requestUrl ]), a.data.page, { headers: { token: e.globalData.token } }, function(e, s) { if (s.rows.length > 0) { for (var o = a.data.caseList, i = 0; i < s.rows.length; i++) s.rows[i].reportPhotos && (s.rows[i].reportPhotos = s.rows[i].reportPhotos.split(",")[0]), o.push(s.rows[i]); a.setData({ caseList: o }); } else wx.showToast({ title: "暂无更多", icon: "none" }), a.setData(t({}, "page.page", a.data.page.page - 1)); console.log(s); }, function(t, e) { console.log(e); }); }, goDetail: function(t) { var e = t.currentTarget.dataset.id; wx.navigateTo({ url: "./caseHandle?reportId=" + e }); }, checkLog: function(t) { var e = t.currentTarget.dataset.log; wx.navigateTo({ url: "./caseLog?businessId=" + e }); }, doEvaluate: function(t) { wx.navigateTo({ url: "../evaluate/evaluate?reportId=" + t.currentTarget.dataset.id }); }, onLoad: function(e) { console.log(e.isAccept), "0" != e.isAccept && "1" != e.isAccept || (this.setData(t({}, "page.isAccept", e.isAccept)), "0" == e.isAccept ? wx.setNavigationBarTitle({ title: "待受理" }) : wx.setNavigationBarTitle({ title: "已受理" })), "3" == e.isAccept && wx.setNavigationBarTitle({ title: "我的收藏" }), e.handleStatus && (this.setData(t({}, "page.handleStatus", "2")), wx.setNavigationBarTitle({ title: "已完结" })); }, onReady: function() {}, onShow: function() { this.setData({ caseList: [] }), this.getList(); }, onHide: function() {}, onUnload: function() {}, onPullDownRefresh: function() {}, onReachBottom: function() { this.setData(t({}, "page.page", this.data.page.page + 1)), this.getList(); }, onShareAppMessage: function() {} });