1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/kit.vue?f7af","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/kit.vue?c500","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/kit.vue?82e5","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/kit.vue?d27a","uni-app:///pages/tabbar/kit/kit.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,6F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,YAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAgH;AAChH;AACuD;AACL;;;AAGlD;AACuL;AACvL,gBAAgB,2LAAU;AAC1B,EAAE,yEAAM;AACR,EAAE,8EAAM;AACR,EAAE,uFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,kFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,8LAEN;AACP,KAAK;AACL;AACA,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,wLAEN;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;AAAosB,CAAgB,mrBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoBxtB,sE;AACA;AACA;AACA,wBADA;AAEA,wBAFA;AAGA,sBAHA;AAIA,oBAJA,EADA;;AAOA,MAPA,kBAOA;AACA;AACA,uGADA;AAEA,mDAFA;AAGA,iBAHA,EAGA;AACA,aAJA,EAIA;AACA,cALA,EAKA;AACA,cANA,EAMA;AACA,kBAPA,EAOA;AACA,oBARA,EAQA;AACA,iBATA,EASA;AACA,yBAVA,EAUA;AACA,sBAXA;;AAaA,GArBA;AAsBA,QAtBA,kBAsBA,EAtBA,EAsBA;AACA;AACA;AACA;AACA,GA1BA;AA2BA,QA3BA,oBA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OANA;AAOA,KARA,MAQA;AACA;AACA;AACA;AACA;AACA;AACA,GA1CA;AA2CA,eA3CA,yBA2CA,CA3CA,EA2CA;AACA;AACA;AACA;AACA;AACA;AACA,GAjDA;AAkDA;AACA,mBAnDA,+BAmDA;AACA;AACA;AACA,gBADA;;AAGA,GAxDA;AAyDA;AACA,iBA1DA,2BA0DA,GA1DA,EA0DA;AACA;AACA;AACA,gBADA;;AAGA,GA/DA;AAgEA;AACA;AACA,YAFA,sBAEA;AACA;AACA,oBADA;;AAGA;AACA;AACA,uBADA;AAEA,uBAFA;AAGA,qCAHA;AAIA,uBAJA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,6BAFA;AAGA,8BAHA;AAIA,qCAJA;AAKA,iCALA;;AAOA;AACA,WATA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OArBA;AAsBA,KAnCA;AAoCA;AACA,YArCA,oBAqCA,EArCA,EAqCA;AACA;AACA,yDADA;;AAGA,KAzCA,EAhEA,E","file":"pages/tabbar/kit/kit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/tabbar/kit/kit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./kit.vue?vue&type=template&id=4bb8c225&\"\nvar renderjs\nimport script from \"./kit.vue?vue&type=script&lang=js&\"\nexport * from \"./kit.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HBuilderX-app开发版/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/tabbar/kit/kit.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./kit.vue?vue&type=template&id=4bb8c225&\"","var components\ntry {\n components = {\n pullList: function() {\n return import(\n /* webpackChunkName: \"components/pull-list/pull-list\" */ \"@/components/pull-list/pull-list.vue\"\n )\n },\n enterCart: function() {\n return import(\n /* webpackChunkName: \"components/enter-cart/enter-cart\" */ \"@/components/enter-cart/enter-cart.vue\"\n )\n },\n footTab: function() {\n return import(\n /* webpackChunkName: \"components/foot-tab/foot-tab\" */ \"@/components/foot-tab/foot-tab.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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./kit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./kit.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-b150\">\r\n\t\t<status-nav :ifReturn=\"false\" navBarTitle=\"套件\" :marginBottom=\"20\"></status-nav>\r\n\t\t<!-- 套件列表 -->\r\n\t\t<pull-list :list=\"kitList\" :isKit=\"true\" @toDetail=\"toDetail\"></pull-list>\r\n\t\t<!-- 暂无更多内容 -->\r\n\t\t<view class=\"more-txt\" v-if=\"totalAll == total\">暂无更多内容</view>\r\n\t\t<!-- 购物车btn -->\r\n\t\t<enter-cart></enter-cart>\r\n\t\t<!-- 底部tab -->\r\n\t\t<foot-tab current=\"2\"></foot-tab>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport statusNav from '@/components/status-navs/status-nav';\r\n\timport enterCart from '@/components/enter-cart/enter-cart.vue';\r\n\timport pullList from '@/components/pull-list/pull-list.vue';\r\n\t// 底部组件\r\n\timport footTab from '@/components/foot-tab/foot-tab.vue';\r\n\timport {userInfoEv,getCartNum} from '@/jsFile/public-api.js';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tstatusNav,\r\n\t\t\tenterCart,\r\n\t\t\tpullList,\r\n\t\t\tfootTab\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tscrollHeight:uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight - 50,\r\n\t\t\t\tnewWidth:uni.getSystemInfoSync().windowWidth,\r\n\t\t\t\tkitList:[], //套件列表\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\ttotalAll:-1, //计算总数\r\n\t\t\t\tcategory_id:0, //分类id\r\n\t\t\t\tsort:'new', //排序\r\n\t\t\t\tcacheBusinessId:-1, //商户id\r\n\t\t\t\tisLoading:false,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tif(op.business_id){\r\n\t\t\t\tthis.cacheBusinessId = op.business_id;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tif(this.cacheBusinessId !== -1){\r\n\t\t\t\tthis.$requst.post('/api/index/change-business',{business_id:this.cacheBusinessId}).then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tthis.kitList = [];\r\n\t\t\t\t\t\tthis.getKitEv();\r\n\t\t\t\t\t\tuserInfoEv();\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}else{\r\n\t\t\t\tthis.kitList = [];\r\n\t\t\t\tthis.getKitEv();\r\n\t\t\t\tuserInfoEv();\r\n\t\t\t}\r\n\t\t\tgetCartNum();\r\n\t\t},\r\n\t\tonReachBottom(e) {\r\n\t\t\tif(this.kitList.length<this.total){\r\n\t\t\t\tthis.page++;\r\n\t\t\t\t//查询套件列表\r\n\t\t\t\tthis.getKitEv();\r\n\t\t\t}\r\n\t\t},\r\n\t\t// 分享到微信\r\n\t\tonShareAppMessage() {\r\n\t\t\tlet path = uni.getStorageSync('page-path-options')+'?business_id='+uni.getStorageSync('business_id');\r\n\t\t\treturn {\r\n\t\t\t\tpath:path\r\n\t\t\t}\r\n\t\t},\r\n\t\t// 分享到朋友圈\r\n\t\tonShareTimeline(res){\r\n\t\t\tlet path = uni.getStorageSync('page-path-options')+'?business_id='+uni.getStorageSync('business_id');\r\n\t\t\treturn {\r\n\t\t\t\tpath:path\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 查询套件列表\r\n\t\t\tgetKitEv(){\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\tthis.isLoading =false;\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\tcategory_id:this.category_id,\r\n\t\t\t\t\tsort:this.sort\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('/api/spu/series',params).then(res=>{\r\n\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\tthis.total = res.data.total;\r\n\t\t\t\t\t\tlet newArr = [];\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\tsrc:item.cover, \r\n\t\t\t\t\t\t\t\ttitle:item.name,\r\n\t\t\t\t\t\t\t\tsubtitle:item.subtitle,\r\n\t\t\t\t\t\t\t\tseries:item.series\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tnewArr.push(obj);\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tthis.kitList = this.kitList.concat(newArr);\r\n\t\t\t\t\t\tif(this.kitList.length == this.total){\r\n\t\t\t\t\t\t\tthis.totalAll = this.total;\r\n\t\t\t\t\t\t}\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\ttoDetail(id) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pages/tabbar/kit/detail?id=${id.id}`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t\r\n</style>\r\n"],"sourceRoot":""} |