luban-mall/unpackage/dist/dev/.sourcemap/mp-weixin/pagesA/cart/prepare.js.map

1 line
14 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/cart/prepare.vue?04e9","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/cart/prepare.vue?97ee","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/cart/prepare.vue?6e63","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/cart/prepare.vue?4637","uni-app:///pagesA/cart/prepare.vue","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/cart/prepare.vue?135c","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/cart/prepare.vue?cd16"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,gG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,gBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgI;AAChI;AAC2D;AACL;AACqC;;;AAG3F;AACoL;AACpL,gBAAgB,2LAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,8FAAM;AACR,EAAE,uGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,kGAAU;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;AAAyrB,CAAgB,urBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwC7sB;AACA;AACA,wBADA;AAEA,wBAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,kBADA;AAEA,wDAFA;AAGA,wBAHA,EAGA;AACA,eAJA,EAIA;AACA,qBALA;;AAOA,GAbA;AAcA,eAdA,2BAcA;AACA,GAfA;AAgBA,QAhBA,oBAgBA;AACA;AACA,GAlBA;AAmBA;AACA,eADA,yBACA;AACA;AACA,oBADA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,2BAFA;AAGA,iCAHA;AAIA,+BAJA;AAKA,iDALA;AAMA,mCANA;AAOA,oCAPA;AAQA,oCARA;AASA,4CATA;;AAWA;AACA,WAbA;AAcA;AACA;AACA;AACA,SArBA,MAqBA;AACA;AACA;AACA;AACA,sBADA;;AAGA,WAJA,EAIA,IAJA;AAKA;AACA,OA9BA;AA+BA,KArCA;AAsCA,YAtCA,sBAsCA;AACA;AACA,sCADA;;AAGA,KA1CA,EAnBA,E;;;;;;;;;;;;;ACxCA;AAAA;AAAA;AAAA;AAAsgC,CAAgB,g+BAAG,EAAC,C;;;;;;;;;;;ACA1hC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesA/cart/prepare.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/cart/prepare.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./prepare.vue?vue&type=template&id=d59ec468&scoped=true&\"\nvar renderjs\nimport script from \"./prepare.vue?vue&type=script&lang=js&\"\nexport * from \"./prepare.vue?vue&type=script&lang=js&\"\nimport style0 from \"./prepare.vue?vue&type=style&index=0&id=d59ec468&scoped=true&lang=css&\"\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 \"d59ec468\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/cart/prepare.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!./prepare.vue?vue&type=template&id=d59ec468&scoped=true&\"","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!./prepare.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!./prepare.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-b150\">\r\n\t\t<status-nav :ifReturn=\"true\" navBarTitle=\"购物车\" :marginBottom=\"0\"></status-nav>\r\n\t\t<view class=\"cart-content\" v-if=\"isLoading\">\r\n\t\t\t<view class=\"slide-list\">\r\n\t\t\t\t<view class=\"slide-item\" v-for=\"(item, index) in listData\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"slide-item-li\" @click=\"clickItemMethod(item)\">\r\n\t\t\t\t\t\t<view class=\"shop-img\">\r\n\t\t\t\t\t\t\t<image :src=\"item.image\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"shop-txt\">\r\n\t\t\t\t\t\t\t<view class=\"shop-txt-top\">\r\n\t\t\t\t\t\t\t\t<view class=\"title clips2\">{{item.title}}</view>\r\n\t\t\t\t\t\t\t\t<view class=\"specs clips2\">规格:{{item.customTitle==''?item.skuName:item.customTitle}}</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"shop-txt-bottom\">\r\n\t\t\t\t\t\t\t\t<!-- 商品价格 -->\r\n\t\t\t\t\t\t\t\t<view class=\"price\">¥{{business_code!==''?item.price:item.original_price}}</view>\r\n\t\t\t\t\t\t\t\t<!-- 商品数量 -->\r\n\t\t\t\t\t\t\t\t<view class=\"num\"><text>x{{item.num}}</text></view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 全选 -->\r\n\t\t\t<view class=\"change-all\">\r\n\t\t\t\t<view class=\"all-price\">\r\n\t\t\t\t\t<view class=\"price\">合计:<span>¥{{business_code!==''?total:original_total}}</span></view>\r\n\t\t\t\t\t<view class=\"btn\" :style=\"{background: '#0073bc'}\" @tap=\"submitEv\">提交订单</view>\r\n\t\t\t\t</view> \r\n\t\t\t</view> \r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\t// 底部组件\r\n\timport statusNav from '@/components/status-navs/status-nav.vue';\r\n\timport cartSlide from '@/components/shopping-carts/cart-slide';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tstatusNav,\r\n\t\t\tcartSlide\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn { \r\n\t\t\t\tlistData:[],\r\n\t\t\t\tbusiness_code:uni.getStorageSync('business_code'),\r\n\t\t\t\toriginal_total:'', //总价\r\n\t\t\t\ttotal:'', //会员总价\r\n\t\t\t\tisLoading:true,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.getListData();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetListData(){\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\tthis.$requst.post('/api/order/prepare-info',{sku_list:uni.getStorageSync('buyList')}).then(res=>{\r\n\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\tthis.original_total = res.data.original_total;\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\tnum:item.num,\r\n\t\t\t\t\t\t\t\tcoding:item.coding,\r\n\t\t\t\t\t\t\t\tprice:item.price,\r\n\t\t\t\t\t\t\t\toriginal_price: item.original_price,\r\n\t\t\t\t\t\t\t\timage: item.spu_cover,\r\n\t\t\t\t\t\t\t\tskuName: item.sku_name,\r\n\t\t\t\t\t\t\t\ttitle: item.goods_name,\r\n\t\t\t\t\t\t\t\tcustomTitle: item.custom_title,\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.listData = newArr;\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\tthis.isLoading = true;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\tdelta:1\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tsubmitEv(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/cart/settlement'\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 scoped>\r\n\t.slide-list{\r\n\t\tmargin-top: 20rpx;\r\n\t}\r\n\t.slide-item{\r\n\t\tmargin-top: 30rpx;\r\n\t}\r\n\t.slide-list .slide-item:first-child{\r\n\t\tmargin-top: 0;\r\n\t}\r\n\t.slide-item-li{\r\n\t\tbox-sizing: border-box;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tpadding: 20rpx 30rpx;\r\n\t\tbackground-color: #FFFFFF;\r\n\t}\r\n\t.slide-item-li .shop-img{\r\n\t\twidth: 230rpx;\r\n\t\theight: 150rpx;\r\n\t\tborder-radius: 10rpx;\r\n\t\tmargin: 0 24rpx 0 6rpx;\r\n\t\toverflow: hidden;\r\n\t}\r\n\t.slide-item-li .shop-img image{\r\n\t\twidth: 230rpx;\r\n\t\tmin-height: 150rpx;\r\n\t}\r\n\t.slide-item-li .shop-txt{\r\n\t\twidth: calc(100% - 260rpx);\r\n\t}\r\n\t.shop-txt-top{\r\n\t\tmin-height: 100rpx;\r\n\t}\r\n\t.shop-txt-top .title{\r\n\t\tfont-size: 30rpx;\r\n\t\tline-height: 1.5;\r\n\t\tcolor: #000000;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\t.shop-txt-top .specs{\r\n\t\tfont-size: 24rpx;\r\n\t\tline-height: 1.5;\r\n\t\tcolor: #8c8c9b;\r\n\t\tmargin: 3rpx;\r\n\t}\r\n\t.shop-txt-bottom{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\twidth: 100%;\r\n\t\theight: 50rpx;\r\n\t}\r\n\t.shop-txt-bottom .price{\r\n\t\tfont-size: 30rpx;\r\n\t\tline-height: 1.5;\r\n\t\tcolor: #f81c1c;\r\n\t}\r\n\t.shop-txt-bottom .num{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\t\talign-items: center;\r\n\t\twidth: 170rpx;\r\n\t\tfont-size: 24rpx;\r\n\t}\r\n\t.shop-txt-bottom .num>text{\r\n\t\tfont-size: 24rpx;\r\n\t\tline-height: 1.5;\r\n\t\tcolor: #666666;\r\n\t}\r\n\t.change-all{\r\n\t\tbox-sizing: border-box;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\twidth: 100vw;\r\n\t\theight: 130rpx;\r\n\t\tpadding: 0 30rpx;\r\n\t\tposition: fixed;\r\n\t\tleft: 0;\r\n\t\tbottom: 0;\r\n\t\tbackground-color: #FFFFFF;\r\n\t}\r\n\t.all-price{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\twidth: 100%;\r\n\t}\r\n\t.all-price .price{\r\n\t\tfont-size: 24rpx;\r\n\t\tmargin-right: 25rpx;\r\n\t\tcolor: #000000;\r\n\t}\r\n\t.all-price .btn{\r\n\t\tline-height: 84rpx;\r\n\t\tpadding: 0 30rpx;\r\n\t\tborder-radius: 10rpx;\r\n\t\tfont-size: 32rpx;\r\n\t\tcolor: #FFFFFF;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../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!./prepare.vue?vue&type=style&index=0&id=d59ec468&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../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!./prepare.vue?vue&type=style&index=0&id=d59ec468&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1658715653872\n var cssReload = require(\"D:/HBuilderX-app开发版/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":""}