favorites.js.map 12 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/2022/9/sx/pages/user/favorites.vue?e0ae","webpack:///D:/2022/9/sx/pages/user/favorites.vue?d53f","webpack:///D:/2022/9/sx/pages/user/favorites.vue?6e60","webpack:///D:/2022/9/sx/pages/user/favorites.vue?1879","uni-app:///pages/user/favorites.vue","webpack:///D:/2022/9/sx/pages/user/favorites.vue?d71b","webpack:///D:/2022/9/sx/pages/user/favorites.vue?3fcd"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,oG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,kBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACc;;;AAGtE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;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;AAAmmB,CAAgB,6nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBvnB,yD;;;;;;;;;;;;;;;;;;;;;;unBAGA,EACA,cACA,wBADA,EAEA,YAFA,EADA,EAKA,IALA,kBAKA,CACA,SACA,kBADA,EAEA,gBAFA,EAGA,aAHA,GAKA,CAXA,EAYA,MAZA,oBAYA,CACA,gBACA,CAdA,EAeA,WACA;AACA,YAFA,sBAEA,CACA,eACA,4BACA,SADA;AAEA,mBAFA;;AAIA,UAJA,CAIA;AACA;AACA;AACA,OAPA;AAQA,WARA,CAQA;AACA;AACA,OAVA;AAWA,KAfA;AAgBA;AACA,aAjBA,qBAiBA,IAjBA,EAiBA;AACA;AACA;AACA,oDADA;;AAGA,KAtBA;AAuBA;AACA,OAxBA,eAwBA,IAxBA,EAwBA;AACA;AACA;AACA,mBADA;AAEA,4BAFA;AAGA;AACA;AACA;AACA,sBADA;AAEA,iCAFA;;AAIA,gBAJA,CAIA;AACA;AACA,8BADA;AAEA,8BAFA;;AAIA;AACA,aAVA;AAWA,iBAXA,CAWA;AACA;AACA,aAbA;AAcA;AACA,SApBA;;AAsBA,KAhDA,EAfA,E;;;;;;;;;;;;;AC1BA;AAAA;AAAA;AAAA;AAA8oC,CAAgB,onCAAG,EAAC,C;;;;;;;;;;;ACAlqC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/favorites.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/favorites.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./favorites.vue?vue&type=template&id=edb94f68&\"\nvar renderjs\nimport script from \"./favorites.vue?vue&type=script&lang=js&\"\nexport * from \"./favorites.vue?vue&type=script&lang=js&\"\nimport style0 from \"./favorites.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\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/user/favorites.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./favorites.vue?vue&type=template&id=edb94f68&\"","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 \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./favorites.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./favorites.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"container\">\n\t\t<!-- 空白页 -->\n\t\t<empty v-if=\"favoriteList.length < 1\"></empty>\n\t\t<view class=\"favorites flex\" v-for=\"ls in favoriteList\" @click=\"toproduct(ls.pid)\">\n\t\t\t<view class=\"favorites_img\"><image :src=\"ls.image\"></image></view>\n\t\t\t<view class=\"favorites_list\">\n\t\t\t\t<view class=\"favorites_name\">{{ ls.store_name }}</view>\n\t\t\t\t<view class=\"favorites_peice flex\">\n\t\t\t\t\t<view>\n\t\t\t\t\t\t<text>¥{{ ls.price }}</text>\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"icon_del\" @click.prevent.stop=\"del(ls.pid)\" v-show=\"delshow\">\n\t\t\t\t\t\t<text class=\"iconfont icondelete\"></text>\n\t\t\t\t\t\t<text>取消</text>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\nimport { getcollectList, delcollect } from '@/api/user.js';\nimport uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';\nimport empty from '@/components/empty';\nexport default {\n\tcomponents: {\n\t\tuniLoadMore,\n\t\tempty\n\t},\n\tdata() {\n\t\treturn {\n\t\t\ttabCurrentIndex: 0,\n\t\t\tfavoriteList: '',\n\t\t\tdelshow: true\n\t\t};\n\t},\n\tonLoad() {\n\t\tthis.loadData();\n\t},\n\tmethods: {\n\t\t//获取收藏夹列表\n\t\tloadData() {\n\t\t\tlet obj = this;\n\t\t\tgetcollectList({\n\t\t\t\tpage: '1',\n\t\t\t\tlimit: '10'\n\t\t\t})\n\t\t\t\t.then(function(e) {\n\t\t\t\t\tobj.favoriteList = e.data;\n\t\t\t\t\tconsole.log(obj.favoriteList);\n\t\t\t\t})\n\t\t\t\t.catch(function(e) {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t});\n\t\t},\n\t\t//跳转商品详情页\n\t\ttoproduct(item) {\n\t\t\tlet id = item;\n\t\t\tuni.navigateTo({\n\t\t\t\turl: `/pages/product/product?id=${id}`\n\t\t\t})\n\t\t},\n\t\t//删除收藏夹商品\n\t\tdel(item) {\n\t\t\tlet obj = this;\n\t\t\tuni.showModal({\n\t\t\t\ttitle: '提示',\n\t\t\t\tcontent: '是否取消收藏该商品',\n\t\t\t\tsuccess: e => {\n\t\t\t\t\tif (e.confirm) {\n\t\t\t\t\t\tdelcollect({\n\t\t\t\t\t\t\tid: item,\n\t\t\t\t\t\t\tcategory: 'product'\n\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.then(function(e) {\n\t\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\t\ttitle: '已取消收藏',\n\t\t\t\t\t\t\t\t\tduration: 1500,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tobj.loadData();\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.catch(function(e) {\n\t\t\t\t\t\t\t\tconsole.log(e);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t}\n}\n</script>\n\n<style lang=\"scss\">\npage {\n\theight: 100%;\n}\n%flex-center {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n}\n%section {\n\tdisplay: flex;\n\tjustify-content: space-around;\n\talign-content: center;\n\tbackground: #fff;\n\tborder-radius: 10rpx;\n}\n.container {\n\theight: 100%;\n\tbackground-color: $page-color-base;\n\tpadding: 15rpx 0rpx;\n\tfont-size: 28rpx;\n}\n.favorites {\n\twidth: 90%;\n\tbackground-color: #ffffff;\n\tborder-radius: 15rpx;\n\tmargin: 15rpx auto;\n\tpadding: 25rpx 25rpx;\n\tmargin-bottom: 25rpx;\n}\n.favorites_img {\n\twidth: 80px !important;\n\theight: 80px;\n}\n.favorites_img image {\n\twidth: 100%;\n\theight: 100%;\n}\n.favorites_list {\n\twidth: 70%;\n\tpadding-left: 20rpx;\n}\n.icon_del {\n\tcolor: $font-color-base;\n\tz-index: 9999;\n\tfont-weight: bold;\n}\n.favorites_name {\n\theight: 80rpx;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tdisplay: -webkit-box;\n\t-webkit-box-orient: vertial;\n\t-webkit-line-clamp: 2;\n}\n.favorites_peice {\n\tmargin-top: 25rpx;\n\tcolor: #db1935;\n\tfont-weight: bold;\n}\n</style>\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./favorites.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./favorites.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1663056411736\n var cssReload = require(\"E:/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":""}