chunk-d764fe90.009af291.js.map 9.1 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/images/noCollection.png","webpack:///./src/views/shop/GoodsCollection.vue?1d06","webpack:///src/views/shop/GoodsCollection.vue","webpack:///./src/views/shop/GoodsCollection.vue?f2bc","webpack:///./src/views/shop/GoodsCollection.vue"],"names":["module","exports","__webpack_require__","p","render","_vm","this","_h","$createElement","_c","_self","ref","collectProductList","length","staticClass","_l","item","index","key","attrs","to","path","pid","src","image","_v","_s","store_name","price","on","click","$event","preventDefault","delCollection","_e","loaded","loadend","loading","page","staticStyle","background-color","_m","staticRenderFns","GoodsCollectionvue_type_script_lang_js_","name","components","Recommend","Loading","props","data","limit","loadTitle","mounted","_this","get_user_collect_product","$scroll","$refs","container","methods","that","Object","user","then","res","push","apply","id","category","$dialog","toast","mes","callback","splice","$set","shop_GoodsCollectionvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__"],"mappings":"mGAAAA,EAAAC,QAAiBC,EAAAC,EAAuB,6ECAxC,IAAAC,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,IAAA,aAAgB,CAAAN,EAAAO,mBAAAC,OAAA,EAAAJ,EAAA,OAAgDK,YAAA,mBAA8BT,EAAAU,GAAAV,EAAA,4BAAAW,EAAAC,GAAsD,OAAAR,EAAA,eAAyBS,IAAAD,EAAAH,YAAA,oCAAAK,MAAA,CAAiEC,GAAA,CAAMC,KAAA,WAAAL,EAAAM,OAAgC,CAAAb,EAAA,OAAYK,YAAA,WAAsB,CAAAL,EAAA,OAAYU,MAAA,CAAOI,IAAAP,EAAAQ,WAAkBf,EAAA,OAAcK,YAAA,oCAA+C,CAAAL,EAAA,OAAYK,YAAA,eAA0B,CAAAT,EAAAoB,GAAApB,EAAAqB,GAAAV,EAAAW,eAAAlB,EAAA,OAA8CK,YAAA,gCAA2C,CAAAL,EAAA,OAA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AAAN,EAAA/C,mBAAAmD,EAAAd,MACAU,EAAAvB,QAAA2B,EAAAd,KAAApC,OAAA8C,EAAAT,MACAS,EAAArB,KAAAqB,EAAArB,KAAA,MAIAL,cAAA,SAAAhB,GACA,IAAA0C,EAAArD,KACA4D,EAAAP,EAAA/C,mBAAAK,GAAAK,IACA6C,EAAAR,EAAA/C,mBAAAK,GAAAkD,SACAP,OAAAC,EAAA,KAAAD,CAAAM,EAAAC,GAAAL,KAAA,WACAH,EAAAS,QAAAC,MAAA,CACAC,IAAA,UACAC,SAAA,WACAZ,EAAA/C,mBAAA4D,OAAAvD,EAAA,GACA0C,EAAAc,KAAAd,EAAA,qBAAAA,EAAA/C,4BCnFwW8D,EAAA,cCOxWC,EAAgBf,OAAAgB,EAAA,KAAAhB,CACdc,EACAtE,EACAsC,GACF,EACA,KACA,KACA,MAIemC,EAAA,WAAAF","file":"h5/js/chunk-d764fe90.009af291.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/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!./GoodsCollection.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!./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/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":""}