You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
22 KiB
1 lines
22 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/cart.vue?b102","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/cart.vue?55ac","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/cart.vue?da7b","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/cart.vue?6297","uni-app:///pages/cart.vue","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/cart.vue?cdfe","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/cart.vue?dc67"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","zhekou","reload","likeData","current_page","last_page","status","contentText","contentdown","contentrefresh","contentnomore","onReachBottom","computed","onShow","setTimeout","uni","frontColor","backgroundColor","onLoad","methods","operate","choose","shopchoose","bcadd","bcsub","move","settlement","del","formatNumber","getData","url","success","loadlikeData","page","toCartchoose","content","toEmpty"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACa;;;AAGhE;AACkK;AAClK,gBAAgB,+KAAU;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,aAAa,qMAEN;AACP,KAAK;AACL;AACA,aAAa,gNAEN;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC3FA;AAAA;AAAA;AAAA;AAA4lB,CAAgB,wnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;AC+HhnB;AAAA;AAAA;AAAA,eACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACA;IACA;MACA;IACA;MACA;MACA;MACA;MACA;IACA;EACA;EACAC,4BACA,wCACA;EACAC;IAAA;IACAC;MACAC;QACAC,YACA,gEACA,YACA;QACAC;MACA;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;;EACAC,yCACA;IACAC;IAAA;IACAC;IAAA;IACAC;IAAA;IACAC;IAAA;IACAC;IAAA;IACAC;IAAA;IACAC;IAAA;IACAC;EACA;IACAC;MACA;QACA;MACA;IACA;IACAC;MAAA;MACA;QACAC;QACAC;UAEA;QAEA;MACA;IACA;IACAC;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA;gBACA;kBACAF;kBACA9B;oBACAiC;kBACA;kBACAF;oBACA;oBACA;oBACA;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAG;MAAA;MACA;QACAnB;UACAoB;UACAJ;YACA;cACA;YACA;UACA;QACA;MACA;QACA;MACA;IACA;IACAK;MAAA;MACArB;QACAoB;QACAJ;UACA;YACA;UACA;QACA;MACA;IACA;EAAA;AAEA;AAAA,2B;;;;;;;;;;;;;AChPA;AAAA;AAAA;AAAA;AAA62B,CAAgB,i3BAAG,EAAC,C;;;;;;;;;;;ACAj4B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/cart.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/cart.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./cart.vue?vue&type=template&id=4c1c1dce&\"\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=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../k/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.vue\"\nexport default component.exports","export * from \"-!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./cart.vue?vue&type=template&id=4c1c1dce&\"","var components\ntry {\n components = {\n wanlEmpty: function () {\n return import(\n /* webpackChunkName: \"components/wanl-empty/wanl-empty\" */ \"@/components/wanl-empty/wanl-empty.vue\"\n )\n },\n wanlProduct: function () {\n return import(\n /* webpackChunkName: \"components/wanl-product/wanl-product\" */ \"@/components/wanl-product/wanl-product.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 var g0 = _vm.$wanlshop.wanlsys()\n var g1 = _vm.$wanlshop.wanlsys()\n var g2 = _vm.$wanlshop.wanlsys()\n var g3 = _vm.$wanlshop.oss(\n _vm.common.appStyle.cart_nav_image,\n 0,\n 50,\n 1,\n \"transparent\",\n \"png\"\n )\n var g4 = _vm.$wanlshop.wanlsys()\n var g5 = _vm.cart.list.length\n var l1 =\n g5 > 0\n ? _vm.__map(_vm.cart.list, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var l0 = _vm.__map(item.products, function (goods, keys) {\n var $orig = _vm.__get_orig(goods)\n var g6 = _vm.$wanlshop.oss(goods.image, 100, 100, 1)\n var g7 = goods.sku.difference.join(\" \")\n var m0 = _vm.formatNumber(parseFloat(goods.sku.price * _vm.zhekou))\n return {\n $orig: $orig,\n g6: g6,\n g7: g7,\n m0: m0,\n }\n })\n return {\n $orig: $orig,\n l0: l0,\n }\n })\n : null\n var m1 = !_vm.cart.operate\n ? _vm.formatNumber(parseFloat(_vm.cart.allsum * _vm.zhekou)) || \"\"\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n g3: g3,\n g4: g4,\n g5: g5,\n l1: l1,\n m1: m1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../k/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 \"-!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../k/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>\r\n\t\t<!-- 导航条 -->\r\n\t\t<view class=\"cu-custom\" :style=\"{ height: $wanlshop.wanlsys().height + 'px' }\">\r\n\t\t\t<view\r\n\t\t\t\tclass=\"cu-bar fixed bg-bgcolor\"\r\n\t\t\t\t:style=\"{\r\n\t\t\t\t\theight: $wanlshop.wanlsys().height + 'px',\r\n\t\t\t\t\tpaddingTop: $wanlshop.wanlsys().top + 'px',\r\n\t\t\t\t\tbackgroundColor: common.appStyle.cart_nav_color ? common.appStyle.cart_nav_color : '#f7f7f7',\r\n\t\t\t\t\tbackgroundImage: 'url(' + $wanlshop.oss( common.appStyle.cart_nav_image, 0, 50, 1, 'transparent', 'png' ) + ')',\r\n\t\t\t\t\tcolor: common.appStyle.cart_font_color == 'light' ? '#ffffff' : '#333333'\r\n\t\t\t\t}\"\r\n\t\t\t>\r\n\t\t\t\t<view class=\"action\" @tap=\"operate()\">\r\n\t\t\t\t\t<text v-if=\"cart.operate\">完成</text>\r\n\t\t\t\t\t<text v-else>管理</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"content\" :style=\"{ top: $wanlshop.wanlsys().top + 'px' }\">\r\n\t\t\t\t\t购物车\r\n\t\t\t\t\t<text class=\"text-sm\">(共{{ cart.cartnum }}件宝贝)</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<block v-if=\"cart.list.length > 0\">\r\n\t\t\t<view\r\n\t\t\t\tclass=\"wanl-cart-shop radius-bock margin-bj padding-bj\"\r\n\t\t\t\tv-for=\"(item, index) in cart.list\"\r\n\t\t\t\t:key=\"index\"\r\n\t\t\t>\r\n\t\t\t\r\n\t\t\t\t<view class=\"wanl-cart-goods\" v-for=\"(goods, keys) in item.products\" :key=\"keys\">\r\n\t\t\t\t\t<!-- 商品选择 -->\r\n\t\t\t\t\t<view\r\n\t\t\t\t\t\tclass=\"text-xxl margin-right-sm\"\r\n\t\t\t\t\t\t@tap=\"choose({ index: index, keys: keys })\"\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<text v-if=\"goods.checked\" class=\"wlIcon-xuanze-danxuan wanl-orange\"></text>\r\n\t\t\t\t\t\t<text v-else class=\"wlIcon-xuanze wanl-gray-light\"></text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"picture\" @tap=\"onGoods(goods.goods_id)\">\r\n\t\t\t\t\t\t<image\r\n\t\t\t\t\t\t\t:src=\"$wanlshop.oss(goods.image, 100, 100, 1)\"\r\n\t\t\t\t\t\t\tmode=\"aspectFill\"\r\n\t\t\t\t\t\t></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"content\">\r\n\t\t\t\t\t\t<view class=\"text-cut-2 wanl-gray-dark\" @tap=\"onGoods(goods.goods_id)\">\r\n\t\t\t\t\t\t\t{{ goods.title }}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"cu-tag wanl-gray opt\">\r\n\t\t\t\t\t\t\t规格:{{ goods.sku.difference.join(' ') }}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"flex justify-between align-center\">\r\n\t\t\t\t\t\t\t<view class=\"text-price wanl-orange text-lg\">\r\n\t\t\t\t\t\t\t\t{{ formatNumber(parseFloat(goods.sku.price*zhekou)) }}\r\n\t\t\t\t\t\t\t\t<!-- {{ goods.sku.price }} -->\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"wanl-numberBox solid\">\r\n\t\t\t\t\t\t\t\t<view @tap=\"bcsub(goods)\">\r\n\t\t\t\t\t\t\t\t\t<text class=\"wlIcon-jian round text-gray\"></text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view>{{ goods.number }}</view>\r\n\t\t\t\t\t\t\t\t<view @tap=\"bcadd(goods)\">\r\n\t\t\t\t\t\t\t\t\t<text class=\"wlIcon-tianjia round\"></text>\r\n\t\t\t\t\t\t\t\t</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</block>\r\n\t\t<block class=\"margin-bj padding-bj\" v-else>\r\n\t\t\t<wanl-empty src=\"cart_default3x\" text=\"哎呀,购物车空空如也!\" />\r\n\t\t\t<wanl-product :dataList=\"likeData\" />\r\n\t\t</block>\r\n\r\n\t\t<!-- 操作栏 -->\r\n\t\t<view class=\"wanl-cart-foot fixedView solid-top edit\" v-if=\"cart.operate\">\r\n\t\t\t<view class=\"flex align-center\" @tap=\"toCartchoose()\">\r\n\t\t\t\t<view class=\"text-xxl\">\r\n\t\t\t\t\t<text v-if=\"cart.status\" class=\"wlIcon-xuanze-danxuan wanl-orange\"></text>\r\n\t\t\t\t\t<text v-else class=\"wlIcon-xuanze wanl-gray-light\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"margin-left-sm\">\r\n\t\t\t\t\t<text>{{ cart.status ? '取消' : '全选' }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"flex\">\r\n\t\t<!-- \t\t<button v-if=\"cart.allnum == 0\" class=\"cu-btn round line-gray\">移动关注</button>\r\n\t\t\t\t<button v-else class=\"cu-btn round line-orange\" @tap=\"move()\">移动关注</button> -->\r\n\t\t\t\t<button class=\"cu-btn round line-orange\" @tap=\"toEmpty()\">快速清理</button>\r\n\t\t\t\t<button v-if=\"cart.allnum == 0\" class=\"cu-btn round line-gray\">删除</button>\r\n\t\t\t\t<button v-else class=\"cu-btn round bg-gradual-orange\" @tap=\"del()\">删除</button>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"wanl-cart-foot fixedView solid-top account\" v-else>\r\n\t\t\t<view class=\"flex align-center\" @tap=\"toCartchoose()\">\r\n\t\t\t\t<view class=\"text-xxl\">\r\n\t\t\t\t\t<text v-if=\"cart.status\" class=\"wlIcon-xuanze-danxuan wanl-orange\"></text>\r\n\t\t\t\t\t<text v-else class=\"wlIcon-xuanze wanl-gray-light\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"margin-left-sm\">\r\n\t\t\t\t\t<text>{{ cart.status ? '取消' : '全选' }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"flex\">\r\n\t\t\t\t<view class=\"text-sm text-right\">\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t合计:\r\n\t\t\t\t\t\t<text class=\"text-price wanl-orange text-lg\">\r\n\t\t\t\t\t\t\t{{ formatNumber(parseFloat(cart.allsum*zhekou)) || ''}}\r\n\t\t\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view>不含运费</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<button v-if=\"cart.allnum == 0\" class=\"cu-btn round line-gray\">去结算</button>\r\n\t\t\t\t<button v-else class=\"cu-btn round bg-gradual-orange\" @tap=\"settlement()\">\r\n\t\t\t\t\t去结算 ({{ cart.allnum }})\r\n\t\t\t\t</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 { mapState, mapActions } from 'vuex';\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tzhekou:1,\r\n\t\t\treload: true,\r\n\t\t\tlikeData: [],\r\n\t\t\tcurrent_page: 1, //当前页码\r\n\t\t\tlast_page: 1, //总页码\r\n\t\t\tstatus: 'loading',\r\n\t\t\tcontentText: {\r\n\t\t\t\tcontentdown: '',\r\n\t\t\t\tcontentrefresh: '正在加载...',\r\n\t\t\t\tcontentnomore: ''\r\n\t\t\t}\r\n\t\t};\r\n\t},\r\n\tonReachBottom() {\r\n\t\t//判断是否最后一页\r\n\t\tif (this.current_page >= this.last_page) {\r\n\t\t\tthis.status = 'noMore';\r\n\t\t} else {\r\n\t\t\tthis.reload = false;\r\n\t\t\tthis.current_page = this.current_page + 1; //页码+1\r\n\t\t\tthis.status = 'loading';\r\n\t\t\tthis.loadlikeData();\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapState(['cart', 'common'])\r\n\t},\r\n\tonShow() {\r\n\t\tsetTimeout(() => {\r\n\t\t\tuni.setNavigationBarColor({\r\n\t\t\t\tfrontColor:\r\n\t\t\t\t\tthis.$store.state.common.appStyle.cart_font_color == 'light'\r\n\t\t\t\t\t\t? '#ffffff'\r\n\t\t\t\t\t\t: '#000000',\r\n\t\t\t\tbackgroundColor: this.$store.state.common.appStyle.cart_nav_color\r\n\t\t\t});\r\n\t\t}, 200);\r\n\t},\r\n\tonLoad() {\r\n\t\tthis.getData()\r\n\t\t// 加载猜你喜欢\r\n\t\t// this.loadlikeData();\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions({\r\n\t\t\toperate: 'cart/operate', // 管理购物车\r\n\t\t\tchoose: 'cart/choose', // 选择商品\r\n\t\t\tshopchoose: 'cart/shopchoose', // 选择店铺\r\n\t\t\tbcadd: 'cart/bcadd', // 添加数量\r\n\t\t\tbcsub: 'cart/bcsub', // 减少数量\r\n\t\t\tmove: 'cart/move', // 移动购物车\r\n\t\t\tsettlement: 'cart/settlement', // 结算购物车\r\n\t\t\tdel: 'cart/del' // 删除选中购物车\r\n\t\t}),\r\n\t\tformatNumber(value) {\r\n\t\t\tif (value) {\r\n\t\t\t\treturn value.toFixed(2); // 使用 toFixed() 方法将数字保留两位小数\t\r\n\t\t\t}\r\n\t\t},\r\n\t\tgetData() {\r\n\t\t\tthis.$api.get({\r\n\t\t\t\turl: '/wanlshop/data/getZheKou',\r\n\t\t\t\tsuccess: res => {\r\n\t\t\t\t\r\n\t\t\t\t\tthis.zhekou = res\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\tasync loadlikeData() {\r\n\t\t\tthis.$api.get({\r\n\t\t\t\turl: '/wanlshop/product/likes?pages=cart',\r\n\t\t\t\tdata: {\r\n\t\t\t\t\tpage: this.current_page\r\n\t\t\t\t},\r\n\t\t\t\tsuccess: res => {\r\n\t\t\t\t\tthis.likeData = this.reload ? res.data : this.likeData.concat(res.data); //评论数据 追加\r\n\t\t\t\t\tthis.current_page = res.current_page; //当前页码\r\n\t\t\t\t\tthis.last_page = res.last_page; //总页码\r\n\t\t\t\t\tthis.status = 'more';\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\t// 禁止空购物车点击全选\r\n\t\ttoCartchoose() {\r\n\t\t\tif (this.$store.state.cart.list.length == 0) {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\tcontent: '购物车没有任何宝贝,马上去选一个心仪的宝贝吧~',\r\n\t\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tthis.$wanlshop.on('/pages/category');\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} else {\r\n\t\t\t\tthis.$store.dispatch('cart/cartchoose');\r\n\t\t\t}\r\n\t\t},\r\n\t\ttoEmpty() {\r\n\t\t\tuni.showModal({\r\n\t\t\t\tcontent: '确定清空购物车?',\r\n\t\t\t\tsuccess: res => {\r\n\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\tthis.$store.dispatch('cart/empty');\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}\r\n};\r\n</script>\r\n\r\n<style>\r\n.wanl-gray-light {\r\n\tcolor: #eee;\r\n}\r\n\r\n.wanl-cart-shop {\r\n\tbackground-color: #ffffff;\r\n}\r\n\r\n/* #ifndef MP-ALIPAY */\r\n.wanl-cart-shop radio::before,\r\n.wanl-cart-shop checkbox::before {\r\n\tmargin-top: -7px;\r\n\tright: 1px;\r\n}\r\n\r\n.wanl-cart-shop radio .wx-radio-input,\r\n.wanl-cart-shop checkbox .wx-checkbox-input,\r\n.wanl-cart-shop radio .uni-radio-input,\r\n.wanl-cart-shop checkbox .uni-checkbox-input {\r\n\tmargin: 0;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n}\r\n\r\n/* #endif */\r\n.wanl-cart-shop checkbox-group {\r\n\tmargin-right: 25rpx;\r\n}\r\n\r\n.wanl-cart-shop .shop {\r\n\tposition: relative;\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n\talign-items: center;\r\n}\r\n\r\n.wanl-cart-shop .shop .shopname {\r\n\tposition: absolute;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tleft: 60rpx;\r\n}\r\n\r\n.wanl-cart-shop .shop uni-checkbox .uni-checkbox-input {\r\n\tborder: 1px solid #cccccc;\r\n}\r\n\r\n/* 商品 */\r\n.wanl-cart-goods {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tmargin-bottom: 30rpx;\r\n}\r\n\r\n.wanl-cart-goods:last-child {\r\n\tmargin-bottom: 18rpx;\r\n}\r\n\r\n.wanl-cart-goods .picture {\r\n\twidth: 180rpx;\r\n\theight: 180rpx;\r\n}\r\n\r\n.wanl-cart-goods .picture image {\r\n\twidth: 180rpx;\r\n\theight: 180rpx;\r\n\toverflow: hidden;\r\n\tborder-radius: 20rpx;\r\n}\r\n/* 1.0.6升级 */\r\n.wanl-cart-goods .content {\r\n\tpadding-left: 25rpx;\r\n\twidth: 100%;\r\n\toverflow: hidden;\r\n}\r\n\r\n.wanl-cart-goods .content .opt {\r\n\tfont-size: 24rpx;\r\n\tpadding: 0;\r\n\tcolor: #000000;\r\n\theight: 32rpx;\r\n\tbackground-color: #f6f6f6;\r\n\tfont-weight: 300;\r\n\tmargin-top: 10rpx;\r\n\tmargin-bottom: 25rpx;\r\n\tborder-radius: 4rpx;\r\n}\r\n\r\n.wanl-cart-goods .content .opt text {\r\n\tpadding-right: 6rpx;\r\n\tpadding-left: 10rpx;\r\n}\r\n\r\n/* 操作条 */\r\n.wanl-cart-foot {\r\n\twidth: 100%;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: space-between;\r\n\tz-index: 997;\r\n\tmin-height: 52px;\r\n\tbackground-color: #ffffff;\r\n\tpadding: 0 25rpx;\r\n}\r\n\r\n.wanl-cart-foot.solid:after {\r\n}\r\n\r\n/* #ifndef MP-ALIPAY */\r\n.wanl-cart-foot radio:before,\r\n.wanl-cart-foot checkbox:before {\r\n\tmargin-top: -7px;\r\n\tright: 1px;\r\n}\r\n\r\n.wanl-cart-foot radio .wx-radio-input,\r\n.wanl-cart-foot checkbox .wx-checkbox-input,\r\n.wanl-cart-foot radio .uni-radio-input,\r\n.wanl-cart-foot checkbox .uni-checkbox-input {\r\n\tmargin: 0;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n}\r\n\r\n/* #endif */\r\n.wanl-cart-foot.account button {\r\n\tmargin-left: 25rpx;\r\n}\r\n\r\n.wanl-cart-foot.edit button {\r\n\tmargin-left: 20rpx;\r\n}\r\n\r\n.wanl-cart-foot.account .cu-btn {\r\n\tpadding: 0 25rpx;\r\n\tfont-size: 32rpx;\r\n\theight: 72rpx;\r\n\tmargin-top: 6rpx;\r\n\t/* border-radius: 20rpx; */\r\n}\r\n\r\n.wanl-cart-foot.edit .cu-btn {\r\n\tpadding: 0 30rpx;\r\n\tfont-size: 24rpx;\r\n\theight: 56rpx;\r\n}\r\n</style>\r\n","import mod from \"-!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./cart.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./cart.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699839790388\n var cssReload = require(\"C:/Users/liudan/Desktop/k/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":""} |