(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/illness/receive"],{"159c":function(e,t,n){},"1b6a":function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("8316");r(n("66fd"));var u=r(n("ea17"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"231b":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={uniCard:function(){return n.e("uni_modules/uni-card/components/uni-card/uni-card").then(n.bind(null,"f5b0"))},uniList:function(){return n.e("uni_modules/uni-list/components/uni-list/uni-list").then(n.bind(null,"8e97"))},uniListItem:function(){return n.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(n.bind(null,"984f"))},uniListChat:function(){return n.e("uni_modules/uni-list/components/uni-list-chat/uni-list-chat").then(n.bind(null,"e2eb"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"0ef2"))}},u=function(){var e=this.$createElement;this._self._c},i=[]},"73ee":function(e,t,n){"use strict";n.r(t);var r=n("8171"),u=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=u.a},8171:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=r(n("2eee")),i=r(n("9523")),a=r(n("c973")),s=r(n("6343"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={data:function(){return{isId:"",startX:0,extraIcon:{color:"#ff8319",size:"20",type:"plusempty"},list:[],natTaskId:"",membersStatus:[]}},mounted:function(){},onShow:function(){var e=this;return(0,a.default)(u.default.mark((function t(){return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isId="",e.query();case 2:case"end":return t.stop()}}),t)})))()},methods:{query:function(){var e=this;return(0,a.default)(u.default.mark((function t(){var n,r;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.list=[],t.next=3,s.default.getFamilyInfo();case 3:return n=t.sent,t.next=6,s.default.getApplyUser();case 6:r=t.sent,r.data.forEach((function(e){var t=n.data.find((function(t){return e.residentId==t.residentId}));t||n.data.push(e)})),n.data.forEach((function(t){var n=r.data.find((function(e){return e.residentId==t.residentId})),u="";n&&0==n.reqStatus&&(u="待审核"),n&&2==n.reqStatus&&(u="已拒绝");var i={};i=n?o(o({},n),{},{reqStatusText:u}):o(o({},t),{},{reqStatusText:u,reqStatus:1}),e.$set(e.list,e.list.length,i)}));case 9:case"end":return t.stop()}}),t)})))()},touchStart:function(e){1==e.touches.length&&(this.startX=e.touches[0].clientX)},touchEnd:function(e){this.list.find((function(t){return t.residentId==e.currentTarget.id}));if(1==e.changedTouches.length){var t=e.changedTouches[0].clientX,n=t-this.startX;Math.abs(n)>20&&(this.isId=n<0?e.currentTarget.id:"")}},delbtn:function(t){var n=this;return(0,a.default)(u.default.mark((function r(){var i,a,c;return u.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(console.log(t,"eee"),i="",1!=t.reqStatus){r.next=9;break}return r.next=5,s.default.familyInfo(o(o({},t),{},{reqType:"2"}));case 5:a=r.sent,200==a.code&&(i="已提交审核"),r.next=13;break;case 9:return r.next=11,s.default.removeApply({residentReqId:t.residentReqId});case 11:c=r.sent,200==c.code&&(i="已取消申请信息");case 13:n.isId="",e.showToast({title:i,duration:2e3}),n.query();case 16:case"end":return r.stop()}}),r)})))()},onClick:function(){e.navigateTo({url:"/pages/user/familyInfo"})},userbtn:function(t){t.reqStatus&&"1"!=t.reqStatus?e.navigateTo({url:"/pages/user/familyInfo?residentReqId=".concat(t.residentReqId)}):e.navigateTo({url:"/pages/user/familyInfo?residentId=".concat(t.residentId)})}}};t.default=f}).call(this,n("543d")["default"])},ea17:function(e,t,n){"use strict";n.r(t);var r=n("231b"),u=n("73ee");for(var i in u)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(i);n("fc89");var a=n("f0c5"),s=Object(a["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=s.exports},fc89:function(e,t,n){"use strict";var r=n("159c"),u=n.n(r);u.a}},[["1b6a","common/runtime","common/vendor"]]]);