index.js 6.0 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/illness/index"],{58:function(n,e,t){"use strict";(function(n){t(5);r(t(4));var e=r(t(59));function r(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(1)["createPage"])},59:function(n,e,t){"use strict";t.r(e);var r=t(60),u=t(62);for(var i in u)"default"!==i&&function(n){t.d(e,n,(function(){return u[n]}))}(i);t(65);var o,s=t(11),c=Object(s["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],o);c.options.__file="pages/illness/index.vue",e["default"]=c.exports},60:function(n,e,t){"use strict";t.r(e);var r=t(61);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},61:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return u})),t.d(e,"staticRenderFns",(function(){return o})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return r}));try{r={uniCard:function(){return t.e("uni_modules/uni-card/components/uni-card/uni-card").then(t.bind(null,124))},uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,131))},uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,138))},uniListChat:function(){return t.e("uni_modules/uni-list/components/uni-list-chat/uni-list-chat").then(t.bind(null,174))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,181))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var u=function(){var n=this,e=n.$createElement;n._self._c},i=!1,o=[];u._withStripped=!0},62:function(n,e,t){"use strict";t.r(e);var r=t(63),u=t.n(r);for(var i in r)"default"!==i&&function(n){t.d(e,n,(function(){return r[n]}))}(i);e["default"]=u.a},63:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(t(18)),u=i(t(64));function i(n){return n&&n.__esModule?n:{default:n}}function o(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?o(Object(t),!0).forEach((function(e){c(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function c(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function a(n,e,t,r,u,i,o){try{var s=n[i](o),c=s.value}catch(a){return void t(a)}s.done?e(c):Promise.resolve(c).then(r,u)}function d(n){return function(){var e=this,t=arguments;return new Promise((function(r,u){var i=n.apply(e,t);function o(n){a(i,r,u,o,s,"next",n)}function s(n){a(i,r,u,o,s,"throw",n)}o(void 0)}))}}var l={data:function(){return{isId:"",startX:0,extraIcon:{color:"#ff8319",size:"20",type:"plusempty"},list:[],natTaskId:""}},mounted:function(){var n=this;return d(r.default.mark((function e(){var t;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u.default.runningTask();case 2:t=e.sent,200==t.code&&(n.natTaskId=t.data[0].natTaskId,n.query());case 4:case"end":return e.stop()}}),e)})))()},onShow:function(){this.isId=""},methods:{query:function(){var e=this;return d(r.default.mark((function t(){var i,o,c,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=n.getStorageSync("userinfo"),o=i.userId,t.next=3,u.default.getFamilyInfo({userId:o});case 3:if(c=t.sent,200!=c.code){t.next=10;break}return t.next=7,u.default.membersStatus({userId:o,natTaskId:e.natTaskId});case 7:a=t.sent,c.rows=c.rows.map((function(n){var e=a.data.find((function(e){return e.residentId==n.residentId}));return s(s({},n),{},{status:(null===e||void 0===e?void 0:e.status)||0})})),e.list=c.rows;case 10:case"end":return t.stop()}}),t)})))()},touchStart:function(n){1==n.touches.length&&(this.startX=n.touches[0].clientX)},touchEnd:function(n){if(1==n.changedTouches.length){var e=n.changedTouches[0].clientX,t=e-this.startX;Math.abs(t)>20&&(this.isId=t<0?n.currentTarget.id:"")}},filing:function(e){var t=this;return d(r.default.mark((function i(){var o;return r.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,u.default.filing({residentId:e.residentId,natTaskId:t.natTaskId});case 2:o=r.sent,200==o.code&&(t.query(),n.showToast({title:"报备成功",duration:2e3}));case 4:case"end":return r.stop()}}),i)})))()},delbtn:function(e){var t=this;return d(r.default.mark((function i(){var o;return r.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,u.default.familyInfo(s(s({},e),{},{reqType:"2"}));case 2:o=r.sent,200==o.code&&(t.isId="",n.showToast({title:"已提交审核",duration:2e3}));case 4:case"end":return r.stop()}}),i)})))()},onClick:function(){n.navigateTo({url:"/pages/user/familyInfo"})},userbtn:function(e){console.log(e),n.navigateTo({url:"/pages/user/familyInfo?residentId=".concat(e.residentId)})}}};e.default=l}).call(this,t(1)["default"])},65:function(n,e,t){"use strict";t.r(e);var r=t(66),u=t.n(r);for(var i in r)"default"!==i&&function(n){t.d(e,n,(function(){return r[n]}))}(i);e["default"]=u.a},66:function(n,e,t){}},[[58,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/illness/index.js.map