1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033 |
- exports.ids = [67,17,18];
- exports.modules = {
- /***/ 156:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 174:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(156);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Pagination_vue_vue_type_style_index_0_id_044ef958_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 182:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Pagination.vue?vue&type=template&id=044ef958&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "pagination-container",
- class: {
- 'hidden': _vm.hidden
- }
- }, [_vm._t("slot"), _vm._ssrNode(" "), _c('el-pagination', _vm._b({
- attrs: {
- "background": _vm.background,
- "current-page": _vm.currentPage,
- "page-size": _vm.pageSize,
- "layout": _vm.layout,
- "total": _vm.total
- },
- on: {
- "update:currentPage": function ($event) {
- _vm.currentPage = $event;
- },
- "update:current-page": function ($event) {
- _vm.currentPage = $event;
- },
- "update:pageSize": function ($event) {
- _vm.pageSize = $event;
- },
- "update:page-size": function ($event) {
- _vm.pageSize = $event;
- },
- "size-change": _vm.handleSizeChange,
- "current-change": _vm.handleCurrentChange
- }
- }, 'el-pagination', _vm.$attrs, false))], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/Pagination.vue?vue&type=template&id=044ef958&scoped=true
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Pagination.vue?vue&type=script&lang=js
- /* harmony default export */ var Paginationvue_type_script_lang_js = ({
- name: 'Pagination',
- props: {
- total: {
- required: true,
- type: Number
- },
- page: {
- type: Number,
- default: 0
- },
- limit: {
- type: Number,
- default: 10
- },
- // pageSizes: {
- // type: Array,
- // default() {
- // return [10, 20, 50, 100]
- // }
- // },
- layout: {
- type: String,
- default: 'prev, pager, next'
- },
- background: {
- type: Boolean,
- default: true
- },
- autoScroll: {
- type: Boolean,
- default: true
- },
- hidden: {
- type: Boolean,
- default: false
- }
- },
- computed: {
- currentPage: {
- get() {
- return this.page;
- },
- set(val) {
- this.$emit('update:page', val);
- }
- },
- pageSize: {
- get() {
- return this.limit;
- },
- set(val) {
- this.$emit('update:limit', val);
- }
- }
- },
- methods: {
- handleSizeChange(val) {
- this.$emit('pagination', {
- page: this.currentPage,
- limit: val
- });
- if (this.autoScroll) {
- scrollTo(0, 800);
- }
- },
- handleCurrentChange(val) {
- this.$emit('pagination', {
- page: val,
- limit: this.pageSize
- });
- if (this.autoScroll) {
- scrollTo(0, 800);
- }
- }
- }
- });
- // CONCATENATED MODULE: ./components/Pagination.vue?vue&type=script&lang=js
- /* harmony default export */ var components_Paginationvue_type_script_lang_js = (Paginationvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/Pagination.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(174)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_Paginationvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "044ef958",
- "230c7770"
-
- )
- /* harmony default export */ var Pagination = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 205:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 226:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MediaCard_vue_vue_type_style_index_0_id_69177590_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 247:
- /***/ (function(module, exports) {
- // Exports
- module.exports = {
- };
- /***/ }),
- /***/ 286:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/MediaCard.vue?vue&type=template&id=69177590&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('figure', {
- class: ['card', {
- row: _vm.toggle
- }]
- }, [_vm._ssrNode("<div class=\"card-media\" data-v-69177590>", "</div>", [_vm.cardData.type === 5 && _vm.toggle ? _vm._ssrNode("<video controls=\"controls\" class=\"card-media-content\" data-v-69177590>", "</video>", [_vm._ssrNode("<source" + _vm._ssrAttr("src", _vm.cardData.media_url) + " data-v-69177590>\n Your browser does not support the video tag.\n ")], 2) : _c('el-image', {
- staticClass: "card-img-1",
- staticStyle: {
- "width": "100%",
- "height": "100%"
- },
- attrs: {
- "src": _vm.cardData.type === 1 || _vm.cardData.type === 8 ? _vm.cardData.media_url : _vm.cardData.image,
- "fit": "contain"
- }
- }), _vm._ssrNode(" " + (_vm.cardData.typeName && !_vm.toggle ? "<div class=\"type-icon\" data-v-69177590>" + _vm._ssrEscape("\n " + _vm._s(_vm.cardData.typeName.toUpperCase()) + "\n ") + "</div>" : "<!---->"))], 2), _vm._ssrNode(" "), _vm._ssrNode("<figcaption class=\"card-info\" data-v-69177590>", "</figcaption>", [_vm._ssrNode("<div class=\"card-info-1\" data-v-69177590>", "</div>", [_vm._ssrNode("<h1 data-v-69177590>" + _vm._ssrEscape(_vm._s(_vm.cardData.name)) + "</h1> <p class=\"card-info-point\" data-v-69177590>" + _vm._s(_vm.cardData.description) + "</p> "), _vm._ssrNode("<ul class=\"card-info-label\" data-v-69177590>", "</ul>", [_vm._ssrNode(_vm._ssrList(_vm.cardData.mapLabel, function (l, index) {
- return "<li data-v-69177590>" + _vm._ssrEscape("\n " + _vm._s(l) + "\n ") + "</li>";
- }) + " "), _vm._l(_vm.cardData.sku, function (item, i) {
- return _c('nuxt-link', {
- key: item + i,
- attrs: {
- "to": {
- name: 'product-code',
- params: {
- code: item
- }
- },
- "target": "_blank"
- }
- }, [_c('li', [_vm._v(_vm._s(item))])]);
- })], 2)], 2), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"card-info-btn\" data-v-69177590>", "</div>", [!_vm.toggle ? _c('el-button', {
- on: {
- "click": _vm.handLeftBtn
- }
- }, [_vm._v("View")]) : _vm._e(), _vm._ssrNode(" "), _c('el-button', {
- on: {
- "click": _vm.handRightBtn
- }
- }, [_vm._v("Download")])], 2)], 2)], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./components/MediaCard.vue?vue&type=template&id=69177590&scoped=true
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/MediaCard.vue?vue&type=script&lang=js
- /* harmony default export */ var MediaCardvue_type_script_lang_js = ({
- props: {
- cardData: {},
- toggle: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {};
- },
- watch: {
- 'cardData.media_url': function (newVal, oldVal) {
- if (newVal !== oldVal && this.$refs.video) {
- this.$refs.video.load(); // 重新加载视频
- }
- }
- },
- methods: {
- emitLabel(l) {
- this.$emit('labelEvent', l);
- },
- handLeftBtn() {
- this.$emit('leftBtnEvent');
- },
- handRightBtn() {
- this.$emit('rightBtnEvent');
- }
- }
- });
- // CONCATENATED MODULE: ./components/MediaCard.vue?vue&type=script&lang=js
- /* harmony default export */ var components_MediaCardvue_type_script_lang_js = (MediaCardvue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./components/MediaCard.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(226)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- components_MediaCardvue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "69177590",
- "91453854"
-
- )
- /* harmony default export */ var MediaCard = __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ 298:
- /***/ (function(module, exports) {
- /**
- * lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="npm" -o ./`
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
- /** Used as references for various `Number` constants. */
- var NAN = 0 / 0;
- /** `Object#toString` result references. */
- var symbolTag = '[object Symbol]';
- /** Used to match leading and trailing whitespace. */
- var reTrim = /^\s+|\s+$/g;
- /** Used to detect bad signed hexadecimal string values. */
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
- /** Used to detect binary string values. */
- var reIsBinary = /^0b[01]+$/i;
- /** Used to detect octal string values. */
- var reIsOctal = /^0o[0-7]+$/i;
- /** Built-in method references without a dependency on `root`. */
- var freeParseInt = parseInt;
- /** Detect free variable `global` from Node.js. */
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
- /** Detect free variable `self`. */
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || Function('return this')();
- /** Used for built-in method references. */
- var objectProto = Object.prototype;
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
- var objectToString = objectProto.toString;
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeMax = Math.max,
- nativeMin = Math.min;
- /**
- * Gets the timestamp of the number of milliseconds that have elapsed since
- * the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Date
- * @returns {number} Returns the timestamp.
- * @example
- *
- * _.defer(function(stamp) {
- * console.log(_.now() - stamp);
- * }, _.now());
- * // => Logs the number of milliseconds it took for the deferred invocation.
- */
- var now = function() {
- return root.Date.now();
- };
- /**
- * Creates a debounced function that delays invoking `func` until after `wait`
- * milliseconds have elapsed since the last time the debounced function was
- * invoked. The debounced function comes with a `cancel` method to cancel
- * delayed `func` invocations and a `flush` method to immediately invoke them.
- * Provide `options` to indicate whether `func` should be invoked on the
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
- * with the last arguments provided to the debounced function. Subsequent
- * calls to the debounced function return the result of the last `func`
- * invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the debounced function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.debounce` and `_.throttle`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to debounce.
- * @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=false]
- * Specify invoking on the leading edge of the timeout.
- * @param {number} [options.maxWait]
- * The maximum time `func` is allowed to be delayed before it's invoked.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
- *
- * // Avoid costly calculations while the window size is in flux.
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
- *
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * }));
- *
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
- * var source = new EventSource('/stream');
- * jQuery(source).on('message', debounced);
- *
- * // Cancel the trailing debounced invocation.
- * jQuery(window).on('popstate', debounced.cancel);
- */
- function debounce(func, wait, options) {
- var lastArgs,
- lastThis,
- maxWait,
- result,
- timerId,
- lastCallTime,
- lastInvokeTime = 0,
- leading = false,
- maxing = false,
- trailing = true;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- wait = toNumber(wait) || 0;
- if (isObject(options)) {
- leading = !!options.leading;
- maxing = 'maxWait' in options;
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- function invokeFunc(time) {
- var args = lastArgs,
- thisArg = lastThis;
- lastArgs = lastThis = undefined;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
- function leadingEdge(time) {
- // Reset any `maxWait` timer.
- lastInvokeTime = time;
- // Start the timer for the trailing edge.
- timerId = setTimeout(timerExpired, wait);
- // Invoke the leading edge.
- return leading ? invokeFunc(time) : result;
- }
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime,
- result = wait - timeSinceLastCall;
- return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
- }
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime;
- // Either this is the first call, activity has stopped and we're at the
- // trailing edge, the system time has gone backwards and we're treating
- // it as the trailing edge, or we've hit the `maxWait` limit.
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
- }
- function timerExpired() {
- var time = now();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- // Restart the timer.
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
- function trailingEdge(time) {
- timerId = undefined;
- // Only invoke if we have `lastArgs` which means `func` has been
- // debounced at least once.
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = undefined;
- return result;
- }
- function cancel() {
- if (timerId !== undefined) {
- clearTimeout(timerId);
- }
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = undefined;
- }
- function flush() {
- return timerId === undefined ? result : trailingEdge(now());
- }
- function debounced() {
- var time = now(),
- isInvoking = shouldInvoke(time);
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
- if (isInvoking) {
- if (timerId === undefined) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- // Handle invocations in a tight loop.
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === undefined) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return !!value && (type == 'object' || type == 'function');
- }
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return !!value && typeof value == 'object';
- }
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
- function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
- }
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- function toNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- if (isObject(value)) {
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
- value = isObject(other) ? (other + '') : other;
- }
- if (typeof value != 'string') {
- return value === 0 ? value : +value;
- }
- value = value.replace(reTrim, '');
- var isBinary = reIsBinary.test(value);
- return (isBinary || reIsOctal.test(value))
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
- : (reIsBadHex.test(value) ? NAN : +value);
- }
- module.exports = debounce;
- /***/ }),
- /***/ 299:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(247);
- /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_media_vue_vue_type_style_index_0_id_09dd2dea_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /***/ }),
- /***/ 348:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/media.vue?vue&type=template&id=09dd2dea&scoped=true
- var render = function render() {
- var _vm = this,
- _c = _vm._self._c;
- return _c('div', {
- staticClass: "com-main com-width-1400 com-margin-auto"
- }, [_c('el-breadcrumb', {
- attrs: {
- "separator-class": "el-icon-arrow-right"
- }
- }, [_c('el-breadcrumb-item', {
- attrs: {
- "to": {
- path: '/'
- }
- }
- }, [_vm._v("Home")]), _vm._v(" "), _c('el-breadcrumb-item', [_vm._v(" Media Centre")])], 1), _vm._ssrNode(" <ul class=\"flex around tab\" data-v-09dd2dea>" + _vm._ssrList(_vm.list, function (item, index) {
- return "<li" + _vm._ssrClass(null, {
- active: index === _vm.curTab
- }) + " data-v-09dd2dea>" + _vm._ssrEscape("\n " + _vm._s(item.typeName) + "\n ") + "</li>";
- }) + "</ul> "), _c('el-input', {
- attrs: {
- "placeholder": "Search",
- "clearable": ""
- },
- on: {
- "clear": _vm.getList
- },
- nativeOn: {
- "keyup": function ($event) {
- if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
- return _vm.getList.apply(null, arguments);
- }
- },
- model: {
- value: _vm.keyword,
- callback: function ($$v) {
- _vm.keyword = $$v;
- },
- expression: "keyword"
- }
- }, [_c('i', {
- staticClass: "el-input__icon el-icon-search",
- attrs: {
- "slot": "suffix"
- },
- on: {
- "click": _vm.getList
- },
- slot: "suffix"
- })]), _vm._ssrNode(" "), _vm.listLoading ? _c('div', {
- directives: [{
- name: "loading",
- rawName: "v-loading",
- value: true,
- expression: "true"
- }],
- staticClass: "com-loading",
- attrs: {
- "slot": "spinner",
- "element-loading-text": "Loading",
- "element-loading-spinner": "el-icon-loading"
- },
- slot: "spinner"
- }) : _vm._ssrNode("<div class=\"item\" data-v-09dd2dea>", "</div>", [_vm.comCurObj.total ? _vm._ssrNode("<section data-v-09dd2dea>", "</section>", [_vm._ssrNode("<ul data-v-09dd2dea>", "</ul>", _vm._l(_vm.comCurObj.data, function (item) {
- return _c('media-card', {
- key: item.id,
- attrs: {
- "cardData": item
- },
- on: {
- "labelEvent": _vm.receveLabel,
- "leftBtnEvent": function ($event) {
- return _vm.openDialog(item);
- },
- "rightBtnEvent": function ($event) {
- return _vm.download(item);
- }
- }
- });
- }), 1), _vm._ssrNode(" "), _c('pagination', {
- directives: [{
- name: "show",
- rawName: "v-show",
- value: _vm.comCurObj.total > 0,
- expression: "comCurObj.total > 0"
- }],
- attrs: {
- "total": _vm.comCurObj.total,
- "page": _vm.comCurObj.page,
- "limit": _vm.limit
- },
- on: {
- "update:page": function ($event) {
- return _vm.$set(_vm.comCurObj, "page", $event);
- },
- "update:limit": function ($event) {
- _vm.limit = $event;
- },
- "pagination": _vm.getList
- }
- })], 2) : _c('el-empty', {
- attrs: {
- "description": "No Data"
- }
- })], 1), _vm._ssrNode(" "), _c('el-dialog', {
- attrs: {
- "lock-scroll": false,
- "visible": _vm.dialogVisible,
- "width": "1000px"
- },
- on: {
- "update:visible": function ($event) {
- _vm.dialogVisible = $event;
- }
- }
- }, [_c('media-card', {
- attrs: {
- "cardData": _vm.cardData,
- "toggle": true
- },
- on: {
- "labelEvent": _vm.receveLabel,
- "rightBtnEvent": function ($event) {
- return _vm.download(_vm.cardData);
- }
- }
- })], 1)], 2);
- };
- var staticRenderFns = [];
- // CONCATENATED MODULE: ./pages/media.vue?vue&type=template&id=09dd2dea&scoped=true
- // EXTERNAL MODULE: ./node_modules/lodash.debounce/index.js
- var lodash_debounce = __webpack_require__(298);
- var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/media.vue?vue&type=script&lang=js
- /* harmony default export */ var mediavue_type_script_lang_js = ({
- data() {
- return {
- list: [{
- id: 0,
- typeName: 'All Content'
- }, {
- id: 3,
- typeName: 'EDMs'
- }, {
- id: 1,
- typeName: 'Banners'
- }, {
- id: 4,
- typeName: 'Catalogues'
- }, {
- id: 2,
- typeName: 'Social Media'
- }, {
- id: 8,
- typeName: 'Email Signature'
- }, {
- id: 5,
- typeName: 'Videos'
- }, {
- id: 7,
- typeName: 'News'
- }],
- curTab: 0,
- keyword: '',
- limit: 20,
- listLoading: true,
- cardData: {},
- dialogVisible: false,
- getDebList: null
- };
- },
- async created() {
- await this.getList();
- this.getDebList = lodash_debounce_default()(this.getList, 500);
- },
- watch: {
- keyword(newValue, oldValue) {
- if (newValue != oldValue) {
- window.scrollTo({
- top: 0,
- behavior: 'smooth'
- });
- this.getDebList();
- this.dialogVisible = false;
- }
- }
- },
- computed: {
- comCurObj() {
- return this.list[this.curTab];
- }
- },
- methods: {
- getList() {
- var _this$comCurObj;
- this.listLoading = true;
- let params = {
- keyword: this.keyword,
- page: this.comCurObj.page || 1,
- limit: this.limit
- };
- this.curTab && (params.type = (_this$comCurObj = this.comCurObj) === null || _this$comCurObj === void 0 ? void 0 : _this$comCurObj.id);
- this.$axios.get('/uk-api/data/list', {
- params
- }).then(res => {
- if (res.code == 1) {
- const {
- data,
- total
- } = res.result;
- this.comCurObj.data = data.map(i => {
- var _this$comCurObj2;
- const mapLabel = i.datalabel.map(o => o.name);
- const obj = this.list.find(item => item.id === i.type);
- const typeName = this.curTab === 0 ? obj === null || obj === void 0 ? void 0 : obj.typeName : (_this$comCurObj2 = this.comCurObj) === null || _this$comCurObj2 === void 0 ? void 0 : _this$comCurObj2.typeName;
- return {
- ...i,
- mapLabel,
- typeName
- };
- });
- this.comCurObj.total = total;
- this.listLoading = false;
- }
- if (false) {}
- }).catch(() => {
- this.listLoading = false;
- });
- },
- selTab(i) {
- this.curTab = i;
- this.$set(this.comCurObj, 'page', 1);
- this.getList();
- },
- openDialog(data) {
- this.cardData = data;
- this.dialogVisible = true;
- },
- download(item) {
- if (!item.media_url) {
- this.$message.error('No File');
- return;
- }
- var urlStr = item.media_url.match('[^/]+(?!.*/)')[0];
- this.$utils.downloadXhr(item.media_url, urlStr);
- },
- receveLabel(l) {
- this.keyword = l;
- }
- }
- });
- // CONCATENATED MODULE: ./pages/media.vue?vue&type=script&lang=js
- /* harmony default export */ var pages_mediavue_type_script_lang_js = (mediavue_type_script_lang_js);
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- var componentNormalizer = __webpack_require__(2);
- // CONCATENATED MODULE: ./pages/media.vue
- function injectStyles (context) {
-
- var style0 = __webpack_require__(299)
- if (style0.__inject__) style0.__inject__(context)
- }
- /* normalize component */
- var component = Object(componentNormalizer["a" /* default */])(
- pages_mediavue_type_script_lang_js,
- render,
- staticRenderFns,
- false,
- injectStyles,
- "09dd2dea",
- "366c9b0e"
-
- )
- /* harmony default export */ var media = __webpack_exports__["default"] = (component.exports);
- /* nuxt-component-imports */
- installComponents(component, {MediaCard: __webpack_require__(286).default,Pagination: __webpack_require__(182).default})
- /***/ })
- };;
- //# sourceMappingURL=media.js.map
|