leave-unused/unpackage/dist/dev/.sourcemap/mp-weixin/pages/goods/goods.js.map

1 line
12 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/Lee/leave-unused/pages/goods/goods.vue?9955","webpack:///D:/Lee/leave-unused/pages/goods/goods.vue?0d93","webpack:///D:/Lee/leave-unused/pages/goods/goods.vue?5eda","webpack:///D:/Lee/leave-unused/pages/goods/goods.vue?56f1","uni-app:///pages/goods/goods.vue","webpack:///D:/Lee/leave-unused/pages/goods/goods.vue?925b","webpack:///D:/Lee/leave-unused/pages/goods/goods.vue?83dc"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,4F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACqC;;;AAGzF;AAC6K;AAC7K,gBAAgB,uLAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;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,aAAa,mMAEN;AACP,KAAK;AACL;AACA,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,gQAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAopB,CAAgB,iqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;ACexqB;AACA;AACA,0BADA;AAEA,wBAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,2DADA,EACA;AACA,mBAFA,EAEA;AACA,aAHA,EAGA;AACA,cAJA,EAIA;AACA,cALA,EAKA;AACA,sBANA,EAMA;AACA,gBAPA,CAOA;AAPA;AASA,GAfA;AAgBA,QAhBA,oBAgBA;AACA;AACA;AACA,GAnBA;AAoBA,eApBA,yBAoBA,CApBA,EAoBA;AACA;AACA;AACA;AACA;AACA;AACA,GA1BA;AA2BA;AACA;AACA,gBAFA,0BAEA;AACA;AACA,oBADA;;AAGA;AACA,uBADA;AAEA,uBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,+BAFA;AAGA,8BAHA;AAIA,iDAJA;AAKA,+BALA;AAMA,iCANA;;AAQA;AACA,WAVA;AAWA;AACA;AACA;AACA;AACA,OApBA;AAqBA,KAhCA;;AAkCA;AACA,iBAnCA,yBAmCA,EAnCA,EAmCA,KAnCA,EAmCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA,MAGA;AACA;AACA;AACA;AACA;AACA,SAXA;AAYA;AACA;AACA,SAFA,EAEA,GAFA;AAGA;AACA,KAtDA;;AAwDA;AACA,YAzDA,oBAyDA,EAzDA,EAyDA;AACA;AACA,iDADA;;AAGA,KA7DA,EA3BA,E;;;;;;;;;;;;;ACfA;AAAA;AAAA;AAAA;AAAm9B,CAAgB,k8BAAG,EAAC,C;;;;;;;;;;;ACAv+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/goods/goods.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/goods/goods.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./goods.vue?vue&type=template&id=5566b618&scoped=true&\"\nvar renderjs\nimport script from \"./goods.vue?vue&type=script&lang=js&\"\nexport * from \"./goods.vue?vue&type=script&lang=js&\"\nimport style0 from \"./goods.vue?vue&type=style&index=0&id=5566b618&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HbuilderX/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 \"5566b618\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/goods/goods.vue\"\nexport default component.exports","export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods.vue?vue&type=template&id=5566b618&scoped=true&\"","var components\ntry {\n components = {\n statusNav: function() {\n return import(\n /* webpackChunkName: \"components/status-nav/status-nav\" */ \"@/components/status-nav/status-nav.vue\"\n )\n },\n goodsList: function() {\n return import(\n /* webpackChunkName: \"components/goods-list/goods-list\" */ \"@/components/goods-list/goods-list.vue\"\n )\n },\n releaseBtn: function() {\n return import(\n /* webpackChunkName: \"components/release-btn/release-btn\" */ \"@/components/release-btn/release-btn.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"pad-x20\" v-if=\"isLoading\">\r\n\t\t<!-- 头部 -->\n\t\t<status-nav :ifReturn=\"true\" navBarTitle=\"我的发布\"></status-nav>\r\n\t\t<!-- 商品列表 -->\r\n\t\t<goods-list :goodsList=\"goodsList\" :isOperate=\"true\" @changeStateEv=\"changeStateEv\"></goods-list>\r\n\t\t<!-- 没有更多 -->\r\n\t\t<view class=\"no-more mar-s20 font24 color-99\">没有更多数据了</view>\r\n\t\t<!-- 发布按钮 -->\r\n\t\t<release-btn></release-btn>\r\n\t</view>\n</template>\n<script>\r\n\timport releaseBtn from '@/components/release-btn/release-btn.vue';\r\n\timport goodsList from '@/components/goods-list/goods-list.vue';\r\n\texport default {\n\t\tcomponents:{\r\n\t\t\treleaseBtn,\r\n\t\t\tgoodsList\r\n\t\t},\n\t\tdata() {\n\t\t\treturn {\r\n\t\t\t\tstatusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度\r\n\t\t\t\tgoodsList:[], //商品列表\r\n\t\t\t\tpage:1, //页数\r\n\t\t\t\tsize:10, //条数\r\n\t\t\t\ttotal:0, //总数\r\n\t\t\t\tisLoading:false, //是否加载完成\r\n\t\t\t\tflag:true, //改变状态\r\n\t\t\t}\n\t\t},\n\t\tonShow() {\r\n\t\t\t// 查询商品列表\r\n\t\t\tthis.getGoodsList();\n\t\t},\n\t\tonReachBottom(e) {\n\t\t\tif(this.goodsList.length<this.total){\n\t\t\t\tthis.page++;\n\t\t\t\t// 查询商品列表\n\t\t\t\tthis.getGoodsList();\n\t\t\t}\n\t\t},\n\t\tmethods: {\r\n\t\t\t// 查询商品列表\n\t\t\tgetGoodsList(){\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle:'加载中'\r\n\t\t\t\t})\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size,\r\n\t\t\t\t}\r\n\t\t\t\tif(this.page==1) this.goodsList = [];\r\n\t\t\t\tthis.$requst.get('/api/v1/user/goods',params).then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tconsole.log(res,'我的发布列表')\r\n\t\t\t\t\t\tthis.total = res.data.total;\r\n\t\t\t\t\t\tlet goodsArr = [];\r\n\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\tcover:item.cover,\r\n\t\t\t\t\t\t\t\tname:item.title,\r\n\t\t\t\t\t\t\t\toriginal_price:item.original_price,\r\n\t\t\t\t\t\t\t\tprice:item.price,\r\n\t\t\t\t\t\t\t\tstatus:item.status\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tgoodsArr.push(obj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tthis.goodsList = this.goodsList.concat(goodsArr);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tthis.isLoading = true;\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 更改显示状态\r\n\t\t\tchangeStateEv(id,index){\r\n\t\t\t\tif(this.flag){\r\n\t\t\t\t\tthis.flag =false;\r\n\t\t\t\t\tthis.$requst.post('/api/v1/goods/set-status',{id:id,status:this.goodsList[index].status==0?1:0}).then(res=>{\r\n\t\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\t\tconsole.log(res,'改变状态');\r\n\t\t\t\t\t\t\tif(this.goodsList[index].status==0){\r\n\t\t\t\t\t\t\t\tthis.goodsList[index].status = 1;\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('已下架');\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tthis.goodsList[index].status = 0;\r\n\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('已上架');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tthis.flag = true;\r\n\t\t\t\t\t},500)\r\n\t\t\t\t}\r\n\t\t\t},\n\t\t\t\n\t\t\t// 去详情页\n\t\t\tgoDetail(id){\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:`/pages/index/detail?id=${id}`\n\t\t\t\t})\n\t\t\t},\r\n\t\t}\n\t}\n</script>\n<style scoped>\n\t.no-more{\r\n\t\ttext-align: center;\r\n\t\tline-height: 2;\r\n\t}\r\n</style>","import mod from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods.vue?vue&type=style&index=0&id=5566b618&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./goods.vue?vue&type=style&index=0&id=5566b618&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1669965258559\n var cssReload = require(\"D:/HbuilderX/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":""}