{"version":3,"sources":["webpack:///./src/components/hkTasteBusiness/pc/header/InsHeaderLayout1.vue?a360","webpack:///./src/components/hkTasteBusiness/pc/header/InsHeaderLayout1.vue?a0b3","webpack:///./src/components/hkTasteBusiness/pc/header/InsHeaderLayout1.vue","webpack:///./src/components/hkTasteBusiness/pc/header/InsHeaderLayout1.vue?5501","webpack:///./src/components/hkTasteBusiness/pc/header/InsHeaderLayout1.vue?a9c5"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","attrs","_v","staticRenderFns","showMeunBar","search","key","showMenberCentral","count","isshow","activeIndex","NewItem","complete","fixedBar","logoHide","index","cindex","header","Childs","$Api","promotion","getMenu","then","result","$store","dispatch","ReturnValue","HeaderMenus","FooterMenus","catch","error","n","IsNewWin","Url","window","location","href","open","Type","Value","Id","state","catMenuType","JSON","stringify","parseInt","Vals","ParentId","value","$Storage","get","$router","push","path","name","params","css","lang","member","setUILanguage","$i18n","locale","localStorage","setItem","Reload","shoppingCart","getShoppingCart","addEventListener","scrollTop","document","documentElement","pageYOffset","body","slideDown","fadeOut","ShopCart","Qty","$route","headerMenus","shopCart","deep","components","Menu","Shopcart","InsLogin","InsLangSwitch","CodeSelect","elMenu","component"],"mappings":"0IAAA,0BAAgsB,EAAG,G,0CCAnsB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,WAAW,CAACE,YAAY,gBAAgBF,EAAG,WAAW,CAACE,YAAY,gBAAgBF,EAAG,IAAI,CAACI,MAAM,CAAC,KAAO,6DAA6D,CAACR,EAAIS,GAAG,eAAeL,EAAG,IAAI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MA5HkB,EAAS,gBAf7B,eAAU,CACTC,WAAY,CACVC,KAAM,kBACJ,iDACFC,SAAU,kBACR,iDACFC,SAAU,kBACR,sFACFC,cAAe,kBACb,iDACFC,WAAY,kBACV,iDACFC,OAAQ,kBAAM,qDAGG,WCxHod,I,wBCQreC,EAAY,eACd,EACAhG,EACAW,GACA,EACA,KACA,WACA,MAIa,aAAAqF,E","file":"js/chunk-28440059.7a6109c0.js","sourcesContent":["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!./InsHeaderLayout1.vue?vue&type=style&index=0&id=fe16e6b8&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!./InsHeaderLayout1.vue?vue&type=style&index=0&id=fe16e6b8&scoped=true&lang=less&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"header-layout\"},[_c('div',{staticClass:\"headerBg\"},[_vm._m(0),_c('div',[_c('div',{staticClass:\"headerTop\"},[_c('div',{staticClass:\"inner\"},[_c('InsLogin',{staticClass:\"memberLogin\"}),_c('Shopcart',{staticClass:\"memberLogin\"}),_c('a',{attrs:{\"href\":\"https://www.youtube.com/channel/UC9yMzwX7nsbcvLw5F8-oaFg\"}},[_vm._v(\"Subscribe\")]),_c('a',{attrs:{\"href\":\"/cms/catDetail/40150\"}},[_vm._v(\" Contact Us\")])],1)]),_c('Menu')],1)]),_c('div',{staticClass:\"header-default\"},[_c('div',{staticClass:\"headerBg\"},[_vm._m(1),_c('div',[_c('div',{staticClass:\"headerTop\"},[_c('div',{staticClass:\"inner\"},[_c('InsLogin',{staticClass:\"memberLogin\"}),_c('Shopcart',{staticClass:\"memberLogin\"}),_c('a',{attrs:{\"href\":\"https://www.youtube.com/channel/UC9yMzwX7nsbcvLw5F8-oaFg\"}},[_vm._v(\"Subscribe\")]),_c('a',{attrs:{\"href\":\"/cms/catDetail/40150\"}},[_vm._v(\" Contact Us\")])],1)]),_c('Menu')],1)])]),_c('div',{staticClass:\"clear\"})])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"logoBox\"},[_c('a',{attrs:{\"href\":\"/\"}},[_c('img',{attrs:{\"src\":\"/images/pc/pcindex_09.png\"}})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"logoBox\"},[_c('a',{attrs:{\"href\":\"/\"}},[_c('img',{attrs:{\"src\":\"/images/pc/pcindex_09.png\"}})])])}]\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\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\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\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport $ from 'jquery';\r\n@Component({\r\n components: {\r\n Menu: () =>\r\n import('@/components/business/pc/header/InsMenu.vue'),\r\n Shopcart: () =>\r\n import('@/components/business/pc/header/InsShoppingCart.vue'),\r\n InsLogin: () =>\r\n import('@/components/business/pc/header/InsLogin.vue'),\r\n InsLangSwitch: () =>\r\n import('@/components/business/pc/header/InsLangSwitch.vue'),\r\n CodeSelect: () =>\r\n import('@/components/business/pc/header/InsCodeSelect.vue'),\r\n elMenu: () => import('@/components/business/pc/header/InsElMenu.vue')\r\n }\r\n})\r\nexport default class InsHeader extends Vue {\r\n @Prop() private msg!: string;\r\n showMeunBar:boolean=true;\r\n private search: boolean = false;\r\n private key: string = '';\r\n private showMenberCentral:boolean = false;\r\n private count:number = 0;\r\n private isshow:boolean=false;\r\n private activeIndex:string= '';\r\n private NewItem=[];\r\n private si!:any;\r\n private complete:boolean = false;\r\n private fixedBar:boolean = false;\r\n private logoHide:boolean = true;\r\n // private hhh: any = this.$t('test');\r\n sis (index) {\r\n if (this.complete) return () => {};\r\n this.complete = true;\r\n return (cindex) => {\r\n this.NewItem = this.header[index].Childs[cindex];\r\n };\r\n }\r\n getMenu () {\r\n this.$Api.promotion\r\n .getMenu()\r\n .then(result => {\r\n this.$store.dispatch('setHeaderMenus', result.ReturnValue.HeaderMenus);\r\n this.$store.dispatch('setFooterMenus', result.ReturnValue.FooterMenus);\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n }\r\n toUrl (n) {\r\n if (!n.IsNewWin && n.Url) {\r\n window.location.href = n.Url;\r\n } else if (n.IsNewWin && n.Url) {\r\n window.open(n.Url);\r\n }\r\n }\r\n To (n) {\r\n return n.Type === 1 ? '/cms/catDetail/' + n.Value.Id : n.Type === 2 ? '/CMS/content/' + n.Value.Id : n.Type === 3 ? '/RegNPay/Form/' + n.Value.Id : n.Type === 4 && !this.$store.state.catMenuType ? '/product/cat/' + n.Value.Id : n.Type === 4 && this.$store.state.catMenuType ? '/product/search/-?catalogs=' + JSON.stringify([parseInt(n.Value.Id)]) + '&type=0' : n.Type === 5 ? '/product/search/-?attrs=' + JSON.stringify([{ Id: parseInt(n.Value.Id), Vals: [] }]) + '&type=0' : '/product/search/-?attrs=' + JSON.stringify([{ Id: parseInt(n.ParentId), Vals: [parseInt(n.Value.Id)] }]) + '&type=0';\r\n }\r\n ShowItems (value) {\r\n this.NewItem = value;\r\n }\r\n get showHomePage () {\r\n return this.$route.path;\r\n }\r\n menberCentral () {\r\n if (!this.$Storage.get('isLogin')) this.$router.push('/account/login');\r\n else this.showMenberCentral = !this.showMenberCentral;\r\n }\r\n get header () {\r\n return this.$store.state.headerMenus;\r\n }\r\n get ShopCart () {\r\n return this.$store.state.shopCart;\r\n }\r\n searchFun (key) {\r\n this.$store.dispatch('setSearchKey', key);\r\n if (key !== '') {\r\n this.$router.push({\r\n path: '/product/search',\r\n name: 'productSearch',\r\n params: {\r\n key: key\r\n }\r\n });\r\n } else {\r\n this.$router.push({\r\n path: '/product/search/-'\r\n });\r\n }\r\n }\r\n navShow (index) {\r\n this.activeIndex = index;\r\n $(function () {\r\n $('body').css('overflow-y', 'hidden!important');\r\n });\r\n }\r\n navClose () {\r\n this.activeIndex = '';\r\n $(function () {\r\n $('body').css('overflow-y', 'auto!important');\r\n });\r\n }\r\n get currentlang () {\r\n return this.$i18n.locale;\r\n }\r\n private changLange (lang) {\r\n this.$Api.member\r\n .setUILanguage(lang)\r\n .then(result => {\r\n this.$i18n.locale = lang;\r\n localStorage.setItem('locale', lang);\r\n this.Reload();\r\n })\r\n .catch(error => {\r\n console.log(error);\r\n });\r\n }\r\n created () {\r\n this.$store.dispatch('setShopCart', this.$Api.shoppingCart.getShoppingCart());\r\n addEventListener('scroll', () => {\r\n var _this = this;\r\n let scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;\r\n if (scrollTop >= 294) {\r\n $('.header-default').slideDown(300);\r\n } else {\r\n $('.header-default').fadeOut(300);\r\n }\r\n }, false);\r\n }\r\n @Watch('$route', { deep: true })\r\n onRouteChange () {\r\n this.showMenberCentral = false;\r\n this.search = false;\r\n }\r\n @Watch('ShopCart')\r\n onShopCartChange () {\r\n this.ShopCart.then((result) => {\r\n this.count = result.ShopCart.Qty;\r\n });\r\n }\r\n mounted () {\r\n this.getMenu();\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!./InsHeaderLayout1.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!./InsHeaderLayout1.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InsHeaderLayout1.vue?vue&type=template&id=fe16e6b8&scoped=true&\"\nimport script from \"./InsHeaderLayout1.vue?vue&type=script&lang=ts&\"\nexport * from \"./InsHeaderLayout1.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InsHeaderLayout1.vue?vue&type=style&index=0&id=fe16e6b8&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 \"fe16e6b8\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}