classify.js.map 14 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///G:/item/appBase/pages/product/classify.vue?f827","webpack:///G:/item/appBase/pages/product/classify.vue?8556","webpack:///G:/item/appBase/pages/product/classify.vue?9368","webpack:///G:/item/appBase/pages/product/classify.vue?4ff4","uni-app:///pages/product/classify.vue","webpack:///G:/item/appBase/pages/product/classify.vue?b148","webpack:///G:/item/appBase/pages/product/classify.vue?470d"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,qG;AACAA,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;AACc;;;AAGrE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAgoB,CAAgB,qpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgDppB,+D;AACA;AACA,MADA,kBACA;AACA;AACA,cADA;AAEA,mBAFA;;AAIA,GANA;AAOA,QAPA,kBAOA,MAPA,EAOA;AACA;AACA;AACA;AACA;AACA,GAZA;AAaA;AACA;AACA;AACA,iDADA;;AAGA,KALA;AAMA;AACA,YAPA,sBAOA;AACA;AACA,oBADA,CACA;AACA;AACA;AACA;AACA;AACA,iBANA;AAOA,qBAPA,CAOA;AACA;AACA,iBATA,EADA;AAWA,KAlBA;AAmBA;AACA,kBApBA,0BAoBA,IApBA,EAoBA;;;;;;AAMA;AACA;AACA,4BADA;;AAGA;AACA,KA/BA,EAbA,E;;;;;;;;;;;;;ACjDA;AAAA;AAAA;AAAA;AAA0pC,CAAgB,2nCAAG,EAAC,C;;;;;;;;;;;ACA9qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/product/classify.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/product/classify.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./classify.vue?vue&type=template&id=2f41d3c6&\"\nvar renderjs\nimport script from \"./classify.vue?vue&type=script&lang=js&\"\nexport * from \"./classify.vue?vue&type=script&lang=js&\"\nimport style0 from \"./classify.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/product/classify.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classify.vue?vue&type=template&id=2f41d3c6&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classify.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classify.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"container\">\r\n\t\t<!-- 头部轮播 -->\r\n\t\t<view class=\"carousel-section\">\r\n\t\t\t<swiper class=\"carousel\" autoplay=\"true\" duration=\"400\" interval=\"5000\">\r\n\t\t\t\t<swiper-item v-for=\"(item, index) in bannerImg\" :key=\"index\" class=\"carousel-item\" @click=\"bannerNavToUrl(item)\">\r\n\t\t\t\t\t<image :src=\"item.img\" mode=\" scaleToFill\" />\r\n\t\t\t\t</swiper-item>\r\n\t\t\t</swiper>\r\n\t\t</view>\r\n\t\t<view class=\"type-title-box flex\">\r\n\t\t\t<view class=\"title-border\"></view>\r\n\t\t\t<view class=\"title-content\">\r\n\t\t\t\t<text v-if=\"type == 1\">精品推荐</text>\r\n\t\t\t\t<text v-if=\"type == 2\">热门榜单</text>\r\n\t\t\t\t<text v-if=\"type == 3\">首发新品</text>\r\n\t\t\t\t<text v-if=\"type == 4\">促销单品</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"title-border\"></view>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"goodsList-box\">\r\n\t\t\t<view class=\"goodsList-item flex\" :key=\"ind\" v-for=\"(ls, ind) in list\">\r\n\t\t\t\t<image :src=\"ls.image\" mode=\" scaleToFill\"></image>\r\n\t\t\t\t<view class=\"goodsList-content\">\r\n\t\t\t\t\t<view class=\"title\">\r\n\t\t\t\t\t\t<text>{{ ls.store_name }}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"goods-money flex\">\r\n\t\t\t\t\t\t<view class=\"money-box\">\r\n\t\t\t\t\t\t\t<view class=\"money\">\r\n\t\t\t\t\t\t\t\t<text class=\"font-size-sm\">¥</text>\r\n\t\t\t\t\t\t\t\t{{ ls.price }}\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"otMoney-box\">\r\n\t\t\t\t\t\t\t\t<text class=\"otMoney\">¥{{ ls.ot_price }}</text>\r\n\t\t\t\t\t\t\t\t<text class=\"sales\">已售{{ ls.sales }}件</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view @click=\"navTo(ls)\" class=\"cart iconfont iconcart\"></view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport { groomList } from '@/api/product.js';\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tlist: [],\r\n\t\t\tbannerImg: []\r\n\t\t};\r\n\t},\r\n\tonLoad(option) {\r\n\t\t// 获取查询对象\r\n\t\tthis.type = option.type;\r\n\t\t// 加载基础数据\r\n\t\tthis.loadData();\r\n\t},\r\n\tmethods: {\r\n\t\tnavTo: function(ls) {\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: '/pages/product/product?id=' + ls.id\r\n\t\t\t});\r\n\t\t},\r\n\t\t// 请求载入数据\r\n\t\tasync loadData() {\r\n\t\t\tgroomList({}, this.type)\r\n\t\t\t\t.then(({ data }) => {\r\n\t\t\t\t\t// 保存轮播图\r\n\t\t\t\t\tthis.bannerImg = data.banner;\r\n\t\t\t\t\t// 保存商品信息\r\n\t\t\t\t\tthis.list = data.list;\r\n\t\t\t\t})\r\n\t\t\t\t.catch(e => {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t});\r\n\t\t},\r\n\t\t// 轮播图跳转\r\n\t\tbannerNavToUrl(item) {\r\n\t\t\t// #ifdef H5\r\n\t\t\tif (item.wap_link.indexOf('http') > 0) {\r\n\t\t\t\twindow.location.href = item.wap_link;\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t\tif (item.wap_link) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: item.wap_link\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\npage {\r\n\tbackground: $page-color-base;\r\n}\r\n.carousel-section {\r\n\tpadding: 0;\r\n\t.titleNview-placing {\r\n\t\tpadding-top: 0;\r\n\t\theight: 0;\r\n\t}\r\n\t.swiper-dots {\r\n\t\tleft: 45rpx;\r\n\t\tbottom: 40rpx;\r\n\t}\r\n\t.carousel {\r\n\t\twidth: 100%;\r\n\t\theight: 360rpx;\r\n\t\t.carousel-item {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\toverflow: hidden;\r\n\t\t}\r\n\t\timage {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t}\r\n\t}\r\n}\r\n// 中间标题样式\r\n.type-title-box {\r\n\tpadding: 40rpx;\r\n\t.title-content {\r\n\t\theight: 100%;\r\n\t\twidth: 200rpx;\r\n\t\ttext-align: center;\r\n\t\tfont-size: $font-lg;\r\n\t\tfont-weight: 500;\r\n\t\tcolor: $font-color-dark;\r\n\t}\r\n\t.title-border {\r\n\t\twidth: 250rpx;\r\n\t\theight: 2rpx;\r\n\t\tbackground-color: #e9e9e9;\r\n\t}\r\n}\r\n// 商品列表\r\n.goodsList-box {\r\n\t.goodsList-item {\r\n\t\tmargin-bottom: 40rpx;\r\n\t\tbackground-color: #ffffff;\r\n\t\tpadding: 30rpx;\r\n\t\timage {\r\n\t\t\tflex-shrink: 0;\r\n\t\t\tborder-radius: $border-radius-sm;\r\n\t\t\theight: 180rpx;\r\n\t\t\twidth: 180rpx;\r\n\t\t}\r\n\t\t.goodsList-content {\r\n\t\t\tmargin-left: 20rpx;\r\n\t\t\tflex-grow: 1;\r\n\t\t\theight: 180rpx;\r\n\t\t\tposition: relative;\r\n\t\t\t.title {\r\n\t\t\t\tfont-size: $font-base;\r\n\t\t\t\tcolor: $font-color-dark;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t}\r\n\t\t\t.goods-money {\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tleft: 0;\r\n\t\t\t\tbottom: 0;\r\n\t\t\t\twidth:100%;\r\n\t\t\t\t.money-box {\r\n\t\t\t\t\t.money {\r\n\t\t\t\t\t\tfont-size: $font-lg;\r\n\t\t\t\t\t\tcolor: $color-red;\r\n\t\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.otMoney-box {\r\n\t\t\t\t\t\tfont-size: $font-sm;\r\n\t\t\t\t\t\t.otMoney {\r\n\t\t\t\t\t\t\tcolor: $font-color-dark;\r\n\t\t\t\t\t\t\tpadding-right: 20rpx;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t.sales {\r\n\t\t\t\t\t\t\tcolor: $font-color-light;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t.cart {\r\n\t\t\t\t\tborder: 1px solid $color-red;\r\n\t\t\t\t\tcolor: $color-red;\r\n\t\t\t\t\tfont-size: $font-base;\r\n\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\tborder-radius: 99px;\r\n\t\t\t\t\twidth: 55rpx;\r\n\t\t\t\t\theight: 55rpx;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\tjustify-content: center;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classify.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./classify.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084529\n var cssReload = require(\"D:/work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}