luban-mall/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/ucenter/edit.js.map

1 line
15 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/鲁班家具小程序/luban-mall/pagesB/ucenter/edit.vue?aceb","webpack:///D:/鲁班家具小程序/luban-mall/pagesB/ucenter/edit.vue?6d0a","webpack:///D:/鲁班家具小程序/luban-mall/pagesB/ucenter/edit.vue?b1f1","webpack:///D:/鲁班家具小程序/luban-mall/pagesB/ucenter/edit.vue?a8d3","uni-app:///pagesB/ucenter/edit.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,8F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;;;AAGnD;AACoL;AACpL,gBAAgB,2LAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAsrB,CAAgB,orBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqC1sB;AACA,gD,k2CAAA;eACA;AACA;AACA,wBADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,uGADA;AAEA,mDAFA;AAGA,6DAHA;AAIA,qBAJA,EAIA;AACA;AACA,oCADA;AAEA,mCAFA;AAGA,uCAHA,CALA;AAS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iCAFA;AAGA,kCAHA;AAIA,gCAJA;AAKA,gFALA;;AAOA;AACA,aATA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA,iBAFA,EAEA,IAFA;AAGA,eALA,EAKA,GALA;AAMA;AACA;AACA;AACA;AACA,SA1BA,EAPA,EACA;AAiCA;AACA,KAhGA;;AAkGA;AACA,YAnGA,oBAmGA,EAnGA,EAmGA;AACA;AACA,iEADA;;AAGA,KAvGA,EA7DA,E","file":"pagesB/ucenter/edit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesB/ucenter/edit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./edit.vue?vue&type=template&id=5a818b42&\"\nvar renderjs\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.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 = \"pagesB/ucenter/edit.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!./edit.vue?vue&type=template&id=5a818b42&\"","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 \"-!../../../../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!./edit.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!./edit.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<status-nav :ifReturn=\"false\" navBarTitle=\"商品列表\" :marginBottom=\"0\"></status-nav>\r\n\t\t<!-- 商品排序、分类 -->\r\n\t\t<view class=\"pull-all-bg\" v-if=\"sortShow || cateShow\" @tap=\"closePullBg\"></view>\r\n\t\t<view class=\"shop-nav flex\" :style=\"{'top':topHieght+'px'}\">\r\n\t\t\t<view class=\"shop-sort flex\" @tap.stop=\"openSort()\">\r\n\t\t\t\t<text>{{sortList[sortIndex].name}}</text>\r\n\t\t\t\t<image src=\"/static/public/icon-shop.png\" mode=\"\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"shop-cate flex\" @tap.stop=\"openCate()\">\r\n\t\t\t\t<text>{{cateList[cateIndex].name}}</text>\r\n\t\t\t\t<image src=\"/static/public/icon-shop.png\" mode=\"\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"shop-sort-list flex\" v-if=\"sortShow\">\r\n\t\t\t\t<view class=\"shop-sort-item\" :class=\"sortIndex == index?'cur':''\" @tap.stop=\"checkSort(index)\" v-for=\"(item,index) in sortList\" :key=\"index\">{{item.name}}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"shop-cate-list flex\" v-if=\"cateShow\">\r\n\t\t\t\t<view class=\"shop-cate-item\" :class=\"cateIndex == index?'cur':''\" @tap.stop=\"checkCate(index)\" v-for=\"(item,index) in cateList\" :key=\"index\">{{item.name}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 商品列表 -->\r\n\t\t<scroll-view scroll-y class=\"shop-bg\">\r\n\t\t\t<view class=\"shop-ul flex\">\r\n\t\t\t\t<view class=\"shop-li\" @tap=\"toDetail(item.id)\" v-for=\"(item,index) in shopList\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"img\"><image :src=\"item.src\" mode=\"widthFix\"></image></view>\r\n\t\t\t\t\t<view class=\"txt clips2\">{{item.title}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</scroll-view>\r\n\t\t<!-- 暂无更多内容 -->\r\n\t\t<view class=\"more-txt\" style=\"padding-bottom: 40rpx;\" v-if=\"total == 0\">暂无更多内容</view>\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 {getCartNum} from '@/jsFile/public-api.js';\r\n\timport { mapState } from 'vuex'//引入mapState\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tstatusNav,\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\ttopHieght: uni.getSystemInfoSync().statusBarHeight + 50,\r\n\t\t\t\tsortShow:false, //是否显示排序\r\n\t\t\t\tsortList:[\r\n\t\t\t\t\t{name:'上新产品',sign:'news'},\r\n\t\t\t\t\t{name:'最热产品',sign:'hot'},\r\n\t\t\t\t\t{name:'综合排序',sign:'general'}\r\n\t\t\t\t], //排序列表\r\n\t\t\t\tsortIndex:0,\r\n\t\t\t\tcateShow:false, //是否显示分类\r\n\t\t\t\tcateList:[\r\n\t\t\t\t\t{name:'沙发',id:0},\r\n\t\t\t\t\t{name:'餐桌',id:1},\r\n\t\t\t\t\t{name:'老板椅',id:2},\r\n\t\t\t\t\t{name:'双人床',id:3},\r\n\t\t\t\t\t{name:'单人床',id:4},\r\n\t\t\t\t\t{name:'灶台',id:5}\r\n\t\t\t\t], //分类导航列表\r\n\t\t\t\tcateIndex:0,\r\n\t\t\t\tshopList:[\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-01.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-02.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-03.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-04.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-01.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-02.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-03.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-04.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-01.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-02.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-03.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-04.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-01.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-02.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-03.png',id:0},\r\n\t\t\t\t\t{title:'现代简约科技布沙发组合北欧风客厅布艺沙发',src:'/static/images/product-04.png',id:0},\r\n\t\t\t\t], //商品列表\r\n\t\t\t\ttotal:0,\r\n\t\t\t\tflag:true,\r\n\t\t\t\tifLoading:false,\r\n\t\t\t\tpid:'',//分类id\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\t...mapState({\r\n\t\t\t\tfootHeight: state => state.moduleA.footHeight,\r\n\t\t\t}),\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tthis.getShopScreen();\r\n\t\t},\r\n\t\tonReachBottom(e) {\r\n\t\t\tconsole.log('触底了...')\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 弹出排序选择\r\n\t\t\topenSort(){\r\n\t\t\t\tthis.cateShow = false;\r\n\t\t\t\tif(!this.sortShow){\r\n\t\t\t\t\tthis.sortShow = true;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.sortShow = false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 关闭排序选择\r\n\t\t\tcloseSort(){\r\n\t\t\t\tthis.sortShow = false;\r\n\t\t\t},\r\n\t\t\t// 选择排序\r\n\t\t\tcheckSort(index){\r\n\t\t\t\tthis.sortIndex = index;\r\n\t\t\t\t// 关闭厂家选择\r\n\t\t\t\tthis.closeSort();\r\n\t\t\t\t//查询商品列表\r\n\t\t\t\t// this.checkShopList();\r\n\t\t\t},\r\n\t\t\t// 弹出分类选择\r\n\t\t\topenCate(){\r\n\t\t\t\tthis.sortShow = false;\r\n\t\t\t\tif(!this.cateShow){\r\n\t\t\t\t\tthis.cateShow = true;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.cateShow = false;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 关闭分类选择\r\n\t\t\tcloseCate(){\r\n\t\t\t\tthis.cateShow = false;\r\n\t\t\t},\r\n\t\t\t// 选择分类\r\n\t\t\tcheckCate(index){\r\n\t\t\t\tthis.cateIndex = index;\r\n\t\t\t\t// 关闭厂家选择\r\n\t\t\t\tthis.closeCate();\r\n\t\t\t\t//查询商品列表\r\n\t\t\t\t// this.checkShopList();\r\n\t\t\t},\r\n\t\t\t// 关闭弹窗\r\n\t\t\tclosePullBg(){\r\n\t\t\t\tthis.closeSort();\r\n\t\t\t\t// 关闭厂家选择\r\n\t\t\t\tthis.closeCate();\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// 查询筛选条件\r\n\t\t\tgetShopScreen(){\r\n\t\t\t\tthis.$requst.post('/api/spu/condition').then(res=>{\r\n\t\t\t\t\tconsole.log(res,'商品分类')\r\n\t\t\t\t\tif(res.code==0) {\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\r\n\t\t\t// 查询商品列表\r\n\t\t\tcheckShopList(){\r\n\t\t\t\tfor(let i=0;i<this.cateList.length;i++){\r\n\t\t\t\t\tconsole.log(i)\r\n\t\t\t\t\tthis.ifLoading = true;\r\n\t\t\t\t\tlet params = {\r\n\t\t\t\t\t\tcategory_id:this.cateList[i].id\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$requst.post('/api/spu/list',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\t\tthis.total = res.data.total;\r\n\t\t\t\t\t\t\tlet newArr = [];\r\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tskuId:item.skuId,\r\n\t\t\t\t\t\t\t\t\timgsrc:item.cover, \r\n\t\t\t\t\t\t\t\t\ttitle:item.name,\r\n\t\t\t\t\t\t\t\t\tprice:this.$toolAll.tools.changeNum(parseInt(item.price)+'')\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tnewArr.push(obj);\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tthis.dataList[i] = newArr;\r\n\t\t\t\t\t\t\tif(i == this.cateList.length-1){\r\n\t\t\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\t\t\tconst query = uni.createSelectorQuery().in(this);\r\n\t\t\t\t\t\t\t\t\tquery.select('.cate-title').boundingClientRect(data => {\r\n\t\t\t\t\t\t\t\t\t\tthis.heightData = data.height\r\n\t\t\t\t\t\t\t\t\t}).exec();\r\n\t\t\t\t\t\t\t\t},200)\r\n\t\t\t\t\t\t\t\tthis.getNodesInfo();\r\n\t\t\t\t\t\t\t\tthis.ifLoading = false;\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}\r\n\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:`/pagesA/shop/detail?id=${id}&source=shop`\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":""}