{"version":3,"sources":["webpack:///./src/views/shop/HotNewGoods.vue?27b6","webpack:///src/views/shop/HotNewGoods.vue","webpack:///./src/views/shop/HotNewGoods.vue?01e3","webpack:///./src/views/shop/HotNewGoods.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","RecommendSwiper","_l","item","index","key","img","class","icon","_v","_s","name","goodsList","staticRenderFns","components","swiper","swiperSlide","GoodList","props","data","imgUrls","pagination","el","clickable","autoplay","disableOnInteraction","delay","loop","speed","observer","observeParents","mounted","titleInfo","getIndexGroomList","methods","type","document","title","console","log","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,SAAS,CAACE,YAAY,iBAAiBC,MAAM,CAAC,QAAUP,EAAIQ,kBAAkBR,EAAIS,GAAIT,EAAW,SAAE,SAASU,EAAKC,GAAO,OAAOP,EAAG,cAAc,CAACQ,IAAID,EAAML,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,cAAcC,MAAM,CAAC,IAAMG,EAAKG,YAAW,GAAGT,EAAG,MAAM,CAACE,YAAY,uBAAuB,GAAGF,EAAG,MAAM,CAACE,YAAY,qCAAqC,CAACF,EAAG,MAAM,CAACE,YAAY,SAASF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,OAAO,CAACE,YAAY,WAAWQ,MAAMd,EAAIe,OAAOf,EAAIgB,GAAGhB,EAAIiB,GAAGjB,EAAIkB,MAAM,YAAYd,EAAG,MAAM,CAACE,YAAY,WAAWF,EAAG,WAAW,CAACG,MAAM,CAAC,YAAYP,EAAImB,UAAU,WAAU,MAAU,IAC5xBC,EAAkB,G,gDC4BtB,GACEF,KAAM,cACNG,WAAY,CACVC,OAAJ,YACIC,YAAJ,iBACIC,SAAJ,QAEEC,MAAO,GACPC,KAAM,WACJ,MAAO,CACLC,QAAS,GACTR,UAAW,GACXD,KAAM,GACNH,KAAM,GACNP,gBAAiB,CACfoB,WAAY,CACVC,GAAI,qBACJC,WAAW,GAEbC,SAAU,CACRC,sBAAsB,EACtBC,MAAO,KAETC,MAAM,EACNC,MAAO,IACPC,UAAU,EACVC,gBAAgB,KAItBC,QAAS,WACPrC,KAAKsC,YACLtC,KAAKuC,qBAEPC,QAAS,CACPF,UAAW,WACT,IAAN,0BACmB,MAATG,GACFzC,KAAKiB,KAAO,OACZjB,KAAKc,KAAO,sBACZ4B,SAASC,MAAQ,QACzB,SACQ3C,KAAKiB,KAAO,OACZjB,KAAKc,KAAO,aACZ4B,SAASC,MAAQ,QACzB,UACQ3C,KAAKiB,KAAO,OACZjB,KAAKc,KAAO,cACZ4B,SAASC,MAAQ,SAGrBJ,kBAAmB,WACjB,IAAN,OACA,0BACMK,QAAQC,IAAIJ,GACZ,OAAN,OAAM,CAAN,GACA,kBACQ,EAAR,sBACQ,EAAR,sBACQ,QAAR,oBAEA,mBACQ,KAAR,eAAU,IAAV,cC3Fwc,I,YCOpcK,EAAY,eACd,EACAhD,EACAqB,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"h5/js/chunk-2d0f0b4a.e5e77f46.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@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./HotNewGoods.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@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@15.9.0@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":""}