(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/peopleList/peopleList"],{382:function(t,e,n){"use strict";(function(t){n(5);o(n(3));var e=o(n(383));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n(1)["createPage"])},383:function(t,e,n){"use strict";n.r(e);var o=n(384),i=n(386);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n(388);var r,u=n(11),a=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],r);a.options.__file="pages/peopleList/peopleList.vue",e["default"]=a.exports},384:function(t,e,n){"use strict";n.r(e);var o=n(385);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},385:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return c})),n.d(e,"components",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},c=!1,r=[];i._withStripped=!0},386:function(t,e,n){"use strict";n.r(e);var o=n(387),i=n.n(o);for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=i.a},387:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{peopelList:!1,peopelInfoShow:1,checkboxValue1:[],checkboxList:[]}},components:{},onLoad:function(t){0==t.id?this.peopelList=!1:this.peopelList=!0,this.init()},onShow:function(){var e=t.getStorageSync("token");if(!e)return t.showToast({title:"请先登录",icon:"none"}),setTimeout((function(){t.navigateBack({delta:1})}),1500),!1;this.init()},methods:{init:function(){var e=this;t.$u.http.post("/api/traveler/list",{custom:{auth:!0}}).then((function(t){e.checkboxList=t;var n=e.checkboxList;n.forEach((function(t){t.checked=!1})),e.checkboxList=n})).catch((function(t){console.log(t)}))},checkbox:function(t){var e=this.checkboxList;e[t].checked?e[t].checked=!1:e[t].checked=!0,this.checkboxList=JSON.parse(JSON.stringify(e));var n=this.checkboxList,o=[];n.forEach((function(t){t.checked&&o.push(t)})),this.$store.commit("getpeopleList",o)},surePeople:function(){t.navigateBack({delta:1})},edit:function(e){var n=JSON.stringify(e);t.navigateTo({url:"/pages/peopleList/addPeople?info=".concat(n,"&state=0")})},dele:function(e){var n=this;t.$u.http.post("/api/traveler/delete",{id:e},{custom:{auth:!0}}).then((function(t){n.init()})).catch((function(t){console.log(t)}))},addpeople:function(){t.navigateTo({url:"/pages/peopleList/addPeople?state=1"})}}};e.default=n}).call(this,n(1)["default"])},388:function(t,e,n){"use strict";n.r(e);var o=n(389),i=n.n(o);for(var c in o)"default"!==c&&function(t){n.d(e,t,(function(){return o[t]}))}(c);e["default"]=i.a},389:function(t,e,n){}},[[382,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/peopleList/peopleList.js.map