{"version":3,"sources":["webpack:///./src/views/shop/HotNewGoods.vue?e049","webpack:///src/views/shop/HotNewGoods.vue","webpack:///./src/views/shop/HotNewGoods.vue?1750","webpack:///./src/views/shop/HotNewGoods.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","options","RecommendSwiper","_l","item","index","key","src","img","class","icon","_v","_s","name","good-list","goodsList","is-sort","staticRenderFns","HotNewGoodsvue_type_script_lang_js_","components","swiper","vue_awesome_swiper","swiperSlide","GoodList","props","data","imgUrls","pagination","el","clickable","autoplay","disableOnInteraction","delay","loop","speed","observer","observeParents","mounted","titleInfo","getIndexGroomList","methods","type","$route","params","document","title","that","console","log","Object","store","then","res","banner","list","catch","$dialog","toast","mes","msg","shop_HotNewGoodsvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__"],"mappings":"yHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,qBAAgC,CAAAF,EAAA,OAAYE,YAAA,wBAAmC,CAAAF,EAAA,UAAeE,YAAA,iBAAAC,MAAA,CAAoCC,QAAAR,EAAAS,kBAA+BT,EAAAU,GAAAV,EAAA,iBAAAW,EAAAC,GAA2C,OAAAR,EAAA,eAAyBS,IAAAD,EAAAN,YAAA,gBAAqC,CAAAF,EAAA,OAAYE,YAAA,cAAAC,MAAA,CAAiCO,IAAAH,EAAAI,WAAoB,GAAAX,EAAA,OAAeE,YAAA,uBAAgC,GAAAF,EAAA,OAAgBE,YAAA,qCAAgD,CAAAF,EAAA,OAAYE,YAAA,SAAmBF,EAAA,OAAYE,YAAA,QAAmB,CAAAF,EAAA,QAAaE,YAAA,WAAAU,MAAAhB,EAAAiB,OAAsCjB,EAAAkB,GAAAlB,EAAAmB,GAAAnB,EAAAoB,MAAA,YAAAhB,EAAA,OAAgDE,YAAA,WAAmBF,EAAA,YAAmBG,MAAA,CAAOc,YAAArB,EAAAsB,UAAAC,WAAA,MAA2C,IAC7xBC,EAAA,mDC4BAC,EAAA,CACAL,KAAA,cACAM,WAAA,CACAC,OAAAC,EAAA,UACAC,YAAAD,EAAA,eACAE,WAAA,MAEAC,MAAA,GACAC,KAAA,WACA,OACAC,QAAA,GACAX,UAAA,GACAF,KAAA,GACAH,KAAA,GACAR,gBAAA,CACAyB,WAAA,CACAC,GAAA,qBACAC,WAAA,GAEAC,SAAA,CACAC,sBAAA,EACAC,MAAA,KAEAC,MAAA,EACAC,MAAA,IACAC,UAAA,EACAC,gBAAA,KAIAC,QAAA,WACA3C,KAAA4C,YACA5C,KAAA6C,qBAEAC,QAAA,CACAF,UAAA,WACA,IAAAG,EAAA/C,KAAAgD,OAAAC,OAAAF,KACA,MAAAA,GACA/C,KAAAmB,KAAA,OACAnB,KAAAgB,KAAA,sBACAkC,SAAAC,MAAA,QACA,MAAAJ,GACA/C,KAAAmB,KAAA,OACAnB,KAAAgB,KAAA,aACAkC,SAAAC,MAAA,QACA,MAAAJ,IACA/C,KAAAmB,KAAA,OACAnB,KAAAgB,KAAA,cACAkC,SAAAC,MAAA,SAGAN,kBAAA,WACA,IAAAO,EAAApD,KACA+C,EAAA/C,KAAAgD,OAAAC,OAAAF,KACAM,QAAAC,IAAAP,GACAQ,OAAAC,EAAA,KAAAD,CAAAR,GACAU,KAAA,SAAAC,GACAN,EAAApB,QAAA0B,EAAA3B,KAAA4B,OACAP,EAAA/B,UAAAqC,EAAA3B,KAAA6B,KACAP,QAAAC,IAAAI,EAAA3B,KAAA6B,QAEAC,MAAA,SAAAH,GACA1D,KAAA8D,QAAAC,MAAA,CAAAC,IAAAN,EAAAO,WC3FoWC,EAAA,cCOpWC,EAAgBZ,OAAAa,EAAA,KAAAb,CACdW,EACApE,EACAyB,GACF,EACA,KACA,KACA,MAIe8C,EAAA,WAAAF","file":"h5/js/chunk-2d0f0b4a.57f81928.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"quality-recommend\"},[_c('div',{staticClass:\"slider-banner swiper\"},[_c('swiper',{staticClass:\"swiper-wrapper\",attrs:{\"options\":_vm.RecommendSwiper}},_vm._l((_vm.imgUrls),function(item,index){return _c('swiperSlide',{key:index,staticClass:\"swiper-slide\"},[_c('img',{staticClass:\"slide-image\",attrs:{\"src\":item.img}})])}),1),_c('div',{staticClass:\"swiper-pagination\"})],1),_c('div',{staticClass:\"title acea-row row-center-wrapper\"},[_c('div',{staticClass:\"line\"}),_c('div',{staticClass:\"name\"},[_c('span',{staticClass:\"iconfont\",class:_vm.icon}),_vm._v(_vm._s(_vm.name)+\"\\n    \")]),_c('div',{staticClass:\"line\"})]),_c('GoodList',{attrs:{\"good-list\":_vm.goodsList,\"is-sort\":false}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <div class=\"quality-recommend\">\r\n    <div class=\"slider-banner swiper\">\r\n      <swiper class=\"swiper-wrapper\" :options=\"RecommendSwiper\">\r\n        <swiperSlide\r\n          class=\"swiper-slide\"\r\n          v-for=\"(item, index) in imgUrls\"\r\n          :key=\"index\"\r\n        >\r\n          <img :src=\"item.img\" class=\"slide-image\" />\r\n        </swiperSlide>\r\n      </swiper>\r\n      <div class=\"swiper-pagination\"></div>\r\n    </div>\r\n    <div class=\"title acea-row row-center-wrapper\">\r\n      <div class=\"line\"></div>\r\n      <div class=\"name\">\r\n        <span class=\"iconfont\" :class=\"icon\"></span>{{ name }}\r\n      </div>\r\n      <div class=\"line\"></div>\r\n    </div>\r\n    <GoodList :good-list=\"goodsList\" :is-sort=\"false\"></GoodList>\r\n  </div>\r\n</template>\r\n<script>\r\nimport { swiper, swiperSlide } from \"vue-awesome-swiper\";\r\nimport \"@assets/css/swiper.min.css\";\r\nimport GoodList from \"@components/GoodList\";\r\nimport { getGroomList } from \"@api/store\";\r\nexport default {\r\n  name: \"HotNewGoods\",\r\n  components: {\r\n    swiper,\r\n    swiperSlide,\r\n    GoodList\r\n  },\r\n  props: {},\r\n  data: function() {\r\n    return {\r\n      imgUrls: [],\r\n      goodsList: [],\r\n      name: \"\",\r\n      icon: \"\",\r\n      RecommendSwiper: {\r\n        pagination: {\r\n          el: \".swiper-pagination\",\r\n          clickable: true\r\n        },\r\n        autoplay: {\r\n          disableOnInteraction: false,\r\n          delay: 2000\r\n        },\r\n        loop: true,\r\n        speed: 1000,\r\n        observer: true,\r\n        observeParents: true\r\n      }\r\n    };\r\n  },\r\n  mounted: function() {\r\n    this.titleInfo();\r\n    this.getIndexGroomList();\r\n  },\r\n  methods: {\r\n    titleInfo: function() {\r\n      let type = this.$route.params.type;\r\n      if (type === \"1\") {\r\n        this.name = \"精品推荐\";\r\n        this.icon = \"icon-jingpintuijian\";\r\n        document.title = \"精品推荐\";\r\n      } else if (type === \"2\") {\r\n        this.name = \"热门榜单\";\r\n        this.icon = \"icon-remen\";\r\n        document.title = \"热门榜单\";\r\n      } else if (type === \"3\") {\r\n        this.name = \"首发新品\";\r\n        this.icon = \"icon-xinpin\";\r\n        document.title = \"首发新品\";\r\n      }\r\n    },\r\n    getIndexGroomList: function() {\r\n      let that = this;\r\n      let type = this.$route.params.type;\r\n      console.log(type);\r\n      getGroomList(type)\r\n        .then(res => {\r\n          that.imgUrls = res.data.banner;\r\n          that.goodsList = res.data.list;\r\n          console.log(res.data.list);\r\n        })\r\n        .catch(function(res) {\r\n          this.$dialog.toast({ mes: res.msg });\r\n        });\r\n    }\r\n  }\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HotNewGoods.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HotNewGoods.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./HotNewGoods.vue?vue&type=template&id=3572433c&\"\nimport script from \"./HotNewGoods.vue?vue&type=script&lang=js&\"\nexport * from \"./HotNewGoods.vue?vue&type=script&lang=js&\"\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"],"sourceRoot":""}