{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_inherit-if-required.js","webpack:///./node_modules/core-js/modules/_set-proto.js","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/cms/searchResult.vue?246c","webpack:///./src/views/cms/searchResult.vue?1190","webpack:///./src/views/cms/searchResult.vue","webpack:///./src/views/cms/searchResult.vue?ed94","webpack:///./src/views/cms/searchResult.vue?c28c","webpack:///./node_modules/core-js/modules/es6.number.constructor.js","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["isObject","setPrototypeOf","set","module","exports","that","target","C","P","S","constructor","prototype","anObject","check","O","proto","TypeError","Object","test","buggy","Function","call","f","Array","e","__proto__","undefined","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","F","string","TYPE","String","replace","render","_vm","this","_h","$createElement","_c","_self","attrs","isMobile","_e","staticClass","_v","_s","$t","searchKey","resultList","length","_l","m","i","key","on","$event","toUrl","Cover","loadImage","CustomDateTime","Title","staticRenderFns","currentPage","pageSize","totalRecord","heightArr","loadImageCount","imageCoverCount","firstMenuIds","$Api","promotion","getMenu","then","result","ReturnValue","HeaderMenus","forEach","item","Childs","Value","Id","push","parseInt","searchCMSByTitle","catch","error","cms","PageSize","IsMobile","IsSearchBoby","Data","substring","indexOf","isFirstMenu","$","inArray","lis","liW","each","index","liH","Number","outerHeight","minLiH","Math","min","apply","minLiIndex","css","position","top","left","maxLiH","max","maxLiIndex","height","val","n","Url","window","location","href","IdType","$router","waterfall","$store","state","$route","params","deep","component","global","has","cof","inheritIfRequired","toPrimitive","gOPN","gOPD","dP","$trim","NUMBER","$Number","Base","BROKEN_COF","TRIM","toNumber","argument","it","third","radix","maxCode","first","charCodeAt","NaN","code","digits","slice","l","value","arguments","valueOf","keys","split","j"],"mappings":"+HAAA,IAAIA,EAAW,EAAQ,QACnBC,EAAiB,EAAQ,QAAgBC,IAC7CC,EAAOC,QAAU,SAAUC,EAAMC,EAA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ASxF,EAAKoF,EAAKK,EAAMzF,IAGhCwF,EAAQlJ,UAAYI,EACpBA,EAAML,YAAcmJ,EACpB,EAAQ,OAAR,CAAuBV,EAAQS,EAAQC,K,mBCnEzC1J,EAAOC,QAAU","file":"js/chunk-9ab903fa.530d37a7.js","sourcesContent":["var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./searchResult.vue?vue&type=style&index=0&id=4887ac84&scoped=true&lang=less&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./searchResult.vue?vue&type=style&index=0&id=4887ac84&scoped=true&lang=less&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"container\"}},[(!_vm.isMobile)?_c('div',{staticClass:\"catDetailCover\"},[_c('div',{staticClass:\"bannerText\"},[_c('div',{staticClass:\"colorBg\"},[_c('p',{staticClass:\"sTitle\"},[_vm._v(_vm._s(_vm.$t('Search.SearchResult')))])]),_c('p',{staticClass:\"searchKey\"},[_vm._v(_vm._s(_vm.searchKey))])])]):_vm._e(),(_vm.isMobile)?_c('div',{staticClass:\"catDetailCover\"},[_c('div',{staticClass:\"colorBg\"},[_c('p',{staticClass:\"sTitle\"},[_vm._v(_vm._s(_vm.$t('Search.SearchResult')))])]),_c('p',{staticClass:\"searchKey\"},[_vm._v(_vm._s(_vm.searchKey))])]):_vm._e(),(_vm.resultList && _vm.resultList.length)?_c('ul',{staticClass:\"result-list\"},_vm._l((_vm.resultList),function(m,i){return _c('li',{key:i},[_c('a',{attrs:{\"href\":\"javascript:;\"},on:{\"click\":function($event){return _vm.toUrl(m)}}},[(m.Cover)?_c('div',{staticClass:\"one-pic\"},[_c('img',{attrs:{\"src\":m.Cover},on:{\"load\":_vm.loadImage}})]):_vm._e(),_c('div',{staticClass:\"one-cover\"},[(m.CustomDateTime && m.CustomDateTime!=null)?_c('p',{staticClass:\"one-time\"},[_vm._v(_vm._s(m.CustomDateTime))]):_vm._e(),_c('p',{staticClass:\"one-title\"},[_vm._v(_vm._s(m.Title))])])])])}),0):_c('div',{staticClass:\"no-result\"},[_c('i',{staticClass:\"el-icon-warning-outline\"}),_c('p',[_vm._v(\"Nothing matched your search criteria. Please try again with different keywords.\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\n\n\n\n\n\n\n\r\n\r\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport { Submenu } from 'element-ui';\r\n\r\n@Component\r\nexport default class InsSearchResult extends Vue {\r\n resultList: object[] = []; // cms内容列表\r\n currentPage: number = 1; // 当前页\r\n pageSize: number = 100; // 每页显示条目个数\r\n totalRecord: number = 0;// 总条目数\r\n heightArr: number[]=[];\r\n loadImageCount:number = 0;\r\n imageCoverCount: number = 0;\r\n firstMenuIds: number[] = [];\r\n\r\n getMenu () {\r\n this.$Api.promotion\r\n .getMenu()\r\n .then(result => {\r\n if (result.ReturnValue && result.ReturnValue.HeaderMenus) {\r\n result.ReturnValue.HeaderMenus.forEach(item => {\r\n if (item.Childs && item.Childs.length > 0 && item.Value && item.Value.Id) {\r\n this.firstMenuIds.push(parseInt(item.Value.Id));\r\n }\r\n });\r\n }\r\n console.log(this.firstMenuIds, '一級目錄id數組(40108 40109 40110)');\r\n this.searchCMSByTitle();\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n }\r\n searchCMSByTitle () {\r\n this.$Api.cms.searchCMSByTitle({ Title: this.searchKey, PageSize: this.pageSize, IsMobile: this.isMobile, IsSearchBoby: true }).then(result => {\r\n if (result.Data && result.Data.length) {\r\n result.Data.forEach(item => {\r\n if (item.CustomDateTime && item.CustomDateTime !== null) {\r\n item.CustomDateTime = item.CustomDateTime.substring(0, item.CustomDateTime.indexOf(' '));\r\n }\r\n let isFirstMenu = $.inArray(item.Id, this.firstMenuIds);\r\n // 属于一级目录 隐藏\r\n if (isFirstMenu === -1) {\r\n this.resultList.push(item);\r\n }\r\n });\r\n // 计算返回图片的数量\r\n this.resultList.forEach((item) => {\r\n if (item['Cover']) {\r\n this.imageCoverCount += 1;\r\n };\r\n });\r\n }\r\n console.log(this.resultList, 'search页搜索结果');\r\n });\r\n }\r\n\r\n loadImage () {\r\n this.loadImageCount += 1;\r\n }\r\n waterfall () {\r\n const lis = $('.result-list li');\r\n const liW = 410;\r\n $.each(lis, (index, item) => {\r\n let liH = Number($(item).outerHeight()) + 30; // 30是margin-bottom\r\n if (index < 3) {\r\n this.heightArr[index] = liH;\r\n } else {\r\n let minLiH = Math.min.apply(Math.min, this.heightArr);\r\n let minLiIndex = $.inArray(minLiH, this.heightArr);\r\n $(item).css({\r\n position: 'absolute',\r\n top: minLiH + 'px',\r\n left: minLiIndex * liW + 'px'\r\n });\r\n this.heightArr[minLiIndex] = minLiH + liH;\r\n }\r\n let maxLiH = Math.max.apply(Math.max, this.heightArr);\r\n let maxLiIndex = $.inArray(maxLiH, this.heightArr);\r\n $('.result-list').height(this.heightArr[maxLiIndex]);\r\n });\r\n }\r\n get isMobile () {\r\n return this.$store.state.isMobile;\r\n }\r\n get searchKey () {\r\n return this.$route.params.key;\r\n }\r\n handleSizeChange (val) {\r\n console.log(`每页 ${val} 条`);\r\n }\r\n\r\n handleCurrentChange (val) {\r\n this.currentPage = val;\r\n console.log(`当前页: ${val}`);\r\n this.searchCMSByTitle();\r\n }\r\n toUrl (n) {\r\n if (n.Url) {\r\n window.location.href = n.Url;\r\n } else if (n.IdType === 'Category') {\r\n this.$router.push('/cms/catDetail/' + n.Id);\r\n } else if (n.IdType === 'Content') {\r\n this.$router.push('/cms/content/' + n.Id);\r\n }\r\n }\r\n\r\n created () {\r\n this.getMenu();\r\n }\r\n @Watch('loadImageCount', { deep: true })\r\n onImgLoadCountChange () {\r\n // 当下载图片数量和后台返回图片数量相等时,可执行瀑布流排布\r\n if (this.loadImageCount === this.imageCoverCount && !this.isMobile) {\r\n this.waterfall();\r\n }\r\n }\r\n @Watch('searchKey', { deep: true })\r\n onSearchKeyChange () {\r\n this.loadImageCount = 0;\r\n this.imageCoverCount = 0;\r\n this.resultList = [];\r\n this.firstMenuIds = [];\r\n this.getMenu();\r\n }\r\n @Watch('isMobile', { deep: true })\r\n onMediaChange () {\r\n this.loadImageCount = 0;\r\n this.imageCoverCount = 0;\r\n this.resultList = [];\r\n this.firstMenuIds = [];\r\n this.getMenu();\r\n }\r\n}\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./searchResult.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./searchResult.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./searchResult.vue?vue&type=template&id=4887ac84&scoped=true&\"\nimport script from \"./searchResult.vue?vue&type=script&lang=ts&\"\nexport * from \"./searchResult.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./searchResult.vue?vue&type=style&index=0&id=4887ac84&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4887ac84\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar global = require('./_global');\nvar has = require('./_has');\nvar cof = require('./_cof');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar toPrimitive = require('./_to-primitive');\nvar fails = require('./_fails');\nvar gOPN = require('./_object-gopn').f;\nvar gOPD = require('./_object-gopd').f;\nvar dP = require('./_object-dp').f;\nvar $trim = require('./_string-trim').trim;\nvar NUMBER = 'Number';\nvar $Number = global[NUMBER];\nvar Base = $Number;\nvar proto = $Number.prototype;\n// Opera ~12 has broken Object#toString\nvar BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER;\nvar TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n if (typeof it == 'string' && it.length > 2) {\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0);\n var third, radix, maxCode;\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default: return +it;\n }\n for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {\n $Number = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for (var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (has(Base, key = keys[j]) && !has($Number, key)) {\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}