(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/invoice/invoiceAdmin"],{"2ac2":function(t,n,e){"use strict";e.r(n);var i=e("f0db"),o=e.n(i);for(var c in i)"default"!==c&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=o.a},6497:function(t,n,e){"use strict";e.r(n);var i=e("b4db"),o=e("2ac2");for(var c in o)"default"!==c&&function(t){e.d(n,t,(function(){return o[t]}))}(c);e("e86c");var a,u=e("f0c5"),r=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);n["default"]=r.exports},"7bc1":function(t,n,e){},b4db:function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){return i}));var o=function(){var t=this,n=t.$createElement;t._self._c},c=[]},dd9a:function(t,n,e){"use strict";(function(t){e("7a99");i(e("66fd"));var n=i(e("6497"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},e86c:function(t,n,e){"use strict";var i=e("7bc1"),o=e.n(i);o.a},f0db:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{showSex:!1,id:1,list:[]}},onLoad:function(){this.init()},onShow:function(){var n=t.getStorageSync("token");if(!n)return t.showToast({title:"请先登录",icon:"none"}),setTimeout((function(){t.navigateBack({delta:1})}),1500),!1;this.init()},methods:{init:function(){var n=this;t.$u.http.post("/api/invoice/list",{custom:{auth:!0}}).then((function(t){console.log(t),t.forEach((function(t){1==t.type?t.type="个人":2==t.type&&(t.type="企业")})),n.list=t})).catch((function(t){console.log(t)}))},goendit:function(n){t.navigateTo({url:"/pages/invoice/invoiceEndit?state=0&info=".concat(JSON.stringify(n))})},add:function(){t.navigateTo({url:"/pages/invoice/invoiceEndit?state=1"})},dele:function(n){var e=this;t.$u.http.post("/api/invoice/delete",{id:n},{custom:{auth:!0}}).then((function(t){console.log(t),e.init()})).catch((function(n){console.log(n),t.showToast({icon:"error",title:n.message})}))}}};n.default=e}).call(this,e("543d")["default"])}},[["dd9a","common/runtime","common/vendor"]]]);