(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/illness/index"],{"67b9":function(t,e,n){"use strict";n.r(e);var r=n("7607"),a=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);e["default"]=a.a},7607:function(t,e,n){"use strict";(function(t){var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("2eee")),u=r(n("9523")),i=r(n("c973")),s=r(n("6343"));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,u.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={data:function(){return{isId:"",startX:0,extraIcon:{color:"#ff8319",size:"20",type:"plusempty"},list:[],natTaskId:"",task:null}},mounted:function(){var t=this;return(0,i.default)(a.default.mark((function e(){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.default.runningTask();case 2:n=e.sent,200==n.code&&n.data.length>0&&(t.task=n.data[0],t.natTaskId=n.data[0].natTaskId,t.query());case 4:case"end":return e.stop()}}),e)})))()},onShow:function(){this.isId=""},methods:{query:function(){var t=this;return(0,i.default)(a.default.mark((function e(){var n,r,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],e.next=3,s.default.getUserAll();case 3:if(r=e.sent,console.log(r),r.data.forEach((function(t){return n.push(t.residentId)})),200!=r.code){e.next=13;break}return e.next=9,s.default.membersStatus({residentIds:n,natTaskId:t.natTaskId});case 9:u=e.sent,r.data=r.data.map((function(t){var e=u.data.find((function(e){return e.residentId==t.residentId}));return o(o({},t),{},{status:(null===e||void 0===e?void 0:e.status)||0})})),console.log(r.data),t.list=r.data;case 13:case"end":return e.stop()}}),e)})))()},filing:function(e){var n=this;return(0,i.default)(a.default.mark((function r(){var u;return a.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,s.default.filing({residentId:e.residentId,natTaskId:n.natTaskId});case 2:u=r.sent,200==u.code&&(n.query(),t.showToast({title:"已报平安",duration:2e3}));case 4:case"end":return r.stop()}}),r)})))()}}};e.default=d}).call(this,n("543d")["default"])},9424:function(t,e,n){},a0dc:function(t,e,n){"use strict";n.r(e);var r=n("f66f"),a=n("67b9");for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);n("c72a");var i=n("f0c5"),s=Object(i["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},c72a:function(t,e,n){"use strict";var r=n("9424"),a=n.n(r);a.a},d919:function(t,e,n){"use strict";(function(t,e){var r=n("4ea4");n("8316");r(n("66fd"));var a=r(n("a0dc"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},f66f:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return r}));var r={uniSection:function(){return n.e("uni_modules/uni-section/components/uni-section/uni-section").then(n.bind(null,"74c7"))},uniList:function(){return n.e("uni_modules/uni-list/components/uni-list/uni-list").then(n.bind(null,"8e97"))},uniListChat:function(){return n.e("uni_modules/uni-list/components/uni-list-chat/uni-list-chat").then(n.bind(null,"e2eb"))}},a=function(){var t=this.$createElement,e=(this._self._c,this.list.length),n=this.list.length<=0&&null!==this.task;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},u=[]}},[["d919","common/runtime","common/vendor"]]]);