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

1 line
16 KiB
Plaintext
Raw Permalink 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/idle/idle.vue?9e04","webpack:///D:/Lee/leave-unused/pages/idle/idle.vue?991c","webpack:///D:/Lee/leave-unused/pages/idle/idle.vue?5293","webpack:///D:/Lee/leave-unused/pages/idle/idle.vue?9fc6","uni-app:///pages/idle/idle.vue","webpack:///D:/Lee/leave-unused/pages/idle/idle.vue?4787","webpack:///D:/Lee/leave-unused/pages/idle/idle.vue?0e71"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","swiperPu","goodsCate","goodsList","releaseBtn","tabbar","data","statusHeight","pageTitle","bannerList","category_id","keyword","page","size","total","isLoading","area_id","onLoad","uni","url","onShareAppMessage","title","path","imageUrl","onShareTimeline","onReachBottom","onHide","clearTimeout","onPullDownRefresh","methods","getBannerList","position","console","res","imgSrc","isVideo","poster","getGoodsList","id","cover","name","original_price","price","goodsArr","changeCateEv"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACwD;AACL;AACqC;;;AAGxF;AAC6K;AAC7K,gBAAgB,uLAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;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,oMAEN;AACP,KAAK;AACL;AACA,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,gQAEN;AACP,KAAK;AACL;AACA,aAAa,kOAEN;AACP,KAAK;AACL;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;;;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAmpB,CAAgB,gqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eC0BvqB;EACAC;IACAC;IACAC;IACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAN;MAAA;MACAO;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;MACA;MACA;MACA;MACA;IACA;MACAC;QACAC;MACA;IACA;IACA;IACA;EACA;EACAC;IACA;MACAC;MACAC;MACAC;IACA;IACA;IACA;EACA;EACAC;IACA;MACAH;MACAC;MACAC;IACA;IACA;IACA;EACA;EACAE;IACA;MACA;MACA;MACA;IACA;EACA;EACAC;IACAC;IACA;EACA;EACAC;IACA;IACA;IACA;IACA;IACAV;EACA;EACAW;IACA;IACAC;MAAA;MACA;QAAAC;MAAA;QACA;UACAC;UACAC;YACA;YACA;YACA;cACAC;cACAf;cACAgB;cACAC;YACA;YACA;UACA;QACA;MACA;IACA;IACA;IACAC;MAAA;MACAnB;QACAG;MACA;MACA;QACAT;QACAC;QACAG;QACAN;MACA;MACA;MACA;QACA;UACAsB;UACA;UACA;UACAC;YACA;cACAK;cACAC;cACAC;cACAC;cACAC;YACA;YACAC;UACA;UACA;QACA;QACAzB;QACA;MACA;IACA;IACA;IACA0B;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC/JA;AAAA;AAAA;AAAA;AAAk9B,CAAgB,i8BAAG,EAAC,C;;;;;;;;;;;ACAt+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/idle/idle.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/idle/idle.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./idle.vue?vue&type=template&id=48338cf4&scoped=true&\"\nvar renderjs\nimport script from \"./idle.vue?vue&type=script&lang=js&\"\nexport * from \"./idle.vue?vue&type=script&lang=js&\"\nimport style0 from \"./idle.vue?vue&type=style&index=0&id=48338cf4&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 \"48338cf4\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/idle/idle.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!./idle.vue?vue&type=template&id=48338cf4&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 goodsCate: function () {\n return import(\n /* webpackChunkName: \"components/goods-cate/goods-cate\" */ \"@/components/goods-cate/goods-cate.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 tabbar: function () {\n return import(\n /* webpackChunkName: \"components/tabbar/tabbar\" */ \"@/components/tabbar/tabbar.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!./idle.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!./idle.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"pad-x120\" v-if=\"isLoading\">\r\n\t\t<!-- 头部 -->\n\t\t<status-nav :ifReturn=\"false\" :navBarTitle=\"pageTitle\" :estate=\"1\" :ifCenter=\"false\"></status-nav>\r\n\t\t<!-- 轮播 -->\r\n\t\t<view class=\"index-top\" v-if=\"bannerList.length>0\">\r\n\t\t\t<swiper-pu newRadius=\"0\" :bannerList=\"bannerList\" newHeight=\"320rpx\" :isplay='isplay'></swiper-pu>\r\n\t\t</view>\r\n\t\t<!-- 商品分类 -->\r\n\t\t<goods-cate @changeCateEv=\"changeCateEv\"></goods-cate>\r\n\t\t<!-- 商品列表 -->\r\n\t\t<goods-list :goodsList=\"goodsList\"></goods-list>\r\n\t\t<!-- 没有更多 -->\r\n\t\t<view class=\"no-more mar-s20 font24 color-99\" v-if=\"goodsList.length==total\">没有更多数据了</view>\r\n\t\t<!-- 发布按钮 -->\r\n\t\t<release-btn></release-btn>\r\n\t\t<!-- 尾部 -->\n\t\t<tabbar></tabbar>\n\t</view>\n</template>\n<script>\r\n\timport swiperPu from '@/components/swipers/swiper-pu';\r\n\timport goodsCate from '@/components/goods-cate/goods-cate.vue';\r\n\timport goodsList from '@/components/goods-list/goods-list.vue';\r\n\timport releaseBtn from '@/components/release-btn/release-btn.vue';\r\n\timport tabbar from '@/components/tabbar/tabbar';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tswiperPu,\r\n\t\t\tgoodsCate,\r\n\t\t\tgoodsList,\r\n\t\t\treleaseBtn,\r\n\t\t\ttabbar\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\tpageTitle:'', //页面标题\r\n\t\t\t\tbannerList:[],//轮播图\r\n\t\t\t\tgoodsList:[], //商品列表\r\n\t\t\t\tcategory_id:0, //分类id\r\n\t\t\t\tkeyword:'', //关键词\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\tarea_id:0, //小区id\r\n\t\t\t}\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tif(uni.getStorageSync('area_id')&&uni.getStorageSync('area_name')){\r\n\t\t\t\tthis.area_id = uni.getStorageSync('area_id');\r\n\t\t\t\tthis.pageTitle = uni.getStorageSync('area_name')+'-闲置商品';\r\n\t\t\t\t// 查询商品列表\r\n\t\t\t\tthis.getGoodsList(this.category_id);\r\n\t\t\t}else{\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/estate/estate?estate=1'\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\t// 获取banner列表\r\n\t\t\tthis.getBannerList();\r\n\t\t},\n\t\tonShareAppMessage(res) {\r\n\t\t\tlet shareObj = {\r\n\t\t\t\ttitle:'小区闲置',\r\n\t\t\t\tpath: uni.getStorageSync('page-path-options'),\r\n\t\t\t\timageUrl:'/static/share-logo.png',\r\n\t\t\t}\r\n\t\t\t// 返回shareObj\r\n\t\t\treturn shareObj;\n\t\t},\r\n\t\tonShareTimeline(res){\r\n\t\t\tlet shareObj = {\r\n\t\t\t\ttitle:'小区闲置',\r\n\t\t\t\tpath: uni.getStorageSync('page-path-options'),\r\n\t\t\t\timageUrl:'/static/share-logo.png',\r\n\t\t\t}\r\n\t\t\t// 返回shareObj\r\n\t\t\treturn shareObj;\r\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(this.category_id);\n\t\t\t}\n\t\t},\r\n\t\tonHide() {\r\n\t\t\tclearTimeout(this.playTimer);\r\n\t\t\tthis.isplay =false;\r\n\t\t},\r\n\t\tonPullDownRefresh() {\r\n\t\t\tthis.page = 1;\r\n\t\t\t// 查询商品列表\r\n\t\t\tthis.getGoodsList(this.category_id);\t\r\n\t\t\t// 关闭下拉刷新\r\n\t\t\tuni.stopPullDownRefresh();\r\n\t\t},\n\t\tmethods: {\r\n\t\t\t// 获取轮播图事件\r\n\t\t\tgetBannerList(){\r\n\t\t\t\tthis.$requst.get('/api/v1/common/slides',{position:'home-banner'}).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\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\tif(item.type!='img') isVideo = true;\r\n\t\t\t\t\t\t\tlet banObj = {\r\n\t\t\t\t\t\t\t\timgSrc:item.src,\r\n\t\t\t\t\t\t\t\turl:item.url,\r\n\t\t\t\t\t\t\t\tisVideo:isVideo,\r\n\t\t\t\t\t\t\t\tposter:item.src,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.bannerList.push(banObj);\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 查询商品列表\n\t\t\tgetGoodsList(id){\r\n\t\t\t\tuni.showLoading({\n\t\t\t\t\ttitle:'加载中'\n\t\t\t\t})\n\t\t\t\tlet params = {\n\t\t\t\t\tpage:this.page,\n\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\tarea_id:this.area_id,\r\n\t\t\t\t\tcategory_id:id\n\t\t\t\t}\r\n\t\t\t\tif(this.page==1) this.goodsList = [];\n\t\t\t\tthis.$requst.get('/api/v1/goods/list',params).then(res=>{\n\t\t\t\t\tif(res.code == 0){\n\t\t\t\t\t\tconsole.log(res,'闲置商品列表')\n\t\t\t\t\t\tthis.total = res.data.total;\n\t\t\t\t\t\tlet goodsArr = [];\n\t\t\t\t\t\tres.data.list.forEach(item=>{\n\t\t\t\t\t\t\tlet obj = {\n\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\tcover:item.cover,\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\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tgoodsArr.push(obj)\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.goodsList = this.goodsList.concat(goodsArr);\n\t\t\t\t\t}\n\t\t\t\t\tuni.hideLoading();\n\t\t\t\t\tthis.isLoading = true;\n\t\t\t\t})\n\t\t\t},\r\n\t\t\t// 分类选择事件\r\n\t\t\tchangeCateEv(category_id) {\r\n\t\t\t\tthis.category_id = category_id;\r\n\t\t\t\t// 查询商品列表\r\n\t\t\t\tthis.getGoodsList(this.category_id);\r\n\t\t\t}\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\t/* 发布按钮 */\r\n\t.release-btn{\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\twidth: 90rpx;\r\n\t\theight: 90rpx;\r\n\t\tfont-size: 50rpx;\r\n\t\tline-height: 80rpx;\r\n\t\tanimation: scale_name 1s linear alternate infinite;\r\n\t\tposition: fixed;\r\n\t\tright: 20rpx;\r\n\t\tbottom: 120rpx;\r\n\t\tz-index: 99;\r\n\t}\r\n\t.release-btn .img{\r\n\t\twidth: 48rpx;\r\n\t\theight: 48rpx;\r\n\t}\r\n\t@keyframes scale_name {\r\n\t\tfrom {\r\n\t\t\ttransform: scale(.9);\r\n\t\t}\r\n\t\tto {\r\n\t\t\ttransform: scale(1.1);\r\n\t\t}\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!./idle.vue?vue&type=style&index=0&id=48338cf4&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!./idle.vue?vue&type=style&index=0&id=48338cf4&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1672107698940\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":""}