From 44a45b9220a701149119b99ef3579b91a89971eb Mon Sep 17 00:00:00 2001
From: maguohua <1264889788@qq.com>
Date: Fri, 23 Jun 2017 11:36:26 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=87=E6=8D=A2=E4=BF=9D?=
=?UTF-8?q?=E5=AD=98=E7=BB=84=E4=BB=B6=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
manage/index.html | 2 +-
...c1005b15.js => 16.41a481965b105bcd743d.js} | 2 +-
manage/static/js/app.50136cc01320068ee645.js | 1 +
manage/static/js/app.9d147bc991d6a6165389.js | 1 -
...0d.js => manifest.b165962347fa288d3d29.js} | 2 +-
src/App.vue | 2 +-
src/main.js | 4 +-
src/page/manage.vue | 4 +-
src/router/index.js | 146 +++++++++---------
9 files changed, 84 insertions(+), 80 deletions(-)
rename manage/static/js/{16.597063024b15c1005b15.js => 16.41a481965b105bcd743d.js} (97%)
create mode 100644 manage/static/js/app.50136cc01320068ee645.js
delete mode 100644 manage/static/js/app.9d147bc991d6a6165389.js
rename manage/static/js/{manifest.d1a2aa9b53ab49bb2a0d.js => manifest.b165962347fa288d3d29.js} (93%)
diff --git a/manage/index.html b/manage/index.html
index 8a4499c7..4d717dbf 100644
--- a/manage/index.html
+++ b/manage/index.html
@@ -1 +1 @@
-
back-manage
\ No newline at end of file
+back-manage
\ No newline at end of file
diff --git a/manage/static/js/16.597063024b15c1005b15.js b/manage/static/js/16.41a481965b105bcd743d.js
similarity index 97%
rename from manage/static/js/16.597063024b15c1005b15.js
rename to manage/static/js/16.41a481965b105bcd743d.js
index 17a07840..1054c985 100644
--- a/manage/static/js/16.597063024b15c1005b15.js
+++ b/manage/static/js/16.41a481965b105bcd743d.js
@@ -1 +1 @@
-webpackJsonp([16],{187:function(t,e,a){a(470);var i=a(77)(a(354),a(495),"data-v-2bb40f9e",null);t.exports=i.exports},354:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{defaultActive:function(){return this.$route.path.replace("/","")}}}},378:function(t,e,a){e=t.exports=a(177)(!1),e.push([t.i,".allcover[data-v-2bb40f9e]{position:absolute;top:0;right:0}.ctt[data-v-2bb40f9e]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.tb[data-v-2bb40f9e]{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.lr[data-v-2bb40f9e]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}",""])},470:function(t,e,a){var i=a(378);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(178)("3920caea",i,!0)},495:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"manage_page fillcontain"},[a("el-row",{staticStyle:{height:"100%"}},[a("el-col",{staticStyle:{"min-height":"100%","background-color":"#324057"},attrs:{span:4}},[a("el-menu",{staticStyle:{"min-height":"100%"},attrs:{"default-active":t.defaultActive,theme:"dark",router:""}},[a("el-menu-item",{attrs:{index:"manage"}},[a("i",{staticClass:"el-icon-menu"}),t._v("首页")]),t._v(" "),a("el-submenu",{attrs:{index:"2"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-document"}),t._v("数据管理")]),t._v(" "),a("el-menu-item",{attrs:{index:"userList"}},[t._v("用户列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"shopList"}},[t._v("商家列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"foodList"}},[t._v("食品列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"orderList"}},[t._v("订单列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminList"}},[t._v("管理员列表")])],2),t._v(" "),a("el-submenu",{attrs:{index:"3"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-plus"}),t._v("添加数据")]),t._v(" "),a("el-menu-item",{attrs:{index:"addShop"}},[t._v("添加商铺")]),t._v(" "),a("el-menu-item",{attrs:{index:"addGoods"}},[t._v("添加商品")])],2),t._v(" "),a("el-submenu",{attrs:{index:"4"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-star-on"}),t._v("图表")]),t._v(" "),a("el-menu-item",{attrs:{index:"visitor"}},[t._v("用户分布")])],2),t._v(" "),a("el-submenu",{attrs:{index:"5"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-edit"}),t._v("编辑")]),t._v(" "),a("el-menu-item",{attrs:{index:"vueEdit"}},[t._v("文本编辑")])],2),t._v(" "),a("el-submenu",{attrs:{index:"6"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-setting"}),t._v("设置")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminSet"}},[t._v("管理员设置")])],2),t._v(" "),a("el-submenu",{attrs:{index:"7"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-warning"}),t._v("说明")]),t._v(" "),a("el-menu-item",{attrs:{index:"explain"}},[t._v("说明")])],2)],1)],1),t._v(" "),a("el-col",{staticStyle:{height:"100%",overflow:"auto"},attrs:{span:20}},[a("router-view")],1)],1)],1)},staticRenderFns:[]}}});
\ No newline at end of file
+webpackJsonp([16],{187:function(t,e,a){a(470);var i=a(77)(a(354),a(495),"data-v-2bb40f9e",null);t.exports=i.exports},354:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{defaultActive:function(){return this.$route.path.replace("/","")}}}},378:function(t,e,a){e=t.exports=a(177)(!1),e.push([t.i,".allcover[data-v-2bb40f9e]{position:absolute;top:0;right:0}.ctt[data-v-2bb40f9e]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.tb[data-v-2bb40f9e]{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.lr[data-v-2bb40f9e]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}",""])},470:function(t,e,a){var i=a(378);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(178)("3920caea",i,!0)},495:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"manage_page fillcontain"},[a("el-row",{staticStyle:{height:"100%"}},[a("el-col",{staticStyle:{"min-height":"100%","background-color":"#324057"},attrs:{span:4}},[a("el-menu",{staticStyle:{"min-height":"100%"},attrs:{"default-active":t.defaultActive,theme:"dark",router:""}},[a("el-menu-item",{attrs:{index:"manage"}},[a("i",{staticClass:"el-icon-menu"}),t._v("首页")]),t._v(" "),a("el-submenu",{attrs:{index:"2"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-document"}),t._v("数据管理")]),t._v(" "),a("el-menu-item",{attrs:{index:"userList"}},[t._v("用户列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"shopList"}},[t._v("商家列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"foodList"}},[t._v("食品列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"orderList"}},[t._v("订单列表")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminList"}},[t._v("管理员列表")])],2),t._v(" "),a("el-submenu",{attrs:{index:"3"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-plus"}),t._v("添加数据")]),t._v(" "),a("el-menu-item",{attrs:{index:"addShop"}},[t._v("添加商铺")]),t._v(" "),a("el-menu-item",{attrs:{index:"addGoods"}},[t._v("添加商品")])],2),t._v(" "),a("el-submenu",{attrs:{index:"4"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-star-on"}),t._v("图表")]),t._v(" "),a("el-menu-item",{attrs:{index:"visitor"}},[t._v("用户分布")])],2),t._v(" "),a("el-submenu",{attrs:{index:"5"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-edit"}),t._v("编辑")]),t._v(" "),a("el-menu-item",{attrs:{index:"vueEdit"}},[t._v("文本编辑")])],2),t._v(" "),a("el-submenu",{attrs:{index:"6"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-setting"}),t._v("设置")]),t._v(" "),a("el-menu-item",{attrs:{index:"adminSet"}},[t._v("管理员设置")])],2),t._v(" "),a("el-submenu",{attrs:{index:"7"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-warning"}),t._v("说明")]),t._v(" "),a("el-menu-item",{attrs:{index:"explain"}},[t._v("说明")])],2)],1)],1),t._v(" "),a("el-col",{staticStyle:{height:"100%",overflow:"auto"},attrs:{span:20}},[a("keep-alive",[a("router-view")],1)],1)],1)],1)},staticRenderFns:[]}}});
\ No newline at end of file
diff --git a/manage/static/js/app.50136cc01320068ee645.js b/manage/static/js/app.50136cc01320068ee645.js
new file mode 100644
index 00000000..58a0cb11
--- /dev/null
+++ b/manage/static/js/app.50136cc01320068ee645.js
@@ -0,0 +1 @@
+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:"",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)},E=[{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:["说明","说明"]}]}];t.a=new u.a({routes:E,strict:!1})},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.log("您尚未登陆或者session失效");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,"I",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,"H",function(){return a}),e.d(t,"E",function(){return f}),e.d(t,"F",function(){return s}),e.d(t,"G",function(){return d}),e.d(t,"e",function(){return p}),e.d(t,"d",function(){return h}),e.d(t,"q",function(){return l}),e.d(t,"C",function(){return m}),e.d(t,"v",function(){return v}),e.d(t,"z",function(){return g}),e.d(t,"A",function(){return b}),e.d(t,"B",function(){return w}),e.d(t,"s",function(){return y}),e.d(t,"t",function(){return x}),e.d(t,"h",function(){return E}),e.d(t,"r",function(){return O}),e.d(t,"w",function(){return S}),e.d(t,"u",function(){return T}),e.d(t,"m",function(){return k}),e.d(t,"k",function(){return P}),e.d(t,"l",function(){return j}),e.d(t,"n",function(){return L}),e.d(t,"p",function(){return A}),e.d(t,"o",function(){return I}),e.d(t,"y",function(){return M}),e.d(t,"x",function(){return _}),e.d(t,"g",function(){return C}),e.d(t,"f",function(){return D}),e.d(t,"i",function(){return q}),e.d(t,"j",function(){return G}),e.d(t,"c",function(){return H});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)("/statis/admin/"+n+"/count")},p=function(n){return e.i(r.a)("/admin/all",n)},h=function(){return e.i(r.a)("/admin/count")},l=function(){return e.i(r.a)("/v1/cities",{type:"guess"})},m=function(n){return e.i(r.a)("/shopping/addShop",n,"POST")},v=function(n,t){return e.i(r.a)("/v1/pois",{type:"search",city_id:n,keyword:t})},g=function(n){return e.i(r.a)("/shopping/getcategory/"+n)},b=function(n){return e.i(r.a)("/shopping/addcategory",n,"POST")},w=function(n){return e.i(r.a)("/shopping/addfood",n,"POST")},y=function(n,t){return e.i(r.a)("/shopping/v2/restaurant/category")},x=function(n){return e.i(r.a)("/shopping/restaurants",n)},E=function(n){return e.i(r.a)("/shopping/restaurant/"+n)},O=function(){return e.i(r.a)("/shopping/restaurants/count")},S=function(n){return e.i(r.a)("/shopping/updateshop",n,"POST")},T=function(n){return e.i(r.a)("/shopping/restaurant/"+n,{},"DELETE")},k=function(n){return e.i(r.a)("/shopping/v2/foods",n)},P=function(n){return e.i(r.a)("/shopping/v2/foods/count",n)},j=function(n){return e.i(r.a)("/shopping/v2/menu",n)},L=function(n){return e.i(r.a)("/shopping/v2/menu/"+n)},A=function(n){return e.i(r.a)("/shopping/v2/updatefood",n,"POST")},I=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)},C=function(n){return e.i(r.a)("/bos/orders",n)},D=function(n){return e.i(r.a)("/bos/orders/count",n)},q=function(n){return e.i(r.a)("/v1/user/"+n)},G=function(n){return e.i(r.a)("/v1/addresse/"+n)},H=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="",u="http://images.cangdu.org/";r="http://cangdu.org:8001"}},[110]);
\ No newline at end of file
diff --git a/manage/static/js/app.9d147bc991d6a6165389.js b/manage/static/js/app.9d147bc991d6a6165389.js
deleted file mode 100644
index 81c445fe..00000000
--- a/manage/static/js/app.9d147bc991d6a6165389.js
+++ /dev/null
@@ -1 +0,0 @@
-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:"",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.log("您尚未登陆或者session失效");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,"I",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,"H",function(){return a}),e.d(t,"E",function(){return f}),e.d(t,"F",function(){return s}),e.d(t,"G",function(){return d}),e.d(t,"e",function(){return p}),e.d(t,"d",function(){return h}),e.d(t,"q",function(){return l}),e.d(t,"C",function(){return m}),e.d(t,"v",function(){return v}),e.d(t,"z",function(){return g}),e.d(t,"A",function(){return b}),e.d(t,"B",function(){return w}),e.d(t,"s",function(){return y}),e.d(t,"t",function(){return x}),e.d(t,"h",function(){return E}),e.d(t,"r",function(){return O}),e.d(t,"w",function(){return S}),e.d(t,"u",function(){return T}),e.d(t,"m",function(){return k}),e.d(t,"k",function(){return P}),e.d(t,"l",function(){return j}),e.d(t,"n",function(){return L}),e.d(t,"p",function(){return A}),e.d(t,"o",function(){return I}),e.d(t,"y",function(){return M}),e.d(t,"x",function(){return _}),e.d(t,"g",function(){return C}),e.d(t,"f",function(){return D}),e.d(t,"i",function(){return q}),e.d(t,"j",function(){return G}),e.d(t,"c",function(){return H});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)("/statis/admin/"+n+"/count")},p=function(n){return e.i(r.a)("/admin/all",n)},h=function(){return e.i(r.a)("/admin/count")},l=function(){return e.i(r.a)("/v1/cities",{type:"guess"})},m=function(n){return e.i(r.a)("/shopping/addShop",n,"POST")},v=function(n,t){return e.i(r.a)("/v1/pois",{type:"search",city_id:n,keyword:t})},g=function(n){return e.i(r.a)("/shopping/getcategory/"+n)},b=function(n){return e.i(r.a)("/shopping/addcategory",n,"POST")},w=function(n){return e.i(r.a)("/shopping/addfood",n,"POST")},y=function(n,t){return e.i(r.a)("/shopping/v2/restaurant/category")},x=function(n){return e.i(r.a)("/shopping/restaurants",n)},E=function(n){return e.i(r.a)("/shopping/restaurant/"+n)},O=function(){return e.i(r.a)("/shopping/restaurants/count")},S=function(n){return e.i(r.a)("/shopping/updateshop",n,"POST")},T=function(n){return e.i(r.a)("/shopping/restaurant/"+n,{},"DELETE")},k=function(n){return e.i(r.a)("/shopping/v2/foods",n)},P=function(n){return e.i(r.a)("/shopping/v2/foods/count",n)},j=function(n){return e.i(r.a)("/shopping/v2/menu",n)},L=function(n){return e.i(r.a)("/shopping/v2/menu/"+n)},A=function(n){return e.i(r.a)("/shopping/v2/updatefood",n,"POST")},I=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)},C=function(n){return e.i(r.a)("/bos/orders",n)},D=function(n){return e.i(r.a)("/bos/orders/count",n)},q=function(n){return e.i(r.a)("/v1/user/"+n)},G=function(n){return e.i(r.a)("/v1/addresse/"+n)},H=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="",u="http://images.cangdu.org/";r="http://cangdu.org:8001"}},[110]);
\ No newline at end of file
diff --git a/manage/static/js/manifest.d1a2aa9b53ab49bb2a0d.js b/manage/static/js/manifest.b165962347fa288d3d29.js
similarity index 93%
rename from manage/static/js/manifest.d1a2aa9b53ab49bb2a0d.js
rename to manage/static/js/manifest.b165962347fa288d3d29.js
index 5cb7d2ae..6bb5a889 100644
--- a/manage/static/js/manifest.d1a2aa9b53ab49bb2a0d.js
+++ b/manage/static/js/manifest.b165962347fa288d3d29.js
@@ -1 +1 @@
-!function(e){function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,o,a){for(var f,b,d,i=0,u=[];i
-
+
diff --git a/src/main.js b/src/main.js
index bd8842fb..cea2a5a4 100644
--- a/src/main.js
+++ b/src/main.js
@@ -5,9 +5,9 @@ import store from './store/'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
-Vue.config.productionTip = false
+Vue.config.productionTip = false;
-Vue.use(ElementUI)
+Vue.use(ElementUI);
new Vue({
el: '#app',
diff --git a/src/page/manage.vue b/src/page/manage.vue
index 525615a4..9146945a 100644
--- a/src/page/manage.vue
+++ b/src/page/manage.vue
@@ -39,7 +39,9 @@
-
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index d5753683..e5b98962 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -21,78 +21,80 @@ const adminSet = r => require.ensure([], () => r(require('@/page/adminSet')), 'a
const sendMessage = r => require.ensure([], () => r(require('@/page/sendMessage')), 'sendMessage');
const explain = r => require.ensure([], () => r(require('@/page/explain')), 'explain');
+const routes = [
+ {
+ path: '/',
+ component: login
+ },
+ {
+ path: '/manage',
+ component: manage,
+ name: '',
+ children: [{
+ path: '',
+ component: home,
+ meta: [],
+ },{
+ path: '/addShop',
+ component: addShop,
+ meta: ['添加数据', '添加商铺'],
+ },{
+ path: '/addGoods',
+ component: addGoods,
+ meta: ['添加数据', '添加商品'],
+ },{
+ path: '/userList',
+ component: userList,
+ meta: ['数据管理', '用户列表'],
+ },{
+ path: '/shopList',
+ component: shopList,
+ meta: ['数据管理', '商家列表'],
+ },{
+ path: '/foodList',
+ component: foodList,
+ meta: ['数据管理', '食品列表'],
+ },{
+ path: '/orderList',
+ component: orderList,
+ meta: ['数据管理', '订单列表'],
+ },{
+ path: '/adminList',
+ component: adminList,
+ meta: ['数据管理', '管理员列表'],
+ },{
+ path: '/visitor',
+ component: visitor,
+ meta: ['图表', '用户分布'],
+ },{
+ path: '/newMember',
+ component: newMember,
+ meta: ['图表', '用户数据'],
+ },{
+ path: '/uploadImg',
+ component: uploadImg,
+ meta: ['文本编辑', 'MarkDown'],
+ },{
+ path: '/vueEdit',
+ component: vueEdit,
+ meta: ['编辑', '文本编辑'],
+ },{
+ path: '/adminSet',
+ component: adminSet,
+ meta: ['设置', '管理员设置'],
+ },{
+ path: '/sendMessage',
+ component: sendMessage,
+ meta: ['设置', '发送通知'],
+ },{
+ path: '/explain',
+ component: explain,
+ meta: ['说明', '说明'],
+ }]
+ }
+]
export default new Router({
- routes: [
- {
- path: '/',
- component: login
- },
- {
- path: '/manage',
- component: manage,
- name: '',
- children: [{
- path: '',
- component: home,
- meta: [],
- },{
- path: '/addShop',
- component: addShop,
- meta: ['添加数据', '添加商铺'],
- },{
- path: '/addGoods',
- component: addGoods,
- meta: ['添加数据', '添加商品'],
- },{
- path: '/userList',
- component: userList,
- meta: ['数据管理', '用户列表'],
- },{
- path: '/shopList',
- component: shopList,
- meta: ['数据管理', '商家列表'],
- },{
- path: '/foodList',
- component: foodList,
- meta: ['数据管理', '食品列表'],
- },{
- path: '/orderList',
- component: orderList,
- meta: ['数据管理', '订单列表'],
- },{
- path: '/adminList',
- component: adminList,
- meta: ['数据管理', '管理员列表'],
- },{
- path: '/visitor',
- component: visitor,
- meta: ['图表', '用户分布'],
- },{
- path: '/newMember',
- component: newMember,
- meta: ['图表', '用户数据'],
- },{
- path: '/uploadImg',
- component: uploadImg,
- meta: ['文本编辑', 'MarkDown'],
- },{
- path: '/vueEdit',
- component: vueEdit,
- meta: ['编辑', '文本编辑'],
- },{
- path: '/adminSet',
- component: adminSet,
- meta: ['设置', '管理员设置'],
- },{
- path: '/sendMessage',
- component: sendMessage,
- meta: ['设置', '发送通知'],
- },{
- path: '/explain',
- component: explain,
- meta: ['说明', '说明'],
- }]
- }
- ]
+ routes,
+ strict: process.env.NODE_ENV !== 'production',
})