You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
7.6 KiB
1 lines
7.6 KiB
{"version":3,"sources":["webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/Recommend.vue?c63b","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/Recommend.vue?cd84","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/Recommend.vue?f6c9","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/components/Recommend.vue?fdf9","uni-app:///components/Recommend.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;;;AAGxD;AAC6M;AAC7M,gBAAgB,iNAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;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;AAAwzB,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwB50B,yD;;;;;;;;;;;;;;;;;;;;;;;oSAIA,EACA,iBADA,EAEA,SACA,yBADA,EAFA,EAKA,cACA,gBADA,EALA,EAQA,SACA,gBADA,4BACA,WADA,EACA,CACA,kBACA,oBACA,CACA,CALA,EARA,EAeA,uBACA,SACA,eADA,EAEA,OAFA,EAGA,SAHA;AAIA,mBAJA;AAKA,oBALA;AAMA,oBANA;;AAQA,GAxBA;AAyBA;AACA;AACA,GA3BA;AA4BA;AACA,YADA,oBACA,IADA,EACA;AACA;AACA,0CADA;AAEA;AACA,qBADA,EAFA;;;AAMA,KARA;AASA;AACA;AACA,+BAFA,CAEA;AACA,+BAHA,CAGA;AACA;AACA;AACA;AACA;AACA;AACA,oDAJA,CAIA;AACA;AACA;AACA,OAPA;AAQA,KAtBA,EA5BA,E","file":"components/Recommend.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./Recommend.vue?vue&type=template&id=4fa327f1&\"\nvar renderjs\nimport script from \"./Recommend.vue?vue&type=script&lang=js&\"\nexport * from \"./Recommend.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../Applications/HBuilderX.app/Contents/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 = \"components/Recommend.vue\"\nexport default component.exports","export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Recommend.vue?vue&type=template&id=4fa327f1&\"","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 \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Recommend.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./Recommend.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"recommend\" ref=\"container\">\n\t\t<view class=\"title acea-row row-center-wrapper\">\n\t\t\t<text class=\"iconfont icon-zhuangshixian\"></text>\n\t\t\t<text class=\"name\">为你推荐</text>\n\t\t\t<text class=\"iconfont icon-zhuangshixian lefticon\"></text>\n\t\t</view>\n\t\t<view class=\"recommendList acea-row row-between-wrapper\">\n\t\t\t<view @click=\"routerGo(item)\" class=\"item\" v-for=\"(item, recommendIndex) in hostProduct\"\n\t\t\t\t:key=\"recommendIndex\">\n\t\t\t\t<view class=\"pictrue\">\n\t\t\t\t\t<image :src=\"item.image\" class=\"image\" />\n\t\t\t\t</view>\n\t\t\t\t<view class=\"name line1\">{{ item.storeName }}</view>\n\t\t\t\t<view class=\"money font-color-red\">\n\t\t\t\t\t¥\n\t\t\t\t\t<text class=\"num\">{{ item.price }}</text>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<Loading :loaded=\"loadend\" :loading=\"loading\"></Loading>\n\t</view>\n</template>\n<script>\n\timport {\n\t\tgetHostProducts\n\t} from '@/api/store';\n\timport Loading from '@/components/Loading';\n\texport default {\n\t\tname: 'Recommend',\n\t\tprops: {\n\t\t\trecommendLoading: Boolean\n\t\t},\n\t\tcomponents: {\n\t\t\tLoading\n\t\t},\n\t\twatch: {\n\t\t\trecommendLoading(nextLoading) {\n\t\t\t\tif (nextLoading) {\n\t\t\t\t\tthis.hostProducts()\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tdata: function () {\n\t\t\treturn {\n\t\t\t\thostProduct: [],\n\t\t\t\tpage: 1,\n\t\t\t\tlimit: 20,\n\t\t\t\tloadTitle: '',\n\t\t\t\tloading: false,\n\t\t\t\tloadend: false\n\t\t\t};\n\t\t},\n\t\tmounted: function () {\n\t\t\tthis.hostProducts();\n\t\t},\n\t\tmethods: {\n\t\t\trouterGo(item) {\n\t\t\t\tthis.$yrouter.push({\n\t\t\t\t\tpath: '/pages/shop/GoodsCon/index',\n\t\t\t\t\tquery: {\n\t\t\t\t\t\tid: item.id\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t},\n\t\t\thostProducts: function () {\n\t\t\t\tlet that = this;\n\t\t\t\tif (that.loading) return; //阻止下次请求(false可以进行请求);\n\t\t\t\tif (that.loadend) return; //阻止结束当前请求(false可以进行请求);\n\t\t\t\tthat.loading = true;\n\t\t\t\tgetHostProducts(that.page, that.limit).then(res => {\n\t\t\t\t\tthat.loading = false;\n\t\t\t\t\t//apply();js将一个数组插入另一个数组;\n\t\t\t\t\tthat.hostProduct.push.apply(that.hostProduct, res.data);\n\t\t\t\t\tthat.loadend = res.data.length < that.limit; //判断所有数据是否加载完成;\n\t\t\t\t\tthat.page = that.page + 1;\n\t\t\t\t\tthis.$emit('changeRecommendLoading', false)\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t};\n</script>\n"],"sourceRoot":""} |