(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{ /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/index/index.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/index/index.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(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 _utils_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/auth */ \"./src/utils/auth.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n data() {\n return {\n headerActive: 0,\n menuDrawer: false,\n showMode: 'pc',\n backShow: false\n };\n },\n watch: {\n \"$route\": {\n handler(to, from) {\n this.menuDrawer = false;\n let path = this.$route.path;\n if ([\"/publish\", \"/resourceDetail\", \"/message\", \"/myGoods\", \"/collect\"].includes(path)) {\n this.backShow = true;\n } else {\n this.backShow = false;\n }\n if (path == '/resource') {\n this.headerActive = 1;\n } else if (path == '/publish') {\n this.headerActive = 2;\n } else if (path == '/recharge') {\n this.headerActive = 3;\n } else {\n this.headerActive = 0;\n }\n },\n deep: true,\n // 深度观察监听 设置为 true \n immediate: true\n }\n },\n created() {\n let pageWidth = document.body.clientWidth;\n if (pageWidth > 768) {\n this.showMode = 'pc';\n } else {\n this.showMode = 'phone';\n }\n },\n mounted() {\n let path = this.$route.path;\n if (path == '/resource') {\n this.headerActive = 1;\n } else if (path == '/publish') {\n this.headerActive = 2;\n } else if (path == '/recharge') {\n this.headerActive = 3;\n } else {\n this.headerActive = 0;\n }\n },\n methods: {\n getToken: _utils_auth__WEBPACK_IMPORTED_MODULE_1__[\"getToken\"],\n handleBack() {\n this.$router.back();\n },\n toIndex() {\n this.$router.push('/');\n },\n toUser() {\n this.$router.push('/user');\n },\n toLogin() {\n this.$router.push('/login');\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/index/index.vue?./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"56d700e0-vue-loader-template\"}!./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/index/index.vue?vue&type=template&id=498142aa&scoped=true&": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"56d700e0-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/index/index.vue?vue&type=template&id=498142aa&scoped=true& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\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\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", [_vm.showMode == \"pc\" ? _c(\"div\", {\n staticClass: \"pc_header\"\n }, [_c(\"div\", {\n staticClass: \"header_left\"\n }, [_c(\"div\", {\n staticClass: \"logo\",\n on: {\n click: _vm.toIndex\n }\n }, [_c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! @/assets/logo.png */ \"./src/assets/logo.png\"),\n alt: \"\"\n }\n })]), _c(\"router-link\", {\n class: _vm.headerActive == 1 ? \"active\" : \"\",\n attrs: {\n tag: \"div\",\n to: \"/index\"\n }\n }, [_vm._v(\"信息\")]), _c(\"router-link\", {\n class: _vm.headerActive == 2 ? \"active\" : \"\",\n attrs: {\n tag: \"div\",\n to: \"/publish\"\n }\n }, [_vm._v(\"发布\")])], 1), _c(\"div\", {\n staticClass: \"header_right\"\n }, [_vm.getToken() ? _c(\"i\", {\n staticClass: \"el-icon-s-custom pc_header_icon\",\n on: {\n click: _vm.toUser\n }\n }) : _c(\"div\", [_c(\"el-button\", {\n attrs: {\n type: \"danger\",\n plain: \"\"\n },\n on: {\n click: _vm.toLogin\n }\n }, [_vm._v(\"登录\")]), _c(\"el-button\", {\n attrs: {\n type: \"danger\",\n plain: \"\"\n },\n on: {\n click: function ($event) {\n return _vm.$router.push(\"/register\");\n }\n }\n }, [_vm._v(\"注册\")])], 1)])]) : _c(\"div\", {\n staticClass: \"phone_header\"\n }, [_c(\"div\", [_c(\"i\", {\n staticClass: \"el-icon-s-fold header_icon\",\n on: {\n click: function ($event) {\n _vm.menuDrawer = !_vm.menuDrawer;\n }\n }\n })]), _c(\"div\", {\n staticClass: \"logo\",\n staticStyle: {\n cursor: \"pointer\"\n },\n on: {\n click: _vm.toIndex\n }\n }, [_c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! @/assets/logo.png */ \"./src/assets/logo.png\"),\n alt: \"\"\n }\n })]), _c(\"div\", [_vm.getToken() ? _c(\"i\", {\n staticClass: \"el-icon-s-custom pc_header_icon\",\n on: {\n click: _vm.toUser\n }\n }) : _c(\"i\", {\n staticClass: \"el-icon-s-custom header_icon\",\n on: {\n click: _vm.toLogin\n }\n })])]), _c(\"el-drawer\", {\n staticStyle: {\n width: \"100%\"\n },\n attrs: {\n visible: _vm.menuDrawer,\n direction: \"ltr\",\n \"with-header\": false\n },\n on: {\n \"update:visible\": function ($event) {\n _vm.menuDrawer = $event;\n }\n }\n }, [_c(\"div\", {\n staticClass: \"drawer_box\"\n }, [_c(\"div\", {\n staticClass: \"drawer_title logo\"\n }, [_c(\"img\", {\n attrs: {\n src: __webpack_require__(/*! @/assets/logo.png */ \"./src/assets/logo.png\"),\n alt: \"\"\n }\n })]), _c(\"router-link\", {\n attrs: {\n tag: \"div\",\n to: \"/index\"\n }\n }, [_vm._v(\"信息\")]), _c(\"router-link\", {\n attrs: {\n tag: \"div\",\n to: \"/publish\"\n }\n }, [_vm._v(\"发布\")])], 1)]), _c(\"div\", {\n staticClass: \"view_container\"\n }, [_c(\"keep-alive\", {\n attrs: {\n include: [\"resource\"]\n }\n }, [_c(\"router-view\")], 1)], 1), _vm.backShow && _vm.showMode == \"phone\" ? _c(\"div\", {\n staticClass: \"back\",\n on: {\n click: _vm.handleBack\n }\n }, [_vm._v(\"返回\")]) : _vm._e()], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack:///./src/views/index/index.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2256d700e0-vue-loader-template%22%7D!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/index/index.vue?vue&type=style&index=0&id=498142aa&lang=scss&scoped=true&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/index/index.vue?vue&type=style&index=0&id=498142aa&lang=scss&scoped=true& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"@media (min-width: 768px) {\\n.view_container[data-v-498142aa] {\\n margin-top: 80px;\\n overflow: hidden;\\n}\\n}\\n@media (max-width: 768px) {\\n.view_container[data-v-498142aa] {\\n margin-top: 48px;\\n overflow: hidden;\\n}\\n}\\n.pc_header[data-v-498142aa] {\\n position: fixed;\\n width: 100%;\\n top: 0;\\n z-index: 1000;\\n background: #fff;\\n display: flex;\\n justify-content: space-between;\\n padding: 0 20px;\\n height: 80px;\\n box-sizing: border-box;\\n}\\n.pc_header .header_left[data-v-498142aa] {\\n display: flex;\\n height: 100%;\\n align-items: center;\\n}\\n.pc_header .header_left > div[data-v-498142aa] {\\n line-height: 80px;\\n height: 100%;\\n margin: 0 20px;\\n cursor: pointer;\\n}\\n.pc_header .header_left > div[data-v-498142aa]:not(:first-child) {\\n font-size: 16px;\\n position: relative;\\n width: 80px;\\n text-align: center;\\n}\\n.pc_header .header_left .active[data-v-498142aa] {\\n color: #ec4899;\\n}\\n.pc_header .header_left .active[data-v-498142aa]::after {\\n content: \\\"\\\";\\n display: inline-block;\\n position: absolute;\\n width: 100%;\\n bottom: 0;\\n height: 2px;\\n background: #ec4899;\\n left: 50%;\\n transform: translateX(-50%);\\n}\\n.pc_header .header_right[data-v-498142aa] {\\n display: flex;\\n height: 100%;\\n align-items: center;\\n}\\n.phone_header[data-v-498142aa] {\\n position: fixed;\\n width: 100%;\\n top: 0;\\n z-index: 1000;\\n padding: 0 20px;\\n display: flex;\\n justify-content: space-between;\\n height: 48px;\\n align-items: center;\\n background: #fff;\\n box-sizing: border-box;\\n}\\n.phone_header .header_icon[data-v-498142aa] {\\n color: #ec4899;\\n font-size: 24px;\\n}\\n.drawer_box[data-v-498142aa] {\\n width: 50%;\\n padding: 0 20px;\\n}\\n.drawer_box .drawer_title[data-v-498142aa] {\\n height: 48px;\\n line-height: 48px;\\n border-bottom: 1px solid #ccc;\\n}\\n.drawer_box > div[data-v-498142aa]:not(:first-child) {\\n height: 48px;\\n line-height: 48px;\\n font-size: 14px;\\n text-align: left;\\n cursor: pointer;\\n}\\n.drawer_box > div[data-v-498142aa]:not(:first-child):hover {\\n color: #ec4899;\\n}\\n.pc_header_icon[data-v-498142aa] {\\n font-size: 24px;\\n color: #ec4899;\\n cursor: pointer;\\n}\\n[data-v-498142aa] .el-drawer {\\n width: 50% !important;\\n}\\n.logo[data-v-498142aa] {\\n font-size: 20px;\\n font-weight: bold;\\n color: #ec4899;\\n}\\n.logo > img[data-v-498142aa] {\\n width: 38px;\\n height: 38px;\\n vertical-align: middle;\\n}\\n.back[data-v-498142aa] {\\n position: fixed;\\n width: 50px;\\n height: 50px;\\n text-align: center;\\n line-height: 50px;\\n border-radius: 100%;\\n background-color: #409EFF;\\n color: #fff;\\n z-index: 999;\\n bottom: 200px;\\n left: 20px;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/views/index/index.vue?./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options"); /***/ }), /***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/index/index.vue?vue&type=style&index=0&id=498142aa&lang=scss&scoped=true&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-style-loader??ref--9-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--9-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/index/index.vue?vue&type=style&index=0&id=498142aa&lang=scss&scoped=true& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// style-loader: Adds some css to the DOM by adding a