对接烟台app的h5页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
19 KiB

(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/neighborh
/*! 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<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:p,configurable:!0}),p.displayName=f(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(L.prototype),f(L.prototype,u,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.do