(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[6],{ /***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js": /*!******************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! \******************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _objectSpread2; }); /* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol */ "./node_modules/core-js/modules/es.symbol.js"); /* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js"); /* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/core-js/modules/es.array.for-each.js"); /* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.keys */ "./node_modules/core-js/modules/es.object.keys.js"); /* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each */ "./node_modules/core-js/modules/web.dom-collections.for-each.js"); /* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_7__["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } /***/ }), /***/ "./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/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=script&lang=js&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=script&lang=js& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js"); /* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.function.name */ "./node_modules/core-js/modules/es.function.name.js"); /* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); /* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js"); /* harmony import */ var _api_product_product_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../api/product/product-set */ "./src/api/product/product-set.js"); /* harmony import */ var _lib_productset_many__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../lib/productset/many */ "./src/lib/productset/many.js"); // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ name: "Switch-navigation", props: { proType: { type: String } }, data: function data() { return { subjectName: "", subjectId: Object(_lib_productset_many__WEBPACK_IMPORTED_MODULE_5__["getSubjectId"])() }; }, computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_2__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__["mapState"])({ subject_array: function subject_array(state) { if (this.proType == "MethodSet") { return state.product.subject_array.filter(function (i) { return i.name === "数学"; }); } else { return state.product.subject_array; } } })), watch: { subjectName: { deep: true, immediate: true, handler: function handler() { var initId = Object(_lib_productset_many__WEBPACK_IMPORTED_MODULE_5__["getSubjectId"])(); if (initId === "3") { this.subjectName = "数学"; } else if (initId === "12") { this.subjectName = "物理"; } } }, $route: { handler: function handler(val) { if (val.query.subjectId === "3") { this.subjectName = "数学"; } else if (val.query.subjectId === "12") { this.subjectName = "物理"; } }, deep: true } }, created: function created() { if (this.$route.query.subjectId === "3" || this.subjectId === "3") { this.subjectName = "数学"; } else if (this.$route.query.subjectId === "12" || this.subjectId === "12") { this.subjectName = "物理"; } }, methods: { select: function select(list) { var obj = { subjectId: list.val }; var passId = Object(_lib_productset_many__WEBPACK_IMPORTED_MODULE_5__["getFormData"])(obj); Object(_api_product_product_set__WEBPACK_IMPORTED_MODULE_4__["changeSubject"])(passId).then(function () {}); this.subjectName = list.name; Object(_lib_productset_many__WEBPACK_IMPORTED_MODULE_5__["setSubjectId"])(list.val); if (list.val === 3) { this.$router.push({ path: "/ProductSet/VersionSelect", query: { subjectId: list.val } }); } else if (list.val === 12) { this.$router.push({ path: "/ProductSet/Customized", query: { subjectId: list.val } }); } else { if (false) {} else { location.href = "/productset/oldSet?subjectId=".concat(list.val); } this.$router.push({ query: { subjectId: list.val } }); } // 方法宝 if (this.proType == "MethodSet") { this.$router.push({ path: "/MethodSet/Introduction" }); } } } }); /***/ }), /***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"305c61fc-vue-loader-template\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=template&id=1e4648ae&scoped=true&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"305c61fc-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=template&id=1e4648ae&scoped=true& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "switch-navigation" }, [ _vm._m(0), _c("div", { staticClass: "switch-nav clearfix" }, [ _c("div", { staticClass: "show-subject" }, [ _vm._v(_vm._s(_vm.subjectName)) ]), _c("div", { staticClass: "switch-subject" }, [_vm._v("切换学科")]), _c("div", { staticClass: "subject-box" }, [ _c( "ul", _vm._l(_vm.subject_array, function(list, index) { return _c( "li", { key: list.val, staticClass: "subject-list", on: { click: function($event) { return _vm.select(list, index) } } }, [_vm._v(" " + _vm._s(list.name) + " ")] ) }), 0 ) ]) ]) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "product-setting-btn" }, [ _c("a", [_vm._v("产品设置")]) ]) } ] render._withStripped = true /***/ }), /***/ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js": /*!*******************************************************************************!*\ !*** ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js ***! \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js"); var nativeGetOwnPropertyDescriptor = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f; var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); }); var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES; // `Object.getOwnPropertyDescriptor` method // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, { getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key); } }); /***/ }), /***/ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js": /*!********************************************************************************!*\ !*** ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); var ownKeys = __webpack_require__(/*! ../internals/own-keys */ "./node_modules/core-js/internals/own-keys.js"); var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js"); var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js"); var createProperty = __webpack_require__(/*! ../internals/create-property */ "./node_modules/core-js/internals/create-property.js"); // `Object.getOwnPropertyDescriptors` method // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, { getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { var O = toIndexedObject(object); var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var keys = ownKeys(O); var result = {}; var index = 0; var key, descriptor; while (keys.length > index) { descriptor = getOwnPropertyDescriptor(O, key = keys[index++]); if (descriptor !== undefined) createProperty(result, key, descriptor); } return result; } }); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&scoped=true&lang=less&": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--10-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&scoped=true&lang=less& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // Imports var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); exports = ___CSS_LOADER_API_IMPORT___(false); // Module exports.push([module.i, ".switch-navigation[data-v-1e4648ae] {\n position: fixed;\n width: 100%;\n box-sizing: border-box;\n top: 0;\n left: 0;\n z-index: 1000;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px 10px;\n background: #ddd;\n}\n.switch-navigation .product-setting-btn a[data-v-1e4648ae] {\n display: block;\n width: 120px;\n height: 30px;\n background: #01b677;\n text-align: center;\n line-height: 30px;\n color: #fff;\n font-size: 16px;\n text-decoration: none;\n}\n.switch-navigation .switch-nav[data-v-1e4648ae] {\n position: relative;\n height: 30px;\n width: 200px;\n background: #f2f2f2;\n border: 1px solid #01b677;\n border-radius: 15px;\n box-sizing: border-box;\n}\n.switch-navigation .switch-nav .show-subject[data-v-1e4648ae] {\n background: #01b677;\n color: #fff;\n width: 50%;\n height: 29px;\n text-align: center;\n line-height: 29px;\n border-top-left-radius: 15px;\n border-bottom-left-radius: 15px;\n float: left;\n}\n.switch-navigation .switch-nav .switch-subject[data-v-1e4648ae] {\n width: 50%;\n position: relative;\n color: #01b677;\n line-height: 30px;\n text-indent: 6px;\n cursor: pointer;\n float: left;\n}\n.switch-navigation .switch-nav .switch-subject[data-v-1e4648ae]:after {\n content: \"\";\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 8px solid #01b677;\n position: absolute;\n right: 16px;\n top: 11px;\n}\n.switch-navigation .switch-nav .switch-subject:hover + .subject-box[data-v-1e4648ae] {\n display: block;\n}\n.switch-navigation .switch-nav .subject-box[data-v-1e4648ae] {\n border: 1px solid #01b677;\n background-color: #ffffff;\n width: 88px;\n position: absolute;\n right: 12px;\n top: 28px;\n display: none;\n}\n.switch-navigation .switch-nav .subject-box[data-v-1e4648ae]:hover {\n display: block;\n}\n.switch-navigation .switch-nav .subject-box .subject-list[data-v-1e4648ae] {\n padding: 10px 0;\n text-align: center;\n cursor: pointer;\n}\n.switch-navigation .switch-nav .subject-box .subject-list[data-v-1e4648ae]:hover {\n background: #01b677;\n color: #ffffff;\n}\n", ""]); // Exports module.exports = exports; /***/ }), /***/ "./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/less-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&scoped=true&lang=less&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-style-loader??ref--10-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--10-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&scoped=true&lang=less& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a