(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0a14":function(t,e,n){"use strict";n.r(e);var r=n("4874"),i=n("2288");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("4baf");var a=n("f0c5"),c=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"26baece8",null,!1,r["a"],void 0);e["default"]=c.exports},2095:function(t,e,n){"use strict";n("7a82");var r=n("4a46").default,i=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("f07e")),a=i(n("c964"));n("d3b7"),n("3ca3"),n("ddb0"),n("9861"),n("159b"),n("e9c4"),n("99af");var c=i(n("8a18")),u=n("24f9"),s=r(n("fdb2")),f=i(n("8a18")),l=(getApp(),{components:{tabs:c.default},data:function(){return{userInfo:null,gridInfo:null,showPage:!1,reportList:[],reportLength:null,currentIndex:0,tabList:[{tabName:"处理中",status:"processing"},{tabName:"已完成",status:"closed_case"}],pageNo:1,pageSize:20,tab:{tabName:""},img:""}},onLoad:function(){var t=function(){var t=function(t){return t.split("?").pop()}(window.location.href),e=new URLSearchParams(t),n={};return e.forEach((function(t,e){n[e]=t})),n}(),e=t.token,n=t.gridId;s.setStoreUserInfo(JSON.stringify({gridId:n,authorization:e,customerId:"1535072605621841922"})),s.setStoreGridInfo(JSON.stringify({gridId:n})),this.setData({userInfo:{gridId:n,authorization:e,customerId:"1535072605621841922"},gridInfo:{gridId:n},showPage:!0},(function(){})),this.init()},onShow:function(){},onPullDownRefresh:function(){var t=this;return(0,a.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.setData({pageNo:1}),e.next=3,t.reportListFun();case 3:t.stopPullDownRefresh();case 4:case"end":return e.stop()}}),e)})))()},onReachBottom:function(){var t=this.pageNo+=1;this.setData({pageNo:t}),this.reportListFun()},methods:{init:function(){this.setData({pageNo:1,reportList:[]}),this.reportListFun()},reportListFun:function(){var t=this;return(0,a.default)((0,o.default)().mark((function e(){var n,r,i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={status:t.tabList[t.currentIndex].status,pageNo:t.pageNo,pageSize:t.pageSize},e.next=3,(0,u.myreport)(n);case 3:r=e.sent,i=r.data,t.setData({reportList:t.reportList.concat(i)}),t.setData({reportLength:t.reportList.length}),(Array.isArray(i)&&0==i.length||!i)&&uni.showToast({type:"none",content:"暂时没有更多内容了",duration:1e3});case 8:case"end":return e.stop()}}),e)})))()},onBindTabChange:function(t){this.setData({currentIndex:t.currentTarget.dataset.idx,pageNo:1,reportList:[]}),this.reportListFun()},stopPullDownRefresh:function(){uni.stopPullDownRefresh({complete:function(t){console.log(t,new Date)}})},toDetail:function(t){var e=this;return(0,a.default)((0,o.default)().mark((function n(){var r;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("zoule"),n.next=3,(0,u.removered)({icEventId:t.icEventId});case 3:r=n.sent,0==r.code&&uni.navigateTo({url:"/pages/detail/detail?id="+t.icEventId+"&gridId="+e.userInfo.gridId||!1});case 5:case"end":return n.stop()}}),n)})))()}}});e.default=l,e.default.components=Object.assign({tabs:f.default},e.default.components||{})},2288:function(t,e,n){"use strict";n.r(e);var r=n("2095"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"24f9":function(t,e,n){"use strict";n("7a82");var r=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.comment=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/comment",t).then((function(t){e(t)}))}))},e.fetchAutoreGuser=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="/epmetuser/userresiinfo/autoreguser-ding";return new Promise((function(n,r){(0,o.requestPOST)(e,t).then((function(t){n(t)}))}))},e.fetchNeighBorhoodList=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="/gov/org/icneighborhood/neighborhoodlist";return new Promise((function(n,r){(0,o.requestPOST)(e,t).then((function(t){n(t)}))}))},e.fetchNeighBorhoodListForDing=function(t){return new Promise((function(e,n){a.default.getAuthCode().then((function(n){var r=(0,i.default)((0,i.default)({},t),{authCode:n.authCode,miniAppId:c.miniAppId});(0,o.requestPOST)("/gov/org/icneighborhood/neighborhoodlistForDingding",r).then((function(t){e(t)}))}))}))},e.myreport=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/myreport",t).then((function(t){e(t)}))}))},e.myreportdetail=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/myreport-detail",t).then((function(t){e(t)}))}))},e.process=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/process",t).then((function(t){e(t)}))}))},e.removered=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/remove-red",t).then((function(t){e(t)}))}))},e.replylist=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/reply-list",t).then((function(t){e(t)}))}))},e.resiReply=function(t){return new Promise((function(e,n){(0,o.requestPOST)("/gov/project/icEvent/resi-reply",t).then((function(t){e(t)}))}))};var i=r(n("f3f3"));n("d3b7");var o=n("c2b9"),a=r(n("7ce7")),c=n("f220")},"2ae3":function(t,e,n){var r=n("4df6");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("0096cad6",r,!0,{sourceMap:!1,shadowMode:!1})},"2d65":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"title"},t._l(t.tabListClone,(function(e,r){return n("v-uni-view",{key:r,class:"titleSel "+(r==t.currentIndex?"active":""),attrs:{onTap:"onBindTabChange","data-idx":r}},[n("v-uni-text",[t._v(t._s(e))]),n("v-uni-view",{class:r==t.currentIndex?"headerLineSel":"headerLineUnsel"})],1)})),1)},i=[]},4099:function(t,e,n){"use strict";n.r(e);var r=n("490e"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},4874:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"report"},[t.showPage?n("v-uni-view",[n("v-uni-view",{staticClass:"title"},t._l(t.tabList,(function(e,r){return n("v-uni-view",{key:r,class:"titleSel "+(r==t.currentIndex?"active":""),attrs:{"data-idx":r},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onBindTabChange.apply(void 0,arguments)}}},[n("v-uni-text",[t._v(t._s(e.tabName))]),n("v-uni-view",{class:r==t.currentIndex?"headerLineSel":"headerLineUnsel"})],1)})),1),n("v-uni-view",{staticClass:"report-content"},[n("v-uni-view",{staticClass:"block"},[t.reportLength>0?t._l(t.reportList,(function(e,r){return n("v-uni-view",{key:r,staticClass:"block-content",attrs:{"data-value":e},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toDetail(e)}}},[n("v-uni-view",{staticClass:"time"},[t._v(t._s(e.happenTime)),e.redDot?n("v-uni-text"):t._e()],1),n("v-uni-view",{staticClass:"block-title"},[t._v(t._s(e.eventContent))]),n("v-uni-view",{staticClass:"block-image"},t._l(e.imageList,(function(t){return n("v-uni-image",{key:t,attrs:{src:t}})})),1)],1)})):t._e(),0==t.reportLength?[n("v-uni-view",{staticStyle:{"text-align":"center","margin-top":"250rpx"}},[n("v-uni-image",{staticStyle:{width:"464rpx",height:"530rpx"},attrs:{src:"/static/data/images/empty.png"}}),n("v-uni-view",{staticStyle:{"text-align":"center",color:"#999"}})],1)]:t._e()],2)],1)],1):t._e()],1)},i=[]},"490e":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{tabListClone:[],currentIndex:0,tab:""}},mixins:[],props:{tabList:[],onBindTab:function(){}},didMount:function(){console.log(this.props.tabList),this.setData({tabListClone:this.props.tabList})},didUpdate:function(){},didUnmount:function(){},methods:{onBindTabChange:function(t){this.setData({currentIndex:t.currentTarget.dataset.idx}),this.props.onBindTab(this.currentIndex)}},created:function(){},watch:{tabList:{handler:function(t,e){this.tabListClone=t},immediate:!0}}};e.default=r},"4baf":function(t,e,n){"use strict";var r=n("9a36"),i=n.n(r);i.a},"4df6":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".title[data-v-e79392e4]{width:100%;background:#fff;display:flex;align-items:center;justify-content:flex-start;\n /* justify-content: space-around; */position:fixed;top:0;z-index:99;padding:0 %?40?%;box-sizing:border-box}.titleSel[data-v-e79392e4]{color:#484747;font-size:%?32?%;display:flex;flex-direction:column;align-items:center;\n /* flex: 1; */height:%?100?%;line-height:%?80?%;margin-right:%?46?%}.titleSel[data-v-e79392e4]:last-child{margin-right:0}.active[data-v-e79392e4]{color:#00817b}.titleUnsel[data-v-e79392e4]{color:#858fab;font-size:#858fab}.headerLineSel[data-v-e79392e4]{background:#00817b;height:%?6?%;width:%?40?%;position:relative;margin:%?10?% auto 0 auto;border-radius:%?16?%}.headerLineUnsel[data-v-e79392e4]{background:#fff;height:%?6?%;width:%?40?%;position:relative;margin-top:%?10?%}",""]),t.exports=e},"8a18":function(t,e,n){"use strict";n.r(e);var r=n("2d65"),i=n("4099");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("ca6f");var a=n("f0c5"),c=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"e79392e4",null,!1,r["a"],void 0);e["default"]=c.exports},"9a36":function(t,e,n){var r=n("9c78");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("14979aa3",r,!0,{sourceMap:!1,shadowMode:!1})},"9c78":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".title[data-v-26baece8]{width:100%;background:#fff;display:flex;align-items:center;justify-content:flex-start;\r\n /* justify-content: space-around; */position:fixed;top:0;z-index:99;padding:0 %?40?%;box-sizing:border-box}.titleSel[data-v-26baece8]{color:#484747;font-size:%?34?%;display:flex;flex-direction:column;align-items:center;\r\n /* flex: 1; */height:%?80?%;line-height:%?60?%;margin-right:%?56?%;letter-spacing:%?2?%}.titleSel[data-v-26baece8]:last-child{margin-right:0}.active[data-v-26baece8]{color:#333;font-weight:700;font-size:%?34?%}.titleUnsel[data-v-26baece8]{color:#858fab;font-size:#858fab}.headerLineSel[data-v-26baece8]{background:#3985f9;height:%?6?%;width:%?50?%;position:relative;margin:%?10?% auto 0 auto;border-radius:%?16?%}.headerLineUnsel[data-v-26baece8]{background:#fff;height:%?6?%;width:%?40?%;position:relative;margin-top:%?10?%}.report-content[data-v-26baece8]{width:100vw;margin-top:0}.block[data-v-26baece8]{margin-bottom:%?10?%;padding:%?20?%;margin-top:%?88?%}.block-content[data-v-26baece8]{background-color:#fff;position:relative;margin-bottom:%?20?%;padding:%?15?%;border-radius:%?10?%}.time[data-v-26baece8]{font-size:%?26?%;color:#999;display:flex;align-items:center}.time uni-text[data-v-26baece8]{display:inline-block;width:%?20?%;height:%?20?%;border-radius:%?20?%;background-color:#3985f9;margin-left:%?10?%}.block-title[data-v-26baece8]{width:100%;font-size:%?34?%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:%?20?% 0}.block-image[data-v-26baece8]{width:100%;padding:%?20?% %?10?%;box-sizing:border-box}.block-image uni-image[data-v-26baece8]{width:30%;height:%?200?%;margin:0 %?10?%}",""]),t.exports=e},c964:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var c=t[o](a),u=c.value}catch(s){return void n(s)}c.done?e(u):Promise.resolve(u).then(r,i)}n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function c(t){r(a,i,o,c,u,"next",t)}function u(t){r(a,i,o,c,u,"throw",t)}c(void 0)}))}},n("d3b7")},ca6f:function(t,e,n){"use strict";var r=n("2ae3"),i=n.n(r);i.a},f07e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ e.default=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(j){f=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new O(r||[]);return o(a,"_invoke",{value:_(t,n,c)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(j){return{type:"throw",arg:j}}}t.wrap=l;var h={};function v(){}function p(){}function g(){}var b={};f(b,c,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==n&&i.call(y,c)&&(b=y);var w=g.prototype=v.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){var n;o(this,"_invoke",{value:function(o,a){function c(){return new e((function(n,c){(function n(o,a,c,u){var s=d(t[o],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==(0,r.default)(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)})(o,a,n,c)}))}return n=n?n.then(c,c):c()}})}function _(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function P(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var r=function(t){return t&&t.__esModule?t:{default:t}}(n("0122"))}}]);