You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
9.8 KiB
1 line
9.8 KiB
{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_c(\"div\", {\n staticClass: \"front-header\"\n }, [_vm._m(0), _c(\"div\", {\n staticClass: \"front-header-center\"\n }, [_c(\"div\", {\n staticClass: \"front-header-nav\"\n }, [_c(\"el-menu\", {\n attrs: {\n \"default-active\": _vm.$route.path,\n mode: \"horizontal\",\n router: \"\"\n }\n }, [_c(\"el-menu-item\", {\n attrs: {\n index: \"/front/home\"\n }\n }, [_vm._v(\"首页\")]), _c(\"el-menu-item\", {\n attrs: {\n index: \"/front/person\"\n }\n }, [_vm._v(\"个人中心\")])], 1)], 1)]), _c(\"div\", {\n staticClass: \"front-header-right\"\n }, [!_vm.user.username ? _c(\"div\", [_c(\"el-button\", {\n on: {\n click: function ($event) {\n return _vm.$router.push(\"/login\");\n }\n }\n }, [_vm._v(\"登录\")]), _c(\"el-button\", {\n on: {\n click: function ($event) {\n return _vm.$router.push(\"/register\");\n }\n }\n }, [_vm._v(\"注册\")])], 1) : _c(\"div\", [_c(\"el-dropdown\", [_c(\"div\", {\n staticClass: \"front-header-dropdown\"\n }, [_c(\"img\", {\n attrs: {\n src: _vm.user.avatar,\n alt: \"\"\n }\n }), _c(\"div\", {\n staticStyle: {\n \"margin-left\": \"10px\"\n }\n }, [_c(\"span\", [_vm._v(_vm._s(_vm.user.name))]), _c(\"i\", {\n staticClass: \"el-icon-arrow-down\",\n staticStyle: {\n \"margin-left\": \"5px\"\n }\n })])]), _c(\"el-dropdown-menu\", {\n attrs: {\n slot: \"dropdown\"\n },\n slot: \"dropdown\"\n }, [_c(\"el-dropdown-item\", [_c(\"div\", {\n staticStyle: {\n \"text-decoration\": \"none\"\n },\n on: {\n click: _vm.logout\n }\n }, [_vm._v(\"退出\")])])], 1)], 1)], 1)])]), _c(\"div\", {\n staticClass: \"main-body\"\n }, [_c(\"router-view\", {\n ref: \"child\",\n on: {\n \"update:user\": _vm.updateUser\n }\n })], 1)]);\n};\nvar staticRenderFns = [function () {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n staticClass: \"front-header-left\"\n }, [_c(\"img\", {\n attrs: {\n src: require(\"@/assets/imgs/logo.png\"),\n alt: \"\"\n }\n }), _c(\"div\", {\n staticClass: \"title\"\n }, [_vm._v(\"天猫超市购物商城\")])]);\n}];\nrender._withStripped = true;\nexport { render, staticRenderFns };","map":{"version":3,"names":["render","_vm","_c","_self","staticClass","_m","attrs","$route","path","mode","router","index","_v","user","username","on","click","$event","$router","push","src","avatar","alt","staticStyle","_s","name","slot","logout","ref","updateUser","staticRenderFns","require","_withStripped"],"sources":["D:/BaiduNetdiskDownload/项目脚手架/项目脚手架/manager/vue/src/views/Front.vue"],"sourcesContent":["var render = function render() {\n var _vm = this,\n _c = _vm._self._c\n return _c(\"div\", [\n _c(\"div\", { staticClass: \"front-header\" }, [\n _vm._m(0),\n _c(\"div\", { staticClass: \"front-header-center\" }, [\n _c(\n \"div\",\n { staticClass: \"front-header-nav\" },\n [\n _c(\n \"el-menu\",\n {\n attrs: {\n \"default-active\": _vm.$route.path,\n mode: \"horizontal\",\n router: \"\",\n },\n },\n [\n _c(\"el-menu-item\", { attrs: { index: \"/front/home\" } }, [\n _vm._v(\"首页\"),\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/front/person\" } }, [\n _vm._v(\"个人中心\"),\n ]),\n ],\n 1\n ),\n ],\n 1\n ),\n ]),\n _c(\"div\", { staticClass: \"front-header-right\" }, [\n !_vm.user.username\n ? _c(\n \"div\",\n [\n _c(\n \"el-button\",\n {\n on: {\n click: function ($event) {\n return _vm.$router.push(\"/login\")\n },\n },\n },\n [_vm._v(\"登录\")]\n ),\n _c(\n \"el-button\",\n {\n on: {\n click: function ($event) {\n return _vm.$router.push(\"/register\")\n },\n },\n },\n [_vm._v(\"注册\")]\n ),\n ],\n 1\n )\n : _c(\n \"div\",\n [\n _c(\n \"el-dropdown\",\n [\n _c(\"div\", { staticClass: \"front-header-dropdown\" }, [\n _c(\"img\", { attrs: { src: _vm.user.avatar, alt: \"\" } }),\n _c(\"div\", { staticStyle: { \"margin-left\": \"10px\" } }, [\n _c(\"span\", [_vm._v(_vm._s(_vm.user.name))]),\n _c(\"i\", {\n staticClass: \"el-icon-arrow-down\",\n staticStyle: { \"margin-left\": \"5px\" },\n }),\n ]),\n ]),\n _c(\n \"el-dropdown-menu\",\n { attrs: { slot: \"dropdown\" }, slot: \"dropdown\" },\n [\n _c(\"el-dropdown-item\", [\n _c(\n \"div\",\n {\n staticStyle: { \"text-decoration\": \"none\" },\n on: { click: _vm.logout },\n },\n [_vm._v(\"退出\")]\n ),\n ]),\n ],\n 1\n ),\n ],\n 1\n ),\n ],\n 1\n ),\n ]),\n ]),\n _c(\n \"div\",\n { staticClass: \"main-body\" },\n [\n _c(\"router-view\", {\n ref: \"child\",\n on: { \"update:user\": _vm.updateUser },\n }),\n ],\n 1\n ),\n ])\n}\nvar staticRenderFns = [\n function () {\n var _vm = this,\n _c = _vm._self._c\n return _c(\"div\", { staticClass: \"front-header-left\" }, [\n _c(\"img\", { attrs: { src: require(\"@/assets/imgs/logo.png\"), alt: \"\" } }),\n _c(\"div\", { staticClass: \"title\" }, [_vm._v(\"天猫超市购物商城\")]),\n ])\n },\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }"],"mappings":";AAAA,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAG;EAC7B,IAAIC,GAAG,GAAG,IAAI;IACZC,EAAE,GAAGD,GAAG,CAACE,KAAK,CAACD,EAAE;EACnB,OAAOA,EAAE,CAAC,KAAK,EAAE,CACfA,EAAE,CAAC,KAAK,EAAE;IAAEE,WAAW,EAAE;EAAe,CAAC,EAAE,CACzCH,GAAG,CAACI,EAAE,CAAC,CAAC,CAAC,EACTH,EAAE,CAAC,KAAK,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