(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/peopleList/peopleList"],{"0db8":function(t,e,n){"use strict";n.r(e);var o=n("b350"),c=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=c.a},"292d":function(t,e,n){"use strict";var o=n("8862"),c=n.n(o);c.a},8862:function(t,e,n){},"9beb":function(t,e,n){"use strict";n.r(e);var o=n("fcd6"),c=n("0db8");for(var i in c)"default"!==i&&function(t){n.d(e,t,(function(){return c[t]}))}(i);n("292d");var a,u=n("f0c5"),s=Object(u["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=s.exports},b350: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("543d")["default"])},faf3:function(t,e,n){"use strict";(function(t){n("7a99");o(n("66fd"));var e=o(n("9beb"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},fcd6:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var c=function(){var t=this,e=t.$createElement;t._self._c},i=[]}},[["faf3","common/runtime","common/vendor"]]]);