1 |
- {"version":3,"sources":["webpack:///./pages/news/_newsName.vue?1503","webpack:///./node_modules/core-js/modules/esnext.string.replace-all.js","webpack:///./node_modules/core-js/modules/es.string.replace-all.js","webpack:///./pages/news/_newsName.vue?8d97","webpack:///./pages/news/_newsName.vue","webpack:///./pages/news/_newsName.vue?f78d","webpack:///./pages/news/_newsName.vue?f269"],"names":["module","exports","$","call","uncurryThis","requireObjectCoercible","isCallable","isNullOrUndefined","isRegExp","toString","getMethod","getRegExpFlags","getSubstitution","wellKnownSymbol","IS_PURE","REPLACE","$TypeError","TypeError","indexOf","replace","stringSlice","slice","max","Math","target","proto","replaceAll","searchValue","replaceValue","IS_REG_EXP","flags","replacer","string","searchString","functionalReplace","searchLength","advanceBy","position","replacement","O","this","endOfLastMatch","result","length","undefined","data","showMargin","articleDetails","routerParams","profileform","defaultURL","computed","userInfo","$store","state","computedURL","email","config","name","contacts","phone","company","query","key","concat","encodeURIComponent","watch","_this","$route","params","newsName","setTimeout","document","getElementById","src","created","_this2","_asyncToGenerator","regeneratorRuntime","mark","_callee","paramsData","wrap","_context","prev","next","$cookies","get","set","getArticleDetails","stop","mounted","_this3","beforeDestroy","remove","methods","_this4","title","decodeURIComponent","$axios","post","then","res","code","content","catch","component","_vm","_c","_self","staticClass","domProps","_s","_v","directives","rawName","value","expression","attrs","ref","staticStyle"],"mappings":"8EACAA,EAAOC,QAAU,CAAC,C,mCCClB,EAAQ,I,mCCDR,IAAIC,EAAI,EAAQ,GACZC,EAAO,EAAQ,GACfC,EAAc,EAAQ,GACtBC,EAAyB,EAAQ,IACjCC,EAAa,EAAQ,GACrBC,EAAoB,EAAQ,IAC5BC,EAAW,EAAQ,KACnBC,EAAW,EAAQ,IACnBC,EAAY,EAAQ,IACpBC,EAAiB,EAAQ,KACzBC,EAAkB,EAAQ,KAC1BC,EAAkB,EAAQ,GAC1BC,EAAU,EAAQ,IAElBC,EAAUF,EAAgB,WAC1BG,EAAaC,UACbC,EAAUd,EAAY,GAAGc,SACz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YAAW,WACTqB,EAAK9C,YAAa,CACpB,GAAG,IACL,EAEA+C,cAAa,WACXrD,KAAK8C,SAASQ,OAAO,aACvB,EACAC,QAAS,CACPN,kBAAiB,WAAG,IAAAO,EAAA,KACdC,MAAQzD,KAAK4B,OAAOC,OAAOC,UAAY,GAC3C2B,MAAQC,mBAAmBD,OAC3BzD,KAAK2D,OACFC,KAAK,sBAAuB,CAC3BH,MAAOA,MAAMvE,WAAW,IAAK,KAC7B4B,MAAO,OAER+C,MAAK,SAAAC,GACa,IAAbA,EAAIC,OACNP,EAAKjD,eAAiBuD,EAAI5D,OAAO8D,QAAQrF,QAAQ,WAAY,IAEjE,IACCsF,OAAM,WAAO,GAClB,K,iBEhFAC,UAAY,YACd,GFTW,WAAkB,IAAIC,EAAI,KAAKC,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,2CAA2C,CAACF,EAAG,MAAM,CAACE,YAAY,UAAUC,SAAS,CAAC,UAAYJ,EAAIK,GAAGL,EAAI5D,mBAAmB4D,EAAIM,GAAG,KAAKL,EAAG,MAAM,CAACM,WAAW,CAAC,CAACxD,KAAK,OAAOyD,QAAQ,SAASC,MAAOT,EAAI7D,WAAYuE,WAAW,eAAeC,MAAM,CAAC,GAAK,aAAaX,EAAIM,GAAG,KAAKL,EAAG,SAAS,CAACM,WAAW,CAAC,CAACxD,KAAK,OAAOyD,QAAQ,SAASC,MAAsC,iBAA/BT,EAAIvC,OAAOC,OAAOC,SAA6B+C,WAAW,8CAA8CE,IAAI,SAASC,YAAY,CAAC,OAAS,SAAS,MAAQ,OAAO,OAAS,QAAQF,MAAM,CAAC,YAAc,IAAI,GAAK,YAAY,IAAM,OACjpB,GACsB,IEUpB,EACA,KACA,WACA,MAIa,UAAAZ,U","file":"56f30bc.js","sourcesContent":["// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","'use strict';\n// TODO: Remove from `core-js@4`\nrequire('../modules/es.string.replace-all');\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar $TypeError = TypeError;\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, position, replacement;\n var endOfLastMatch = 0;\n var result = '';\n if (!isNullOrUndefined(searchValue)) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));\n if (!~indexOf(flags, 'g')) throw new $TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = getMethod(searchValue, REPLACE);\n if (replacer) return call(replacer, searchValue, O, replaceValue);\n if (IS_PURE && IS_REG_EXP) return replace(toString(O), searchValue, replaceValue);\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = indexOf(string, searchString);\n while (position !== -1) {\n replacement = functionalReplace\n ? toString(replaceValue(searchString, position, string))\n : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n result += stringSlice(string, endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += stringSlice(string, endOfLastMatch);\n }\n return result;\n }\n});\n","export * from \"-!../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_newsName.vue?vue&type=style&index=0&id=c169e2c2&prod&lang=scss&scoped=true\"","\nexport default {\n data() {\n return {\n showMargin: true,\n articleDetails: '',\n routerParams: {},\n profileform: {},\n defaultURL:\n 'https://forms.zohopublic.com/promocollectionau/form/PCIndentSourcingForm/formperma/I8RpkeF104QfGCw2oK_PUZtj5lCwdwZEY5QJJpvllVI',\n }\n },\n computed: {\n userInfo() {\n return this.$store.state.userInfo || {}\n },\n computedURL() {\n if (this.userInfo.email) {\n const config = {\n name: this.userInfo.contacts,\n phone: this.userInfo.phone,\n email: this.userInfo.email,\n company: this.userInfo.company,\n }\n let query = ''\n for (const key in config) {\n if (config[key]) {\n query += `&${key}=${encodeURIComponent(config[key])}`\n }\n }\n query = query.slice(1)\n return this.defaultURL + '?' + query\n } else {\n return this.defaultURL\n }\n },\n },\n watch: {\n userInfo() {\n if (this.$route.params.newsName === 'indent-ideas') {\n setTimeout(() => {\n const target = document.getElementById('formFrame')\n target.src = this.computedURL\n }, 1000)\n }\n },\n },\n async created() {\n const paramsData = this.$cookies.get('paramsData')\n if (paramsData) {\n this.routerParams = paramsData\n } else {\n this.routerParams = this.$route.params\n this.$cookies.set('paramsData', this.$route.params)\n }\n await this.getArticleDetails()\n this.showMargin = true\n },\n mounted() {\n if (this.$route.params.newsName === 'indent-ideas') {\n setTimeout(() => {\n const target = document.getElementById('formFrame')\n target.src = this.computedURL\n }, 1000)\n }\n setTimeout(() => {\n this.showMargin = false\n }, 2000)\n },\n // 这个路由在设计的时候就不对劲, 结构层级只有1层, 但是跳转和传参传了两个params, 导致只有一个参数体现在了url上, 改动页面刷新的时候就会丢失参数id.\n beforeDestroy() {\n this.$cookies.remove('paramsData')\n },\n methods: {\n getArticleDetails() {\n let title = this.$route.params.newsName || ''\n title = decodeURIComponent(title)\n this.$axios\n .post('home/articleDetails', {\n title: title.replaceAll('-', ' '),\n state: 'au',\n })\n .then(res => {\n if (res.code === 1) {\n this.articleDetails = res.result.content.replace(/ /gi, '')\n }\n })\n .catch(() => {})\n },\n },\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_newsName.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_newsName.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./_newsName.vue?vue&type=template&id=c169e2c2&scoped=true\"\nimport script from \"./_newsName.vue?vue&type=script&lang=js\"\nexport * from \"./_newsName.vue?vue&type=script&lang=js\"\nimport style0 from \"./_newsName.vue?vue&type=style&index=0&id=c169e2c2&prod&lang=scss&scoped=true\"\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 \"c169e2c2\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|