chunk-d764fe90.294b24f4.js.map 8.9 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noCollection.png","webpack:///./src/views/shop/GoodsCollection.vue?a502","webpack:///src/views/shop/GoodsCollection.vue","webpack:///./src/views/shop/GoodsCollection.vue?8a3d","webpack:///./src/views/shop/GoodsCollection.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","ref","collectProductList","length","staticClass","_l","item","index","key","attrs","path","pid","image","_v","_s","store_name","price","on","$event","preventDefault","delCollection","_e","loadend","loading","page","staticStyle","_m","staticRenderFns","name","components","Recommend","Loading","props","data","limit","loadTitle","mounted","get_user_collect_product","$scroll","$refs","container","methods","that","push","apply","res","$dialog","toast","mes","callback","splice","$set","component"],"mappings":"mGAAAA,EAAOC,QAAU,IAA0B,oC,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,aAAa,CAAEN,EAAIO,mBAAmBC,OAAS,EAAGJ,EAAG,MAAM,CAACK,YAAY,mBAAmBT,EAAIU,GAAIV,EAAsB,oBAAE,SAASW,EAAKC,GAAO,OAAOR,EAAG,cAAc,CAACS,IAAID,EAAMH,YAAY,oCAAoCK,MAAM,CAAC,GAAK,CAAEC,KAAM,WAAaJ,EAAKK,OAAQ,CAACZ,EAAG,MAAM,CAACK,YAAY,WAAW,CAACL,EAAG,MAAM,CAACU,MAAM,CAAC,IAAMH,EAAKM,WAAWb,EAAG,MAAM,CAACK,YAAY,oCAAoC,CAACL,EAAG,MAAM,CAACK,YAAY,eAAe,CAACT,EAAIkB,GAAGlB,EAAImB,GAAGR,EAAKS,eAAehB,EAAG,MAAM,CAACK,YAAY,gCAAgC,CAACL,EAAG,MAAM,CAACK,YAAY,wBAAwB,CAACT,EAAIkB,GAAG,IAAIlB,EAAImB,GAAGR,EAAKU,UAAUjB,EAAG,MAAM,CAACK,YAA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ACM,OAAN,OAAM,CAAN,sBACQsB,EAAKI,QAAQC,MAAM,CACjBC,IAAK,UACLC,SAAU,WACRP,EAAKxC,mBAAmBgD,OAAO3C,EAAO,GACtCmC,EAAKS,KAAKT,EAAM,qBAAsBA,EAAKxC,6BCnFqZ,I,YCOxckD,EAAY,eACd,EACA1D,EACAiC,GACA,EACA,KACA,KACA,MAIa,aAAAyB,E","file":"h5/js/chunk-d764fe90.294b24f4.js","sourcesContent":["module.exports = __webpack_public_path__ + \"h5/img/noCollection.46d9f620.png\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\"},[(_vm.collectProductList.length > 0)?_c('div',{staticClass:\"collectionGoods\"},_vm._l((_vm.collectProductList),function(item,index){return _c('router-link',{key:index,staticClass:\"item acea-row row-between-wrapper\",attrs:{\"to\":{ path: '/detail/' + item.pid }}},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":item.image}})]),_c('div',{staticClass:\"text acea-row row-column-between\"},[_c('div',{staticClass:\"infor line1\"},[_vm._v(_vm._s(item.store_name))]),_c('div',{staticClass:\"acea-row row-between-wrapper\"},[_c('div',{staticClass:\"money font-color-red\"},[_vm._v(\"¥\"+_vm._s(item.price))]),_c('div',{staticClass:\"delete\",on:{\"click\":function($event){$event.preventDefault();return _vm.delCollection(index)}}},[_vm._v(\"删除\")])])])])}),1):_vm._e(),_c('Loading',{attrs:{\"loaded\":_vm.loadend,\"loading\":_vm.loading}}),(_vm.collectProductList.length < 1 && _vm.page > 1)?_c('div',{staticClass:\"noCommodity\",staticStyle:{\"background-color\":\"#fff\"}},[_vm._m(0),_c('Recommend')],1):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"noPictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":require(\"@assets/images/noCollection.png\")}})])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div ref=\"container\">\r\n <div class=\"collectionGoods\" v-if=\"collectProductList.length > 0\">\r\n <router-link\r\n :to=\"{ path: '/detail/' + item.pid }\"\r\n class=\"item acea-row row-between-wrapper\"\r\n v-for=\"(item, index) in collectProductList\"\r\n :key=\"index\"\r\n >\r\n <div class=\"pictrue\"><img :src=\"item.image\" /></div>\r\n <div class=\"text acea-row row-column-between\">\r\n <div class=\"infor line1\">{{ item.store_name }}</div>\r\n <div class=\"acea-row row-between-wrapper\">\r\n <div class=\"money font-color-red\">¥{{ item.price }}</div>\r\n <div class=\"delete\" @click.prevent=\"delCollection(index)\">删除</div>\r\n </div>\r\n </div>\r\n </router-link>\r\n </div>\r\n <Loading :loaded=\"loadend\" :loading=\"loading\"></Loading>\r\n <div\r\n class=\"noCommodity\"\r\n style=\"background-color:#fff;\"\r\n v-if=\"collectProductList.length < 1 && page > 1\"\r\n >\r\n <div class=\"noPictrue\">\r\n <img src=\"@assets/images/noCollection.png\" class=\"image\" />\r\n </div>\r\n <Recommend></Recommend>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport Recommend from \"@components/Recommend\";\r\nimport { getCollectUser, getCollectDel } from \"@api/user\";\r\nimport Loading from \"@components/Loading\";\r\nexport default {\r\n name: \"GoodsCollection\",\r\n components: {\r\n Recommend,\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n page: 1,\r\n limit: 20,\r\n collectProductList: [],\r\n loadTitle: \"\",\r\n loading: false,\r\n loadend: false\r\n };\r\n },\r\n mounted: function() {\r\n this.get_user_collect_product();\r\n this.$scroll(this.$refs.container, () => {\r\n !this.loading && this.get_user_collect_product();\r\n });\r\n },\r\n methods: {\r\n get_user_collect_product: function() {\r\n let that = this;\r\n if (that.loading) return; //阻止下次请求(false可以进行请求);\r\n if (that.loadend) return; //阻止结束当前请求(false可以进行请求);\r\n that.loading = true;\r\n getCollectUser(that.page, that.limit).then(res => {\r\n that.loading = false;\r\n //apply();js将一个数组插入另一个数组;\r\n that.collectProductList.push.apply(that.collectProductList, res.data);\r\n that.loadend = res.data.length < that.limit; //判断所有数据是否加载完成;\r\n that.page = that.page + 1;\r\n });\r\n },\r\n //删除收藏;\r\n delCollection: function(index) {\r\n let that = this,\r\n id = that.collectProductList[index].pid,\r\n category = that.collectProductList[index].category;\r\n getCollectDel(id, category).then(function() {\r\n that.$dialog.toast({\r\n mes: \"删除收藏成功!\",\r\n callback: () => {\r\n that.collectProductList.splice(index, 1);\r\n that.$set(that, \"collectProductList\", that.collectProductList);\r\n }\r\n });\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!./GoodsCollection.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!./GoodsCollection.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GoodsCollection.vue?vue&type=template&id=de2424f2&\"\nimport script from \"./GoodsCollection.vue?vue&type=script&lang=js&\"\nexport * from \"./GoodsCollection.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":""}