12 |
- webpackJsonp([18],{109:function(n,t,e){"use strict";var r=e(47),u=e.n(r),o=e(116),i=e.n(o),c=e(50),a=e.n(c),f=e(112),s=e.n(f),d=e(113),p=e.n(d),h=e(46),l=e.n(h),m=e(79),v=this;t.a=function(){var n=l()(u.a.mark(function n(){var t,e,r,o,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fetch";return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(d=d.toUpperCase(),c=m.a+c,"GET"==d&&(t="",p()(f).forEach(function(n){t+=n+"="+f[n]+"&"}),""!==t&&(t=t.substr(0,t.lastIndexOf("&")),c=c+"?"+t)),!window.fetch||"fetch"!=h){n.next=21;break}return e={credentials:"include",method:d,headers:{Accept:"application/json","Content-Type":"application/json"},mode:"cors",cache:"force-cache"},"POST"==d&&Object.defineProperty(e,"body",{value:s()(f)}),n.prev=6,n.next=9,fetch(c,e);case 9:return r=n.sent,n.next=12,r.json();case 12:return o=n.sent,n.abrupt("return",o);case 16:throw n.prev=16,n.t0=n.catch(6),new Error(n.t0);case 19:n.next=22;break;case 21:return n.abrupt("return",new a.a(function(n,t){var e=void 0;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject;var r="";"POST"==d&&(r=s()(f)),e.open(d,c,!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send(r),e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status){var r=e.response;"object"!==(void 0===r?"undefined":i()(r))&&(r=JSON.parse(r)),n(r)}else t(e)}}));case 22:case"end":return n.stop()}},n,v,[[6,16]])}));return function(){return n.apply(this,arguments)}}()},110:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e(3),u=e(76),o=e.n(u),i=e(72),c=e(73),a=e(74),f=e.n(a),s=e(75);e.n(s);r.default.config.productionTip=!1,r.default.use(f.a),new r.default({el:"#app",router:i.a,store:c.a,template:"<App/>",components:{App:o.a}})},111:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},168:function(n,t){},174:function(n,t){n.exports={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"fillcontain",attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]}},72:function(n,t,e){"use strict";var r=e(3),u=e(175);r.default.use(u.a);var o=function(n){return e.e(12).then(function(){return n(e(186))}.bind(null,e)).catch(e.oe)},i=function(n){return e.e(16).then(function(){return n(e(187))}.bind(null,e)).catch(e.oe)},c=function(n){return e.e(0).then(function(){return n(e(185))}.bind(null,e)).catch(e.oe)},a=function(n){return e.e(10).then(function(){return n(e(180))}.bind(null,e)).catch(e.oe)},f=function(n){return e.e(11).then(function(){return n(e(179))}.bind(null,e)).catch(e.oe)},s=function(n){return e.e(3).then(function(){return n(e(193))}.bind(null,e)).catch(e.oe)},d=function(n){return e.e(4).then(function(){return n(e(191))}.bind(null,e)).catch(e.oe)},p=function(n){return e.e(6).then(function(){return n(e(184))}.bind(null,e)).catch(e.oe)},h=function(n){return e.e(5).then(function(){return n(e(189))}.bind(null,e)).catch(e.oe)},l=function(n){return e.e(9).then(function(){return n(e(181))}.bind(null,e)).catch(e.oe)},m=function(n){return e.e(1).then(function(){return n(e(194))}.bind(null,e)).catch(e.oe)},v=function(n){return e.e(15).then(function(){return n(e(188))}.bind(null,e)).catch(e.oe)},g=function(n){return e.e(13).then(function(){return n(e(192))}.bind(null,e)).catch(e.oe)},b=function(n){return e.e(2).then(function(){return n(e(195))}.bind(null,e)).catch(e.oe)},w=function(n){return e.e(8).then(function(){return n(e(182))}.bind(null,e)).catch(e.oe)},y=function(n){return e.e(14).then(function(){return n(e(190))}.bind(null,e)).catch(e.oe)},x=function(n){return e.e(7).then(function(){return n(e(183))}.bind(null,e)).catch(e.oe)};t.a=new u.a({routes:[{path:"/",component:o},{path:"/manage",component:i,name:"",children:[{path:"",component:c,meta:[]},{path:"/addShop",component:a,meta:["添加数据","添加商铺"]},{path:"/addGoods",component:f,meta:["添加数据","添加商品"]},{path:"/userList",component:s,meta:["数据管理","用户列表"]},{path:"/shopList",component:d,meta:["数据管理","商家列表"]},{path:"/foodList",component:p,meta:["数据管理","食品列表"]},{path:"/orderList",component:h,meta:["数据管理","订单列表"]},{path:"/adminList",component:l,meta:["数据管理","管理员列表"]},{path:"/visitor",component:m,meta:["图表","用户分布"]},{path:"/newMember",component:v,meta:["图表","用户数据"]},{path:"/uploadImg",component:g,meta:["文本编辑","MarkDown"]},{path:"/vueEdit",component:b,meta:["编辑","文本编辑"]},{path:"/adminSet",component:w,meta:["设置","管理员设置"]},{path:"/sendMessage",component:y,meta:["设置","发送通知"]},{path:"/explain",component:x,meta:["说明","说明"]}]}]})},73:function(n,t,e){"use strict";var r=e(47),u=e.n(r),o=e(46),i=e.n(o),c=e(3),a=e(80),f=e(78);c.default.use(a.a);var s={adminInfo:{avatar:"default.jpg"}},d={saveAdminInfo:function(n,t){n.adminInfo=t}},p={getAdminData:function(n){var t=this,r=n.commit;return i()(u.a.mark(function n(){var o;return u.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.i(f.a)();case 3:if(o=n.sent,1!=o.status){n.next=8;break}r("saveAdminInfo",o.data),n.next=9;break;case 8:throw new Error(o);case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(0),console.error("获取管理员信息失败",n.t0);case 14:case"end":return n.stop()}},n,t,[[0,11]])}))()}};t.a=new a.a.Store({state:s,actions:p,mutations:d})},75:function(n,t){},76:function(n,t,e){e(168);var r=e(77)(e(111),e(174),null,null);n.exports=r.exports},78:function(n,t,e){"use strict";var r=e(109);e.d(t,"H",function(){return u}),e.d(t,"b",function(){return o}),e.d(t,"a",function(){return i}),e.d(t,"D",function(){return c}),e.d(t,"G",function(){return a}),e.d(t,"E",function(){return f}),e.d(t,"F",function(){return s}),e.d(t,"e",function(){return d}),e.d(t,"d",function(){return p}),e.d(t,"q",function(){return h}),e.d(t,"C",function(){return l}),e.d(t,"v",function(){return m}),e.d(t,"z",function(){return v}),e.d(t,"A",function(){return g}),e.d(t,"B",function(){return b}),e.d(t,"s",function(){return w}),e.d(t,"t",function(){return y}),e.d(t,"h",function(){return x}),e.d(t,"r",function(){return E}),e.d(t,"w",function(){return O}),e.d(t,"u",function(){return S}),e.d(t,"m",function(){return T}),e.d(t,"k",function(){return k}),e.d(t,"l",function(){return P}),e.d(t,"n",function(){return j}),e.d(t,"p",function(){return L}),e.d(t,"o",function(){return A}),e.d(t,"y",function(){return M}),e.d(t,"x",function(){return _}),e.d(t,"g",function(){return I}),e.d(t,"f",function(){return C}),e.d(t,"i",function(){return D}),e.d(t,"j",function(){return q}),e.d(t,"c",function(){return G});var u=function(n){return e.i(r.a)("/admin/login",n,"POST")},o=function(){return e.i(r.a)("/admin/singout")},i=function(){return e.i(r.a)("/admin/info")},c=function(n){return e.i(r.a)("/statis/api/"+n+"/count")},a=function(){return e.i(r.a)("/statis/api/count")},f=function(n){return e.i(r.a)("/statis/user/"+n+"/count")},s=function(n){return e.i(r.a)("/statis/order/"+n+"/count")},d=function(n){return e.i(r.a)("/admin/all",n)},p=function(){return e.i(r.a)("/admin/count")},h=function(){return e.i(r.a)("/v1/cities",{type:"guess"})},l=function(n){return e.i(r.a)("/shopping/addShop",n,"POST")},m=function(n,t){return e.i(r.a)("/v1/pois",{type:"search",city_id:n,keyword:t})},v=function(n){return e.i(r.a)("/shopping/getcategory/"+n)},g=function(n){return e.i(r.a)("/shopping/addcategory",n,"POST")},b=function(n){return e.i(r.a)("/shopping/addfood",n,"POST")},w=function(n,t){return e.i(r.a)("/shopping/v2/restaurant/category")},y=function(n){return e.i(r.a)("/shopping/restaurants",n)},x=function(n){return e.i(r.a)("/shopping/restaurant/"+n)},E=function(){return e.i(r.a)("/shopping/restaurants/count")},O=function(n){return e.i(r.a)("/shopping/updateshop",n,"POST")},S=function(n){return e.i(r.a)("/shopping/restaurant/"+n,{},"DELETE")},T=function(n){return e.i(r.a)("/shopping/v2/foods",n)},k=function(n){return e.i(r.a)("/shopping/v2/foods/count",n)},P=function(n){return e.i(r.a)("/shopping/v2/menu",n)},j=function(n){return e.i(r.a)("/shopping/v2/menu/"+n)},L=function(n){return e.i(r.a)("/shopping/v2/updatefood",n,"POST")},A=function(n){return e.i(r.a)("/shopping/v2/food/"+n,{},"DELETE")},M=function(n){return e.i(r.a)("/v1/users/list",n)},_=function(n){return e.i(r.a)("/v1/users/count",n)},I=function(n){return e.i(r.a)("/bos/orders",n)},C=function(n){return e.i(r.a)("/bos/orders/count",n)},D=function(n){return e.i(r.a)("/v1/user/"+n)},q=function(n){return e.i(r.a)("/v1/addresse/"+n)},G=function(){return e.i(r.a)("/v1/user/city/count")}},79:function(n,t,e){"use strict";e.d(t,"a",function(){return r}),e.d(t,"b",function(){return u});var r=void 0,u="http://images.cangdu.org/";r="http://cangdu.org:8001"}},[110]);
- //# sourceMappingURL=app.d7cd78be417405a43fed.js.map
|