{"version":3,"sources":["webpack:///./src/views/Shop.vue?463f","webpack:///./src/components/shop/ShopHeader.vue?91af","webpack:///./src/components/shop/ShopHeader.vue","webpack:///./src/components/shop/ShopHeader.vue?9c6c","webpack:///./src/components/shop/ShopHeader.vue?415e","webpack:///./src/views/Shop.vue","webpack:///./src/views/Shop.vue?3ea7","webpack:///./src/views/Shop.vue?74a3","webpack:///./src/views/Shop.vue?53b4"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","name","param","shopId","storeId","_v","_l","menu","key","id","path","url","_s","selectByLang","titleCn","titleEn","subMenu","$route","staticRenderFns","$t","storeInfo","getImageSource","submenuImageSize","logo","_e","nameCn","nameEn","storeQRCodeImg","style","backgroundImage","bannerSize","banner","size","optionCn","optionEn","api","getStoreInfo","resp","data","console","log","$store","getters","locale","storeQRCode","params","components","ShortCut","ShoppingCartBox","SearchBox","component","img","navigation","table","getStorehomeNav","ShopHeader"],"mappings":"+GAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,cAAcC,MAAM,CAAC,GAAK,UAAU,CAACH,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,KAAK,CAACA,EAAG,KAAK,CAACA,EAAG,cAAc,CAACG,MAAM,CAAC,GAAK,CAAEC,KAAM,YAAaC,MAAM,CAACC,OAAQV,EAAIW,YAAa,CAACX,EAAIY,GAAG,WAAW,GAAGZ,EAAIa,GAAIb,EAAc,YAAE,SAASc,GAAM,OAAOV,EAAG,KAAK,CAACW,IAAID,EAAKE,IAAI,CAACZ,EAAG,cAAc,CAACG,MAAM,CAAC,GAAK,CAACU,KAAMH,EAAKI,OAAO,CAAClB,EAAIY,GAAGZ,EAAImB,GAAGnB,EAAIoB,aAAaN,EAAKO,QAASP,EAA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3C,KAAK0D,WAAaf,EAAKC,KAnB7B,mDAqBMC,QAAQC,IAAR,MArBN,6IAQI,OAAO9C,KAAK+C,OAAOC,QAAQC,SAR/B,8BAYI,OAAOjD,KAAKuB,OAAO4B,OAAO1C,WAZ9B,GAAkC,QAAb,EAAI,gBALxB,eAAU,CACT2C,WAAY,CACVS,WAAA,MAGiB,WClC0W,ICQ3X,G,UAAY,eACd,EACA/D,EACA0B,GACA,EACA,KACA,KACA,OAIa,e,kECnBf,yBAAygB,EAAG","file":"static/js/Shop.36c2b6e3.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"whiteBgWrap\",attrs:{\"id\":\"store\"}},[_c('ShopHeader'),_c('div',{staticClass:\"storeMenu\"},[_c('div',{staticClass:\"container clearfix\"},[_c('ul',[_c('li',[_c('router-link',{attrs:{\"to\":{ name: 'ShopIndex', param:{shopId: _vm.storeId} }}},[_vm._v(\"店铺首页\")])],1),_vm._l((_vm.navigation),function(menu){return _c('li',{key:menu.id},[_c('router-link',{attrs:{\"to\":{path: menu.url}}},[_vm._v(_vm._s(_vm.selectByLang(menu.titleCn, menu.titleEn)))]),_c('ul',{staticClass:\"storeSubMenu\"},_vm._l((menu.submenuList),function(subMenu){return _c('li',{key:subMenu.id},[_c('router-link',{attrs:{\"to\":{path: subMenu.url}}},[_vm._v(_vm._s(_vm.selectByLang(subMenu.titleCn, subMenu.titleEn)))])],1)}),0)],1)})],2)])]),_c('router-view',{key:this.$route.path})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('ShortCut'),_c('div',{staticClass:\"store\",attrs:{\"id\":\"header\"}},[_c('div',{staticClass:\"container clearfix\"},[_c('router-link',{staticClass:\"logo\",attrs:{\"to\":{ name: 'Home' },\"tag\":\"a\",\"title\":_vm.$t('Header.slogan')}}),_c('div',{staticClass:\"storeInfo\"},[(_vm.storeInfo.logo)?_c('div',{staticClass:\"storeImg\"},[_c('img',{attrs:{\"src\":_vm.getImageSource(this.submenuImageSize, _vm.storeInfo.logo)}})]):_vm._e(),_c('span',{staticClass:\"storeName\"},[_vm._v(_vm._s(_vm.selectByLang(_vm.storeInfo.nameCn, _vm.storeInfo.nameEn)))]),_c('div',{staticClass:\"mobileStore\"},[_vm._v(\" 前往手机店铺 \"),_c('div',{staticClass:\"storeCode hide\"},[_c('img',{attrs:{\"src\":_vm.storeQRCodeImg}}),_vm._v(\" 手机逛杨桃 \")])])]),_c('SearchBox',{attrs:{\"isShopPage\":true,\"is-my-account\":false}}),_c('ShoppingCartBox')],1)]),(_vm.storeInfo.banner)?_c('div',{staticClass:\"storeHeader\",style:({ backgroundImage: (\"url(\" + (_vm.getImageSource(this.bannerSize, _vm.storeInfo.banner)) + \")\") })}):_vm._e()],1)}\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\r\nimport {Component, Vue} from \"vue-property-decorator\";\r\nimport ShortCut from \"@/components/Header/ShortCut.vue\";\r\nimport ShoppingCartBox from \"@/components/Header/ShoppingCartBox.vue\";\r\nimport SearchBox from \"@/components/Header/SearchBox.vue\";\r\nimport api from \"@/api/api\";\r\nimport getImageSource from \"@/helpers/getImageSource.ts\";\r\nimport selectByLang from \"@/helpers/selectByLang\";\r\nimport {StoreInfo} from \"@/helpers/interfaces\";\r\n\r\n\r\n@Component({\r\n components: {\r\n ShortCut,\r\n ShoppingCartBox,\r\n SearchBox,\r\n },\r\n})\r\nexport default class ShopHeader extends Vue {\r\n public storeInfo = {} as StoreInfo;\r\n public submenuImageSize = '60'\r\n public bannerSize = '1000'\r\n\r\n public getImageSource(size: string, path: string){\r\n return getImageSource(size, path)\r\n }\r\n\r\n get lang(){\r\n return this.$store.getters.locale\r\n }\r\n\r\n public selectByLang(optionCn, optionEn) {\r\n return selectByLang(optionCn, optionEn)\r\n }\r\n\r\n get page() {\r\n return this.$route.name;\r\n }\r\n\r\n get storeQRCodeImg(){\r\n return 'data:image/jpeg;base64, ' + this.storeInfo.storeQRCode\r\n }\r\n\r\n get storeId(){\r\n return this.$route.params.shopId\r\n }\r\n\r\n public async getStoreInfo(){\r\n try {\r\n const resp = await api.getStoreInfo(this.storeId)\r\n if(resp.data){\r\n this.storeInfo = resp.data;\r\n }\r\n } catch (e) {\r\n console.log(e)\r\n }\r\n }\r\n\r\n async created(){\r\n await this.getStoreInfo()\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/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!./ShopHeader.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/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!./ShopHeader.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ShopHeader.vue?vue&type=template&id=34a15eec&\"\nimport script from \"./ShopHeader.vue?vue&type=script&lang=ts&\"\nexport * from \"./ShopHeader.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports","\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, Vue} from \"vue-property-decorator\";\r\nimport api from '@/api/api'\r\nimport ShopHeader from \"@/components/shop/ShopHeader.vue\";\r\nimport selectByLang from \"@/helpers/selectByLang\";\r\n\r\n@Component({\r\n components: {\r\n ShopHeader\r\n }\r\n})\r\nexport default class Shop extends Vue {\r\n public img = 'storeHeader.png'\r\n public navigation = [] as any[]\r\n public selectByLang(optionCn, optionEn) {\r\n return selectByLang(optionCn, optionEn)\r\n }\r\n\r\n get lang(){\r\n return this.$store.getters.locale\r\n }\r\n\r\n get storeId(){\r\n return this.$route.params.shopId\r\n }\r\n\r\n async created(){\r\n console.table('storeId', this.storeId)\r\n try{\r\n const resp = await api.getStorehomeNav(this.storeId)\r\n this.navigation = resp.data\r\n }catch (e){\r\n console.log(e)\r\n }\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/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!./Shop.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/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!./Shop.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Shop.vue?vue&type=template&id=3ee757b3&\"\nimport script from \"./Shop.vue?vue&type=script&lang=ts&\"\nexport * from \"./Shop.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Shop.vue?vue&type=style&index=0&lang=scss&\"\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 null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Shop.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Shop.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}