1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///G:/item/appBase/pages/cart/cart.vue?001e","webpack:///G:/item/appBase/pages/cart/cart.vue?6bfa","webpack:///G:/item/appBase/pages/cart/cart.vue?6200","webpack:///G:/item/appBase/pages/cart/cart.vue?a51a","uni-app:///pages/cart/cart.vue","webpack:///G:/item/appBase/pages/cart/cart.vue?1e80","webpack:///G:/item/appBase/pages/cart/cart.vue?83f1"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,0F;AACAA,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACbA;AAAA;AAAA;AAAA;AAA4nB,CAAgB,ipBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsEhpB;AACA;;AAEA,uE;AACA;AACA;AACA,8BADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,cADA,EACA;AACA,uBAFA,EAEA;AACA,kBAHA,EAGA;AACA,kBAJA;;AAMA,GAXA;AAYA,QAZA,oBAYA;AACA;AACA;AACA;AACA;AACA,GAjBA;AAkBA;AACA;AACA,YAFA,oBAEA,CAFA,EAEA;AACA;AACA;AACA;AACA;AACA,KAPA,EAlBA;;AA2BA;AACA,2CADA,CA3BA;;AA8BA;AACA;AACA,YAFA,sBAEA;AACA,mBADA,GACA,KADA;AAEA;AACA,oBADA,CACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA,CACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAXA;AAYA,yBAZA;AAaA,kCApBA,CAoBA;AACA,iBAtBA;AAuBA,qBAvBA,CAuBA;AACA;AACA,iBAzBA,EAFA;AA4BA,KA9BA;AA+BA;AACA,eAhCA,uBAgCA,GAhCA,EAgCA,KAhCA,EAgCA;AACA;AACA;AACA,KAnCA;AAoCA;AACA,gBArCA,wBAqCA,GArCA,EAqCA,KArCA,EAqCA;AACA;AACA,KAvCA;AAwCA;AACA,cAzCA,wBAyCA;AACA;AACA;AACA;AACA;AACA,KA9CA;AA+CA;AACA,SAhDA,iBAgDA,IAhDA,EAgDA,KAhDA,EAgDA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA,SAFA;AAGA;AACA;AACA;AACA,KA5DA;AA6DA;AACA,gBA9DA,wBA8DA,IA9DA,EA8DA;AACA;AACA;AACA;AACA,UADA,CACA;AACA;AACA,OAHA;AAIA,WAJA,CAIA;AACA;AACA,OANA;AAOA;AACA,KAzEA;AA0EA;AACA,kBA3EA,0BA2EA,KA3EA,EA2EA;AACA;AACA;AACA;AACA;AACA,eADA;;AAGA;AACA;AACA;AACA,KArFA;AAsFA;AACA,aAvFA,uBAuFA;AACA;AACA,yBADA;AAEA;AACA;AACA;AACA;AACA,aAFA;AAGA;AACA,+BADA;AAEA,gBAFA,CAEA;AACA;AACA,aAJA;AAKA;AACA;AACA,SAdA;;AAgBA,KAxGA;AAyGA;AACA,aA1GA,uBA0GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA,OANA;AAOA;AACA;AACA,KA3HA;AA4HA;AACA,eA7HA,yBA6HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA;;AAMA;AACA,iEADA;;AAGA,KAzIA,EA9BA,E;;;;;;;;;;;;;AC1EA;AAAA;AAAA;AAAA;AAAspC,CAAgB,unCAAG,EAAC,C;;;;;;;;;;;ACA1qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/cart/cart.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/cart/cart.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./cart.vue?vue&type=template&id=0f00adf4&\"\nvar renderjs\nimport script from \"./cart.vue?vue&type=script&lang=js&\"\nexport * from \"./cart.vue?vue&type=script&lang=js&\"\nimport style0 from \"./cart.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\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/cart/cart.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./cart.vue?vue&type=template&id=0f00adf4&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.allChecked ? _vm.clearCart() : \"\"\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./cart.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./cart.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"container\">\r\n\t\t<!-- 空白页 -->\r\n\t\t<view v-if=\"!hasLogin || empty === true\" class=\"empty\">\r\n\t\t\t<image src=\"/static/error/emptyCart.png\" class=\"emptyImg\" mode=\"aspectFit\"></image>\r\n\t\t\t<view v-if=\"hasLogin\" class=\"empty-tips\">\r\n\t\t\t\t空空如也\r\n\t\t\t\t<navigator class=\"navigator\" v-if=\"hasLogin\" url=\"../index/index\" open-type=\"switchTab\">随便逛逛></navigator>\r\n\t\t\t</view>\r\n\t\t\t<view v-else class=\"empty-tips\">\r\n\t\t\t\t空空如也\r\n\t\t\t\t<view class=\"navigator\" @click=\"navToLogin\">去登陆></view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view v-else>\r\n\t\t\t<!-- 列表 -->\r\n\t\t\t<view class=\"cart-list\">\r\n\t\t\t\t<block v-for=\"(item, index) in cartList\" :key=\"item.id\">\r\n\t\t\t\t\t<view class=\"cart-item\" :class=\"{ 'b-b': index !== cartList.length - 1 }\">\r\n\t\t\t\t\t\t<view class=\"image-wrapper\">\r\n\t\t\t\t\t\t\t<image\r\n\t\t\t\t\t\t\t\t:src=\"item.productInfo.image\"\r\n\t\t\t\t\t\t\t\t:class=\"[item.loaded]\"\r\n\t\t\t\t\t\t\t\tmode=\"aspectFill\"\r\n\t\t\t\t\t\t\t\tlazy-load\r\n\t\t\t\t\t\t\t\t@load=\"onImageLoad('cartList', index)\"\r\n\t\t\t\t\t\t\t\t@error=\"onImageError('cartList', index)\"\r\n\t\t\t\t\t\t\t></image>\r\n\t\t\t\t\t\t\t<view class=\"iconfont iconroundcheckfill checkbox\" :class=\"{ checked: item.checked }\" @click=\"check('item', index)\"></view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"item-right\">\r\n\t\t\t\t\t\t\t<text class=\"clamp title\">{{ item.productInfo.store_name }}</text>\r\n\t\t\t\t\t\t\t<text class=\"attr\">{{ item.attr_val }}</text>\r\n\t\t\t\t\t\t\t<text class=\"price\">¥{{ item.productInfo.price }}</text>\r\n\t\t\t\t\t\t\t<uni-number-box\r\n\t\t\t\t\t\t\t\tclass=\"step\"\r\n\t\t\t\t\t\t\t\t:min=\"1\"\r\n\t\t\t\t\t\t\t\t:max=\"item.productInfo.stock\"\r\n\t\t\t\t\t\t\t\t:value=\"item.cart_num > item.productInfo.stock ? item.productInfo.stock : item.cart_num\"\r\n\t\t\t\t\t\t\t\t:isMax=\"item.cart_num >= item.productInfo.stock ? true : false\"\r\n\t\t\t\t\t\t\t\t:isMin=\"item.cart_num === 1\"\r\n\t\t\t\t\t\t\t\t:index=\"index\"\r\n\t\t\t\t\t\t\t\t@eventChange=\"numberChange\"\r\n\t\t\t\t\t\t\t></uni-number-box>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<text class=\"del-btn iconfont iconclose\" @click=\"deleteCartItem(index)\"></text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</block>\r\n\t\t\t</view>\r\n\t\t\t<!-- 底部菜单栏 -->\r\n\t\t\t<view class=\"action-section\">\r\n\t\t\t\t<view class=\"checkbox\">\r\n\t\t\t\t\t<view class=\"iconfont iconroundcheckfill icon-checked-box\" @click=\"check('all')\" :class=\"{ 'icon-checked': allChecked }\"></view>\r\n\t\t\t\t\t<view class=\"clear-btn\" @click=\"allChecked ? clearCart() : ''\" :class=\"{ show: allChecked }\"><text>清空</text></view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"total-box\">\r\n\t\t\t\t\t<text class=\"price\">¥{{ total }}</text>\r\n\t\t\t\t\t<!-- <text class=\"coupon\">\r\n\t\t\t\t\t\t已优惠\r\n\t\t\t\t\t\t<text>74.35</text>\r\n\t\t\t\t\t\t元\r\n\t\t\t\t\t</text> -->\r\n\t\t\t\t</view>\r\n\t\t\t\t<button type=\"primary\" class=\"no-border confirm-btn\" @click=\"createOrder\">去结算</button>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport { getCartList, getCartNum, cartDel } from '@/api/user.js';\r\nimport { mapState } from 'vuex';\r\nimport uniNumberBox from '@/components/uni-number-box.vue';\r\nimport { saveUrl, interceptor } from '@/utils/loginUtils.js';\r\nexport default {\r\n\tcomponents: {\r\n\t\tuniNumberBox\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\ttotal: 0, //总价格\r\n\t\t\tallChecked: false, //全选状态 true|false\r\n\t\t\tempty: false, //空白页现实 true|false\r\n\t\t\tcartList: []\r\n\t\t};\r\n\t},\r\n\tonShow() {\r\n\t\t// 只有登录时才加载数据\r\n\t\tif (this.hasLogin) {\r\n\t\t\tthis.loadData();\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\t//显示空白页\r\n\t\tcartList(e) {\r\n\t\t\tlet empty = e.length === 0 ? true : false;\r\n\t\t\tif (this.empty !== empty) {\r\n\t\t\t\tthis.empty = empty;\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapState('user', ['hasLogin'])\r\n\t},\r\n\tmethods: {\r\n\t\t//请求数据\r\n\t\tasync loadData() {\r\n\t\t\tlet obj = this;\r\n\t\t\tgetCartList({})\r\n\t\t\t\t.then(function(e) {\r\n\t\t\t\t\t// 获取当前购物车物品增加数量\r\n\t\t\t\t\tlet nub = obj.cartList.length;\r\n\t\t\t\t\t// 获取之前对象数组\r\n\t\t\t\t\tlet aArray = obj.cartList.reverse();\r\n\t\t\t\t\t// 获取返回数据对象数组\r\n\t\t\t\t\tlet bArray = e.data.valid.reverse();\r\n\t\t\t\t\tobj.cartList = bArray\r\n\t\t\t\t\t\t.map((item, ind) => {\r\n\t\t\t\t\t\t\t// 设置返回数据默认为勾选状态\r\n\t\t\t\t\t\t\titem.checked = true;\r\n\t\t\t\t\t\t\t// 获取相同数组之前对象的数据\r\n\t\t\t\t\t\t\tlet carlist = aArray[ind];\r\n\t\t\t\t\t\t\t// 判断之前是否已经加载完毕\r\n\t\t\t\t\t\t\tif (carlist && carlist.loaded == 'loaded') {\r\n\t\t\t\t\t\t\t\titem.loaded = 'loaded';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn item;\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t.reverse();\r\n\t\t\t\t\tobj.calcTotal(); //计算总价\r\n\t\t\t\t})\r\n\t\t\t\t.catch(function(e) {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t});\r\n\t\t},\r\n\t\t//监听image加载完成\r\n\t\tonImageLoad(key, index) {\r\n\t\t\t// 修改载入完成后图片class样式\r\n\t\t\tthis.$set(this[key][index], 'loaded', 'loaded');\r\n\t\t},\r\n\t\t//监听image加载失败\r\n\t\tonImageError(key, index) {\r\n\t\t\tthis[key][index].image = '/static/error/errorImage.jpg';\r\n\t\t},\r\n\t\t// 跳转到登录页\r\n\t\tnavToLogin() {\r\n\t\t\t// 保存地址\r\n\t\t\tsaveUrl();\r\n\t\t\t// 登录拦截\r\n\t\t\tinterceptor();\r\n\t\t},\r\n\t\t//选中状态处理\r\n\t\tcheck(type, index) {\r\n\t\t\tif (type === 'item') {\r\n\t\t\t\tthis.cartList[index].checked = !this.cartList[index].checked;\r\n\t\t\t} else {\r\n\t\t\t\tconst checked = !this.allChecked;\r\n\t\t\t\tconst list = this.cartList;\r\n\t\t\t\tlist.forEach(item => {\r\n\t\t\t\t\titem.checked = checked;\r\n\t\t\t\t});\r\n\t\t\t\tthis.allChecked = checked;\r\n\t\t\t}\r\n\t\t\tthis.calcTotal(type);\r\n\t\t},\r\n\t\t//数量\r\n\t\tnumberChange(data) {\r\n\t\t\tlet arr = this.cartList[data.index];\r\n\t\t\tarr.cart_num = data.number;\r\n\t\t\tgetCartNum({ id: arr.id, number: data.number })\r\n\t\t\t\t.then(e => {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t})\r\n\t\t\t\t.catch(function(e) {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t});\r\n\t\t\tthis.calcTotal();\r\n\t\t},\r\n\t\t//删除\r\n\t\tdeleteCartItem(index) {\r\n\t\t\tlet list = this.cartList;\r\n\t\t\tlet row = list[index];\r\n\t\t\tlet id = row.id;\r\n\t\t\tcartDel({\r\n\t\t\t\tids: id\r\n\t\t\t});\r\n\t\t\tthis.cartList.splice(index, 1);\r\n\t\t\tuni.hideLoading();\r\n\t\t\tthis.calcTotal();\r\n\t\t},\r\n\t\t//清空\r\n\t\tclearCart() {\r\n\t\t\tuni.showModal({\r\n\t\t\t\tcontent: '清空购物车?',\r\n\t\t\t\tsuccess: e => {\r\n\t\t\t\t\tif (e.confirm) {\r\n\t\t\t\t\t\tlet st = this.cartList.map(e => {\r\n\t\t\t\t\t\t\treturn e.id;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tcartDel({\r\n\t\t\t\t\t\t\tids: st.join(',')\r\n\t\t\t\t\t\t}).then(e => {\r\n\t\t\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.cartList = [];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\t//计算总价\r\n\t\tcalcTotal() {\r\n\t\t\tlet list = this.cartList;\r\n\t\t\tif (list.length === 0) {\r\n\t\t\t\tthis.empty = true;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tlet total = 0;\r\n\t\t\tlet checked = true;\r\n\t\t\tlist.forEach(item => {\r\n\t\t\t\tif (item.checked === true) {\r\n\t\t\t\t\ttotal += item.productInfo.price * item.cart_num;\r\n\t\t\t\t} else if (checked === true) {\r\n\t\t\t\t\tchecked = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.allChecked = checked;\r\n\t\t\tthis.total = Number(total.toFixed(2));\r\n\t\t},\r\n\t\t//创建订单\r\n\t\tcreateOrder() {\r\n\t\t\tlet list = this.cartList;\r\n\t\t\tlet goodsData = [];\r\n\t\t\tlist.forEach(item => {\r\n\t\t\t\tif (item.checked) {\r\n\t\t\t\t\tgoodsData.push(item.id);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: '/pages/order/createOrder?id=' + goodsData.join(',')\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.container {\r\n\tpadding-bottom: 134rpx;\r\n\tbackground-color: $page-color-base;\r\n\t/* 空白页 */\r\n\t.empty {\r\n\t\tposition: fixed;\r\n\t\tleft: 0;\r\n\t\ttop: 0;\r\n\t\twidth: 100%;\r\n\t\theight: 100vh;\r\n\t\tpadding-bottom: 100rpx;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t\tbackground: #fff;\r\n\t\t.emptyImg {\r\n\t\t\twidth: 300rpx;\r\n\t\t\theight: 250rpx;\r\n\t\t\tmargin-bottom: 30rpx;\r\n\t\t}\r\n\t\t.empty-tips {\r\n\t\t\tdisplay: flex;\r\n\t\t\tfont-size: $font-sm + 2rpx;\r\n\t\t\tcolor: $font-color-disabled;\r\n\t\t\t.navigator {\r\n\t\t\t\tcolor: $uni-color-primary;\r\n\t\t\t\tmargin-left: 16rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n/* 购物车列表项 */\r\n.cart-item {\r\n\tdisplay: flex;\r\n\tposition: relative;\r\n\tpadding: 30rpx 40rpx;\r\n\t.image-wrapper {\r\n\t\twidth: 230rpx;\r\n\t\theight: 230rpx;\r\n\t\tflex-shrink: 0;\r\n\t\tposition: relative;\r\n\t\timage {\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t}\r\n\t}\r\n\t.checkbox {\r\n\t\tposition: absolute;\r\n\t\tleft: -16rpx;\r\n\t\ttop: -16rpx;\r\n\t\tz-index: 8;\r\n\t\tfont-size: 44rpx;\r\n\t\tline-height: 1;\r\n\t\tpadding: 4rpx;\r\n\t\tcolor: $font-color-disabled;\r\n\t\tbackground: #fff;\r\n\t\tborder-radius: 50px;\r\n\t}\r\n\t.item-right {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tflex: 1;\r\n\t\toverflow: hidden;\r\n\t\tposition: relative;\r\n\t\tpadding-left: 30rpx;\r\n\t\t.title,\r\n\t\t.price {\r\n\t\t\tfont-size: $font-base + 2rpx;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t\theight: 40rpx;\r\n\t\t\tline-height: 40rpx;\r\n\t\t}\r\n\t\t.attr {\r\n\t\t\tfont-size: $font-sm + 2rpx;\r\n\t\t\tcolor: $font-color-light;\r\n\t\t\theight: 50rpx;\r\n\t\t\tline-height: 50rpx;\r\n\t\t}\r\n\t\t.price {\r\n\t\t\theight: 50rpx;\r\n\t\t\tline-height: 50rpx;\r\n\t\t}\r\n\t\t.step {\r\n\t\t\tmargin-top: 20rpx;\r\n\t\t}\r\n\t}\r\n\t.del-btn {\r\n\t\tpadding: 4rpx 10rpx;\r\n\t\tfont-size: 34rpx;\r\n\t\theight: 50rpx;\r\n\t\tcolor: $font-color-light;\r\n\t}\r\n}\r\n/* 底部栏 */\r\n.action-section {\r\n\t/* #ifdef H5 */\r\n\tmargin-bottom: 100rpx;\r\n\t/* #endif */\r\n\tposition: fixed;\r\n\tleft: 30rpx;\r\n\tbottom: 30rpx;\r\n\tz-index: 95;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\twidth: 690rpx;\r\n\theight: 100rpx;\r\n\tpadding: 0 30rpx;\r\n\tbackground: rgba(255, 255, 255, 0.9);\r\n\tbox-shadow: 0 0 20rpx 0 rgba(0, 0, 0, 0.5);\r\n\tborder-radius: 16rpx;\r\n\t.checkbox {\r\n\t\theight: 52rpx;\r\n\t\tposition: relative;\r\n\t\t.icon-checked-box {\r\n\t\t\tborder-radius: 50rpx;\r\n\t\t\tbackground-color: #ffffff;\r\n\t\t\twidth: 52rpx;\r\n\t\t\theight: 100%;\r\n\t\t\tposition: relative;\r\n\t\t\tz-index: 5;\r\n\t\t\tfont-size: 53rpx;\r\n\t\t\tline-height: 1;\r\n\t\t\tcolor: $font-color-light;\r\n\t\t}\r\n\t\t.icon-checked {\r\n\t\t\tcolor: $base-color;\r\n\t\t}\r\n\t}\r\n\t.clear-btn {\r\n\t\tposition: absolute;\r\n\t\tleft: 26rpx;\r\n\t\ttop: 0;\r\n\t\tz-index: 4;\r\n\t\twidth: 0;\r\n\t\theight: 52rpx;\r\n\t\tline-height: 52rpx;\r\n\t\tpadding-left: 38rpx;\r\n\t\tfont-size: $font-base;\r\n\t\tcolor: #fff;\r\n\t\tbackground: $font-color-disabled;\r\n\t\tborder-radius: 0 50px 50px 0;\r\n\t\topacity: 0;\r\n\t\ttransition: 0.2s;\r\n\t\t&.show {\r\n\t\t\topacity: 1;\r\n\t\t\twidth: 120rpx;\r\n\t\t}\r\n\t}\r\n\t.total-box {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\ttext-align: right;\r\n\t\tpadding-right: 40rpx;\r\n\t\t.price {\r\n\t\t\tfont-size: $font-lg;\r\n\t\t\tcolor: $font-color-dark;\r\n\t\t}\r\n\t\t.coupon {\r\n\t\t\tfont-size: $font-sm;\r\n\t\t\tcolor: $font-color-light;\r\n\t\t\ttext {\r\n\t\t\t\tcolor: $font-color-dark;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.confirm-btn {\r\n\t\tpadding: 0 38rpx;\r\n\t\tmargin: 0;\r\n\t\tborder-radius: 100px;\r\n\t\theight: 76rpx;\r\n\t\tline-height: 76rpx;\r\n\t\tfont-size: $font-base + 2rpx;\r\n\t\tbackground: $base-color;\r\n\t}\r\n}\r\n/* 复选框选中状态 */\r\n.action-section .checkbox.checked,\r\n.cart-item .checkbox.checked {\r\n\tcolor: $base-color;\r\n}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./cart.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./cart.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084431\n var cssReload = require(\"D:/work/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":""}
|