diff --git a/dist-dev/js/app.js b/dist-dev/js/app.js
index cbb2bcf..d41ae34 100644
--- a/dist-dev/js/app.js
+++ b/dist-dev/js/app.js
@@ -60,7 +60,7 @@ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var cor
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
-eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store */ \"./src/store/index.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Sidebar\",\n data() {\n return {\n cartCount: 0,\n // 购物车数量,可根据实际情况动态获取\n isShowBackTop: false,\n // 是否显示回到顶部激活态\n scrollTimer: null // 节流定时器\n };\n },\n computed: {\n // 通过 mapGetters 映射,简化模板中的写法\n ...(0,vuex__WEBPACK_IMPORTED_MODULE_1__.mapGetters)([\"getCartTotalCount\"])\n },\n mounted() {\n // 监听滚动事件\n window.addEventListener(\"scroll\", this.handleScroll);\n this.$store.dispatch(\"fetchCartCount\");\n },\n beforeDestroy() {\n // 移除滚动监听\n window.removeEventListener(\"scroll\", this.handleScroll);\n if (this.scrollTimer) {\n clearTimeout(this.scrollTimer);\n }\n },\n methods: {\n // 处理购物车点击\n handleCartClick() {\n // 这里可跳转到购物车页面\n this.$router.push(\"/User/ShoppingCart\");\n },\n // 处理在线客服点击\n handleServiceClick() {\n const token = _store__WEBPACK_IMPORTED_MODULE_2__[\"default\"].state.user?.info?.token || \"\";\n window.location.href = \"https://swsz.api.js-dyyj.com/kefu?token=\" + token;\n },\n // 处理回到顶部\n handleBackToTop() {\n window.scrollTo({\n top: 0,\n behavior: \"smooth\"\n });\n },\n // 处理滚动事件\n handleScroll() {\n // 节流处理\n if (this.scrollTimer) {\n clearTimeout(this.scrollTimer);\n }\n this.scrollTimer = setTimeout(() => {\n // 滚动超过 300px 显示激活态\n this.isShowBackTop = window.pageYOffset > 300;\n }, 200);\n }\n }\n});\n\n//# sourceURL=webpack://shiweisuzhou/./src/components/layout/Sidebar.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options\n}");
+eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store */ \"./src/store/index.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"Sidebar\",\n data() {\n return {\n cartCount: 0,\n // 购物车数量,可根据实际情况动态获取\n isShowBackTop: false,\n // 是否显示回到顶部激活态\n scrollTimer: null // 节流定时器\n };\n },\n computed: {\n // 通过 mapGetters 映射,简化模板中的写法\n ...(0,vuex__WEBPACK_IMPORTED_MODULE_1__.mapGetters)([\"getCartTotalCount\"])\n },\n mounted() {\n // 监听滚动事件\n window.addEventListener(\"scroll\", this.handleScroll);\n this.$store.dispatch(\"fetchCartCount\");\n },\n beforeDestroy() {\n // 移除滚动监听\n window.removeEventListener(\"scroll\", this.handleScroll);\n if (this.scrollTimer) {\n clearTimeout(this.scrollTimer);\n }\n },\n methods: {\n // 处理购物车点击\n handleCartClick() {\n // 这里可跳转到购物车页面\n this.$router.push(\"/User/ShoppingCart\");\n },\n // 处理在线客服点击\n handleServiceClick() {\n const token = _store__WEBPACK_IMPORTED_MODULE_2__[\"default\"].state.user?.info?.token || \"\";\n window.location.href = \"https://swsz.api.js-dyyj.com\" + \"/kefu?token=\" + token;\n },\n // 处理回到顶部\n handleBackToTop() {\n window.scrollTo({\n top: 0,\n behavior: \"smooth\"\n });\n },\n // 处理滚动事件\n handleScroll() {\n // 节流处理\n if (this.scrollTimer) {\n clearTimeout(this.scrollTimer);\n }\n this.scrollTimer = setTimeout(() => {\n // 滚动超过 300px 显示激活态\n this.isShowBackTop = window.pageYOffset > 300;\n }, 200);\n }\n }\n});\n\n//# sourceURL=webpack://shiweisuzhou/./src/components/layout/Sidebar.vue?./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options\n}");
/***/ }),
diff --git a/dist/css/app.7266d7b4.css b/dist/css/app.bb526a7c.css
similarity index 89%
rename from dist/css/app.7266d7b4.css
rename to dist/css/app.bb526a7c.css
index adef242..4e20d2a 100644
--- a/dist/css/app.7266d7b4.css
+++ b/dist/css/app.bb526a7c.css
@@ -1 +1 @@
-.header-nav[data-v-00f3c839]{width:100%}.header-nav .top-notice[data-v-00f3c839]{background-color:#f5f5f5;padding:8px 0}.header-nav .top-notice .container[data-v-00f3c839]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .top-notice .container p[data-v-00f3c839]{font-size:14px;color:#666;margin:0}.header-nav .top-notice .container p .highlight[data-v-00f3c839]{color:#f40;margin:0 5px;font-weight:500}.header-nav .top-notice .container .top-links[data-v-00f3c839]{display:flex;align-items:center;gap:15px;font-size:14px}.header-nav .top-notice .container .top-links .avatar[data-v-00f3c839]{width:24px;height:24px;border-radius:50%;margin-right:5px;vertical-align:middle;-o-object-fit:cover;object-fit:cover}.header-nav .top-notice .container .top-links .separator[data-v-00f3c839]{color:#ccc}.header-nav .top-notice .container .top-links .logout-btn[data-v-00f3c839],.header-nav .top-notice .container .top-links a[data-v-00f3c839]{color:#666;transition:color .2s;cursor:pointer;text-decoration:none}.header-nav .top-notice .container .top-links .logout-btn[data-v-00f3c839]:hover,.header-nav .top-notice .container .top-links a[data-v-00f3c839]:hover{color:#6a8a27}.header-nav .top-notice .container .top-links .user-link[data-v-00f3c839]{display:flex;align-items:center}.header-nav .top-notice .container .top-links .cart-link[data-v-00f3c839]{display:inline-flex;align-items:center}.header-nav .main-nav[data-v-00f3c839]{background-color:#fff;padding:15px 0;box-shadow:0 2px 5px rgba(0,0,0,.05)}.header-nav .main-nav .container[data-v-00f3c839]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .main-nav .logo a[data-v-00f3c839]{display:block}.header-nav .main-nav .logo a .logo-img[data-v-00f3c839]{height:40px;-o-object-fit:contain;object-fit:contain}.header-nav .main-nav .search-box[data-v-00f3c839]{flex:0 0 500px}@media(max-width:992px){.header-nav .main-nav .search-box[data-v-00f3c839]{flex:0 0 400px}}@media(max-width:768px){.header-nav .main-nav .search-box[data-v-00f3c839]{display:none}}.header-nav .main-nav .search-box .search-input[data-v-00f3c839]{width:100%;border:1px solid #6a8a27}.header-nav .main-nav .search-box .search-input[data-v-00f3c839] .el-input__inner{border-right:none}.header-nav .main-nav .search-box .search-input[data-v-00f3c839] .el-input-group__append{background-color:#6a8a27;border-color:#6a8a27;color:#fff}.header-nav .main-nav .search-box .hot-tags[data-v-00f3c839]{margin-top:8px;font-size:12px;color:#999;display:flex;align-items:center}.header-nav .main-nav .search-box .hot-tags span[data-v-00f3c839]{margin-right:5px}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-00f3c839]{margin:0 5px;color:#666;cursor:pointer;transition:color .2s}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-00f3c839]:hover{color:#409eff;text-decoration:underline}.header-nav .main-nav .phone-entry a[data-v-00f3c839]{display:flex;align-items:center;color:#333;font-size:16px;text-decoration:none}.header-nav .main-nav .phone-entry a img[data-v-00f3c839]{width:24px;height:24px}.header-nav .main-nav .phone-entry a span[data-v-00f3c839]{margin-left:10px}.header-nav .main-nav .phone-entry a .cart-count[data-v-00f3c839]{display:inline-block;width:18px;height:18px;background-color:#f40;color:#fff;border-radius:50%;font-size:12px;text-align:center;line-height:18px;margin-left:5px}.header-nav .category-nav[data-v-00f3c839]{background-color:#409eff}.header-nav .category-nav .container[data-v-00f3c839]{max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .category-nav .nav-list[data-v-00f3c839]{display:flex;margin:0;padding:0}@media(max-width:992px){.header-nav .category-nav .nav-list[data-v-00f3c839]{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}}.header-nav .category-nav .nav-list .nav-item[data-v-00f3c839]{list-style:none}.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-00f3c839]{display:inline-block;padding:12px 20px;color:#fff;font-size:16px;transition:background-color .2s;text-decoration:none}.header-nav .category-nav .nav-list .nav-item .nav-link.active[data-v-00f3c839],.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-00f3c839]:hover{background-color:#337ab7}.footer-container[data-v-3080ae3e]{background-color:#fff;color:#666;font-size:12px;border-top:1px solid #eaeaea}.footer-top[data-v-3080ae3e]{display:flex;justify-content:space-around;padding:20px 0;flex-wrap:wrap}.footer-link[data-v-3080ae3e]{display:flex;gap:20px;align-items:center}.footer-link span[data-v-3080ae3e]{transition:color .3s ease}.footer-link span[data-v-3080ae3e]:hover{color:#1890ff}.contact-info p[data-v-3080ae3e]{margin:5px 0}.footer-column[data-v-3080ae3e]{margin-bottom:20px}.footer-column h3[data-v-3080ae3e]{font-size:14px;font-weight:700;margin-bottom:10px;color:#333}.footer-column ul[data-v-3080ae3e]{list-style:none;padding:0;margin:0}.footer-column ul li[data-v-3080ae3e]{margin:5px 0;transition:color .3s ease}.footer-column ul li[data-v-3080ae3e]:hover{color:#1890ff}.qrcode-group[data-v-3080ae3e]{display:flex;gap:40px}.qrcode-item[data-v-3080ae3e]{text-align:center}.footer-bottom[data-v-3080ae3e]{text-align:center;padding:10px 0;border-top:1px solid #eaeaea}.footer-bottom p[data-v-3080ae3e]{margin:5px 0}.sidebar-container[data-v-1a8585cf]{position:fixed;right:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.1);padding:15px 10px;z-index:999}.sidebar-container .sidebar-item[data-v-1a8585cf]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-bottom:20px;color:#666;transition:all .3s}.sidebar-container .sidebar-item[data-v-1a8585cf]:last-child{margin-bottom:0}.sidebar-container .sidebar-item i[data-v-1a8585cf]{font-size:20px;margin-bottom:5px}.sidebar-container .sidebar-item .item-text[data-v-1a8585cf]{font-size:12px}.sidebar-container .sidebar-item[data-v-1a8585cf]:hover{color:#409eff}.sidebar-container .item-badge .el-badge__content[data-v-1a8585cf]{background-color:#ff4d4f;top:-5px;right:-10px}.sidebar-container .back-to-top.active[data-v-1a8585cf]{color:#409eff}@media(max-width:768px){.sidebar-container[data-v-1a8585cf]{right:10px;padding:10px 5px}.sidebar-container .sidebar-item[data-v-1a8585cf]{margin-bottom:15px}.sidebar-container .sidebar-item i[data-v-1a8585cf]{font-size:18px}.sidebar-container .sidebar-item .item-text[data-v-1a8585cf]{font-size:10px}}.back-to-top[data-v-7ea6dee0]{position:fixed;bottom:30px;right:30px;width:40px;height:40px;background-color:#409eff;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.1);transition:all .3s ease;z-index:1000}.back-to-top[data-v-7ea6dee0]:hover{background-color:#337ab7;transform:translateY(-3px)}.back-to-top .el-icon-arrow-up[data-v-7ea6dee0]{font-size:20px}#app{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;min-height:100vh;display:flex;flex-direction:column;background:#ecf2df}.main-container{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:20px;box-sizing:border-box}@media(max-width:1200px){.main-container{padding:15px}}@media(max-width:768px){.main-container{padding:10px}}.main-containers{flex:1;width:100%}*{margin:0;padding:0;box-sizing:border-box}a{text-decoration:none;color:inherit}ul{list-style:none}img{vertical-align:middle}body,html{padding:0;margin:0}div{box-sizing:border-box}.text-overflow{overflow-x:hidden;overflow-y:inherit;text-overflow:ellipsis;white-space:nowrap}.text-overflowRows{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical}.flex-between{justify-content:space-between}.flex-between,.flex-center{display:flex;align-items:center}.flex-center{justify-content:center}.flex-around{display:flex;justify-content:space-around;align-items:center}.flex-column{display:flex;flex-direction:column}.normal-margin-bottom{margin-bottom:20px}
\ No newline at end of file
+.header-nav[data-v-00f3c839]{width:100%}.header-nav .top-notice[data-v-00f3c839]{background-color:#f5f5f5;padding:8px 0}.header-nav .top-notice .container[data-v-00f3c839]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .top-notice .container p[data-v-00f3c839]{font-size:14px;color:#666;margin:0}.header-nav .top-notice .container p .highlight[data-v-00f3c839]{color:#f40;margin:0 5px;font-weight:500}.header-nav .top-notice .container .top-links[data-v-00f3c839]{display:flex;align-items:center;gap:15px;font-size:14px}.header-nav .top-notice .container .top-links .avatar[data-v-00f3c839]{width:24px;height:24px;border-radius:50%;margin-right:5px;vertical-align:middle;-o-object-fit:cover;object-fit:cover}.header-nav .top-notice .container .top-links .separator[data-v-00f3c839]{color:#ccc}.header-nav .top-notice .container .top-links .logout-btn[data-v-00f3c839],.header-nav .top-notice .container .top-links a[data-v-00f3c839]{color:#666;transition:color .2s;cursor:pointer;text-decoration:none}.header-nav .top-notice .container .top-links .logout-btn[data-v-00f3c839]:hover,.header-nav .top-notice .container .top-links a[data-v-00f3c839]:hover{color:#6a8a27}.header-nav .top-notice .container .top-links .user-link[data-v-00f3c839]{display:flex;align-items:center}.header-nav .top-notice .container .top-links .cart-link[data-v-00f3c839]{display:inline-flex;align-items:center}.header-nav .main-nav[data-v-00f3c839]{background-color:#fff;padding:15px 0;box-shadow:0 2px 5px rgba(0,0,0,.05)}.header-nav .main-nav .container[data-v-00f3c839]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .main-nav .logo a[data-v-00f3c839]{display:block}.header-nav .main-nav .logo a .logo-img[data-v-00f3c839]{height:40px;-o-object-fit:contain;object-fit:contain}.header-nav .main-nav .search-box[data-v-00f3c839]{flex:0 0 500px}@media(max-width:992px){.header-nav .main-nav .search-box[data-v-00f3c839]{flex:0 0 400px}}@media(max-width:768px){.header-nav .main-nav .search-box[data-v-00f3c839]{display:none}}.header-nav .main-nav .search-box .search-input[data-v-00f3c839]{width:100%;border:1px solid #6a8a27}.header-nav .main-nav .search-box .search-input[data-v-00f3c839] .el-input__inner{border-right:none}.header-nav .main-nav .search-box .search-input[data-v-00f3c839] .el-input-group__append{background-color:#6a8a27;border-color:#6a8a27;color:#fff}.header-nav .main-nav .search-box .hot-tags[data-v-00f3c839]{margin-top:8px;font-size:12px;color:#999;display:flex;align-items:center}.header-nav .main-nav .search-box .hot-tags span[data-v-00f3c839]{margin-right:5px}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-00f3c839]{margin:0 5px;color:#666;cursor:pointer;transition:color .2s}.header-nav .main-nav .search-box .hot-tags .hot-tag[data-v-00f3c839]:hover{color:#409eff;text-decoration:underline}.header-nav .main-nav .phone-entry a[data-v-00f3c839]{display:flex;align-items:center;color:#333;font-size:16px;text-decoration:none}.header-nav .main-nav .phone-entry a img[data-v-00f3c839]{width:24px;height:24px}.header-nav .main-nav .phone-entry a span[data-v-00f3c839]{margin-left:10px}.header-nav .main-nav .phone-entry a .cart-count[data-v-00f3c839]{display:inline-block;width:18px;height:18px;background-color:#f40;color:#fff;border-radius:50%;font-size:12px;text-align:center;line-height:18px;margin-left:5px}.header-nav .category-nav[data-v-00f3c839]{background-color:#409eff}.header-nav .category-nav .container[data-v-00f3c839]{max-width:1200px;margin:0 auto;padding:0 20px}.header-nav .category-nav .nav-list[data-v-00f3c839]{display:flex;margin:0;padding:0}@media(max-width:992px){.header-nav .category-nav .nav-list[data-v-00f3c839]{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}}.header-nav .category-nav .nav-list .nav-item[data-v-00f3c839]{list-style:none}.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-00f3c839]{display:inline-block;padding:12px 20px;color:#fff;font-size:16px;transition:background-color .2s;text-decoration:none}.header-nav .category-nav .nav-list .nav-item .nav-link.active[data-v-00f3c839],.header-nav .category-nav .nav-list .nav-item .nav-link[data-v-00f3c839]:hover{background-color:#337ab7}.footer-container[data-v-3080ae3e]{background-color:#fff;color:#666;font-size:12px;border-top:1px solid #eaeaea}.footer-top[data-v-3080ae3e]{display:flex;justify-content:space-around;padding:20px 0;flex-wrap:wrap}.footer-link[data-v-3080ae3e]{display:flex;gap:20px;align-items:center}.footer-link span[data-v-3080ae3e]{transition:color .3s ease}.footer-link span[data-v-3080ae3e]:hover{color:#1890ff}.contact-info p[data-v-3080ae3e]{margin:5px 0}.footer-column[data-v-3080ae3e]{margin-bottom:20px}.footer-column h3[data-v-3080ae3e]{font-size:14px;font-weight:700;margin-bottom:10px;color:#333}.footer-column ul[data-v-3080ae3e]{list-style:none;padding:0;margin:0}.footer-column ul li[data-v-3080ae3e]{margin:5px 0;transition:color .3s ease}.footer-column ul li[data-v-3080ae3e]:hover{color:#1890ff}.qrcode-group[data-v-3080ae3e]{display:flex;gap:40px}.qrcode-item[data-v-3080ae3e]{text-align:center}.footer-bottom[data-v-3080ae3e]{text-align:center;padding:10px 0;border-top:1px solid #eaeaea}.footer-bottom p[data-v-3080ae3e]{margin:5px 0}.sidebar-container[data-v-6df28cc6]{position:fixed;right:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.1);padding:15px 10px;z-index:999}.sidebar-container .sidebar-item[data-v-6df28cc6]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-bottom:20px;color:#666;transition:all .3s}.sidebar-container .sidebar-item[data-v-6df28cc6]:last-child{margin-bottom:0}.sidebar-container .sidebar-item i[data-v-6df28cc6]{font-size:20px;margin-bottom:5px}.sidebar-container .sidebar-item .item-text[data-v-6df28cc6]{font-size:12px}.sidebar-container .sidebar-item[data-v-6df28cc6]:hover{color:#409eff}.sidebar-container .item-badge .el-badge__content[data-v-6df28cc6]{background-color:#ff4d4f;top:-5px;right:-10px}.sidebar-container .back-to-top.active[data-v-6df28cc6]{color:#409eff}@media(max-width:768px){.sidebar-container[data-v-6df28cc6]{right:10px;padding:10px 5px}.sidebar-container .sidebar-item[data-v-6df28cc6]{margin-bottom:15px}.sidebar-container .sidebar-item i[data-v-6df28cc6]{font-size:18px}.sidebar-container .sidebar-item .item-text[data-v-6df28cc6]{font-size:10px}}.back-to-top[data-v-7ea6dee0]{position:fixed;bottom:30px;right:30px;width:40px;height:40px;background-color:#409eff;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.1);transition:all .3s ease;z-index:1000}.back-to-top[data-v-7ea6dee0]:hover{background-color:#337ab7;transform:translateY(-3px)}.back-to-top .el-icon-arrow-up[data-v-7ea6dee0]{font-size:20px}#app{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;min-height:100vh;display:flex;flex-direction:column;background:#ecf2df}.main-container{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:20px;box-sizing:border-box}@media(max-width:1200px){.main-container{padding:15px}}@media(max-width:768px){.main-container{padding:10px}}.main-containers{flex:1;width:100%}*{margin:0;padding:0;box-sizing:border-box}a{text-decoration:none;color:inherit}ul{list-style:none}img{vertical-align:middle}body,html{padding:0;margin:0}div{box-sizing:border-box}.text-overflow{overflow-x:hidden;overflow-y:inherit;text-overflow:ellipsis;white-space:nowrap}.text-overflowRows{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;word-break:break-all;display:-webkit-box;-webkit-box-orient:vertical}.flex-between{justify-content:space-between}.flex-between,.flex-center{display:flex;align-items:center}.flex-center{justify-content:center}.flex-around{display:flex;justify-content:space-around;align-items:center}.flex-column{display:flex;flex-direction:column}.normal-margin-bottom{margin-bottom:20px}
\ No newline at end of file
diff --git a/dist/index.html b/dist/index.html
index 1499a81..e025502 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -1 +1 @@
-
shiweisuzhou
\ No newline at end of file
+shiweisuzhou
\ No newline at end of file
diff --git a/dist/js/828.eee73d2f.js b/dist/js/828.deb87761.js
similarity index 99%
rename from dist/js/828.eee73d2f.js
rename to dist/js/828.deb87761.js
index bcec4fe..cda7dab 100644
--- a/dist/js/828.eee73d2f.js
+++ b/dist/js/828.deb87761.js
@@ -1,2 +1,2 @@
"use strict";(self["webpackChunkshiweisuzhou"]=self["webpackChunkshiweisuzhou"]||[]).push([[828],{5457:function(t,s,i){i.d(s,{A:function(){return l}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"product-list"},[s("div",{staticClass:"product-grid"},t._l(t.products,function(i){return s("router-link",{key:i.id,staticClass:"product-card",attrs:{to:`/Detail/${i.id}`}},[s("div",{staticClass:"product-img"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.headimg,expression:"product.headimg"}],staticClass:"product-pic",attrs:{alt:i.title}})]),s("div",{staticClass:"product-info"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"product-price"},[s("span",{staticClass:"current-price"},[t._v("¥"+t._s(i.price/100))]),i.market_price?s("span",{staticClass:"original-price"},[t._v("¥"+t._s(i.market_price/100))]):t._e()]),i.sales?s("div",{staticClass:"product-sales"},[s("span",[t._v("已售 "+t._s(i.sales_number)+" 件")])]):t._e()]),s("h3",{staticClass:"product-name"},[s("router-link",{attrs:{to:`/Detail/${i.id}`}},[t._v(" "+t._s(i.title)+" ")])],1),s("div",{staticClass:"product-actions"},[s("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"small"}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 立即购买 ")],1)],1)])])}),1),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{}},o=r,c=i(1656),n=(0,c.A)(o,a,e,!1,null,"71ee3626",null),l=n.exports},9828:function(t,s,i){i.r(s),i.d(s,{default:function(){return d}});i(4114);var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-page"},[s("el-carousel",{staticClass:"home-carousel",attrs:{height:"500px","indicator-position":"outside"}},t._l(4,function(t){return s("el-carousel-item",{key:t},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:`https://picsum.photos/1200/500?random=${t}`,expression:"`https://picsum.photos/1200/500?random=${item}`"}],staticClass:"carousel-img",attrs:{alt:"轮播图片"}})])}),1),s("div",{staticClass:"category-nav"},[s("h2",{staticClass:"section-title"},[t._v("商品分类")]),s("div",{staticClass:"category-list"},t._l(t.categories,function(i){return s("div",{key:i.id,staticClass:"category-item",on:{click:function(s){return t.$router.push(`/category/${i.id}`)}}},[s("el-icon",{staticClass:"category-icon",attrs:{name:i.icon}}),s("span",{staticClass:"category-name"},[t._v(t._s(i.name))])],1)}),0)]),s("div",{staticClass:"hot-products"},[t._m(0),s("ProductList",{attrs:{products:t.hotProducts}})],1),s("div",{staticClass:"new-products"},[t._m(1),s("ProductList",{attrs:{products:t.newProducts}})],1),s("div",{staticClass:"promotion-section"},[s("h2",{staticClass:"section-title"},[t._v("限时促销")]),s("div",{staticClass:"promotion-container"},[s("div",{staticClass:"promotion-item"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://picsum.photos/600/300?random=10",expression:"`https://picsum.photos/600/300?random=10`"}],staticClass:"promotion-img",attrs:{alt:"促销活动图片"}}),s("div",{staticClass:"promotion-info"},[s("h3",[t._v("夏季大促")]),s("p",[t._v("全场商品低至5折")]),s("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("立即抢购")])],1)]),s("div",{staticClass:"promotion-item"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://picsum.photos/600/300?random=11",expression:"`https://picsum.photos/600/300?random=11`"}],staticClass:"promotion-img",attrs:{alt:"促销活动图片"}}),s("div",{staticClass:"promotion-info"},[s("h3",[t._v("新品首发")]),s("p",[t._v("限量发售,先到先得")]),s("el-button",{attrs:{type:"primary",size:"medium"}},[t._v("立即抢购")])],1)])])])],1)},e=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"section-header"},[s("h2",{staticClass:"section-title"},[t._v("热门商品")]),s("a",{staticClass:"more-link",attrs:{href:"#"}},[t._v("查看更多 "),s("i",{staticClass:"el-icon-arrow-right"})])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"section-header"},[s("h2",{staticClass:"section-title"},[t._v("新品上市")]),s("a",{staticClass:"more-link",attrs:{href:"#"}},[t._v("查看更多 "),s("i",{staticClass:"el-icon-arrow-right"})])])}],r=i(3518),o=i(5457),c={name:"Home",components:{ProductList:o.A},data(){return{hotProducts:[{id:1,name:"超薄笔记本电脑",price:5999,originalPrice:6999,image:"https://picsum.photos/300/300?random=1",sales:1254,categoryId:1},{id:2,name:"智能手表",price:1599,originalPrice:1799,image:"https://picsum.photos/300/300?random=2",sales:856,categoryId:1},{id:3,name:"纯棉T恤",price:99,originalPrice:199,image:"https://picsum.photos/300/300?random=3",sales:2356,categoryId:2},{id:4,name:"休闲牛仔裤",price:199,originalPrice:399,image:"https://picsum.photos/300/300?random=4",sales:1890,categoryId:2},{id:5,name:"舒适沙发",price:2999,originalPrice:3999,image:"https://picsum.photos/300/300?random=5",sales:324,categoryId:3},{id:6,name:"智能扫地机器人",price:1899,originalPrice:2299,image:"https://picsum.photos/300/300?random=6",sales:754,categoryId:3}],newProducts:[{id:7,name:"高清投影仪",price:3299,originalPrice:3699,image:"https://picsum.photos/300/300?random=7",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://picsum.photos/300/300?random=8",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://picsum.photos/300/300?random=9",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://picsum.photos/300/300?random=10",sales:342,categoryId:6},{id:11,name:"无线蓝牙耳机",price:799,originalPrice:999,image:"https://picsum.photos/300/300?random=11",sales:567,categoryId:1},{id:12,name:"运动鞋",price:499,originalPrice:699,image:"https://picsum.photos/300/300?random=12",sales:432,categoryId:2}]}},computed:{...(0,r.L8)(["getCategories"]),categories(){return this.getCategories}},created(){this.fetchCategories()},methods:{...(0,r.i0)(["fetchCategories"])}},n=c,l=i(1656),p=(0,l.A)(n,a,e,!1,null,"34d6a3aa",null),d=p.exports}}]);
-//# sourceMappingURL=828.eee73d2f.js.map
\ No newline at end of file
+//# sourceMappingURL=828.deb87761.js.map
\ No newline at end of file
diff --git a/dist/js/828.deb87761.js.map b/dist/js/828.deb87761.js.map
new file mode 100644
index 0000000..8ad9f1c
--- /dev/null
+++ b/dist/js/828.deb87761.js.map
@@ -0,0 +1 @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GAAA,EACAG,KAAA,OACAQ,MAAA,KACA4B,cAAA,KACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,UACAQ,MAAA,KACA4B,cAAA,KACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,IAIAN,YAAA,CACA,CACAnC,GAAA,EACAG,KAAA,QACAQ,MAAA,KACA4B,cAAA,KACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,OACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,SACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,0CACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,0CACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,GACAG,KAAA,MACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,0CACA1B,MAAA,IACA2B,WAAA,IAIA,EACAC,SAAA,KACAC,EAAAA,EAAAA,IAAA,mBACAjB,UAAAA,GACA,YAAAkB,aACA,GAEAC,OAAAA,GACA,KAAAC,iBACA,EACAvB,QAAA,KACAwB,EAAAA,EAAAA,IAAA,uBCnOmP,I,UCQ/OvB,GAAY,OACd,EACAlC,EACA4B,GACA,EACA,KACA,WACA,MAIF,EAAeM,E","sources":["webpack://shiweisuzhou/./src/components/product/ProductList.vue","webpack://shiweisuzhou/src/components/product/ProductList.vue","webpack://shiweisuzhou/./src/components/product/ProductList.vue?43ae","webpack://shiweisuzhou/./src/components/product/ProductList.vue?0bfb","webpack://shiweisuzhou/./src/views/Home.vue","webpack://shiweisuzhou/src/views/Home.vue","webpack://shiweisuzhou/./src/views/Home.vue?a787","webpack://shiweisuzhou/./src/views/Home.vue?8611"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('router-link',{key:product.id,staticClass:\"product-card\",attrs:{\"to\":`/Detail/${product.id}`}},[_c('div',{staticClass:\"product-img\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})]),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price / 100))]),(product.market_price)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.market_price / 100))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales_number)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.title)+\" \")])],1),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 立即购买 \")],1)],1)])])}),1),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n \n
![]()
\n
\n \n
\n
\n ¥{{ product.price / 100 }}\n ¥{{ product.market_price / 100 }}\n
\n
\n 已售 {{ product.sales_number }} 件\n
\n
\n
\n \n {{ product.title }}\n \n
\n
\n \n 立即购买\n \n
\n
\n \n
\n\n \n
\n \n
\n
\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=71ee3626&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=71ee3626&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"71ee3626\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-page\"},[_c('el-carousel',{staticClass:\"home-carousel\",attrs:{\"height\":\"500px\",\"indicator-position\":\"outside\"}},_vm._l((4),function(item){return _c('el-carousel-item',{key:item},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/1200/500?random=${item}`),expression:\"`https://picsum.photos/1200/500?random=${item}`\"}],staticClass:\"carousel-img\",attrs:{\"alt\":\"轮播图片\"}})])}),1),_c('div',{staticClass:\"category-nav\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"商品分类\")]),_c('div',{staticClass:\"category-list\"},_vm._l((_vm.categories),function(category){return _c('div',{key:category.id,staticClass:\"category-item\",on:{\"click\":function($event){return _vm.$router.push(`/category/${category.id}`)}}},[_c('el-icon',{staticClass:\"category-icon\",attrs:{\"name\":category.icon}}),_c('span',{staticClass:\"category-name\"},[_vm._v(_vm._s(category.name))])],1)}),0)]),_c('div',{staticClass:\"hot-products\"},[_vm._m(0),_c('ProductList',{attrs:{\"products\":_vm.hotProducts}})],1),_c('div',{staticClass:\"new-products\"},[_vm._m(1),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1),_c('div',{staticClass:\"promotion-section\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"限时促销\")]),_c('div',{staticClass:\"promotion-container\"},[_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=10`),expression:\"`https://picsum.photos/600/300?random=10`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"夏季大促\")]),_c('p',[_vm._v(\"全场商品低至5折\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)]),_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=11`),expression:\"`https://picsum.photos/600/300?random=11`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"新品首发\")]),_c('p',[_vm._v(\"限量发售,先到先得\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"热门商品\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"新品上市\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n}]\n\nexport { render, staticRenderFns }","\n \n \n
\n \n
\n \n \n\n \n
\n
商品分类
\n
\n
\n \n {{ category.name }}\n
\n
\n
\n\n \n
\n\n \n
\n\n \n
\n
\n\n\n\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=34d6a3aa&scoped=true\"\nimport script from \"./Home.vue?vue&type=script&lang=js\"\nexport * from \"./Home.vue?vue&type=script&lang=js\"\nimport style0 from \"./Home.vue?vue&type=style&index=0&id=34d6a3aa&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"34d6a3aa\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","headimg","expression","title","_v","_s","price","market_price","_e","sales","sales_number","staticStyle","length","staticRenderFns","props","type","Array","default","methods","component","item","categories","category","on","$event","$router","push","icon","_m","hotProducts","newProducts","components","ProductList","data","originalPrice","image","categoryId","computed","mapGetters","getCategories","created","fetchCategories","mapActions"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/js/828.eee73d2f.js.map b/dist/js/828.eee73d2f.js.map
deleted file mode 100644
index d641887..0000000
--- a/dist/js/828.eee73d2f.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"js/828.eee73d2f.js","mappings":"uJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBJ,EAAIK,GAAIL,EAAIM,SAAU,SAASC,GAAS,OAAOL,EAAG,cAAc,CAACM,IAAID,EAAQE,GAAGL,YAAY,eAAeM,MAAM,CAAC,GAAK,WAAWH,EAAQE,OAAO,CAACP,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACS,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAQQ,QAASC,WAAW,oBAAoBZ,YAAY,cAAcM,MAAM,CAAC,IAAMH,EAAQU,WAAWf,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAACJ,EAAIkB,GAAG,IAAIlB,EAAImB,GAAGZ,EAAQa,MAAQ,QAASb,EAAQc,aAAcnB,EAAG,OAAO,CAACE,YAAY,kBAAkB,CAACJ,EAAIkB,GAAG,IAAIlB,EAAImB,GAAGZ,EAAQc,aAAe,QAAQrB,EAAIsB,OAAQf,EAAQgB,MAAOrB,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,OAAO,CAACF,EAAIkB,GAAG,MAAMlB,EAAImB,GAAGZ,EAAQiB,cAAc,UAAUxB,EAAIsB,OAAOpB,EAAG,KAAK,CAACE,YAAY,gBAAgB,CAACF,EAAG,cAAc,CAACQ,MAAM,CAAC,GAAK,WAAWH,EAAQE,OAAO,CAACT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AA,GAEA,CACAzC,GAAA,EACAG,KAAA,QACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,yCACA1B,MAAA,KACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,OACAQ,MAAA,KACA4B,cAAA,KACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,UACAQ,MAAA,KACA4B,cAAA,KACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,IAIAN,YAAA,CACA,CACAnC,GAAA,EACAG,KAAA,QACAQ,MAAA,KACA4B,cAAA,KACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,OACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,EACAG,KAAA,SACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,yCACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,0CACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,0CACA1B,MAAA,IACA2B,WAAA,GAEA,CACAzC,GAAA,GACAG,KAAA,MACAQ,MAAA,IACA4B,cAAA,IACAC,MAAA,0CACA1B,MAAA,IACA2B,WAAA,IAIA,EACAC,SAAA,KACAC,EAAAA,EAAAA,IAAA,mBACAjB,UAAAA,GACA,YAAAkB,aACA,GAEAC,OAAAA,GACA,KAAAC,iBACA,EACAvB,QAAA,KACAwB,EAAAA,EAAAA,IAAA,uBCnOmP,I,UCQ/OvB,GAAY,OACd,EACAlC,EACA4B,GACA,EACA,KACA,WACA,MAIF,EAAeM,E","sources":["webpack://shiweisuzhou/./src/components/product/ProductList.vue","webpack://shiweisuzhou/src/components/product/ProductList.vue","webpack://shiweisuzhou/./src/components/product/ProductList.vue?43ae","webpack://shiweisuzhou/./src/components/product/ProductList.vue?0bfb","webpack://shiweisuzhou/./src/views/Home.vue","webpack://shiweisuzhou/src/views/Home.vue","webpack://shiweisuzhou/./src/views/Home.vue?a787","webpack://shiweisuzhou/./src/views/Home.vue?8611"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('router-link',{key:product.id,staticClass:\"product-card\",attrs:{\"to\":`/Detail/${product.id}`}},[_c('div',{staticClass:\"product-img\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})]),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price / 100))]),(product.market_price)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.market_price / 100))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales_number)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.title)+\" \")])],1),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 立即购买 \")],1)],1)])])}),1),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n
\r\n \r\n
![]()
\r\n
\r\n \r\n
\r\n
\r\n ¥{{ product.price / 100 }}\r\n ¥{{ product.market_price / 100 }}\r\n
\r\n
\r\n 已售 {{ product.sales_number }} 件\r\n
\r\n
\r\n
\r\n \r\n {{ product.title }}\r\n \r\n
\r\n
\r\n \r\n 立即购买\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=71ee3626&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=71ee3626&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"71ee3626\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-page\"},[_c('el-carousel',{staticClass:\"home-carousel\",attrs:{\"height\":\"500px\",\"indicator-position\":\"outside\"}},_vm._l((4),function(item){return _c('el-carousel-item',{key:item},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/1200/500?random=${item}`),expression:\"`https://picsum.photos/1200/500?random=${item}`\"}],staticClass:\"carousel-img\",attrs:{\"alt\":\"轮播图片\"}})])}),1),_c('div',{staticClass:\"category-nav\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"商品分类\")]),_c('div',{staticClass:\"category-list\"},_vm._l((_vm.categories),function(category){return _c('div',{key:category.id,staticClass:\"category-item\",on:{\"click\":function($event){return _vm.$router.push(`/category/${category.id}`)}}},[_c('el-icon',{staticClass:\"category-icon\",attrs:{\"name\":category.icon}}),_c('span',{staticClass:\"category-name\"},[_vm._v(_vm._s(category.name))])],1)}),0)]),_c('div',{staticClass:\"hot-products\"},[_vm._m(0),_c('ProductList',{attrs:{\"products\":_vm.hotProducts}})],1),_c('div',{staticClass:\"new-products\"},[_vm._m(1),_c('ProductList',{attrs:{\"products\":_vm.newProducts}})],1),_c('div',{staticClass:\"promotion-section\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"限时促销\")]),_c('div',{staticClass:\"promotion-container\"},[_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=10`),expression:\"`https://picsum.photos/600/300?random=10`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"夏季大促\")]),_c('p',[_vm._v(\"全场商品低至5折\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)]),_c('div',{staticClass:\"promotion-item\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(`https://picsum.photos/600/300?random=11`),expression:\"`https://picsum.photos/600/300?random=11`\"}],staticClass:\"promotion-img\",attrs:{\"alt\":\"促销活动图片\"}}),_c('div',{staticClass:\"promotion-info\"},[_c('h3',[_vm._v(\"新品首发\")]),_c('p',[_vm._v(\"限量发售,先到先得\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"medium\"}},[_vm._v(\"立即抢购\")])],1)])])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"热门商品\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"section-header\"},[_c('h2',{staticClass:\"section-title\"},[_vm._v(\"新品上市\")]),_c('a',{staticClass:\"more-link\",attrs:{\"href\":\"#\"}},[_vm._v(\"查看更多 \"),_c('i',{staticClass:\"el-icon-arrow-right\"})])])\n}]\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n\r\n \r\n
\r\n
商品分类
\r\n
\r\n
\r\n \r\n {{ category.name }}\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=34d6a3aa&scoped=true\"\nimport script from \"./Home.vue?vue&type=script&lang=js\"\nexport * from \"./Home.vue?vue&type=script&lang=js\"\nimport style0 from \"./Home.vue?vue&type=style&index=0&id=34d6a3aa&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"34d6a3aa\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","headimg","expression","title","_v","_s","price","market_price","_e","sales","sales_number","staticStyle","length","staticRenderFns","props","type","Array","default","methods","component","item","categories","category","on","$event","$router","push","icon","_m","hotProducts","newProducts","components","ProductList","data","originalPrice","image","categoryId","computed","mapGetters","getCategories","created","fetchCategories","mapActions"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/js/98.2ceeb0b5.js.map b/dist/js/98.2ceeb0b5.js.map
deleted file mode 100644
index e099cb8..0000000
--- a/dist/js/98.2ceeb0b5.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"js/98.2ceeb0b5.js","mappings":"sJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgBJ,EAAIK,GAAIL,EAAIM,SAAU,SAASC,GAAS,OAAOL,EAAG,cAAc,CAACM,IAAID,EAAQE,GAAGL,YAAY,eAAeM,MAAM,CAAC,GAAK,WAAWH,EAAQE,OAAO,CAACP,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACS,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAQQ,QAASC,WAAW,oBAAoBZ,YAAY,cAAcM,MAAM,CAAC,IAAMH,EAAQU,WAAWf,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAACJ,EAAIkB,GAAG,IAAIlB,EAAImB,GAAGZ,EAAQa,MAAQ,QAASb,EAAQc,aAAcnB,EAAG,OAAO,CAACE,YAAY,kBAAkB,CAACJ,EAAIkB,GAAG,IAAI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AAc,QAEA,EAEAJ,cAAAA,GACA,KAAA/B,WAAAoC,IAAAC,IACA,KAAAtB,KACA,CACAuB,OAAAD,EAAAhE,GACAkE,OAAA,EACAC,MAAA,GAEA,mCACAxB,KAAAC,IACAoB,EAAApC,KAAAgB,EAAAJ,KAAAZ,QAGA,IC7IoP,ICQhP,GAAY,OACd,EACAtC,EACA4B,GACA,EACA,KACA,WACA,MAIF,EAAe,E","sources":["webpack://shiweisuzhou/./src/components/product/ProductList.vue","webpack://shiweisuzhou/src/components/product/ProductList.vue","webpack://shiweisuzhou/./src/components/product/ProductList.vue?43ae","webpack://shiweisuzhou/./src/components/product/ProductList.vue?0bfb","webpack://shiweisuzhou/./src/views/Index.vue","webpack://shiweisuzhou/./src/components/layout/HomeLayout.vue","webpack://shiweisuzhou/src/components/layout/HomeLayout.vue","webpack://shiweisuzhou/./src/components/layout/HomeLayout.vue?06d9","webpack://shiweisuzhou/./src/components/layout/HomeLayout.vue?b436","webpack://shiweisuzhou/src/views/Index.vue","webpack://shiweisuzhou/./src/views/Index.vue?cb95","webpack://shiweisuzhou/./src/views/Index.vue?e2bc"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('router-link',{key:product.id,staticClass:\"product-card\",attrs:{\"to\":`/Detail/${product.id}`}},[_c('div',{staticClass:\"product-img\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})]),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price / 100))]),(product.market_price)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.market_price / 100))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales_number)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.title)+\" \")])],1),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 立即购买 \")],1)],1)])])}),1),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n
\r\n \r\n
![]()
\r\n
\r\n \r\n
\r\n
\r\n ¥{{ product.price / 100 }}\r\n ¥{{ product.market_price / 100 }}\r\n
\r\n
\r\n 已售 {{ product.sales_number }} 件\r\n
\r\n
\r\n
\r\n \r\n {{ product.title }}\r\n \r\n
\r\n
\r\n \r\n 立即购买\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=71ee3626&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=71ee3626&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"71ee3626\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('HomeLayout',{attrs:{\"topBanner\":_vm.topBanner,\"tagList\":_vm.tagList}}),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"今日推荐\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[0].list}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"热销排行\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[1].list}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"新品上市\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[2].list}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-layout-container\"},[_c('div',{staticClass:\"left-nav\"},[_c('ul',{staticClass:\"nav-list\"},_vm._l((_vm.tagList),function(item){return _c('router-link',{key:item.id,staticClass:\"nav-item\",attrs:{\"to\":'/productList?id=' + item.id,\"tag\":\"li\"}},[_c('img',{attrs:{\"src\":_vm.util.showImg(item.image),\"alt\":\"\"}}),_vm._v(_vm._s(item.name)+\" \")])}),1)]),_c('div',{staticClass:\"main-content\"},[_c('el-carousel',{staticStyle:{\"height\":\"100%\"}},_vm._l((_vm.topBanner),function(item){return _c('el-carousel-item',{key:item.id},[_c('img',{staticClass:\"carousel-img\",attrs:{\"src\":item.head_img}})])}),1)],1),_c('div',{staticClass:\"right-info\"},[(_vm.$store.getters.isUserLogin)?_c('div',{staticClass:\"avatar-container\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":_vm.$store.getters.getUserInfo.avatar,\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"welcome-text\"},[_vm._v(\"Hi-欢迎您\")])]):_vm._e(),(false)?_c('div',{staticClass:\"btn-group\"},[_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoPath('/Login')}}},[_vm._v(\"登录\")]),_c('el-button',{attrs:{\"type\":\"warning\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoPath('/Register')}}},[_vm._v(\"注册\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_vm._v(\"客服\")])],1):_vm._e(),_c('div',{staticClass:\"func-icons\"},[_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/UserCenter\"}},[_c('i',{staticClass:\"icon el-icon-user\"}),_c('span',[_vm._v(\"个人中心\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/OrderList\"}},[_c('i',{staticClass:\"icon el-icon-goods\"}),_c('span',[_vm._v(\"我的订单\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/CommentManage\"}},[_c('i',{staticClass:\"icon el-icon-star-off\"}),_c('span',[_vm._v(\"评价管理\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/NoticeList\"}},[_c('i',{staticClass:\"icon el-icon-pie-chart\"}),_c('span',[_vm._v(\"公告中心\")])])],1),_c('router-link',{staticClass:\"announcement\",attrs:{\"to\":'/NoticeDetail?type=notice&id='+_vm.notice.id}},[_c('el-tag',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_vm._v(\"公告\")]),_c('span',{staticClass:\"text-overflowRows\"},[_vm._v(_vm._s(_vm.notice.title))])],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n
\r\n \r\n
{{ item.name }}\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n
![\"用户头像\"\r\n]()
\r\n
Hi-欢迎您
\r\n
\r\n\r\n
\r\n 登录\r\n 注册\r\n 客服\r\n
\r\n\r\n
\r\n \r\n \r\n 个人中心\r\n \r\n \r\n \r\n 我的订单\r\n \r\n \r\n \r\n 评价管理\r\n \r\n \r\n \r\n 公告中心\r\n \r\n
\r\n\r\n
\r\n 公告\r\n {{ notice.title }}\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HomeLayout.vue?vue&type=template&id=185af175&scoped=true\"\nimport script from \"./HomeLayout.vue?vue&type=script&lang=js\"\nexport * from \"./HomeLayout.vue?vue&type=script&lang=js\"\nimport style0 from \"./HomeLayout.vue?vue&type=style&index=0&id=185af175&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"185af175\",\n null\n \n)\n\nexport default component.exports","\r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=a8d92a36&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=a8d92a36&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a8d92a36\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","headimg","expression","title","_v","_s","price","market_price","_e","sales","sales_number","staticStyle","length","staticRenderFns","props","type","Array","default","methods","component","topBanner","tagList","prouctList","list","item","util","showImg","image","head_img","$store","getters","isUserLogin","getUserInfo","avatar","notice","data","mounted","post","then","res","components","HomeLayout","ProductList","VUE_APP_GLOBAL_TAGS","pc_index_recommend","pc_index_hot","pc_index_new","newProducts","originalPrice","categoryId","created","getTopBanner","getTags","getProductList","type_id","position","pid","pc_all","map","i","tag_id","offset","limit"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/js/98.2ceeb0b5.js b/dist/js/98.61542a9e.js
similarity index 99%
rename from dist/js/98.2ceeb0b5.js
rename to dist/js/98.61542a9e.js
index 4ebf32e..52deafe 100644
--- a/dist/js/98.2ceeb0b5.js
+++ b/dist/js/98.61542a9e.js
@@ -1,2 +1,2 @@
"use strict";(self["webpackChunkshiweisuzhou"]=self["webpackChunkshiweisuzhou"]||[]).push([[98],{5457:function(t,s,i){i.d(s,{A:function(){return l}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"product-list"},[s("div",{staticClass:"product-grid"},t._l(t.products,function(i){return s("router-link",{key:i.id,staticClass:"product-card",attrs:{to:`/Detail/${i.id}`}},[s("div",{staticClass:"product-img"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.headimg,expression:"product.headimg"}],staticClass:"product-pic",attrs:{alt:i.title}})]),s("div",{staticClass:"product-info"},[s("div",{staticClass:"flex-between"},[s("div",{staticClass:"product-price"},[s("span",{staticClass:"current-price"},[t._v("¥"+t._s(i.price/100))]),i.market_price?s("span",{staticClass:"original-price"},[t._v("¥"+t._s(i.market_price/100))]):t._e()]),i.sales?s("div",{staticClass:"product-sales"},[s("span",[t._v("已售 "+t._s(i.sales_number)+" 件")])]):t._e()]),s("h3",{staticClass:"product-name"},[s("router-link",{attrs:{to:`/Detail/${i.id}`}},[t._v(" "+t._s(i.title)+" ")])],1),s("div",{staticClass:"product-actions"},[s("el-button",{staticStyle:{"background-color":"#6a8a27",border:"none"},attrs:{type:"primary",size:"small"}},[s("el-icon",{attrs:{name:"el-icon-shopping-cart"}}),t._v(" 立即购买 ")],1)],1)])])}),1),0===t.products.length?s("div",{staticClass:"no-products"},[s("el-empty",{attrs:{description:"暂无相关商品"}})],1):t._e()])},e=[],r={name:"ProductList",props:{products:{type:Array,default:()=>[]}},methods:{}},c=r,o=i(1656),n=(0,o.A)(c,a,e,!1,null,"71ee3626",null),l=n.exports},7098:function(t,s,i){i.r(s),i.d(s,{default:function(){return h}});var a=function(){var t=this,s=t._self._c;return s("div",{staticClass:"bg"},[s("HomeLayout",{attrs:{topBanner:t.topBanner,tagList:t.tagList}}),s("div",{staticClass:"product-box"},[s("h2",[t._v("今日推荐")]),s("ProductList",{attrs:{products:t.prouctList[0].list}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("热销排行")]),s("ProductList",{attrs:{products:t.prouctList[1].list}})],1),s("div",{staticClass:"product-box"},[s("h2",[t._v("新品上市")]),s("ProductList",{attrs:{products:t.prouctList[2].list}})],1)],1)},e=[],r=(i(8111),i(1701),function(){var t=this,s=t._self._c;return s("div",{staticClass:"home-layout-container"},[s("div",{staticClass:"left-nav"},[s("ul",{staticClass:"nav-list"},t._l(t.tagList,function(i){return s("router-link",{key:i.id,staticClass:"nav-item",attrs:{to:"/productList?id="+i.id,tag:"li"}},[s("img",{attrs:{src:t.util.showImg(i.image),alt:""}}),t._v(t._s(i.name)+" ")])}),1)]),s("div",{staticClass:"main-content"},[s("el-carousel",{staticStyle:{height:"100%"}},t._l(t.topBanner,function(t){return s("el-carousel-item",{key:t.id},[s("img",{staticClass:"carousel-img",attrs:{src:t.head_img}})])}),1)],1),s("div",{staticClass:"right-info"},[t.$store.getters.isUserLogin?s("div",{staticClass:"avatar-container"},[s("img",{staticClass:"user-avatar",attrs:{src:t.$store.getters.getUserInfo.avatar,alt:"用户头像"}}),s("div",{staticClass:"welcome-text"},[t._v("Hi-欢迎您")])]):t._e(),t._e(),s("div",{staticClass:"func-icons"},[s("router-link",{staticClass:"icon-item",attrs:{to:"/User/UserCenter"}},[s("i",{staticClass:"icon el-icon-user"}),s("span",[t._v("个人中心")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/OrderList"}},[s("i",{staticClass:"icon el-icon-goods"}),s("span",[t._v("我的订单")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/User/CommentManage"}},[s("i",{staticClass:"icon el-icon-star-off"}),s("span",[t._v("评价管理")])]),s("router-link",{staticClass:"icon-item",attrs:{to:"/NoticeList"}},[s("i",{staticClass:"icon el-icon-pie-chart"}),s("span",[t._v("公告中心")])])],1),s("router-link",{staticClass:"announcement",attrs:{to:"/NoticeDetail?type=notice&id="+t.notice.id}},[s("el-tag",{attrs:{type:"danger",size:"mini"}},[t._v("公告")]),s("span",{staticClass:"text-overflowRows"},[t._v(t._s(t.notice.title))])],1)],1)])}),c=[],o={name:"HomeLayout",data(){return{notice:""}},props:{topBanner:{type:Array,default:()=>[]},tagList:{type:Array,default:()=>[]}},mounted(){this.post({},"/api/anncmnt/getLatest").then(t=>{this.notice=t.data})}},n=o,l=i(1656),d=(0,l.A)(n,r,c,!1,null,"185af175",null),p=d.exports,u=i(5457),g={components:{HomeLayout:p,ProductList:u.A},data(){return{topBanner:[],tagList:[],prouctList:[{id:this.VUE_APP_GLOBAL_TAGS.pc_index_recommend,title:"今日推荐",list:[]},{id:this.VUE_APP_GLOBAL_TAGS.pc_index_hot,title:"热销排行",list:[]},{id:this.VUE_APP_GLOBAL_TAGS.pc_index_new,title:"新品上市",list:[]}],newProducts:[{id:7,name:"高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪高清投影仪",price:3299,originalPrice:3699,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:156,categoryId:1},{id:8,name:"保湿面霜",price:299,originalPrice:359,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:423,categoryId:4},{id:9,name:"有机水果礼盒",price:159,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:287,categoryId:5},{id:10,name:"经典文学名著",price:129,originalPrice:199,image:"https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicType/topImg.png",sales:342,categoryId:6}]}},created(){this.getTopBanner(),this.getTags(),this.getProductList()},methods:{getTopBanner(){this.post({type_id:6,position:0},"/api/adv/getAdv").then(t=>{t&&(this.topBanner=t.data)})},getTags(){this.post({pid:683},"/api/product/tag_list").then(t=>{this.tagList=t.data,this.tagList[0].id=this.VUE_APP_GLOBAL_TAGS.pc_all})},getProductList(){this.prouctList.map(t=>{this.post({tag_id:t.id,offset:0,limit:4},"/api/product/get_product_by_tag").then(s=>{t.list=s.data.list})})}}},m=g,_=(0,l.A)(m,a,e,!1,null,"a8d92a36",null),h=_.exports}}]);
-//# sourceMappingURL=98.2ceeb0b5.js.map
\ No newline at end of file
+//# sourceMappingURL=98.61542a9e.js.map
\ No newline at end of file
diff --git a/dist/js/98.61542a9e.js.map b/dist/js/98.61542a9e.js.map
new file mode 100644
index 0000000..a170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,IAEA,CACA5B,GAAA,KAAAgD,oBAAAE,aACA1C,MAAA,OACAoB,KAAA,IAEA,CACA5B,GAAA,KAAAgD,oBAAAG,aACA3C,MAAA,OACAoB,KAAA,KAGAwB,YAAA,CACA,CACApD,GAAA,EACAG,KAAA,2CACAQ,MAAA,KACA0C,cAAA,KACArB,MACA,8EACAlB,MAAA,IACAwC,WAAA,GAEA,CACAtD,GAAA,EACAG,KAAA,OACAQ,MAAA,IACA0C,cAAA,IACArB,MACA,8EACAlB,MAAA,IACAwC,WAAA,GAEA,CACAtD,GAAA,EACAG,KAAA,SACAQ,MAAA,IACA0C,cAAA,IACArB,MACA,8EACAlB,MAAA,IACAwC,WAAA,GAEA,CACAtD,GAAA,GACAG,KAAA,SACAQ,MAAA,IACA0C,cAAA,IACArB,MACA,8EACAlB,MAAA,IACAwC,WAAA,IAIA,EACAC,OAAAA,GACA,KAAAC,eACA,KAAAC,UACA,KAAAC,gBACA,EACAnC,QAAA,CAEAiC,YAAAA,GACA,KAAAd,KACA,CACAiB,QAAA,EACAC,SAAA,GAEA,mBACAjB,KAAAC,IACAA,IACA,KAAAnB,UAAAmB,EAAAJ,OAGA,EAEAiB,OAAAA,GACA,KAAAf,KACA,CACAmB,IAAA,KAEA,yBACAlB,KAAAC,IACA,KAAAlB,QAAAkB,EAAAJ,KACA,KAAAd,QAAA,GAAA1B,GAAA,KAAAgD,oBAAAc,QAEA,EAEAJ,cAAAA,GACA,KAAA/B,WAAAoC,IAAAC,IACA,KAAAtB,KACA,CACAuB,OAAAD,EAAAhE,GACAkE,OAAA,EACAC,MAAA,GAEA,mCACAxB,KAAAC,IACAoB,EAAApC,KAAAgB,EAAAJ,KAAAZ,QAGA,IC7IoP,ICQhP,GAAY,OACd,EACAtC,EACA4B,GACA,EACA,KACA,WACA,MAIF,EAAe,E","sources":["webpack://shiweisuzhou/./src/components/product/ProductList.vue","webpack://shiweisuzhou/src/components/product/ProductList.vue","webpack://shiweisuzhou/./src/components/product/ProductList.vue?43ae","webpack://shiweisuzhou/./src/components/product/ProductList.vue?0bfb","webpack://shiweisuzhou/./src/views/Index.vue","webpack://shiweisuzhou/./src/components/layout/HomeLayout.vue","webpack://shiweisuzhou/src/components/layout/HomeLayout.vue","webpack://shiweisuzhou/./src/components/layout/HomeLayout.vue?06d9","webpack://shiweisuzhou/./src/components/layout/HomeLayout.vue?b436","webpack://shiweisuzhou/src/views/Index.vue","webpack://shiweisuzhou/./src/views/Index.vue?cb95","webpack://shiweisuzhou/./src/views/Index.vue?e2bc"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"product-list\"},[_c('div',{staticClass:\"product-grid\"},_vm._l((_vm.products),function(product){return _c('router-link',{key:product.id,staticClass:\"product-card\",attrs:{\"to\":`/Detail/${product.id}`}},[_c('div',{staticClass:\"product-img\"},[_c('img',{directives:[{name:\"lazy\",rawName:\"v-lazy\",value:(product.headimg),expression:\"product.headimg\"}],staticClass:\"product-pic\",attrs:{\"alt\":product.title}})]),_c('div',{staticClass:\"product-info\"},[_c('div',{staticClass:\"flex-between\"},[_c('div',{staticClass:\"product-price\"},[_c('span',{staticClass:\"current-price\"},[_vm._v(\"¥\"+_vm._s(product.price / 100))]),(product.market_price)?_c('span',{staticClass:\"original-price\"},[_vm._v(\"¥\"+_vm._s(product.market_price / 100))]):_vm._e()]),(product.sales)?_c('div',{staticClass:\"product-sales\"},[_c('span',[_vm._v(\"已售 \"+_vm._s(product.sales_number)+\" 件\")])]):_vm._e()]),_c('h3',{staticClass:\"product-name\"},[_c('router-link',{attrs:{\"to\":`/Detail/${product.id}`}},[_vm._v(\" \"+_vm._s(product.title)+\" \")])],1),_c('div',{staticClass:\"product-actions\"},[_c('el-button',{staticStyle:{\"background-color\":\"#6a8a27\",\"border\":\"none\"},attrs:{\"type\":\"primary\",\"size\":\"small\"}},[_c('el-icon',{attrs:{\"name\":\"el-icon-shopping-cart\"}}),_vm._v(\" 立即购买 \")],1)],1)])])}),1),(_vm.products.length === 0)?_c('div',{staticClass:\"no-products\"},[_c('el-empty',{attrs:{\"description\":\"暂无相关商品\"}})],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n
\n
\n \n
![]()
\n
\n \n
\n
\n ¥{{ product.price / 100 }}\n ¥{{ product.market_price / 100 }}\n
\n
\n 已售 {{ product.sales_number }} 件\n
\n
\n
\n \n {{ product.title }}\n \n
\n
\n \n 立即购买\n \n
\n
\n \n
\n\n \n
\n \n
\n
\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ProductList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ProductList.vue?vue&type=template&id=71ee3626&scoped=true\"\nimport script from \"./ProductList.vue?vue&type=script&lang=js\"\nexport * from \"./ProductList.vue?vue&type=script&lang=js\"\nimport style0 from \"./ProductList.vue?vue&type=style&index=0&id=71ee3626&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"71ee3626\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"bg\"},[_c('HomeLayout',{attrs:{\"topBanner\":_vm.topBanner,\"tagList\":_vm.tagList}}),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"今日推荐\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[0].list}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"热销排行\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[1].list}})],1),_c('div',{staticClass:\"product-box\"},[_c('h2',[_vm._v(\"新品上市\")]),_c('ProductList',{attrs:{\"products\":_vm.prouctList[2].list}})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"home-layout-container\"},[_c('div',{staticClass:\"left-nav\"},[_c('ul',{staticClass:\"nav-list\"},_vm._l((_vm.tagList),function(item){return _c('router-link',{key:item.id,staticClass:\"nav-item\",attrs:{\"to\":'/productList?id=' + item.id,\"tag\":\"li\"}},[_c('img',{attrs:{\"src\":_vm.util.showImg(item.image),\"alt\":\"\"}}),_vm._v(_vm._s(item.name)+\" \")])}),1)]),_c('div',{staticClass:\"main-content\"},[_c('el-carousel',{staticStyle:{\"height\":\"100%\"}},_vm._l((_vm.topBanner),function(item){return _c('el-carousel-item',{key:item.id},[_c('img',{staticClass:\"carousel-img\",attrs:{\"src\":item.head_img}})])}),1)],1),_c('div',{staticClass:\"right-info\"},[(_vm.$store.getters.isUserLogin)?_c('div',{staticClass:\"avatar-container\"},[_c('img',{staticClass:\"user-avatar\",attrs:{\"src\":_vm.$store.getters.getUserInfo.avatar,\"alt\":\"用户头像\"}}),_c('div',{staticClass:\"welcome-text\"},[_vm._v(\"Hi-欢迎您\")])]):_vm._e(),(false)?_c('div',{staticClass:\"btn-group\"},[_c('el-button',{attrs:{\"type\":\"danger\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoPath('/Login')}}},[_vm._v(\"登录\")]),_c('el-button',{attrs:{\"type\":\"warning\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.gotoPath('/Register')}}},[_vm._v(\"注册\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"}},[_vm._v(\"客服\")])],1):_vm._e(),_c('div',{staticClass:\"func-icons\"},[_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/UserCenter\"}},[_c('i',{staticClass:\"icon el-icon-user\"}),_c('span',[_vm._v(\"个人中心\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/OrderList\"}},[_c('i',{staticClass:\"icon el-icon-goods\"}),_c('span',[_vm._v(\"我的订单\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/User/CommentManage\"}},[_c('i',{staticClass:\"icon el-icon-star-off\"}),_c('span',[_vm._v(\"评价管理\")])]),_c('router-link',{staticClass:\"icon-item\",attrs:{\"to\":\"/NoticeList\"}},[_c('i',{staticClass:\"icon el-icon-pie-chart\"}),_c('span',[_vm._v(\"公告中心\")])])],1),_c('router-link',{staticClass:\"announcement\",attrs:{\"to\":'/NoticeDetail?type=notice&id='+_vm.notice.id}},[_c('el-tag',{attrs:{\"type\":\"danger\",\"size\":\"mini\"}},[_vm._v(\"公告\")]),_c('span',{staticClass:\"text-overflowRows\"},[_vm._v(_vm._s(_vm.notice.title))])],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n
\r\n \r\n
{{ item.name }}\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n
![\"用户头像\"\r\n]()
\r\n
Hi-欢迎您
\r\n
\r\n\r\n
\r\n 登录\r\n 注册\r\n 客服\r\n
\r\n\r\n
\r\n \r\n \r\n 个人中心\r\n \r\n \r\n \r\n 我的订单\r\n \r\n \r\n \r\n 评价管理\r\n \r\n \r\n \r\n 公告中心\r\n \r\n
\r\n\r\n
\r\n 公告\r\n {{ notice.title }}\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n ","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HomeLayout.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HomeLayout.vue?vue&type=template&id=185af175&scoped=true\"\nimport script from \"./HomeLayout.vue?vue&type=script&lang=js\"\nexport * from \"./HomeLayout.vue?vue&type=script&lang=js\"\nimport style0 from \"./HomeLayout.vue?vue&type=style&index=0&id=185af175&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"185af175\",\n null\n \n)\n\nexport default component.exports","\r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=a8d92a36&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=a8d92a36&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a8d92a36\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_l","products","product","key","id","attrs","directives","name","rawName","value","headimg","expression","title","_v","_s","price","market_price","_e","sales","sales_number","staticStyle","length","staticRenderFns","props","type","Array","default","methods","component","topBanner","tagList","prouctList","list","item","util","showImg","image","head_img","$store","getters","isUserLogin","getUserInfo","avatar","notice","data","mounted","post","then","res","components","HomeLayout","ProductList","VUE_APP_GLOBAL_TAGS","pc_index_recommend","pc_index_hot","pc_index_new","newProducts","originalPrice","categoryId","created","getTopBanner","getTags","getProductList","type_id","position","pid","pc_all","map","i","tag_id","offset","limit"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/js/app.b47ce479.js b/dist/js/app.b47ce479.js
new file mode 100644
index 0000000..34b8207
--- /dev/null
+++ b/dist/js/app.b47ce479.js
@@ -0,0 +1,2 @@
+(function(){"use strict";var e={2199:function(e,t,n){n(4114);var o=n(6674),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},["Register"!==e.$route.name?t("HeaderNav"):e._e(),"Login"!==e.$route.name?t("main",{staticClass:"main-container"},[t("router-view")],1):e._e(),"Login"==e.$route.name?t("main",{staticClass:"main-containers"},[t("router-view")],1):e._e(),"Register"!==e.$route.name?t("Sidebar"):e._e(),"Register"!==e.$route.name?t("Footer"):e._e()],1)},r=[],i=function(){var e=this,t=e._self._c;return t("header",{staticClass:"header-nav"},[t("div",{staticClass:"top-notice"},[t("div",{staticClass:"container"},[t("p",[e._v(" 欢迎来到时味苏州平台! "),e._e()],1),t("div",{staticClass:"top-links"},[e.isLogin?t("router-link",{staticClass:"user-link",attrs:{to:"/User"}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"avatar",attrs:{alt:"用户头像"}}),e._v(" "+e._s(e.userInfo.username)+" ")]):t("router-link",{attrs:{to:"/Login"}},[e._v("登录")]),e._e(),e._e(),t("router-link",{attrs:{to:"/User"}},[e._v("采购人中心")]),t("router-link",{staticClass:"cart-link",attrs:{to:"/User/ShoppingCart"}},[e._v(" 购物车"),e.cartTotalCount>0?t("span",[e._v("("+e._s(e.cartTotalCount)+"件)")]):e._e()]),e.isLogin?t("router-link",{attrs:{to:"/User/OrderList"}},[e._v("我的订单")]):e._e(),e.isLogin?t("div",{staticClass:"logout-btn",on:{click:e.handleLogout}},[e._v(" 退出 ")]):e._e()],1)])]),t("div",{staticClass:"main-nav"},[t("div",{staticClass:"container"},[t("div",{staticClass:"logo"},[t("router-link",{attrs:{to:"/"}},[t("img",{staticClass:"logo-img",attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png",alt:"logo"},on:{click:function(t){e.searchText=""}}})])],1),t("div",{staticClass:"search-box"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入搜索内容"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSearch},slot:"append"})],1),e.hotList.length>0?t("div",{staticClass:"hot-tags"},[t("span",[e._v("热门搜索:")]),e._l(e.hotList,function(n,o){return t("div",{key:o,staticClass:"hot-tag",on:{click:function(t){e.searchText=n.name,e.handleSearch()}}},[e._v(" "+e._s(n.name)+" ")])})],2):e._e()],1),t("div",{staticClass:"phone-entry"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("img",{staticStyle:{"margin-right":"5px"},attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png",alt:"联系电话"}}),t("span",[e._v("0512-80822586")]),(e.cartTotalCount,e._e())])])])]),e.categories.length>0?t("div",{staticClass:"category-nav"},[t("div",{staticClass:"container"},[e._e()])]):e._e()])},s=[],c=n(3518),l={name:"HeaderNav",data(){return{searchText:"",hotList:[]}},computed:{...(0,c.L8)(["getCategories","getCartTotalCount","isUserLogin","getUserInfo"]),categories(){return this.getCategories||[]},cartTotalCount(){return this.getCartTotalCount||0},isLogin(){return this.isUserLogin},userInfo(){return this.getUserInfo||{}}},created(){this.fetchCategories(),this.post({offset:0,limit:5},"/api/search/hot").then(e=>{this.hotList=e.data})},methods:{...(0,c.i0)(["fetchCategories","logout"]),handleSearch(){this.searchText.trim()&&(this.$store.commit("setSearchText",this.searchText),"/ProductList"===this.$route.path||this.$router.push({path:"/ProductList",query:{keyword:this.searchText,type:"search"}}))},handleLogout(){this.$confirm("确定要退出登录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.logout().then(()=>{this.$message.success("退出登录成功"),localStorage.setItem("redirectPath",this.$route.path),this.$router.push("/Login")}).catch(e=>{this.$message.error("退出失败:"+(e.message||"未知错误"))})}).catch(()=>{})}}},u=l,d=n(1656),p=(0,d.A)(u,i,s,!1,null,"00f3c839",null),h=p.exports,m=function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-container"},[t("div",{staticClass:"footer-top"},[e._l(e.nonQrcodeColumns,function(n,o){return t("div",{key:n.id,staticClass:"footer-column"},[t("h3",[e._v(e._s(n.title))]),t("ul",e._l(n.list,function(n,a){return t("li",{key:a,style:{cursor:o<4?"pointer":""},on:{click:function(t){o<4&&e.gotoDetail(n)}}},[e._v(" "+e._s(n.title)+" ")])}),0)])}),t("div",{staticClass:"qrcode-group"},e._l(e.qrcodeColumn.list,function(n,o){return t("div",{key:o,staticClass:"qrcode-item"},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.util.showImg(n.image)}}),t("p",[e._v(e._s(n.title))])])}),0)],2),e._m(0)])},f=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-bottom"},[t("p",[e._v("版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1")]),t("p",[e._v("本网站由 江苏大运远见文化科技发展有限公司 运营维护")])])}],g=(n(8111),n(2489),n(116),n(7588),{name:"Footer",data(){return{list:[{id:1,title:"关于我们",list:[]},{id:2,title:"新手上路",list:[]},{id:5,title:"交易流程",list:[]},{id:3,title:"常见问题",list:[]},{id:6,title:"联系方式",list:[]},{id:4,title:"二维码推荐",list:[]}]}},computed:{nonQrcodeColumns(){return this.list.filter(e=>"二维码推荐"!==e.title)},qrcodeColumn(){return this.list.find(e=>"二维码推荐"===e.title)||{list:[]}}},mounted(){this.list.forEach(e=>{this.get({type_id:e.id},"/api/navigation/getNavigationByTypeList").then(t=>{e.list=t.data})})},methods:{gotoDetail(e){e.link_url?window.location.href=e.link_url:this.$router.push(`/NoticeDetail?type=footer&id=${e.id}`)}}}),v=g,b=(0,d.A)(v,m,f,!1,null,"3080ae3e",null),C=b.exports,y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-container"},[t("div",{staticClass:"sidebar-item",on:{click:e.handleCartClick}},[t("el-badge",{staticClass:"item-badge",attrs:{value:e.$store.getters.getCartTotalCount}},[t("i",{staticClass:"el-icon-shopping-cart-full"})]),t("div",{staticClass:"item-text"},[e._v("购物车")])],1),t("div",{staticClass:"sidebar-item",on:{click:e.handleServiceClick}},[t("i",{staticClass:"el-icon-headset"}),t("div",{staticClass:"item-text"},[e._v("在线客服")])]),t("div",{staticClass:"sidebar-item back-to-top",class:{active:e.isShowBackTop},on:{click:e.handleBackToTop}},[t("i",{staticClass:"el-icon-caret-top"}),t("div",{staticClass:"item-text"},[e._v("回到顶部")])])])},_=[],k=n(5129),T={name:"Sidebar",data(){return{cartCount:0,isShowBackTop:!1,scrollTimer:null}},computed:{...(0,c.L8)(["getCartTotalCount"])},mounted(){window.addEventListener("scroll",this.handleScroll),this.$store.dispatch("fetchCartCount")},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),this.scrollTimer&&clearTimeout(this.scrollTimer)},methods:{handleCartClick(){this.$router.push("/User/ShoppingCart")},handleServiceClick(){const e=k.A.state.user?.info?.token||"";window.location.href="https://api.sutenong.com/kefu?token="+e},handleBackToTop(){window.scrollTo({top:0,behavior:"smooth"})},handleScroll(){this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isShowBackTop=window.pageYOffset>300},200)}}},w=T,A=(0,d.A)(w,y,_,!1,null,"6df28cc6",null),L=A.exports,x=function(){var e=this,t=e._self._c;return e.showBackToTop?t("div",{staticClass:"back-to-top",on:{click:e.scrollToTop}},[t("el-icon",{attrs:{name:"el-icon-arrow-up"}})],1):e._e()},O=[],S={name:"BackToTop",data(){return{showBackToTop:!1}},mounted(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll(){this.showBackToTop=window.pageYOffset>500},scrollToTop(){const e=window.setInterval(()=>{const t=window.pageYOffset;t>0?window.scrollTo(0,t-Math.max(20,t/10)):window.clearInterval(e)},16)}}},U=S,P=(0,d.A)(U,x,O,!1,null,"7ea6dee0",null),E=P.exports,I={name:"App",components:{HeaderNav:h,Footer:C,BackToTop:E,Sidebar:L},computed:{...(0,c.L8)(["getLoadingStatus"]),loading(){return this.getLoadingStatus}}},B=I,D=(0,d.A)(B,a,r,!1,null,null,null),$=D.exports,R=n(6178);o["default"].use(R.Ay);const N=R.Ay.prototype.push;R.Ay.prototype.push=function(e){return N.call(this,e).catch(e=>{if("NavigationDuplicated"!==e.name)throw e})};const z=new R.Ay({mode:"history",base:"/",routes:[{path:"/",name:"Index",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(98).then(n.bind(n,7098))},{path:"/Login",name:"Login",meta:{title:"登录 - 精品商城",keepAlive:!1},component:()=>n.e(700).then(n.bind(n,1700))},{path:"/Register",name:"Register",meta:{title:"注册 - 精品商城",keepAlive:!1},component:()=>n.e(29).then(n.bind(n,3029))},{path:"/Home",name:"Home",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(828).then(n.bind(n,9828))},{path:"/Detail/:id",name:"Detail",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(646).then(n.bind(n,5646))},{path:"/ProductList",name:"ProductList",meta:{title:"商品列表",keepAlive:!1},component:()=>n.e(87).then(n.bind(n,8087))},{path:"/ProductReview",name:"ProductReview",meta:{title:"商品评价",keepAlive:!1},component:()=>n.e(779).then(n.bind(n,4779))},{path:"/NoticeList",name:"NoticeList",meta:{title:"公告列表",keepAlive:!1},component:()=>n.e(601).then(n.bind(n,6601))},{path:"/NoticeDetail",name:"NoticeDetail",meta:{title:"公告详情",keepAlive:!1},component:()=>n.e(989).then(n.bind(n,3989))},{path:"/User",name:"User",component:()=>n.e(462).then(n.bind(n,462)),redirect:"/User/UserCenter",children:[{path:"UserCenter",name:"UserCenter",component:()=>n.e(709).then(n.bind(n,5709))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>n.e(497).then(n.bind(n,7497))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>n.e(192).then(n.bind(n,1192))},{path:"ViewHistory",name:"ViewHistory",meta:{title:"我的足迹 - 精品商城",keepAlive:!1},component:()=>n.e(33).then(n.bind(n,4033))},{path:"UserAddress",name:"UserAddress",meta:{title:"我的收货地址 - 精品商城",keepAlive:!1},component:()=>n.e(208).then(n.bind(n,5208))},{path:"UserInvoice",name:"UserInvoice",meta:{title:"发票抬头 - 精品商城",keepAlive:!1},component:()=>n.e(612).then(n.bind(n,9231))},{path:"UserInvoiceList",name:"UserInvoiceList",meta:{title:"我的发票 - 精品商城",keepAlive:!1},component:()=>n.e(688).then(n.bind(n,5688))},{path:"ShoppingCart",name:"ShoppingCart",meta:{title:"购物车 - 精品商城",keepAlive:!1},component:()=>n.e(630).then(n.bind(n,2630))},{path:"CommentManage",name:"CommentManage",meta:{title:"评价管理 - 精品商城",keepAlive:!1},component:()=>n.e(990).then(n.bind(n,4990))},{path:"ContractList",name:"ContractList",meta:{title:"合同管理 - 精品商城",keepAlive:!1},component:()=>n.e(719).then(n.bind(n,100))},{path:"MessageList",name:"MessageList",meta:{title:"消息中心 - 精品商城",keepAlive:!1},component:()=>n.e(838).then(n.bind(n,7838))},{path:"PurchaserAdd",name:"PurchaserAdd",meta:{title:"添加采购单位信息 - 精品商城",keepAlive:!1},component:()=>n.e(995).then(n.bind(n,6995))}]},{path:"/Order",name:"Order",meta:{title:"下单",keepAlive:!1},component:()=>n.e(807).then(n.bind(n,1807))},{path:"/OrderDetail",name:"OrderDetail",meta:{title:"订单详情 - 精品商城",keepAlive:!1},component:()=>n.e(711).then(n.bind(n,8711))},{path:"/OrderPay",name:"OrderPay",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(677).then(n.bind(n,3677))},{path:"/OrderPayB2B",name:"OrderPayB2B",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(452).then(n.bind(n,1452))},{path:"/OrderPayCode",name:"OrderPayCode",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(244).then(n.bind(n,244))},{path:"/OrderPaySuccess",name:"OrderPaySuccess",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(169).then(n.bind(n,7169))}],scrollBehavior(e,t,n){return{x:0,y:0}}});z.beforeEach((e,t,n)=>{if(e.meta.title&&(document.title=e.meta.title),e.meta.requireAuth){const t=k.A.state.user?.info?.token||"";t?n():n({path:"/Login",query:{redirect:e.fullPath}})}else n()});var j=z,q=n(9143),G=n.n(q),M=n(5847),V=n(4373);const F=V.A.create({timeout:6e3});F.interceptors.request.use(e=>{const{customBaseURL:t}=e.params||e.data||{};t?(e.baseURL=t,e.params?delete e.params.customBaseURL:e.data&&delete e.data.customBaseURL):e.baseURL="https://api.sutenong.com";const n=k.A.state.user?.info?.token||"";return e.headers["token"]=n||"",e.headers["Content-Type"]="application/json;charset=UTF-8","get"===e.method?.toLowerCase()?e.params={platform_type:2,...e.params}:e.data={platform_type:2,...e.data},!1!==e.loading&&(e.loadingInstance=q.Loading.service({lock:!0,text:"加载中...",background:"rgba(0, 0, 0, 0.7)"})),e},e=>Promise.reject(e)),F.interceptors.response.use(e=>{if(e.config.loadingInstance&&e.config.loadingInstance.close(),200!==e.status&&1!==e.status){const t=`请求失败,状态码:${e.status}`;return q.MessageBox.alert(t,"错误提示",{confirmButtonText:"确定",type:"error"}),Promise.reject(new Error(t))}{const t=e.data;if(1===t.code||200===t.code)return t;{const e=t.msg||`业务处理失败,错误码:${t.code}`;q.MessageBox.alert(e,"错误提示",{confirmButtonText:"确定",type:"error"}).then(()=>{if(401===t.code){const e=j.currentRoute.fullPath;"/Login"!==e&&localStorage.setItem("redirectPath",e),j.push("/Login")}}).catch(()=>{})}}},e=>{if(e.config&&e.config.loadingInstance&&e.config.loadingInstance.close(),e.response&&e.response.status)switch(e.response.status){case 401:q.MessageBox.confirm("请登录后操作","提示",{confirmButtonText:"去登录",cancelButtonText:"取消",type:"warning"}).then(()=>{j.push("/Login")}).catch(()=>{});break;case 404:(0,q.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break;default:(0,q.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break}return Promise.reject(e)}),o["default"].prototype.get=(e,t,n=!1)=>new Promise((o,a)=>{F.get(t,{params:e,loading:n}).then(e=>{o(e)}).catch(e=>{a(e)})}),o["default"].prototype.post=(e,t,n=!1)=>new Promise((o,a)=>{F.post(t,e,{loading:n}).then(e=>{o(e)}).catch(e=>{a(e)})});var H={install(e){e.prototype.util={formateRichText(e){if(!e)return"";var t=new RegExp("
'),t=new RegExp("section","g"),e=e.replace(t,"div"),t=new RegExp("↵","g"),e=e.replace(t,"
"),e=e.replace(/{t.onload=()=>{e(t.result)}})},copyId(t){const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),e.prototype.$message({message:"复制成功",type:"success"})}}}};o["default"].use(H),o["default"].config.productionTip=!1,o["default"].use(G());let Z="production";console.log(Z),o["default"].prototype.VUE_APP_GLOBAL_TAGS={pc_all:675,all_prod:676,pc_index_recommend:683,pc_index_hot:684,pc_index_new:685},"development"===Z&&(o["default"].prototype.VUE_APP_GLOBAL_TAGS={pc_all:662,all_prod:663,pc_index_recommend:670,pc_index_hot:671,pc_index_new:672}),o["default"].use(M.A,{preLoad:1.3,error:n(3153),loading:n(3153),attempt:3,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],adapter:{loaded({bindType:e,el:t,naturalHeight:n,naturalWidth:o,$parent:a,src:r,loading:i,error:s,Init:c}){console.log("图片加载完成:",r)},error({bindType:e,el:t,error:n,$parent:o,src:a,loading:r}){console.log("图片加载失败:",a)}}}),o["default"].prototype.gotoPath=function(e,t={}){const n=this.$router.currentRoute.fullPath;if(e!==n)try{"string"===typeof e?this.$router.push({path:e,query:t.query||{}}):"object"===typeof e&&this.$router.push(e),"function"===typeof t.success&&t.success()}catch(o){console.error("路由跳转失败:",o),"function"===typeof t.fail&&t.fail(o)}},new o["default"]({el:"#app",router:j,store:k.A,components:{App:$},template:""})},3153:function(e,t,n){e.exports=n.p+"img/logo.bb511aff.png"},5129:function(e,t,n){var o=n(6674),a=n(3518),r=n(5131);o["default"].use(a.Ay),t.A=new a.Ay.Store({plugins:[(0,r.A)({storage:window.localStorage,reducer(e){return{cart:e.cart,user:e.user}}})],state:{cart:{items:[],totalCount:0,totalPrice:0},user:{isLogin:!1,info:null,token:""},categories:[],loading:!1,searchText:"",orderData:null},mutations:{setOrderData(e,t){e.orderData=t},clearOrderData(e){e.orderData=null},UPDATE_CATEGORIES(e,t){e.categories=t},UPDATE_LOADING(e,t){e.loading=t},USER_LOGIN(e,{userInfo:t,token:n}){e.user.isLogin=!0,e.user.info=t,e.user.token=n,localStorage.setItem("token",n)},USER_LOGOUT(e){e.user.isLogin=!1,e.user.info=null,e.user.token="",localStorage.removeItem("token"),e.cart.totalCount=0},UPDATE_CART_TOTAL_COUNT(e,t){e.cart.totalCount=t},setSearchText(e,t){e.searchText=t}},actions:{submitOrderData({commit:e},t){e("setOrderData",t)},fetchCategories({commit:e}){return e("UPDATE_LOADING",!0),new Promise(t=>{setTimeout(()=>{const n=[{id:1,name:"电子产品",icon:"el-icon-laptop"},{id:2,name:"服装鞋帽",icon:"el-icon-shopping-bag-1"},{id:3,name:"家居用品",icon:"el-icon-home"},{id:4,name:"美妆个护",icon:"el-icon-present"},{id:5,name:"食品饮料",icon:"el-icon-dish"},{id:6,name:"图书音像",icon:"el-icon-document"}];e("UPDATE_CATEGORIES",n),e("UPDATE_LOADING",!1),t(n)},500)})},login({commit:e,dispatch:t},{userInfo:n,token:o}){e("USER_LOGIN",{userInfo:n,token:o}),t("fetchCartCount")},logout({commit:e}){e("USER_LOGOUT")},addToCart({dispatch:e},t){return o["default"].prototype.post({sku_id:t.id,num:t.quantity||1},"/api/cart/add_sku").then(t=>{if(t)return o["default"].prototype.$message.success("购物车添加成功!"),e("fetchCartCount")}).catch(e=>{throw console.error("添加到购物车请求失败",e),e})},fetchCartCount({commit:e,state:t}){return t.user.token?o["default"].prototype.post({},"/api/cart/get_count").then(t=>(console.log("购物车数量接口返回",t),1==t.code&&e("UPDATE_CART_TOTAL_COUNT",t.data),t.data)).catch(e=>{throw console.error("获取购物车数量失败",e),e}):(e("UPDATE_CART_TOTAL_COUNT",0),Promise.resolve(0))},removeFromCart({dispatch:e},t){return o["default"].prototype.post({sku_id:t},"/api/cart/remove_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("删除购物车商品失败",e),e})},updateCartItemQuantity({dispatch:e},{productId:t,quantity:n}){return o["default"].prototype.post({sku_id:t,num:n},"/api/cart/add_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("更新购物车商品数量失败",e),e})},clearCart({dispatch:e}){return o["default"].prototype.post({},"/api/cart/clear").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("清空购物车失败",e),e})}},getters:{getOrderData:e=>e.orderData,getCategories:e=>e.categories,getCart:e=>e.cart,getCartTotalCount:e=>e.cart.totalCount,isUserLogin:e=>e.user.isLogin,getUserInfo:e=>e.user.info,getLoadingStatus:e=>e.loading,getSearchText:e=>e.searchText}})}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,o,a,r){if(!o){var i=1/0;for(u=0;u=r)&&Object.keys(n.O).every(function(e){return n.O[e](o[c])})?o.splice(c--,1):(s=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[o,a,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,o){return n.f[o](e,t),t},[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{29:"2ece41d9",33:"ca85dca8",87:"48a2ebc1",98:"61542a9e",169:"33f72ed2",192:"a0b515d3",208:"50f78b20",244:"940fed0d",452:"0b1eacbe",462:"1343c7cb",497:"13803348",601:"1c95e2ee",612:"0689f662",630:"d2996537",646:"86f530bc",677:"bb7c2f70",688:"aa0eb580",700:"d2d5f812",709:"04a9155a",711:"baa8d180",719:"4c174724",779:"c8f94891",807:"8f1f61a0",828:"deb87761",838:"3bd96d59",989:"ec009c2e",990:"244d285a",995:"b05470f0"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{29:"2661f71c",33:"5507be5a",87:"aa23ef52",98:"a80e6c68",169:"a7db186a",192:"3189fded",208:"268eb302",244:"edd4b6a0",452:"42e712d8",462:"5ae3b03a",497:"703f0337",601:"91c548ed",630:"e6d20e0d",646:"ec7235c5",677:"51eebda5",688:"b751536e",700:"5f484165",709:"8b344007",711:"701f8f15",719:"37d35775",779:"b5e6f704",807:"9b5bd9e0",828:"9419445b",838:"4c0b65d7",989:"f060a013",990:"fb749462",995:"81403639"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="shiweisuzhou:";n.l=function(o,a,r,i){if(e[o])e[o].push(a);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u 0)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.cartTotalCount)+\"件)\")]):_vm._e()]),(_vm.isLogin)?_c('router-link',{attrs:{\"to\":\"/User/OrderList\"}},[_vm._v(\"我的订单\")]):_vm._e(),(_vm.isLogin)?_c('div',{staticClass:\"logout-btn\",on:{\"click\":_vm.handleLogout}},[_vm._v(\" 退出 \")]):_vm._e()],1)])]),_c('div',{staticClass:\"main-nav\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"logo\"},[_c('router-link',{attrs:{\"to\":\"/\"}},[_c('img',{staticClass:\"logo-img\",attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png\",\"alt\":\"logo\"},on:{\"click\":function($event){_vm.searchText = ''}}})])],1),_c('div',{staticClass:\"search-box\"},[_c('el-input',{staticClass:\"search-input\",attrs:{\"placeholder\":\"请输入搜索内容\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSearch.apply(null, arguments)}},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:\"searchText\"}},[_c('el-button',{attrs:{\"slot\":\"append\",\"icon\":\"el-icon-search\"},on:{\"click\":_vm.handleSearch},slot:\"append\"})],1),(_vm.hotList.length > 0)?_c('div',{staticClass:\"hot-tags\"},[_c('span',[_vm._v(\"热门搜索:\")]),_vm._l((_vm.hotList),function(item,index){return _c('div',{key:index,staticClass:\"hot-tag\",on:{\"click\":function($event){_vm.searchText = item.name;\n _vm.handleSearch();}}},[_vm._v(\" \"+_vm._s(item.name)+\" \")])})],2):_vm._e()],1),_c('div',{staticClass:\"phone-entry\"},[_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\"}},[_c('img',{staticStyle:{\"margin-right\":\"5px\"},attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png\",\"alt\":\"联系电话\"}}),_c('span',[_vm._v(\"0512-80822586\")]),(_vm.cartTotalCount > 0 && false)?_c('span',{staticClass:\"cart-count\"},[_vm._v(_vm._s(_vm.cartTotalCount))]):_vm._e()])])])]),(_vm.categories.length > 0)?_c('div',{staticClass:\"category-nav\"},[_c('div',{staticClass:\"container\"},[(false)?_c('ul',{staticClass:\"nav-list\"},[_c('li',{staticClass:\"nav-item\"},[_c('router-link',{staticClass:\"nav-link\",class:{ active: _vm.$route.path === '/' },attrs:{\"to\":\"/\"}},[_vm._v(\"首页\")])],1),_vm._l((_vm.categories),function(category){return _c('li',{key:category.id,staticClass:\"nav-item\"},[_c('router-link',{staticClass:\"nav-link\",class:{ active: _vm.$route.params.id == category.id },attrs:{\"to\":`/category/${category.id}`}},[_vm._v(\" \"+_vm._s(category.name)+\" \")])],1)})],2):_vm._e()])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HeaderNav.vue?vue&type=template&id=00f3c839&scoped=true\"\nimport script from \"./HeaderNav.vue?vue&type=script&lang=js\"\nexport * from \"./HeaderNav.vue?vue&type=script&lang=js\"\nimport style0 from \"./HeaderNav.vue?vue&type=style&index=0&id=00f3c839&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"00f3c839\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-container\"},[_c('div',{staticClass:\"footer-top\"},[_vm._l((_vm.nonQrcodeColumns),function(column,index){return _c('div',{key:column.id,staticClass:\"footer-column\"},[_c('h3',[_vm._v(_vm._s(column.title))]),_c('ul',_vm._l((column.list),function(item,itemIndex){return _c('li',{key:itemIndex,style:({cursor: index < 4 ? 'pointer' : ''}),on:{\"click\":function($event){index < 4 ? _vm.gotoDetail(item): ''}}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])}),0)])}),_c('div',{staticClass:\"qrcode-group\"},_vm._l((_vm.qrcodeColumn.list),function(item,index){return _c('div',{key:index,staticClass:\"qrcode-item\"},[_c('img',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"src\":_vm.util.showImg(item.image)}}),_c('p',[_vm._v(_vm._s(item.title))])])}),0)],2),_vm._m(0)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-bottom\"},[_c('p',[_vm._v(\"版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1\")]),_c('p',[_vm._v(\"本网站由 江苏大运远见文化科技发展有限公司 运营维护\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=3080ae3e&scoped=true\"\nimport script from \"./Footer.vue?vue&type=script&lang=js\"\nexport * from \"./Footer.vue?vue&type=script&lang=js\"\nimport style0 from \"./Footer.vue?vue&type=style&index=0&id=3080ae3e&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3080ae3e\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"sidebar-container\"},[_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleCartClick}},[_c('el-badge',{staticClass:\"item-badge\",attrs:{\"value\":_vm.$store.getters.getCartTotalCount}},[_c('i',{staticClass:\"el-icon-shopping-cart-full\"})]),_c('div',{staticClass:\"item-text\"},[_vm._v(\"购物车\")])],1),_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleServiceClick}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"在线客服\")])]),_c('div',{staticClass:\"sidebar-item back-to-top\",class:{ active: _vm.isShowBackTop },on:{\"click\":_vm.handleBackToTop}},[_c('i',{staticClass:\"el-icon-caret-top\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"回到顶部\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Sidebar.vue?vue&type=template&id=6df28cc6&scoped=true\"\nimport script from \"./Sidebar.vue?vue&type=script&lang=js\"\nexport * from \"./Sidebar.vue?vue&type=script&lang=js\"\nimport style0 from \"./Sidebar.vue?vue&type=style&index=0&id=6df28cc6&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6df28cc6\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showBackToTop)?_c('div',{staticClass:\"back-to-top\",on:{\"click\":_vm.scrollToTop}},[_c('el-icon',{attrs:{\"name\":\"el-icon-arrow-up\"}})],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n
\n\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BackToTop.vue?vue&type=template&id=7ea6dee0&scoped=true\"\nimport script from \"./BackToTop.vue?vue&type=script&lang=js\"\nexport * from \"./BackToTop.vue?vue&type=script&lang=js\"\nimport style0 from \"./BackToTop.vue?vue&type=style&index=0&id=7ea6dee0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ea6dee0\",\n null\n \n)\n\nexport default component.exports","\n \n \n \n\n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n\n \n \n\n \n \n
\n\n\n\n\n\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=2c267866\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=2c267866&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport store from '@/store';\r\n\r\nVue.use(Router)\r\n\r\n// 解决重复导航错误\r\nconst originalPush = Router.prototype.push\r\nRouter.prototype.push = function push(location) {\r\n return originalPush.call(this, location).catch(err => {\r\n // 只捕获重复导航的错误,其他错误正常抛出\r\n if (err.name !== 'NavigationDuplicated') {\r\n throw err\r\n }\r\n })\r\n}\r\n\r\nconst router = new Router({\r\n mode: 'history',\r\n base: process.env.BASE_URL,\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'Index',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Index.vue')\r\n },\r\n {\r\n path: '/Login',\r\n name: 'Login',\r\n meta: {\r\n title: '登录 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Login.vue')\r\n },\r\n {\r\n path: '/Register',\r\n name: 'Register',\r\n meta: {\r\n title: '注册 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Register.vue')\r\n },\r\n {\r\n path: '/Home',\r\n name: 'Home',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Home.vue')\r\n },\r\n {\r\n path: '/Detail/:id',\r\n name: 'Detail',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Detail/Index.vue')\r\n },\r\n {\r\n path: '/ProductList',\r\n name: 'ProductList',\r\n meta: {\r\n title: '商品列表',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/ProductPage/Index.vue')\r\n },\r\n {\r\n path: '/ProductReview',\r\n name: 'ProductReview',\r\n meta: {\r\n title: '商品评价',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/ProductPage/ProductReview.vue')\r\n },\r\n {\r\n path: '/NoticeList',\r\n name: 'NoticeList',\r\n meta: {\r\n title: '公告列表',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/notice/noticeList.vue')\r\n },\r\n {\r\n path: '/NoticeDetail',\r\n name: 'NoticeDetail',\r\n meta: {\r\n title: '公告详情',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/notice/noticeDetail.vue')\r\n },\r\n // {\r\n // path: '/category/:id?',\r\n // name: 'Category',\r\n // meta: {\r\n // title: '商品分类 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Category.vue')\r\n // },\r\n // {\r\n // path: '/product/:id',\r\n // name: 'ProductDetail',\r\n // meta: {\r\n // title: '商品详情 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/ProductDetail.vue')\r\n // },\r\n // {\r\n // path: '/cart',\r\n // name: 'Cart',\r\n // meta: {\r\n // title: '购物车 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Cart.vue')\r\n // },\r\n // {\r\n // path: '/checkout',\r\n // name: 'Checkout',\r\n // meta: {\r\n // title: '结算 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Checkout.vue')\r\n // },\r\n {\r\n path: '/User',\r\n name: 'User',\r\n // meta: { title: '个人中心 - 精品商城',requireAuth: true,keepAlive: false},\r\n component: () => import('@/views/User/Index.vue'),\r\n redirect: '/User/UserCenter',\r\n children: [\r\n {\r\n path:'UserCenter', \r\n name: \"UserCenter\",\r\n // meta: {title: '个人中心 - 精品商城',keepAlive: false,},\r\n component: ()=>import('@/views/User/UserCenter.vue')\r\n },\r\n {\r\n path: 'OrderList',\r\n name: 'OrderList',\r\n meta: { title: '我的订单 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderList.vue')\r\n },\r\n {\r\n path: 'UserInfo',\r\n name: 'UserInfo',\r\n meta: { title: '个人信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInfo.vue')\r\n },\r\n {\r\n path: 'ViewHistory',\r\n name: 'ViewHistory',\r\n meta: { title: '我的足迹 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ViewHistory.vue')\r\n },\r\n {\r\n path: 'UserAddress',\r\n name: 'UserAddress',\r\n meta: { title: '我的收货地址 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserAddress.vue')\r\n },\r\n {\r\n path: 'UserInvoice',\r\n name: 'UserInvoice',\r\n meta: { title: '发票抬头 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoice.vue')\r\n },\r\n {\r\n path: 'UserInvoiceList',\r\n name: 'UserInvoiceList',\r\n meta: { title: '我的发票 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoiceList.vue')\r\n },\r\n {\r\n path: 'ShoppingCart',\r\n name: 'ShoppingCart',\r\n meta: { title: '购物车 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ShoppingCart.vue')\r\n },\r\n {\r\n path: 'CommentManage',\r\n name: 'CommentManage',\r\n meta: { title: '评价管理 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/CommentManage.vue')\r\n },\r\n {\r\n path: 'ContractList',\r\n name: 'ContractList',\r\n meta: { title: '合同管理 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ContractList.vue')\r\n },\r\n {\r\n path: 'MessageList',\r\n name: 'MessageList',\r\n meta: { title: '消息中心 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/MessageList.vue')\r\n },\r\n {\r\n path: 'PurchaserAdd',\r\n name: 'PurchaserAdd',\r\n meta: { title: '添加采购单位信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/PurchaserAdd.vue')\r\n },\r\n ],\r\n },\r\n {\r\n path: '/Order',\r\n name: 'Order',\r\n meta: { title: '下单', keepAlive: false },\r\n component: () => import('@/views/Order/Index.vue')\r\n },\r\n {\r\n path: '/OrderDetail',\r\n name: 'OrderDetail',\r\n meta: { title: '订单详情 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/Order/OrderDetail.vue')\r\n },\r\n \r\n {\r\n path: '/OrderPay',\r\n name: 'OrderPay',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPay.vue')\r\n },\r\n {\r\n path: '/OrderPayB2B',\r\n name: 'OrderPayB2B',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayB2B.vue')\r\n },\r\n {\r\n path: '/OrderPayCode',\r\n name: 'OrderPayCode',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayCode.vue')\r\n },\r\n {\r\n path: '/OrderPaySuccess',\r\n name: 'OrderPaySuccess',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPaySuccess.vue')\r\n },\r\n \r\n // {\r\n // path: '/user/orders/:id',\r\n // name: 'OrderDetail',\r\n // meta: {\r\n // title: '订单详情 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/OrderDetail.vue')\r\n // },\r\n // {\r\n // path: '*',\r\n // name: 'NotFound',\r\n // meta: {\r\n // title: '页面不存在 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/NotFound.vue')\r\n // }\r\n ],\r\n scrollBehavior(to, from, savedPosition) {\r\n // 页面滚动到顶部\r\n return { x: 0, y: 0 }\r\n }\r\n})\r\n\r\n// 路由守卫\r\nrouter.beforeEach((to, from, next) => {\r\n // 设置页面标题\r\n if (to.meta.title) {\r\n document.title = to.meta.title\r\n }\r\n \r\n // 验证登录状态\r\n if (to.meta.requireAuth) {\r\n const token = store.state.user?.info?.token || '';\r\n if (token) {\r\n next()\r\n } else {\r\n next({\r\n path: '/Login',\r\n query: { redirect: to.fullPath }\r\n })\r\n }\r\n } else {\r\n next()\r\n }\r\n})\r\n\r\nexport default router","import Vue from 'vue'\r\nimport axios from \"axios\";\r\nimport { Message, MessageBox, Loading } from \"element-ui\"; // 引入 Element UI 组件\r\nimport store from '@/store';\r\nimport router from \"@/router\"\r\n\r\nconst http = axios.create({\r\n timeout: 6000 // 请求超时时间\r\n})\r\n\r\n// 添加请求拦截器\r\nhttp.interceptors.request.use((config) => {\r\n const { customBaseURL } = config.params || config.data || {};\r\n if (customBaseURL) {\r\n config.baseURL = customBaseURL;\r\n if (config.params) {\r\n delete config.params.customBaseURL;\r\n } else if (config.data) {\r\n delete config.data.customBaseURL;\r\n }\r\n } else {\r\n config.baseURL = process.env.VUE_APP_URL;\r\n }\r\n \r\n const token = store.state.user?.info?.token || '';\r\n config.headers['token'] = token || \"\"\r\n // config.headers['token'] = token || \"745f2b4c-49b7-4393-bf58-bc380a87149a\";\r\n config.headers['Content-Type'] = 'application/json;charset=UTF-8';\r\n\r\n // 统一添加 platform_type = 2 参数\r\n // GET 请求在 params 中添加\r\n if (config.method?.toLowerCase() === 'get') {\r\n config.params = {\r\n platform_type: 2,\r\n ...config.params\r\n };\r\n } \r\n // POST 等其他请求在 data 中添加\r\n else {\r\n config.data = {\r\n platform_type: 2,\r\n ...config.data\r\n };\r\n }\r\n \r\n // 显示加载中状态(Element UI 的 Loading)\r\n if (config.loading !== false) { // 默认显示,可通过参数关闭\r\n config.loadingInstance = Loading.service({\r\n lock: true,\r\n text: '加载中...',\r\n background: 'rgba(0, 0, 0, 0.7)'\r\n });\r\n }\r\n \r\n return config;\r\n}, (error) => {\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\nhttp.interceptors.response.use(response => {\r\n // 关闭加载状态\r\n if (response.config.loadingInstance) {\r\n response.config.loadingInstance.close();\r\n }\r\n \r\n if (response.status === 200 || response.status === 1) {\r\n const resData = response.data;\r\n // 假设接口约定 code 为 0 或 200 时表示业务成功(可根据实际情况修改)\r\n if (resData.code === 1 || resData.code === 200) {\r\n return resData;\r\n } else {\r\n // code 不符合预期时显示错误提示,优先使用接口返回的消息\r\n const errorMsg = resData.msg || `业务处理失败,错误码:${resData.code}`;\r\n MessageBox.alert(errorMsg, '错误提示', {\r\n confirmButtonText: '确定',\r\n type: 'error'\r\n }).then(() => {\r\n if (resData.code === 401) {\r\n // 存储当前路由(排除登录页自身,避免死循环)\r\n const currentPath = router.currentRoute.fullPath;\r\n if (currentPath !== '/Login') { // 假设登录页路径是 /Login\r\n localStorage.setItem('redirectPath', currentPath); // 存到本地存储\r\n }\r\n // 登录操作\r\n router.push(\"/Login\")\r\n }\r\n }).catch(() => {\r\n \r\n });\r\n // return Promise.reject(new Error(errorMsg));\r\n }\r\n } else {\r\n // HTTP状态码非200和1时的弹框提示\r\n const errorMsg = `请求失败,状态码:${response.status}`;\r\n MessageBox.alert(errorMsg, '错误提示', {\r\n confirmButtonText: '确定',\r\n type: 'error'\r\n });\r\n return Promise.reject(new Error(errorMsg));\r\n }\r\n}, error => {\r\n // 关闭加载状态\r\n if (error.config && error.config.loadingInstance) {\r\n error.config.loadingInstance.close();\r\n }\r\n \r\n if (error.response && error.response.status) {\r\n switch (error.response.status) {\r\n case 401:\r\n MessageBox.confirm('请登录后操作', '提示', {\r\n confirmButtonText: '去登录',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n // 登录操作\r\n router.push(\"/Login\")\r\n }).catch(() => {\r\n // 取消登录回调\r\n });\r\n break;\r\n case 404:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n default:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n }\r\n }\r\n return Promise.reject(error);\r\n});\r\n\r\n// 请求方法挂载\r\nVue.prototype.get = (params, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.get(url, { \r\n params,\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}\r\n\r\nVue.prototype.post = (data, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.post(url, data, {\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}","export default {\r\n\tinstall(Vue) {\r\n\t\tVue.prototype.util = {\r\n\t\t\t// 格式化富文本\r\n\t\t\tformateRichText(str) {\r\n\t\t\t\tif (!str) return \"\";\r\n\t\t\t\tvar reg = new RegExp(\"
')\r\n\t\t\t\treg = new RegExp(\"section\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, 'div');\r\n\t\t\t\treg = new RegExp(\"↵\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, '
');\r\n\t\t\t\tstr = str.replace(/ {\r\n\t\t\t\t\treader.onload = () => {\r\n\t\t\t\t\t\tresolve(reader.result);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\r\n\t\t\tcopyId(value) {\r\n\t\t\t\tconst input = document.createElement('input');\r\n\t\t\t\tinput.value = value;\r\n\t\t\t\tdocument.body.appendChild(input);\r\n\t\t\t\tinput.select();\r\n\t\t\t\tdocument.execCommand('copy');\r\n\t\t\t\tdocument.body.removeChild(input);\r\n\t\t\t\t\r\n\t\t\t\tVue.prototype.$message({\r\n\t\t\t\t\tmessage: '复制成功',\r\n\t\t\t\t\ttype: 'success'\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n}\r\n","import Vue from 'vue'\r\nimport App from './App'\r\nimport router from './router'\r\nimport store from './store'\r\nimport ElementUI from 'element-ui'\r\nimport 'element-ui/lib/theme-chalk/index.css'\r\nimport VueLazyload from 'vue-lazyload'\r\nimport '@/assets/css/common.scss'\r\nimport '../src/libs/axios.js' // axios处理\r\n\r\nimport utils from './libs/utils.js'\r\nVue.use(utils)\r\n\r\n// 全局配置\r\nVue.config.productionTip = false\r\nVue.use(ElementUI)\r\n\r\nlet env = process.env.NODE_ENV;\r\nconsole.log(env)\r\nVue.prototype.VUE_APP_GLOBAL_TAGS = {\r\n // 正式数据\r\n pc_all: 675, // pc-分类集合\r\n all_prod: 676, // 全部商品\r\n // mmy: 677, //米面油\r\n // twgh: 678, // 调味干货\r\n // xxls: 679, //休闲零食\r\n // qxrd: 680, // 禽畜肉蛋\r\n // xgsz: 681, //鲜果蔬菜\r\n // zhjs: 682, //组合集市\r\n pc_index_recommend: 683, //PC-首页-今日推荐\r\n pc_index_hot: 684, //pc-首页-热销排行\r\n pc_index_new: 685, // pc-首页-新品上市\r\n}\r\nif (env === 'development') {\r\n Vue.prototype.VUE_APP_GLOBAL_TAGS = {\r\n // 测试数据\r\n pc_all: 662, // pc-分类集合\r\n all_prod: 663, // 全部商品\r\n // mmy: 664, //米面油\r\n // twgh: 665, // 调味干货\r\n // xxls: 666, //休闲零食\r\n // qxrd: 667, // 禽畜肉蛋\r\n // xgsz: 668, //鲜果蔬菜\r\n // zhjs: 669, //组合集市\r\n pc_index_recommend: 670, //PC-首页-今日推荐\r\n pc_index_hot: 671, //pc-首页-热销排行\r\n pc_index_new: 672, // pc-首页-新品上市\r\n }\r\n}\r\n\r\n// 配置图片懒加载\r\nVue.use(VueLazyload, {\r\n preLoad: 1.3, // 预加载高度比例\r\n error: require('./assets/logo.png'),\r\n loading: require('./assets/logo.png'),\r\n attempt: 3, // 增加尝试次数\r\n listenEvents: ['scroll', 'wheel', 'mousewheel', 'resize', 'animationend', 'transitionend', 'touchmove'], // 确保监听事件完整\r\n adapter: {\r\n // 增加加载状态日志\r\n loaded({ bindType, el, naturalHeight, naturalWidth, $parent, src, loading, error, Init }) {\r\n console.log('图片加载完成:', src)\r\n },\r\n error({ bindType, el, error, $parent, src, loading }) {\r\n console.log('图片加载失败:', src)\r\n }\r\n }\r\n})\r\n\r\n// 全局挂载公共路由跳转方法\r\nVue.prototype.gotoPath = function(path, options = {}) {\r\n // 1. 避免重复跳转同一页面\r\n const currentPath = this.$router.currentRoute.fullPath\r\n if (path === currentPath) {\r\n return\r\n }\r\n\r\n try {\r\n // 2. 支持两种跳转方式:路径字符串或配置对象\r\n if (typeof path === 'string') {\r\n // 字符串路径,可附带query参数\r\n this.$router.push({\r\n path,\r\n query: options.query || {}\r\n })\r\n } else if (typeof path === 'object') {\r\n // 直接传入路由配置对象(如命名路由)\r\n this.$router.push(path)\r\n }\r\n \r\n // 3. 可选的跳转成功回调\r\n if (typeof options.success === 'function') {\r\n options.success()\r\n }\r\n } catch (error) {\r\n // 4. 错误处理\r\n console.error('路由跳转失败:', error)\r\n if (typeof options.fail === 'function') {\r\n options.fail(error)\r\n }\r\n }\r\n}\r\n\r\n/* eslint-disable no-new */\r\nnew Vue({\r\n el: '#app',\r\n router,\r\n store,\r\n components: { App },\r\n template: ''\r\n})\r\n","// index.js\nimport Vue from 'vue'\nimport Vuex from 'vuex'\nimport createPersistedState from 'vuex-persistedstate'\n\nVue.use(Vuex)\n\nexport default new Vuex.Store({\n plugins: [\n createPersistedState({\n storage: window.localStorage,\n reducer(val) {\n return {\n cart: val.cart,\n user: val.user\n }\n }\n })\n ],\n state: {\n // 购物车状态\n cart: {\n items: [], // 购物车商品列表\n totalCount: 0, // 商品总数\n totalPrice: 0 // 商品总价\n },\n // 用户状态\n user: {\n isLogin: false,\n info: null,\n token: ''\n },\n // 分类数据\n categories: [],\n // 全局加载状态\n loading: false,\n searchText: '', // 存储搜索词\n // 存储订单数据\n orderData: null\n },\n mutations: {\n // 设置订单数据\n setOrderData(state, data) {\n state.orderData = data\n },\n // 清空订单数据\n clearOrderData(state) {\n state.orderData = null\n },\n // 更新分类数据\n UPDATE_CATEGORIES(state, categories) {\n state.categories = categories\n },\n \n // 更新加载状态\n UPDATE_LOADING(state, status) {\n state.loading = status\n },\n \n // 用户登录\n USER_LOGIN(state, { userInfo, token }) {\n state.user.isLogin = true\n state.user.info = userInfo\n state.user.token = token\n localStorage.setItem('token', token)\n },\n \n // 用户登出\n USER_LOGOUT(state) {\n state.user.isLogin = false\n state.user.info = null\n state.user.token = ''\n localStorage.removeItem('token')\n state.cart.totalCount = 0\n },\n \n // 更新购物车总数\n UPDATE_CART_TOTAL_COUNT(state, count) {\n state.cart.totalCount = count\n },\n\n setSearchText(state, text) {\n state.searchText = text;\n }\n },\n actions: {\n // 提交订单数据\n submitOrderData({ commit }, data) {\n commit('setOrderData', data)\n },\n // 获取分类数据\n fetchCategories({ commit }) {\n commit('UPDATE_LOADING', true)\n // 模拟API请求\n return new Promise(resolve => {\n setTimeout(() => {\n const categories = [\n { id: 1, name: '电子产品', icon: 'el-icon-laptop' },\n { id: 2, name: '服装鞋帽', icon: 'el-icon-shopping-bag-1' },\n { id: 3, name: '家居用品', icon: 'el-icon-home' },\n { id: 4, name: '美妆个护', icon: 'el-icon-present' },\n { id: 5, name: '食品饮料', icon: 'el-icon-dish' },\n { id: 6, name: '图书音像', icon: 'el-icon-document' }\n ]\n commit('UPDATE_CATEGORIES', categories)\n commit('UPDATE_LOADING', false)\n resolve(categories)\n }, 500)\n })\n },\n\n // 用户登录\n login({ commit, dispatch }, { userInfo, token }) {\n // 先调用 mutation 更新登录状态\n commit('USER_LOGIN', { userInfo, token })\n // 登录成功后,调用获取购物车数量的 action\n dispatch('fetchCartCount')\n },\n \n // 用户登出\n logout({ commit }) {\n commit('USER_LOGOUT')\n },\n \n // 添加商品到购物车\n addToCart({ dispatch }, product) {\n // 调用接口,参数为商品id和数量\n return Vue.prototype.post(\n {\n sku_id: product.id,\n num: product.quantity || 1\n },\n \"/api/cart/add_sku\"\n ).then((res) => {\n if (res) {\n Vue.prototype.$message.success(\"购物车添加成功!\");\n // 添加成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }\n }).catch((err) => {\n console.error('添加到购物车请求失败', err);\n throw err\n });\n },\n\n // 获取购物车数量\n fetchCartCount({ commit, state }) {\n // 检查是否存在token,不存在则直接返回0\n if (!state.user.token) {\n commit('UPDATE_CART_TOTAL_COUNT', 0)\n return Promise.resolve(0)\n }\n return Vue.prototype.post(\n {},\n \"/api/cart/get_count\"\n ).then((res) => {\n console.log('购物车数量接口返回', res)\n if (res.code == 1) {\n commit('UPDATE_CART_TOTAL_COUNT', res.data)\n }\n return res.data\n }).catch((err) => {\n console.error('获取购物车数量失败', err)\n throw err\n });\n },\n \n // 从购物车移除商品\n removeFromCart({ dispatch }, productId) {\n // 调用删除接口\n return Vue.prototype.post(\n { sku_id: productId },\n \"/api/cart/remove_sku\"\n ).then(() => {\n // 删除成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('删除购物车商品失败', err)\n throw err\n })\n },\n \n // 更新购物车商品数量\n updateCartItemQuantity({ dispatch }, { productId, quantity }) {\n // 调用更新数量接口\n return Vue.prototype.post(\n { \n sku_id: productId,\n num: quantity\n },\n \"/api/cart/add_sku\"\n ).then(() => {\n // 更新成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('更新购物车商品数量失败', err)\n throw err\n })\n },\n \n // 清空购物车\n clearCart({ dispatch }) {\n // 调用清空接口\n return Vue.prototype.post(\n {},\n \"/api/cart/clear\"\n ).then(() => {\n // 清空成功后重新获取购物车数量\n return dispatch('fetchCartCount')\n }).catch(err => {\n console.error('清空购物车失败', err)\n throw err\n })\n }\n },\n getters: {\n // 获取订单数据\n getOrderData: state => state.orderData,\n\n // 获取分类列表\n getCategories: state => state.categories,\n \n // 获取购物车信息\n getCart: state => state.cart,\n \n // 获取购物车商品总数\n getCartTotalCount: state => state.cart.totalCount,\n \n // 获取用户登录状态\n isUserLogin: state => state.user.isLogin,\n \n // 获取用户信息\n getUserInfo: state => state.user.info,\n \n // 获取加载状态\n getLoadingStatus: state => state.loading,\n\n // 获取搜索词\n getSearchText: state => state.searchText\n }\n})","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"29\":\"2ece41d9\",\"33\":\"ca85dca8\",\"87\":\"48a2ebc1\",\"98\":\"61542a9e\",\"169\":\"33f72ed2\",\"192\":\"a0b515d3\",\"208\":\"50f78b20\",\"244\":\"940fed0d\",\"452\":\"0b1eacbe\",\"462\":\"1343c7cb\",\"497\":\"13803348\",\"601\":\"1c95e2ee\",\"612\":\"0689f662\",\"630\":\"d2996537\",\"646\":\"86f530bc\",\"677\":\"bb7c2f70\",\"688\":\"aa0eb580\",\"700\":\"d2d5f812\",\"709\":\"04a9155a\",\"711\":\"baa8d180\",\"719\":\"4c174724\",\"779\":\"c8f94891\",\"807\":\"8f1f61a0\",\"828\":\"deb87761\",\"838\":\"3bd96d59\",\"989\":\"ec009c2e\",\"990\":\"244d285a\",\"995\":\"b05470f0\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"29\":\"2661f71c\",\"33\":\"5507be5a\",\"87\":\"aa23ef52\",\"98\":\"a80e6c68\",\"169\":\"a7db186a\",\"192\":\"3189fded\",\"208\":\"268eb302\",\"244\":\"edd4b6a0\",\"452\":\"42e712d8\",\"462\":\"5ae3b03a\",\"497\":\"703f0337\",\"601\":\"91c548ed\",\"630\":\"e6d20e0d\",\"646\":\"ec7235c5\",\"677\":\"51eebda5\",\"688\":\"b751536e\",\"700\":\"5f484165\",\"709\":\"8b344007\",\"711\":\"701f8f15\",\"719\":\"37d35775\",\"779\":\"b5e6f704\",\"807\":\"9b5bd9e0\",\"828\":\"9419445b\",\"838\":\"4c0b65d7\",\"989\":\"f060a013\",\"990\":\"fb749462\",\"995\":\"81403639\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"shiweisuzhou:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"29\":1,\"33\":1,\"87\":1,\"98\":1,\"169\":1,\"192\":1,\"208\":1,\"244\":1,\"452\":1,\"462\":1,\"497\":1,\"601\":1,\"630\":1,\"646\":1,\"677\":1,\"688\":1,\"700\":1,\"709\":1,\"711\":1,\"719\":1,\"779\":1,\"807\":1,\"828\":1,\"838\":1,\"989\":1,\"990\":1,\"995\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkshiweisuzhou\"] = self[\"webpackChunkshiweisuzhou\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(2199); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","$route","name","_e","staticClass","staticRenderFns","_v","isLogin","directives","rawName","value","userInfo","avatar","expression","_s","username","cartTotalCount","on","handleLogout","$event","searchText","nativeOn","type","indexOf","_k","keyCode","key","handleSearch","apply","arguments","model","callback","$$v","slot","hotList","length","_l","item","index","staticStyle","categories","data","computed","mapGetters","getCategories","getCartTotalCount","isUserLogin","getUserInfo","created","fetchCategories","post","offset","limit","then","res","methods","mapActions","trim","$store","commit","path","$router","push","query","keyword","$confirm","confirmButtonText","cancelButtonText","logout","$message","success","localStorage","setItem","catch","err","error","message","component","nonQrcodeColumns","column","id","title","list","itemIndex","style","cursor","gotoDetail","qrcodeColumn","util","showImg","image","_m","filter","find","mounted","forEach","get","type_id","link_url","window","location","href","handleCartClick","getters","handleServiceClick","class","active","isShowBackTop","handleBackToTop","cartCount","scrollTimer","addEventListener","handleScroll","dispatch","beforeDestroy","removeEventListener","clearTimeout","token","store","state","user","info","process","scrollTo","top","behavior","setTimeout","pageYOffset","showBackToTop","scrollToTop","setInterval","position","Math","max","clearInterval","components","HeaderNav","Footer","BackToTop","Sidebar","loading","getLoadingStatus","Vue","use","Router","originalPush","prototype","call","router","mode","base","routes","meta","keepAlive","redirect","children","scrollBehavior","to","from","savedPosition","x","y","beforeEach","next","document","requireAuth","fullPath","http","axios","create","timeout","interceptors","request","config","customBaseURL","params","baseURL","headers","method","toLowerCase","platform_type","loadingInstance","Loading","service","lock","text","background","Promise","reject","response","close","status","errorMsg","MessageBox","alert","Error","resData","code","msg","currentPath","currentRoute","confirm","Message","duration","url","resolve","install","formateRichText","str","reg","RegExp","replace","mobileValid","val","test","idNumberValid","passportValid","taiwanValid","gangaoValid","foreignerValid","officerValid","emailValid","getUrlPara","arrUrl","split","para","img","imgToBase64","reader","FileReader","readAsDataURL","onload","result","copyId","input","createElement","body","appendChild","select","execCommand","removeChild","utils","productionTip","ElementUI","env","console","log","VUE_APP_GLOBAL_TAGS","pc_all","all_prod","pc_index_recommend","pc_index_hot","pc_index_new","VueLazyload","preLoad","require","attempt","listenEvents","adapter","loaded","bindType","el","naturalHeight","naturalWidth","$parent","src","Init","gotoPath","options","fail","App","template","Vuex","plugins","createPersistedState","storage","reducer","cart","items","totalCount","totalPrice","orderData","mutations","setOrderData","clearOrderData","UPDATE_CATEGORIES","UPDATE_LOADING","USER_LOGIN","USER_LOGOUT","removeItem","UPDATE_CART_TOTAL_COUNT","count","setSearchText","actions","submitOrderData","icon","login","addToCart","product","sku_id","num","quantity","fetchCartCount","removeFromCart","productId","updateCartItemQuantity","clearCart","getOrderData","getCart","getSearchText","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","amdO","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","f","e","chunkId","all","reduce","promises","u","miniCssF","g","globalThis","Function","obj","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","nc","setAttribute","onScriptComplete","prev","event","onerror","doneFns","parentNode","bind","target","head","Symbol","toStringTag","nmd","paths","p","createStylesheet","fullhref","oldTag","linkTag","rel","nonce","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/js/app.ca5d00ec.js b/dist/js/app.ca5d00ec.js
deleted file mode 100644
index f7733b4..0000000
--- a/dist/js/app.ca5d00ec.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(function(){"use strict";var e={1534:function(e,t,n){n(4114);var o=n(6674),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},["Register"!==e.$route.name?t("HeaderNav"):e._e(),"Login"!==e.$route.name?t("main",{staticClass:"main-container"},[t("router-view")],1):e._e(),"Login"==e.$route.name?t("main",{staticClass:"main-containers"},[t("router-view")],1):e._e(),"Register"!==e.$route.name?t("Sidebar"):e._e(),"Register"!==e.$route.name?t("Footer"):e._e()],1)},r=[],i=function(){var e=this,t=e._self._c;return t("header",{staticClass:"header-nav"},[t("div",{staticClass:"top-notice"},[t("div",{staticClass:"container"},[t("p",[e._v(" 欢迎来到时味苏州平台! "),e._e()],1),t("div",{staticClass:"top-links"},[e.isLogin?t("router-link",{staticClass:"user-link",attrs:{to:"/User"}},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"avatar",attrs:{alt:"用户头像"}}),e._v(" "+e._s(e.userInfo.username)+" ")]):t("router-link",{attrs:{to:"/Login"}},[e._v("登录")]),e._e(),e._e(),t("router-link",{attrs:{to:"/User"}},[e._v("采购人中心")]),t("router-link",{staticClass:"cart-link",attrs:{to:"/User/ShoppingCart"}},[e._v(" 购物车"),e.cartTotalCount>0?t("span",[e._v("("+e._s(e.cartTotalCount)+"件)")]):e._e()]),e.isLogin?t("router-link",{attrs:{to:"/User/OrderList"}},[e._v("我的订单")]):e._e(),e.isLogin?t("div",{staticClass:"logout-btn",on:{click:e.handleLogout}},[e._v(" 退出 ")]):e._e()],1)])]),t("div",{staticClass:"main-nav"},[t("div",{staticClass:"container"},[t("div",{staticClass:"logo"},[t("router-link",{attrs:{to:"/"}},[t("img",{staticClass:"logo-img",attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png",alt:"logo"},on:{click:function(t){e.searchText=""}}})])],1),t("div",{staticClass:"search-box"},[t("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入搜索内容"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleSearch},slot:"append"})],1),e.hotList.length>0?t("div",{staticClass:"hot-tags"},[t("span",[e._v("热门搜索:")]),e._l(e.hotList,function(n,o){return t("div",{key:o,staticClass:"hot-tag",on:{click:function(t){e.searchText=n.name,e.handleSearch()}}},[e._v(" "+e._s(n.name)+" ")])})],2):e._e()],1),t("div",{staticClass:"phone-entry"},[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("img",{staticStyle:{"margin-right":"5px"},attrs:{src:"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png",alt:"联系电话"}}),t("span",[e._v("0512-80822586")]),(e.cartTotalCount,e._e())])])])]),e.categories.length>0?t("div",{staticClass:"category-nav"},[t("div",{staticClass:"container"},[e._e()])]):e._e()])},s=[],c=n(3518),l={name:"HeaderNav",data(){return{searchText:"",hotList:[]}},computed:{...(0,c.L8)(["getCategories","getCartTotalCount","isUserLogin","getUserInfo"]),categories(){return this.getCategories||[]},cartTotalCount(){return this.getCartTotalCount||0},isLogin(){return this.isUserLogin},userInfo(){return this.getUserInfo||{}}},created(){this.fetchCategories(),this.post({offset:0,limit:5},"/api/search/hot").then(e=>{this.hotList=e.data})},methods:{...(0,c.i0)(["fetchCategories","logout"]),handleSearch(){this.searchText.trim()&&(this.$store.commit("setSearchText",this.searchText),"/ProductList"===this.$route.path||this.$router.push({path:"/ProductList",query:{keyword:this.searchText,type:"search"}}))},handleLogout(){this.$confirm("确定要退出登录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.logout().then(()=>{this.$message.success("退出登录成功"),localStorage.setItem("redirectPath",this.$route.path),this.$router.push("/Login")}).catch(e=>{this.$message.error("退出失败:"+(e.message||"未知错误"))})}).catch(()=>{})}}},u=l,d=n(1656),p=(0,d.A)(u,i,s,!1,null,"00f3c839",null),h=p.exports,m=function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-container"},[t("div",{staticClass:"footer-top"},[e._l(e.nonQrcodeColumns,function(n,o){return t("div",{key:n.id,staticClass:"footer-column"},[t("h3",[e._v(e._s(n.title))]),t("ul",e._l(n.list,function(n,a){return t("li",{key:a,style:{cursor:o<4?"pointer":""},on:{click:function(t){o<4&&e.gotoDetail(n)}}},[e._v(" "+e._s(n.title)+" ")])}),0)])}),t("div",{staticClass:"qrcode-group"},e._l(e.qrcodeColumn.list,function(n,o){return t("div",{key:o,staticClass:"qrcode-item"},[t("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.util.showImg(n.image)}}),t("p",[e._v(e._s(n.title))])])}),0)],2),e._m(0)])},f=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer-bottom"},[t("p",[e._v("版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1")]),t("p",[e._v("本网站由 江苏大运远见文化科技发展有限公司 运营维护")])])}],g=(n(8111),n(2489),n(116),n(7588),{name:"Footer",data(){return{list:[{id:1,title:"关于我们",list:[]},{id:2,title:"新手上路",list:[]},{id:5,title:"交易流程",list:[]},{id:3,title:"常见问题",list:[]},{id:6,title:"联系方式",list:[]},{id:4,title:"二维码推荐",list:[]}]}},computed:{nonQrcodeColumns(){return this.list.filter(e=>"二维码推荐"!==e.title)},qrcodeColumn(){return this.list.find(e=>"二维码推荐"===e.title)||{list:[]}}},mounted(){this.list.forEach(e=>{this.get({type_id:e.id},"/api/navigation/getNavigationByTypeList").then(t=>{e.list=t.data})})},methods:{gotoDetail(e){e.link_url?window.location.href=e.link_url:this.$router.push(`/NoticeDetail?type=footer&id=${e.id}`)}}}),v=g,b=(0,d.A)(v,m,f,!1,null,"3080ae3e",null),C=b.exports,y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebar-container"},[t("div",{staticClass:"sidebar-item",on:{click:e.handleCartClick}},[t("el-badge",{staticClass:"item-badge",attrs:{value:e.$store.getters.getCartTotalCount}},[t("i",{staticClass:"el-icon-shopping-cart-full"})]),t("div",{staticClass:"item-text"},[e._v("购物车")])],1),t("div",{staticClass:"sidebar-item",on:{click:e.handleServiceClick}},[t("i",{staticClass:"el-icon-headset"}),t("div",{staticClass:"item-text"},[e._v("在线客服")])]),t("div",{staticClass:"sidebar-item back-to-top",class:{active:e.isShowBackTop},on:{click:e.handleBackToTop}},[t("i",{staticClass:"el-icon-caret-top"}),t("div",{staticClass:"item-text"},[e._v("回到顶部")])])])},_=[],k=n(5129),T={name:"Sidebar",data(){return{cartCount:0,isShowBackTop:!1,scrollTimer:null}},computed:{...(0,c.L8)(["getCartTotalCount"])},mounted(){window.addEventListener("scroll",this.handleScroll),this.$store.dispatch("fetchCartCount")},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll),this.scrollTimer&&clearTimeout(this.scrollTimer)},methods:{handleCartClick(){this.$router.push("/User/ShoppingCart")},handleServiceClick(){const e=k.A.state.user?.info?.token||"";window.location.href="https://swsz.api.js-dyyj.com/kefu?token="+e},handleBackToTop(){window.scrollTo({top:0,behavior:"smooth"})},handleScroll(){this.scrollTimer&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.isShowBackTop=window.pageYOffset>300},200)}}},w=T,A=(0,d.A)(w,y,_,!1,null,"1a8585cf",null),L=A.exports,x=function(){var e=this,t=e._self._c;return e.showBackToTop?t("div",{staticClass:"back-to-top",on:{click:e.scrollToTop}},[t("el-icon",{attrs:{name:"el-icon-arrow-up"}})],1):e._e()},O=[],S={name:"BackToTop",data(){return{showBackToTop:!1}},mounted(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll(){this.showBackToTop=window.pageYOffset>500},scrollToTop(){const e=window.setInterval(()=>{const t=window.pageYOffset;t>0?window.scrollTo(0,t-Math.max(20,t/10)):window.clearInterval(e)},16)}}},U=S,P=(0,d.A)(U,x,O,!1,null,"7ea6dee0",null),E=P.exports,I={name:"App",components:{HeaderNav:h,Footer:C,BackToTop:E,Sidebar:L},computed:{...(0,c.L8)(["getLoadingStatus"]),loading(){return this.getLoadingStatus}}},B=I,D=(0,d.A)(B,a,r,!1,null,null,null),$=D.exports,R=n(6178);o["default"].use(R.Ay);const N=R.Ay.prototype.push;R.Ay.prototype.push=function(e){return N.call(this,e).catch(e=>{if("NavigationDuplicated"!==e.name)throw e})};const z=new R.Ay({mode:"history",base:"/",routes:[{path:"/",name:"Index",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(98).then(n.bind(n,7098))},{path:"/Login",name:"Login",meta:{title:"登录 - 精品商城",keepAlive:!1},component:()=>n.e(700).then(n.bind(n,1700))},{path:"/Register",name:"Register",meta:{title:"注册 - 精品商城",keepAlive:!1},component:()=>n.e(29).then(n.bind(n,3029))},{path:"/Home",name:"Home",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(828).then(n.bind(n,9828))},{path:"/Detail/:id",name:"Detail",meta:{title:"首页 - 精品商城",keepAlive:!1},component:()=>n.e(646).then(n.bind(n,5646))},{path:"/ProductList",name:"ProductList",meta:{title:"商品列表",keepAlive:!1},component:()=>n.e(87).then(n.bind(n,8087))},{path:"/ProductReview",name:"ProductReview",meta:{title:"商品评价",keepAlive:!1},component:()=>n.e(779).then(n.bind(n,4779))},{path:"/NoticeList",name:"NoticeList",meta:{title:"公告列表",keepAlive:!1},component:()=>n.e(601).then(n.bind(n,6601))},{path:"/NoticeDetail",name:"NoticeDetail",meta:{title:"公告详情",keepAlive:!1},component:()=>n.e(989).then(n.bind(n,3989))},{path:"/User",name:"User",component:()=>n.e(462).then(n.bind(n,462)),redirect:"/User/UserCenter",children:[{path:"UserCenter",name:"UserCenter",component:()=>n.e(709).then(n.bind(n,5709))},{path:"OrderList",name:"OrderList",meta:{title:"我的订单 - 精品商城",keepAlive:!1},component:()=>n.e(497).then(n.bind(n,7497))},{path:"UserInfo",name:"UserInfo",meta:{title:"个人信息 - 精品商城",keepAlive:!1},component:()=>n.e(192).then(n.bind(n,1192))},{path:"ViewHistory",name:"ViewHistory",meta:{title:"我的足迹 - 精品商城",keepAlive:!1},component:()=>n.e(33).then(n.bind(n,4033))},{path:"UserAddress",name:"UserAddress",meta:{title:"我的收货地址 - 精品商城",keepAlive:!1},component:()=>n.e(208).then(n.bind(n,5208))},{path:"UserInvoice",name:"UserInvoice",meta:{title:"发票抬头 - 精品商城",keepAlive:!1},component:()=>n.e(612).then(n.bind(n,9231))},{path:"UserInvoiceList",name:"UserInvoiceList",meta:{title:"我的发票 - 精品商城",keepAlive:!1},component:()=>n.e(688).then(n.bind(n,5688))},{path:"ShoppingCart",name:"ShoppingCart",meta:{title:"购物车 - 精品商城",keepAlive:!1},component:()=>n.e(630).then(n.bind(n,2630))},{path:"CommentManage",name:"CommentManage",meta:{title:"评价管理 - 精品商城",keepAlive:!1},component:()=>n.e(990).then(n.bind(n,4990))},{path:"ContractList",name:"ContractList",meta:{title:"合同管理 - 精品商城",keepAlive:!1},component:()=>n.e(719).then(n.bind(n,100))},{path:"MessageList",name:"MessageList",meta:{title:"消息中心 - 精品商城",keepAlive:!1},component:()=>n.e(838).then(n.bind(n,7838))},{path:"PurchaserAdd",name:"PurchaserAdd",meta:{title:"添加采购单位信息 - 精品商城",keepAlive:!1},component:()=>n.e(995).then(n.bind(n,6995))}]},{path:"/Order",name:"Order",meta:{title:"下单",keepAlive:!1},component:()=>n.e(807).then(n.bind(n,1807))},{path:"/OrderDetail",name:"OrderDetail",meta:{title:"订单详情 - 精品商城",keepAlive:!1},component:()=>n.e(711).then(n.bind(n,8711))},{path:"/OrderPay",name:"OrderPay",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(677).then(n.bind(n,3677))},{path:"/OrderPayB2B",name:"OrderPayB2B",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(452).then(n.bind(n,1452))},{path:"/OrderPayCode",name:"OrderPayCode",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(244).then(n.bind(n,244))},{path:"/OrderPaySuccess",name:"OrderPaySuccess",meta:{title:"订单支付 - 精品商城",keepAlive:!1},component:()=>n.e(169).then(n.bind(n,7169))}],scrollBehavior(e,t,n){return{x:0,y:0}}});z.beforeEach((e,t,n)=>{if(e.meta.title&&(document.title=e.meta.title),e.meta.requireAuth){const t=k.A.state.user?.info?.token||"";t?n():n({path:"/Login",query:{redirect:e.fullPath}})}else n()});var j=z,q=n(9143),G=n.n(q),M=n(5847),V=n(4373);const F=V.A.create({timeout:6e3});F.interceptors.request.use(e=>{const{customBaseURL:t}=e.params||e.data||{};t?(e.baseURL=t,e.params?delete e.params.customBaseURL:e.data&&delete e.data.customBaseURL):e.baseURL="https://api.sutenong.com";const n=k.A.state.user?.info?.token||"";return e.headers["token"]=n||"",e.headers["Content-Type"]="application/json;charset=UTF-8","get"===e.method?.toLowerCase()?e.params={platform_type:2,...e.params}:e.data={platform_type:2,...e.data},!1!==e.loading&&(e.loadingInstance=q.Loading.service({lock:!0,text:"加载中...",background:"rgba(0, 0, 0, 0.7)"})),e},e=>Promise.reject(e)),F.interceptors.response.use(e=>{if(e.config.loadingInstance&&e.config.loadingInstance.close(),200!==e.status&&1!==e.status){const t=`请求失败,状态码:${e.status}`;return q.MessageBox.alert(t,"错误提示",{confirmButtonText:"确定",type:"error"}),Promise.reject(new Error(t))}{const t=e.data;if(1===t.code||200===t.code)return t;{const e=t.msg||`业务处理失败,错误码:${t.code}`;q.MessageBox.alert(e,"错误提示",{confirmButtonText:"确定",type:"error"}).then(()=>{if(401===t.code){const e=j.currentRoute.fullPath;"/Login"!==e&&localStorage.setItem("redirectPath",e),j.push("/Login")}}).catch(()=>{})}}},e=>{if(e.config&&e.config.loadingInstance&&e.config.loadingInstance.close(),e.response&&e.response.status)switch(e.response.status){case 401:q.MessageBox.confirm("请登录后操作","提示",{confirmButtonText:"去登录",cancelButtonText:"取消",type:"warning"}).then(()=>{j.push("/Login")}).catch(()=>{});break;case 404:(0,q.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break;default:(0,q.Message)({message:"网络繁忙,请刷新再试",type:"error",duration:2e3});break}return Promise.reject(e)}),o["default"].prototype.get=(e,t,n=!1)=>new Promise((o,a)=>{F.get(t,{params:e,loading:n}).then(e=>{o(e)}).catch(e=>{a(e)})}),o["default"].prototype.post=(e,t,n=!1)=>new Promise((o,a)=>{F.post(t,e,{loading:n}).then(e=>{o(e)}).catch(e=>{a(e)})});var H={install(e){e.prototype.util={formateRichText(e){if(!e)return"";var t=new RegExp("
'),t=new RegExp("section","g"),e=e.replace(t,"div"),t=new RegExp("↵","g"),e=e.replace(t,"
"),e=e.replace(/{t.onload=()=>{e(t.result)}})},copyId(t){const n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),e.prototype.$message({message:"复制成功",type:"success"})}}}};o["default"].use(H),o["default"].config.productionTip=!1,o["default"].use(G());let Z="production";console.log(Z),o["default"].prototype.VUE_APP_GLOBAL_TAGS={pc_all:675,all_prod:676,pc_index_recommend:683,pc_index_hot:684,pc_index_new:685},"development"===Z&&(o["default"].prototype.VUE_APP_GLOBAL_TAGS={pc_all:662,all_prod:663,pc_index_recommend:670,pc_index_hot:671,pc_index_new:672}),o["default"].use(M.A,{preLoad:1.3,error:n(3153),loading:n(3153),attempt:3,listenEvents:["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],adapter:{loaded({bindType:e,el:t,naturalHeight:n,naturalWidth:o,$parent:a,src:r,loading:i,error:s,Init:c}){console.log("图片加载完成:",r)},error({bindType:e,el:t,error:n,$parent:o,src:a,loading:r}){console.log("图片加载失败:",a)}}}),o["default"].prototype.gotoPath=function(e,t={}){const n=this.$router.currentRoute.fullPath;if(e!==n)try{"string"===typeof e?this.$router.push({path:e,query:t.query||{}}):"object"===typeof e&&this.$router.push(e),"function"===typeof t.success&&t.success()}catch(o){console.error("路由跳转失败:",o),"function"===typeof t.fail&&t.fail(o)}},new o["default"]({el:"#app",router:j,store:k.A,components:{App:$},template:""})},3153:function(e,t,n){e.exports=n.p+"img/logo.bb511aff.png"},5129:function(e,t,n){var o=n(6674),a=n(3518),r=n(5131);o["default"].use(a.Ay),t.A=new a.Ay.Store({plugins:[(0,r.A)({storage:window.localStorage,reducer(e){return{cart:e.cart,user:e.user}}})],state:{cart:{items:[],totalCount:0,totalPrice:0},user:{isLogin:!1,info:null,token:""},categories:[],loading:!1,searchText:"",orderData:null},mutations:{setOrderData(e,t){e.orderData=t},clearOrderData(e){e.orderData=null},UPDATE_CATEGORIES(e,t){e.categories=t},UPDATE_LOADING(e,t){e.loading=t},USER_LOGIN(e,{userInfo:t,token:n}){e.user.isLogin=!0,e.user.info=t,e.user.token=n,localStorage.setItem("token",n)},USER_LOGOUT(e){e.user.isLogin=!1,e.user.info=null,e.user.token="",localStorage.removeItem("token"),e.cart.totalCount=0},UPDATE_CART_TOTAL_COUNT(e,t){e.cart.totalCount=t},setSearchText(e,t){e.searchText=t}},actions:{submitOrderData({commit:e},t){e("setOrderData",t)},fetchCategories({commit:e}){return e("UPDATE_LOADING",!0),new Promise(t=>{setTimeout(()=>{const n=[{id:1,name:"电子产品",icon:"el-icon-laptop"},{id:2,name:"服装鞋帽",icon:"el-icon-shopping-bag-1"},{id:3,name:"家居用品",icon:"el-icon-home"},{id:4,name:"美妆个护",icon:"el-icon-present"},{id:5,name:"食品饮料",icon:"el-icon-dish"},{id:6,name:"图书音像",icon:"el-icon-document"}];e("UPDATE_CATEGORIES",n),e("UPDATE_LOADING",!1),t(n)},500)})},login({commit:e,dispatch:t},{userInfo:n,token:o}){e("USER_LOGIN",{userInfo:n,token:o}),t("fetchCartCount")},logout({commit:e}){e("USER_LOGOUT")},addToCart({dispatch:e},t){return o["default"].prototype.post({sku_id:t.id,num:t.quantity||1},"/api/cart/add_sku").then(t=>{if(t)return o["default"].prototype.$message.success("购物车添加成功!"),e("fetchCartCount")}).catch(e=>{throw console.error("添加到购物车请求失败",e),e})},fetchCartCount({commit:e,state:t}){return t.user.token?o["default"].prototype.post({},"/api/cart/get_count").then(t=>(console.log("购物车数量接口返回",t),1==t.code&&e("UPDATE_CART_TOTAL_COUNT",t.data),t.data)).catch(e=>{throw console.error("获取购物车数量失败",e),e}):(e("UPDATE_CART_TOTAL_COUNT",0),Promise.resolve(0))},removeFromCart({dispatch:e},t){return o["default"].prototype.post({sku_id:t},"/api/cart/remove_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("删除购物车商品失败",e),e})},updateCartItemQuantity({dispatch:e},{productId:t,quantity:n}){return o["default"].prototype.post({sku_id:t,num:n},"/api/cart/add_sku").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("更新购物车商品数量失败",e),e})},clearCart({dispatch:e}){return o["default"].prototype.post({},"/api/cart/clear").then(()=>e("fetchCartCount")).catch(e=>{throw console.error("清空购物车失败",e),e})}},getters:{getOrderData:e=>e.orderData,getCategories:e=>e.categories,getCart:e=>e.cart,getCartTotalCount:e=>e.cart.totalCount,isUserLogin:e=>e.user.isLogin,getUserInfo:e=>e.user.info,getLoadingStatus:e=>e.loading,getSearchText:e=>e.searchText}})}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,o,a,r){if(!o){var i=1/0;for(u=0;u=r)&&Object.keys(n.O).every(function(e){return n.O[e](o[c])})?o.splice(c--,1):(s=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[o,a,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,o){return n.f[o](e,t),t},[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{29:"2ece41d9",33:"ca85dca8",87:"48a2ebc1",98:"2ceeb0b5",169:"33f72ed2",192:"a0b515d3",208:"50f78b20",244:"940fed0d",452:"0b1eacbe",462:"1343c7cb",497:"13803348",601:"1c95e2ee",612:"0689f662",630:"d2996537",646:"86f530bc",677:"bb7c2f70",688:"aa0eb580",700:"d2d5f812",709:"04a9155a",711:"baa8d180",719:"4c174724",779:"c8f94891",807:"8f1f61a0",828:"eee73d2f",838:"3bd96d59",989:"ec009c2e",990:"244d285a",995:"b05470f0"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{29:"2661f71c",33:"5507be5a",87:"aa23ef52",98:"a80e6c68",169:"a7db186a",192:"3189fded",208:"268eb302",244:"edd4b6a0",452:"42e712d8",462:"5ae3b03a",497:"703f0337",601:"91c548ed",630:"e6d20e0d",646:"ec7235c5",677:"51eebda5",688:"b751536e",700:"5f484165",709:"8b344007",711:"701f8f15",719:"37d35775",779:"b5e6f704",807:"9b5bd9e0",828:"9419445b",838:"4c0b65d7",989:"f060a013",990:"fb749462",995:"81403639"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="shiweisuzhou:";n.l=function(o,a,r,i){if(e[o])e[o].push(a);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u 0)?_c('span',[_vm._v(\"(\"+_vm._s(_vm.cartTotalCount)+\"件)\")]):_vm._e()]),(_vm.isLogin)?_c('router-link',{attrs:{\"to\":\"/User/OrderList\"}},[_vm._v(\"我的订单\")]):_vm._e(),(_vm.isLogin)?_c('div',{staticClass:\"logout-btn\",on:{\"click\":_vm.handleLogout}},[_vm._v(\" 退出 \")]):_vm._e()],1)])]),_c('div',{staticClass:\"main-nav\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"logo\"},[_c('router-link',{attrs:{\"to\":\"/\"}},[_c('img',{staticClass:\"logo-img\",attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/logo.png\",\"alt\":\"logo\"},on:{\"click\":function($event){_vm.searchText = ''}}})])],1),_c('div',{staticClass:\"search-box\"},[_c('el-input',{staticClass:\"search-input\",attrs:{\"placeholder\":\"请输入搜索内容\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleSearch.apply(null, arguments)}},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:\"searchText\"}},[_c('el-button',{attrs:{\"slot\":\"append\",\"icon\":\"el-icon-search\"},on:{\"click\":_vm.handleSearch},slot:\"append\"})],1),(_vm.hotList.length > 0)?_c('div',{staticClass:\"hot-tags\"},[_c('span',[_vm._v(\"热门搜索:\")]),_vm._l((_vm.hotList),function(item,index){return _c('div',{key:index,staticClass:\"hot-tag\",on:{\"click\":function($event){_vm.searchText = item.name;\n _vm.handleSearch();}}},[_vm._v(\" \"+_vm._s(item.name)+\" \")])})],2):_vm._e()],1),_c('div',{staticClass:\"phone-entry\"},[_c('div',{staticStyle:{\"display\":\"flex\",\"align-items\":\"center\"}},[_c('img',{staticStyle:{\"margin-right\":\"5px\"},attrs:{\"src\":\"https://static.ticket.sz-trip.com/shiweisuzhou/pc/login/phone.png\",\"alt\":\"联系电话\"}}),_c('span',[_vm._v(\"0512-80822586\")]),(_vm.cartTotalCount > 0 && false)?_c('span',{staticClass:\"cart-count\"},[_vm._v(_vm._s(_vm.cartTotalCount))]):_vm._e()])])])]),(_vm.categories.length > 0)?_c('div',{staticClass:\"category-nav\"},[_c('div',{staticClass:\"container\"},[(false)?_c('ul',{staticClass:\"nav-list\"},[_c('li',{staticClass:\"nav-item\"},[_c('router-link',{staticClass:\"nav-link\",class:{ active: _vm.$route.path === '/' },attrs:{\"to\":\"/\"}},[_vm._v(\"首页\")])],1),_vm._l((_vm.categories),function(category){return _c('li',{key:category.id,staticClass:\"nav-item\"},[_c('router-link',{staticClass:\"nav-link\",class:{ active: _vm.$route.params.id == category.id },attrs:{\"to\":`/category/${category.id}`}},[_vm._v(\" \"+_vm._s(category.name)+\" \")])],1)})],2):_vm._e()])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./HeaderNav.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./HeaderNav.vue?vue&type=template&id=00f3c839&scoped=true\"\nimport script from \"./HeaderNav.vue?vue&type=script&lang=js\"\nexport * from \"./HeaderNav.vue?vue&type=script&lang=js\"\nimport style0 from \"./HeaderNav.vue?vue&type=style&index=0&id=00f3c839&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"00f3c839\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-container\"},[_c('div',{staticClass:\"footer-top\"},[_vm._l((_vm.nonQrcodeColumns),function(column,index){return _c('div',{key:column.id,staticClass:\"footer-column\"},[_c('h3',[_vm._v(_vm._s(column.title))]),_c('ul',_vm._l((column.list),function(item,itemIndex){return _c('li',{key:itemIndex,style:({cursor: index < 4 ? 'pointer' : ''}),on:{\"click\":function($event){index < 4 ? _vm.gotoDetail(item): ''}}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])}),0)])}),_c('div',{staticClass:\"qrcode-group\"},_vm._l((_vm.qrcodeColumn.list),function(item,index){return _c('div',{key:index,staticClass:\"qrcode-item\"},[_c('img',{staticStyle:{\"width\":\"100px\",\"height\":\"100px\"},attrs:{\"src\":_vm.util.showImg(item.image)}}),_c('p',[_vm._v(_vm._s(item.title))])])}),0)],2),_vm._m(0)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"footer-bottom\"},[_c('p',[_vm._v(\"版权所有 苏州市特色农产品发展有限公司 | 苏ICP备2023023300号-1\")]),_c('p',[_vm._v(\"本网站由 江苏大运远见文化科技发展有限公司 运营维护\")])])\n}]\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=3080ae3e&scoped=true\"\nimport script from \"./Footer.vue?vue&type=script&lang=js\"\nexport * from \"./Footer.vue?vue&type=script&lang=js\"\nimport style0 from \"./Footer.vue?vue&type=style&index=0&id=3080ae3e&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3080ae3e\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"sidebar-container\"},[_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleCartClick}},[_c('el-badge',{staticClass:\"item-badge\",attrs:{\"value\":_vm.$store.getters.getCartTotalCount}},[_c('i',{staticClass:\"el-icon-shopping-cart-full\"})]),_c('div',{staticClass:\"item-text\"},[_vm._v(\"购物车\")])],1),_c('div',{staticClass:\"sidebar-item\",on:{\"click\":_vm.handleServiceClick}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"在线客服\")])]),_c('div',{staticClass:\"sidebar-item back-to-top\",class:{ active: _vm.isShowBackTop },on:{\"click\":_vm.handleBackToTop}},[_c('i',{staticClass:\"el-icon-caret-top\"}),_c('div',{staticClass:\"item-text\"},[_vm._v(\"回到顶部\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Sidebar.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Sidebar.vue?vue&type=template&id=1a8585cf&scoped=true\"\nimport script from \"./Sidebar.vue?vue&type=script&lang=js\"\nexport * from \"./Sidebar.vue?vue&type=script&lang=js\"\nimport style0 from \"./Sidebar.vue?vue&type=style&index=0&id=1a8585cf&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1a8585cf\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showBackToTop)?_c('div',{staticClass:\"back-to-top\",on:{\"click\":_vm.scrollToTop}},[_c('el-icon',{attrs:{\"name\":\"el-icon-arrow-up\"}})],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BackToTop.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BackToTop.vue?vue&type=template&id=7ea6dee0&scoped=true\"\nimport script from \"./BackToTop.vue?vue&type=script&lang=js\"\nexport * from \"./BackToTop.vue?vue&type=script&lang=js\"\nimport style0 from \"./BackToTop.vue?vue&type=style&index=0&id=7ea6dee0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ea6dee0\",\n null\n \n)\n\nexport default component.exports","\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=2c267866\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=2c267866&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport store from '@/store';\r\n\r\nVue.use(Router)\r\n\r\n// 解决重复导航错误\r\nconst originalPush = Router.prototype.push\r\nRouter.prototype.push = function push(location) {\r\n return originalPush.call(this, location).catch(err => {\r\n // 只捕获重复导航的错误,其他错误正常抛出\r\n if (err.name !== 'NavigationDuplicated') {\r\n throw err\r\n }\r\n })\r\n}\r\n\r\nconst router = new Router({\r\n mode: 'history',\r\n base: process.env.BASE_URL,\r\n routes: [\r\n {\r\n path: '/',\r\n name: 'Index',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Index.vue')\r\n },\r\n {\r\n path: '/Login',\r\n name: 'Login',\r\n meta: {\r\n title: '登录 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Login.vue')\r\n },\r\n {\r\n path: '/Register',\r\n name: 'Register',\r\n meta: {\r\n title: '注册 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Register.vue')\r\n },\r\n {\r\n path: '/Home',\r\n name: 'Home',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Home.vue')\r\n },\r\n {\r\n path: '/Detail/:id',\r\n name: 'Detail',\r\n meta: {\r\n title: '首页 - 精品商城',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/Detail/Index.vue')\r\n },\r\n {\r\n path: '/ProductList',\r\n name: 'ProductList',\r\n meta: {\r\n title: '商品列表',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/ProductPage/Index.vue')\r\n },\r\n {\r\n path: '/ProductReview',\r\n name: 'ProductReview',\r\n meta: {\r\n title: '商品评价',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/ProductPage/ProductReview.vue')\r\n },\r\n {\r\n path: '/NoticeList',\r\n name: 'NoticeList',\r\n meta: {\r\n title: '公告列表',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/notice/noticeList.vue')\r\n },\r\n {\r\n path: '/NoticeDetail',\r\n name: 'NoticeDetail',\r\n meta: {\r\n title: '公告详情',\r\n keepAlive: false\r\n },\r\n component: () => import('@/views/notice/noticeDetail.vue')\r\n },\r\n // {\r\n // path: '/category/:id?',\r\n // name: 'Category',\r\n // meta: {\r\n // title: '商品分类 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Category.vue')\r\n // },\r\n // {\r\n // path: '/product/:id',\r\n // name: 'ProductDetail',\r\n // meta: {\r\n // title: '商品详情 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/ProductDetail.vue')\r\n // },\r\n // {\r\n // path: '/cart',\r\n // name: 'Cart',\r\n // meta: {\r\n // title: '购物车 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Cart.vue')\r\n // },\r\n // {\r\n // path: '/checkout',\r\n // name: 'Checkout',\r\n // meta: {\r\n // title: '结算 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/Checkout.vue')\r\n // },\r\n {\r\n path: '/User',\r\n name: 'User',\r\n // meta: { title: '个人中心 - 精品商城',requireAuth: true,keepAlive: false},\r\n component: () => import('@/views/User/Index.vue'),\r\n redirect: '/User/UserCenter',\r\n children: [\r\n {\r\n path:'UserCenter', \r\n name: \"UserCenter\",\r\n // meta: {title: '个人中心 - 精品商城',keepAlive: false,},\r\n component: ()=>import('@/views/User/UserCenter.vue')\r\n },\r\n {\r\n path: 'OrderList',\r\n name: 'OrderList',\r\n meta: { title: '我的订单 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderList.vue')\r\n },\r\n {\r\n path: 'UserInfo',\r\n name: 'UserInfo',\r\n meta: { title: '个人信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInfo.vue')\r\n },\r\n {\r\n path: 'ViewHistory',\r\n name: 'ViewHistory',\r\n meta: { title: '我的足迹 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ViewHistory.vue')\r\n },\r\n {\r\n path: 'UserAddress',\r\n name: 'UserAddress',\r\n meta: { title: '我的收货地址 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserAddress.vue')\r\n },\r\n {\r\n path: 'UserInvoice',\r\n name: 'UserInvoice',\r\n meta: { title: '发票抬头 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoice.vue')\r\n },\r\n {\r\n path: 'UserInvoiceList',\r\n name: 'UserInvoiceList',\r\n meta: { title: '我的发票 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/UserInvoiceList.vue')\r\n },\r\n {\r\n path: 'ShoppingCart',\r\n name: 'ShoppingCart',\r\n meta: { title: '购物车 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ShoppingCart.vue')\r\n },\r\n {\r\n path: 'CommentManage',\r\n name: 'CommentManage',\r\n meta: { title: '评价管理 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/CommentManage.vue')\r\n },\r\n {\r\n path: 'ContractList',\r\n name: 'ContractList',\r\n meta: { title: '合同管理 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/ContractList.vue')\r\n },\r\n {\r\n path: 'MessageList',\r\n name: 'MessageList',\r\n meta: { title: '消息中心 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/MessageList.vue')\r\n },\r\n {\r\n path: 'PurchaserAdd',\r\n name: 'PurchaserAdd',\r\n meta: { title: '添加采购单位信息 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/PurchaserAdd.vue')\r\n },\r\n ],\r\n },\r\n {\r\n path: '/Order',\r\n name: 'Order',\r\n meta: { title: '下单', keepAlive: false },\r\n component: () => import('@/views/Order/Index.vue')\r\n },\r\n {\r\n path: '/OrderDetail',\r\n name: 'OrderDetail',\r\n meta: { title: '订单详情 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/Order/OrderDetail.vue')\r\n },\r\n \r\n {\r\n path: '/OrderPay',\r\n name: 'OrderPay',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPay.vue')\r\n },\r\n {\r\n path: '/OrderPayB2B',\r\n name: 'OrderPayB2B',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayB2B.vue')\r\n },\r\n {\r\n path: '/OrderPayCode',\r\n name: 'OrderPayCode',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPayCode.vue')\r\n },\r\n {\r\n path: '/OrderPaySuccess',\r\n name: 'OrderPaySuccess',\r\n meta: { title: '订单支付 - 精品商城', keepAlive: false },\r\n component: () => import('@/views/User/OrderPaySuccess.vue')\r\n },\r\n \r\n // {\r\n // path: '/user/orders/:id',\r\n // name: 'OrderDetail',\r\n // meta: {\r\n // title: '订单详情 - 精品商城',\r\n // requireAuth: true,\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/OrderDetail.vue')\r\n // },\r\n // {\r\n // path: '*',\r\n // name: 'NotFound',\r\n // meta: {\r\n // title: '页面不存在 - 精品商城',\r\n // keepAlive: false\r\n // },\r\n // component: () => import('@/views/NotFound.vue')\r\n // }\r\n ],\r\n scrollBehavior(to, from, savedPosition) {\r\n // 页面滚动到顶部\r\n return { x: 0, y: 0 }\r\n }\r\n})\r\n\r\n// 路由守卫\r\nrouter.beforeEach((to, from, next) => {\r\n // 设置页面标题\r\n if (to.meta.title) {\r\n document.title = to.meta.title\r\n }\r\n \r\n // 验证登录状态\r\n if (to.meta.requireAuth) {\r\n const token = store.state.user?.info?.token || '';\r\n if (token) {\r\n next()\r\n } else {\r\n next({\r\n path: '/Login',\r\n query: { redirect: to.fullPath }\r\n })\r\n }\r\n } else {\r\n next()\r\n }\r\n})\r\n\r\nexport default router","import Vue from 'vue'\r\nimport axios from \"axios\";\r\nimport { Message, MessageBox, Loading } from \"element-ui\"; // 引入 Element UI 组件\r\nimport store from '@/store';\r\nimport router from \"@/router\"\r\n\r\nconst http = axios.create({\r\n timeout: 6000 // 请求超时时间\r\n})\r\n\r\n// 添加请求拦截器\r\nhttp.interceptors.request.use((config) => {\r\n const { customBaseURL } = config.params || config.data || {};\r\n if (customBaseURL) {\r\n config.baseURL = customBaseURL;\r\n if (config.params) {\r\n delete config.params.customBaseURL;\r\n } else if (config.data) {\r\n delete config.data.customBaseURL;\r\n }\r\n } else {\r\n config.baseURL = process.env.VUE_APP_URL;\r\n }\r\n \r\n const token = store.state.user?.info?.token || '';\r\n config.headers['token'] = token || \"\"\r\n // config.headers['token'] = token || \"745f2b4c-49b7-4393-bf58-bc380a87149a\";\r\n config.headers['Content-Type'] = 'application/json;charset=UTF-8';\r\n\r\n // 统一添加 platform_type = 2 参数\r\n // GET 请求在 params 中添加\r\n if (config.method?.toLowerCase() === 'get') {\r\n config.params = {\r\n platform_type: 2,\r\n ...config.params\r\n };\r\n } \r\n // POST 等其他请求在 data 中添加\r\n else {\r\n config.data = {\r\n platform_type: 2,\r\n ...config.data\r\n };\r\n }\r\n \r\n // 显示加载中状态(Element UI 的 Loading)\r\n if (config.loading !== false) { // 默认显示,可通过参数关闭\r\n config.loadingInstance = Loading.service({\r\n lock: true,\r\n text: '加载中...',\r\n background: 'rgba(0, 0, 0, 0.7)'\r\n });\r\n }\r\n \r\n return config;\r\n}, (error) => {\r\n return Promise.reject(error);\r\n});\r\n\r\n// 添加响应拦截器\r\nhttp.interceptors.response.use(response => {\r\n // 关闭加载状态\r\n if (response.config.loadingInstance) {\r\n response.config.loadingInstance.close();\r\n }\r\n \r\n if (response.status === 200 || response.status === 1) {\r\n const resData = response.data;\r\n // 假设接口约定 code 为 0 或 200 时表示业务成功(可根据实际情况修改)\r\n if (resData.code === 1 || resData.code === 200) {\r\n return resData;\r\n } else {\r\n // code 不符合预期时显示错误提示,优先使用接口返回的消息\r\n const errorMsg = resData.msg || `业务处理失败,错误码:${resData.code}`;\r\n MessageBox.alert(errorMsg, '错误提示', {\r\n confirmButtonText: '确定',\r\n type: 'error'\r\n }).then(() => {\r\n if (resData.code === 401) {\r\n // 存储当前路由(排除登录页自身,避免死循环)\r\n const currentPath = router.currentRoute.fullPath;\r\n if (currentPath !== '/Login') { // 假设登录页路径是 /Login\r\n localStorage.setItem('redirectPath', currentPath); // 存到本地存储\r\n }\r\n // 登录操作\r\n router.push(\"/Login\")\r\n }\r\n }).catch(() => {\r\n \r\n });\r\n // return Promise.reject(new Error(errorMsg));\r\n }\r\n } else {\r\n // HTTP状态码非200和1时的弹框提示\r\n const errorMsg = `请求失败,状态码:${response.status}`;\r\n MessageBox.alert(errorMsg, '错误提示', {\r\n confirmButtonText: '确定',\r\n type: 'error'\r\n });\r\n return Promise.reject(new Error(errorMsg));\r\n }\r\n}, error => {\r\n // 关闭加载状态\r\n if (error.config && error.config.loadingInstance) {\r\n error.config.loadingInstance.close();\r\n }\r\n \r\n if (error.response && error.response.status) {\r\n switch (error.response.status) {\r\n case 401:\r\n MessageBox.confirm('请登录后操作', '提示', {\r\n confirmButtonText: '去登录',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n // 登录操作\r\n router.push(\"/Login\")\r\n }).catch(() => {\r\n // 取消登录回调\r\n });\r\n break;\r\n case 404:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n default:\r\n Message({\r\n message: '网络繁忙,请刷新再试',\r\n type: 'error',\r\n duration: 2000\r\n });\r\n break;\r\n }\r\n }\r\n return Promise.reject(error);\r\n});\r\n\r\n// 请求方法挂载\r\nVue.prototype.get = (params, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.get(url, { \r\n params,\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}\r\n\r\nVue.prototype.post = (data, url, loading = false) => {\r\n return new Promise((resolve, reject) => {\r\n http.post(url, data, {\r\n loading // 传递加载状态参数\r\n })\r\n .then(res => {\r\n resolve(res);\r\n })\r\n .catch(err => {\r\n reject(err);\r\n });\r\n })\r\n}","export default {\r\n\tinstall(Vue) {\r\n\t\tVue.prototype.util = {\r\n\t\t\t// 格式化富文本\r\n\t\t\tformateRichText(str) {\r\n\t\t\t\tif (!str) return \"\";\r\n\t\t\t\tvar reg = new RegExp(\"
')\r\n\t\t\t\treg = new RegExp(\"section\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, 'div');\r\n\t\t\t\treg = new RegExp(\"↵\", \"g\");\r\n\t\t\t\tstr = str.replace(reg, '
');\r\n\t\t\t\tstr = str.replace(/ {\r\n\t\t\t\t\treader.onload = () => {\r\n\t\t\t\t\t\tresolve(reader.result);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\r\n\t\t\tcopyId(value) {\r\n\t\t\t\tconst input = document.createElement('input');\r\n\t\t\t\tinput.value = value;\r\n\t\t\t\tdocument.body.appendChild(input);\r\n\t\t\t\tinput.select();\r\n\t\t\t\tdocument.execCommand('copy');\r\n\t\t\t\tdocument.body.removeChild(input);\r\n\t\t\t\t\r\n\t\t\t\tVue.prototype.$message({\r\n\t\t\t\t\tmessage: '复制成功',\r\n\t\t\t\t\ttype: 'success'\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n}\r\n","import Vue from 'vue'\r\nimport App from './App'\r\nimport router from './router'\r\nimport store from './store'\r\nimport ElementUI from 'element-ui'\r\nimport 'element-ui/lib/theme-chalk/index.css'\r\nimport VueLazyload from 'vue-lazyload'\r\nimport '@/assets/css/common.scss'\r\nimport '../src/libs/axios.js' // axios处理\r\n\r\nimport utils from './libs/utils.js'\r\nVue.use(utils)\r\n\r\n// 全局配置\r\nVue.config.productionTip = false\r\nVue.use(ElementUI)\r\n\r\nlet env = process.env.NODE_ENV;\r\nconsole.log(env)\r\nVue.prototype.VUE_APP_GLOBAL_TAGS = {\r\n // 正式数据\r\n pc_all: 675, // pc-分类集合\r\n all_prod: 676, // 全部商品\r\n // mmy: 677, //米面油\r\n // twgh: 678, // 调味干货\r\n // xxls: 679, //休闲零食\r\n // qxrd: 680, // 禽畜肉蛋\r\n // xgsz: 681, //鲜果蔬菜\r\n // zhjs: 682, //组合集市\r\n pc_index_recommend: 683, //PC-首页-今日推荐\r\n pc_index_hot: 684, //pc-首页-热销排行\r\n pc_index_new: 685, // pc-首页-新品上市\r\n}\r\nif (env === 'development') {\r\n Vue.prototype.VUE_APP_GLOBAL_TAGS = {\r\n // 测试数据\r\n pc_all: 662, // pc-分类集合\r\n all_prod: 663, // 全部商品\r\n // mmy: 664, //米面油\r\n // twgh: 665, // 调味干货\r\n // xxls: 666, //休闲零食\r\n // qxrd: 667, // 禽畜肉蛋\r\n // xgsz: 668, //鲜果蔬菜\r\n // zhjs: 669, //组合集市\r\n pc_index_recommend: 670, //PC-首页-今日推荐\r\n pc_index_hot: 671, //pc-首页-热销排行\r\n pc_index_new: 672, // pc-首页-新品上市\r\n }\r\n}\r\n\r\n// 配置图片懒加载\r\nVue.use(VueLazyload, {\r\n preLoad: 1.3, // 预加载高度比例\r\n error: require('./assets/logo.png'),\r\n loading: require('./assets/logo.png'),\r\n attempt: 3, // 增加尝试次数\r\n listenEvents: ['scroll', 'wheel', 'mousewheel', 'resize', 'animationend', 'transitionend', 'touchmove'], // 确保监听事件完整\r\n adapter: {\r\n // 增加加载状态日志\r\n loaded({ bindType, el, naturalHeight, naturalWidth, $parent, src, loading, error, Init }) {\r\n console.log('图片加载完成:', src)\r\n },\r\n error({ bindType, el, error, $parent, src, loading }) {\r\n console.log('图片加载失败:', src)\r\n }\r\n }\r\n})\r\n\r\n// 全局挂载公共路由跳转方法\r\nVue.prototype.gotoPath = function(path, options = {}) {\r\n // 1. 避免重复跳转同一页面\r\n const currentPath = this.$router.currentRoute.fullPath\r\n if (path === currentPath) {\r\n return\r\n }\r\n\r\n try {\r\n // 2. 支持两种跳转方式:路径字符串或配置对象\r\n if (typeof path === 'string') {\r\n // 字符串路径,可附带query参数\r\n this.$router.push({\r\n path,\r\n query: options.query || {}\r\n })\r\n } else if (typeof path === 'object') {\r\n // 直接传入路由配置对象(如命名路由)\r\n this.$router.push(path)\r\n }\r\n \r\n // 3. 可选的跳转成功回调\r\n if (typeof options.success === 'function') {\r\n options.success()\r\n }\r\n } catch (error) {\r\n // 4. 错误处理\r\n console.error('路由跳转失败:', error)\r\n if (typeof options.fail === 'function') {\r\n options.fail(error)\r\n }\r\n }\r\n}\r\n\r\n/* eslint-disable no-new */\r\nnew Vue({\r\n el: '#app',\r\n router,\r\n store,\r\n components: { App },\r\n template: ''\r\n})\r\n","// index.js\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport createPersistedState from 'vuex-persistedstate'\r\n\r\nVue.use(Vuex)\r\n\r\nexport default new Vuex.Store({\r\n plugins: [\r\n createPersistedState({\r\n storage: window.localStorage,\r\n reducer(val) {\r\n return {\r\n cart: val.cart,\r\n user: val.user\r\n }\r\n }\r\n })\r\n ],\r\n state: {\r\n // 购物车状态\r\n cart: {\r\n items: [], // 购物车商品列表\r\n totalCount: 0, // 商品总数\r\n totalPrice: 0 // 商品总价\r\n },\r\n // 用户状态\r\n user: {\r\n isLogin: false,\r\n info: null,\r\n token: ''\r\n },\r\n // 分类数据\r\n categories: [],\r\n // 全局加载状态\r\n loading: false,\r\n searchText: '', // 存储搜索词\r\n // 存储订单数据\r\n orderData: null\r\n },\r\n mutations: {\r\n // 设置订单数据\r\n setOrderData(state, data) {\r\n state.orderData = data\r\n },\r\n // 清空订单数据\r\n clearOrderData(state) {\r\n state.orderData = null\r\n },\r\n // 更新分类数据\r\n UPDATE_CATEGORIES(state, categories) {\r\n state.categories = categories\r\n },\r\n \r\n // 更新加载状态\r\n UPDATE_LOADING(state, status) {\r\n state.loading = status\r\n },\r\n \r\n // 用户登录\r\n USER_LOGIN(state, { userInfo, token }) {\r\n state.user.isLogin = true\r\n state.user.info = userInfo\r\n state.user.token = token\r\n localStorage.setItem('token', token)\r\n },\r\n \r\n // 用户登出\r\n USER_LOGOUT(state) {\r\n state.user.isLogin = false\r\n state.user.info = null\r\n state.user.token = ''\r\n localStorage.removeItem('token')\r\n state.cart.totalCount = 0\r\n },\r\n \r\n // 更新购物车总数\r\n UPDATE_CART_TOTAL_COUNT(state, count) {\r\n state.cart.totalCount = count\r\n },\r\n\r\n setSearchText(state, text) {\r\n state.searchText = text;\r\n }\r\n },\r\n actions: {\r\n // 提交订单数据\r\n submitOrderData({ commit }, data) {\r\n commit('setOrderData', data)\r\n },\r\n // 获取分类数据\r\n fetchCategories({ commit }) {\r\n commit('UPDATE_LOADING', true)\r\n // 模拟API请求\r\n return new Promise(resolve => {\r\n setTimeout(() => {\r\n const categories = [\r\n { id: 1, name: '电子产品', icon: 'el-icon-laptop' },\r\n { id: 2, name: '服装鞋帽', icon: 'el-icon-shopping-bag-1' },\r\n { id: 3, name: '家居用品', icon: 'el-icon-home' },\r\n { id: 4, name: '美妆个护', icon: 'el-icon-present' },\r\n { id: 5, name: '食品饮料', icon: 'el-icon-dish' },\r\n { id: 6, name: '图书音像', icon: 'el-icon-document' }\r\n ]\r\n commit('UPDATE_CATEGORIES', categories)\r\n commit('UPDATE_LOADING', false)\r\n resolve(categories)\r\n }, 500)\r\n })\r\n },\r\n\r\n // 用户登录\r\n login({ commit, dispatch }, { userInfo, token }) {\r\n // 先调用 mutation 更新登录状态\r\n commit('USER_LOGIN', { userInfo, token })\r\n // 登录成功后,调用获取购物车数量的 action\r\n dispatch('fetchCartCount')\r\n },\r\n \r\n // 用户登出\r\n logout({ commit }) {\r\n commit('USER_LOGOUT')\r\n },\r\n \r\n // 添加商品到购物车\r\n addToCart({ dispatch }, product) {\r\n // 调用接口,参数为商品id和数量\r\n return Vue.prototype.post(\r\n {\r\n sku_id: product.id,\r\n num: product.quantity || 1\r\n },\r\n \"/api/cart/add_sku\"\r\n ).then((res) => {\r\n if (res) {\r\n Vue.prototype.$message.success(\"购物车添加成功!\");\r\n // 添加成功后重新获取购物车数量\r\n return dispatch('fetchCartCount')\r\n }\r\n }).catch((err) => {\r\n console.error('添加到购物车请求失败', err);\r\n throw err\r\n });\r\n },\r\n\r\n // 获取购物车数量\r\n fetchCartCount({ commit, state }) {\r\n // 检查是否存在token,不存在则直接返回0\r\n if (!state.user.token) {\r\n commit('UPDATE_CART_TOTAL_COUNT', 0)\r\n return Promise.resolve(0)\r\n }\r\n return Vue.prototype.post(\r\n {},\r\n \"/api/cart/get_count\"\r\n ).then((res) => {\r\n console.log('购物车数量接口返回', res)\r\n if (res.code == 1) {\r\n commit('UPDATE_CART_TOTAL_COUNT', res.data)\r\n }\r\n return res.data\r\n }).catch((err) => {\r\n console.error('获取购物车数量失败', err)\r\n throw err\r\n });\r\n },\r\n \r\n // 从购物车移除商品\r\n removeFromCart({ dispatch }, productId) {\r\n // 调用删除接口\r\n return Vue.prototype.post(\r\n { sku_id: productId },\r\n \"/api/cart/remove_sku\"\r\n ).then(() => {\r\n // 删除成功后重新获取购物车数量\r\n return dispatch('fetchCartCount')\r\n }).catch(err => {\r\n console.error('删除购物车商品失败', err)\r\n throw err\r\n })\r\n },\r\n \r\n // 更新购物车商品数量\r\n updateCartItemQuantity({ dispatch }, { productId, quantity }) {\r\n // 调用更新数量接口\r\n return Vue.prototype.post(\r\n { \r\n sku_id: productId,\r\n num: quantity\r\n },\r\n \"/api/cart/add_sku\"\r\n ).then(() => {\r\n // 更新成功后重新获取购物车数量\r\n return dispatch('fetchCartCount')\r\n }).catch(err => {\r\n console.error('更新购物车商品数量失败', err)\r\n throw err\r\n })\r\n },\r\n \r\n // 清空购物车\r\n clearCart({ dispatch }) {\r\n // 调用清空接口\r\n return Vue.prototype.post(\r\n {},\r\n \"/api/cart/clear\"\r\n ).then(() => {\r\n // 清空成功后重新获取购物车数量\r\n return dispatch('fetchCartCount')\r\n }).catch(err => {\r\n console.error('清空购物车失败', err)\r\n throw err\r\n })\r\n }\r\n },\r\n getters: {\r\n // 获取订单数据\r\n getOrderData: state => state.orderData,\r\n\r\n // 获取分类列表\r\n getCategories: state => state.categories,\r\n \r\n // 获取购物车信息\r\n getCart: state => state.cart,\r\n \r\n // 获取购物车商品总数\r\n getCartTotalCount: state => state.cart.totalCount,\r\n \r\n // 获取用户登录状态\r\n isUserLogin: state => state.user.isLogin,\r\n \r\n // 获取用户信息\r\n getUserInfo: state => state.user.info,\r\n \r\n // 获取加载状态\r\n getLoadingStatus: state => state.loading,\r\n\r\n // 获取搜索词\r\n getSearchText: state => state.searchText\r\n }\r\n})","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + chunkId + \".\" + {\"29\":\"2ece41d9\",\"33\":\"ca85dca8\",\"87\":\"48a2ebc1\",\"98\":\"2ceeb0b5\",\"169\":\"33f72ed2\",\"192\":\"a0b515d3\",\"208\":\"50f78b20\",\"244\":\"940fed0d\",\"452\":\"0b1eacbe\",\"462\":\"1343c7cb\",\"497\":\"13803348\",\"601\":\"1c95e2ee\",\"612\":\"0689f662\",\"630\":\"d2996537\",\"646\":\"86f530bc\",\"677\":\"bb7c2f70\",\"688\":\"aa0eb580\",\"700\":\"d2d5f812\",\"709\":\"04a9155a\",\"711\":\"baa8d180\",\"719\":\"4c174724\",\"779\":\"c8f94891\",\"807\":\"8f1f61a0\",\"828\":\"eee73d2f\",\"838\":\"3bd96d59\",\"989\":\"ec009c2e\",\"990\":\"244d285a\",\"995\":\"b05470f0\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".\" + {\"29\":\"2661f71c\",\"33\":\"5507be5a\",\"87\":\"aa23ef52\",\"98\":\"a80e6c68\",\"169\":\"a7db186a\",\"192\":\"3189fded\",\"208\":\"268eb302\",\"244\":\"edd4b6a0\",\"452\":\"42e712d8\",\"462\":\"5ae3b03a\",\"497\":\"703f0337\",\"601\":\"91c548ed\",\"630\":\"e6d20e0d\",\"646\":\"ec7235c5\",\"677\":\"51eebda5\",\"688\":\"b751536e\",\"700\":\"5f484165\",\"709\":\"8b344007\",\"711\":\"701f8f15\",\"719\":\"37d35775\",\"779\":\"b5e6f704\",\"807\":\"9b5bd9e0\",\"828\":\"9419445b\",\"838\":\"4c0b65d7\",\"989\":\"f060a013\",\"990\":\"fb749462\",\"995\":\"81403639\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"shiweisuzhou:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"29\":1,\"33\":1,\"87\":1,\"98\":1,\"169\":1,\"192\":1,\"208\":1,\"244\":1,\"452\":1,\"462\":1,\"497\":1,\"601\":1,\"630\":1,\"646\":1,\"677\":1,\"688\":1,\"700\":1,\"709\":1,\"711\":1,\"719\":1,\"779\":1,\"807\":1,\"828\":1,\"838\":1,\"989\":1,\"990\":1,\"995\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr\n\n// no prefetching\n\n// no preloaded","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkshiweisuzhou\"] = self[\"webpackChunkshiweisuzhou\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(1534); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["render","_vm","this","_c","_self","attrs","$route","name","_e","staticClass","staticRenderFns","_v","isLogin","directives","rawName","value","userInfo","avatar","expression","_s","username","cartTotalCount","on","handleLogout","$event","searchText","nativeOn","type","indexOf","_k","keyCode","key","handleSearch","apply","arguments","model","callback","$$v","slot","hotList","length","_l","item","index","staticStyle","categories","data","computed","mapGetters","getCategories","getCartTotalCount","isUserLogin","getUserInfo","created","fetchCategories","post","offset","limit","then","res","methods","mapActions","trim","$store","commit","path","$router","push","query","keyword","$confirm","confirmButtonText","cancelButtonText","logout","$message","success","localStorage","setItem","catch","err","error","message","component","nonQrcodeColumns","column","id","title","list","itemIndex","style","cursor","gotoDetail","qrcodeColumn","util","showImg","image","_m","filter","find","mounted","forEach","get","type_id","link_url","window","location","href","handleCartClick","getters","handleServiceClick","class","active","isShowBackTop","handleBackToTop","cartCount","scrollTimer","addEventListener","handleScroll","dispatch","beforeDestroy","removeEventListener","clearTimeout","token","store","state","user","info","scrollTo","top","behavior","setTimeout","pageYOffset","showBackToTop","scrollToTop","setInterval","position","Math","max","clearInterval","components","HeaderNav","Footer","BackToTop","Sidebar","loading","getLoadingStatus","Vue","use","Router","originalPush","prototype","call","router","mode","base","process","routes","meta","keepAlive","redirect","children","scrollBehavior","to","from","savedPosition","x","y","beforeEach","next","document","requireAuth","fullPath","http","axios","create","timeout","interceptors","request","config","customBaseURL","params","baseURL","headers","method","toLowerCase","platform_type","loadingInstance","Loading","service","lock","text","background","Promise","reject","response","close","status","errorMsg","MessageBox","alert","Error","resData","code","msg","currentPath","currentRoute","confirm","Message","duration","url","resolve","install","formateRichText","str","reg","RegExp","replace","mobileValid","val","test","idNumberValid","passportValid","taiwanValid","gangaoValid","foreignerValid","officerValid","emailValid","getUrlPara","arrUrl","split","para","img","imgToBase64","reader","FileReader","readAsDataURL","onload","result","copyId","input","createElement","body","appendChild","select","execCommand","removeChild","utils","productionTip","ElementUI","env","console","log","VUE_APP_GLOBAL_TAGS","pc_all","all_prod","pc_index_recommend","pc_index_hot","pc_index_new","VueLazyload","preLoad","require","attempt","listenEvents","adapter","loaded","bindType","el","naturalHeight","naturalWidth","$parent","src","Init","gotoPath","options","fail","App","template","Vuex","plugins","createPersistedState","storage","reducer","cart","items","totalCount","totalPrice","orderData","mutations","setOrderData","clearOrderData","UPDATE_CATEGORIES","UPDATE_LOADING","USER_LOGIN","USER_LOGOUT","removeItem","UPDATE_CART_TOTAL_COUNT","count","setSearchText","actions","submitOrderData","icon","login","addToCart","product","sku_id","num","quantity","fetchCartCount","removeFromCart","productId","updateCartItemQuantity","clearCart","getOrderData","getCart","getSearchText","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","amdO","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","f","e","chunkId","all","reduce","promises","u","miniCssF","g","globalThis","Function","obj","prop","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","nc","setAttribute","onScriptComplete","prev","event","onerror","doneFns","parentNode","bind","target","head","Symbol","toStringTag","nmd","paths","p","createStylesheet","fullhref","oldTag","linkTag","rel","nonce","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file
diff --git a/src/components/layout/Sidebar.vue b/src/components/layout/Sidebar.vue
index 8b70cd2..72ec2ba 100644
--- a/src/components/layout/Sidebar.vue
+++ b/src/components/layout/Sidebar.vue
@@ -64,7 +64,7 @@ export default {
// 处理在线客服点击
handleServiceClick() {
const token = store.state.user?.info?.token || "";
- window.location.href = "https://swsz.api.js-dyyj.com/kefu?token=" + token;
+ window.location.href = process.env.VUE_APP_URL + "/kefu?token=" + token;
},
// 处理回到顶部