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
38 KiB
1 lines
38 KiB
{"version":3,"sources":["webpack:///G:/web/中龙小程序/zhonglmini/pages/cart/cart.vue?e931","webpack:///G:/web/中龙小程序/zhonglmini/pages/cart/cart.vue?f3f3","uni-app:///pages/cart/cart.vue","webpack:///G:/web/中龙小程序/zhonglmini/pages/cart/cart.vue?92ed","webpack:///G:/web/中龙小程序/zhonglmini/pages/cart/cart.vue?73d1","uni-app:///main.js","webpack:///G:/web/中龙小程序/zhonglmini/pages/cart/cart.vue?5216","webpack:///G:/web/中龙小程序/zhonglmini/pages/cart/cart.vue?ab2d"],"names":["components","empty","data","sumPrice","headerPosition","headerTop","statusTop","selectedList","isAllselected","goodsList","theIndex","oldIndex","isStop","startingPrice","onShow","delarrid","arr","onPageScroll","onPullDownRefresh","setTimeout","uni","filters","toFixed","onLoad","methods","checkkc","userinfo","action","gids","uid","reinfo","getcheckarr","thisgoodlist","joinGoods","isFind","touchStart","touchMove","touchEnd","toGoods","toConfirmation","title","content","success","url","tmpList","icon","key","deleteGoods","deleteList","selected","i","allSelect","sub","add","sum","inputchangeBz","inputnum","inputchangeFudw","discard","wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAA8qB,CAAgB,+qBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;eCkFlsB;EACAA;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACA;MACAC;MACAC;MACAC;MACA;MACAC;IACA;EACA;EACAC;IACA;IACA;IACA;IACA;IACA;MACA;MACA;MACA;IACA;MACA;MACA;MACA;QACA;UACA;UACAC;QACA;UACA;YACAC;UACA;QACA;MACA;MACA;MACA;QACA;UACA;QACA;QACA;UACA;QACA;MACA;QACA;QACA;MACA;IACA;IACA;IACA;EACA;EACAC;IACA;IACA;IACA;IACA;EACA;EACA;EACAC;IACAC;MACAC;IACA;EACA;EACAC;IACAC;MACA;IACA;EACA;EACAC;IACA;EAAA,CAOA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBAAA;gBAAA,OACA;kBAAAC;kBAAAC;kBAAAC;gBAAA;cAAA;gBAAAC;gBACAC;gBACAC;gBACA;kBACA;oBACA;sBACA;wBACA;wBACA;sBACA;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MACA;AACA;AACA;AACA;AACA;AACA;MACA;MACA;MACA;QACA;QACA,wBACA;UAAA;UACA;UACAC;UACA;QACA;MACA;;MACA;QACA;QACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA;QACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA;MACA;QACA;QACA;MACA;MACA;MACA;MAEA;QACA;MACA;MACA;QACA;QACA;QACA;MACA;MAEA;QACA;QACA;MACA;QACA;UACA;UACA;UACA;UACAjB;YACA;UACA;QACA;MACA;IACA;IACAkB;MACA;MACA;IACA;IACA;IAEA;IACAC;MACA;MACA;MACA;MACA;IAAA,CACA;IACA;IACAC;MACA;MACA;QACAnB;UACAoB;UACAC;UACAC;YACA;cACAtB;gBACAuB;cACA;YACA;cACA;YAAA;UAEA;QACA;MACA;QACA;QACA;QACA;UACA;YACAC;UACA;QACA;QACA;UACAxB;YACAoB;YACAK;UACA;UACA;QACA;QACAzB;UACA0B;UACA5C;UACAwC;YACAtB;cACAuB;YACA;UACA;QACA;MACA;IAEA;IACA;IACAI;MACA;MACA;QACA;UACA;UACA;QACA;MACA;MACA;MACA;MACA3B;MACA;MACA;MACA;IACA;IACA;IACA4B;MACA,qCACA;QACA;MACA;MACA;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;MACAC;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;MACA;QACA;QACA;UACAnC;QACA;MACA;MACA;MACA;MACA;IACA;IACA;IACAoC;MACA;QACA;MACA;MACA;MACA;MACA;MACAhC;MACA;IACA;IACA;IACAiC;MACA;QACA;QACA;QACA;QACAjC;QACA;MACA;QACAA;UACAoB;UACAK;QACA;QACA;MACA;IACA;IACA;IACAS;MACA;MACA;MACA;MACA;QACA1B;QACA;UACA;YACA;YACA;UACA;YACA;UACA;QACA;MACA;MACAR;MACAQ;MACA;MACA;IACA;IACA2B;MACAC;MACA;MACA;MACApC;IACA;IACAqC;MACAD;MACA;MACA;MACApC;IACA;IACAsC;MACA;IAAA;EAEA;AACA;AAAA,2B;;;;;;;;;;;;;ACraA;AAAA;AAAA;AAAA;AAAyxC,CAAgB,ktCAAG,EAAC,C;;;;;;;;;;;ACA7yC;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;;;;ACNL;AAGA;AACA;AAHA;AACAC,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AACqL;AACrL,gBAAgB,0LAAU;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","file":"pages/cart/cart.js","sourcesContent":["var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.goodsList.length\n var g1 = _vm.selectedList.length\n var g2 = _vm.selectedList.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n g2: g2,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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=\"place\"></view> -->\r\n\t\t<!-- 商品列表 -->\r\n\t\t<view class=\"goods-list\">\r\n\t\t\t<!-- 空白页 -->\r\n\t\t\t<empty v-if=\"goodsList.length === 0\" tip='购物车是空的哦'></empty>\r\n <view class=\"row\" v-for=\"(row,index) in goodsList\" :key=\"index\">\r\n\t\t\t\t<!-- 删除按钮 -->\r\n\t\t\t\t<view class=\"menu\" @tap.stop=\"deleteGoods(row.id)\">\r\n\t\t\t\t\t<view class=\"icon shanchu\"></view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 商品 -->\r\n\t\t\t\t<view class=\"carrier\" :class=\"[theIndex==index?'open':oldIndex==index?'close':'']\" @touchstart=\"touchStart(index,$event)\" @touchmove=\"touchMove(index,$event)\" @touchend=\"touchEnd(index,$event)\">\r\n\t\t\t\t\t<!-- checkbox -->\r\n\t\t\t\t\t<view class=\"checkbox-box\" @tap=\"selected(index)\" v-if=\"row.kucun\">\r\n\t\t\t\t\t\t<view class=\"checkbox\">\r\n\t\t\t\t\t\t\t<view :class=\"[row.selected?'on':'']\"></view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"checkbox-box\" v-if=\"!row.kucun\">\r\n\t\t\t\t\t\t<view class=\"sellq\">售空</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- 商品信息 -->\r\n\t\t\t\t\t<view class=\"goods-info\" @tap=\"toGoods(row)\">\r\n\t\t\t\t\t\t<view class=\"img\">\r\n\t\t\t\t\t\t\t<image :src=\"row.img\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"info\">\r\n\t\t\t\t\t\t\t<view class=\"title\">{{row.mc}}{{row.gg}}{{row.dw}}</view>\r\n\t\t\t\t\t\t\t<!-- <view class=\"spec\">{{row.gg}}</view> -->\r\n\t\t\t\t\t\t\t<view class=\"spbz\" style=\"width: 100%;\">\r\n\t\t\t\t\t\t\t\t<input style=\"font-size: 28upx; color: #41A863; height: 40upx; line-height: 40upx; min-height: 40upx;\" type=\"text\" :value=\"row.bz\" @input=\"inputchangeBz($event,row.bz,row.id,index)\" placeholder=\"输入备注\">\r\n\t\t\t\t\t\t\t\t<input style=\"font-size: 28upx; color: #41A863; height: 40upx; line-height: 40upx; min-height: 40upx;\" type=\"text\" :value=\"row.fudw\" @input=\"inputchangeFudw($event,row.fudw,row.id,index)\" placeholder=\"输入副单位\">\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"price-number\" v-if=\"row.kucun\">\r\n\t\t\t\t\t\t\t\t<view class=\"price\" v-if=\"row.price>0\">¥{{row.price}}</view>\r\n\t\t\t\t\t\t\t\t<view class=\"price\" v-else></view>\r\n\t\t\t\t\t\t\t\t<!-- <view class=\"kucun\">库存 {{row.kucun}}</view> -->\r\n\t\t\t\t\t\t\t\t<view class=\"number\">\r\n\t\t\t\t\t\t\t\t\t<view class=\"sub\" @tap.stop=\"sub(index)\">\r\n\t\t\t\t\t\t\t\t\t\t<view class=\"icon jian\"></view>\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t<view class=\"input\" @tap.stop=\"discard\">\r\n\t\t\t\t\t\t\t\t\t\t<input type=\"digit\" v-model=\"row.num\" @input=\"sum($event,index)\" />\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t<view class=\"add\" @tap.stop=\"add(index)\">\r\n\t\t\t\t\t\t\t\t\t\t<view class=\"icon jia\"></view>\r\n\t\t\t\t\t\t\t\t\t</view>\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\t<view class=\"price-number\" v-if=\"!row.kucun\">\r\n\t\t\t\t\t\t\t\t<view class=\"deltip\">左滑可删除</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 </view>\r\n\t\t<!-- 脚部菜单 -->\r\n\t\t<view class=\"footer\" :style=\"{bottom:footerbottom}\">\r\n\t\t\t<view class=\"checkbox-box\" @tap=\"allSelect\">\r\n\t\t\t\t<view class=\"checkbox\">\r\n\t\t\t\t\t<view :class=\"[isAllselected?'on':'']\"></view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"text\">全选</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"delBtn\" @tap=\"deleteList\" v-if=\"selectedList.length>0\">删除</view>\r\n\t\t\t<view class=\"settlement\">\r\n\t\t\t\t<view class=\"sum\">合计:<view class=\"money\">¥{{sumPrice}}</view></view>\r\n\t\t\t\t<view class=\"btn\" @tap=\"toConfirmation\">结算({{selectedList.length}})</view>\r\n\t\t\t\t<!-- <view class=\"btn btn_gray\" v-else> -->\r\n\t\t\t\t\t<!-- <text v-if=\"startingPrice>=0\">差¥{{-(sumPrice-startingPrice)|toFixed}}起送</text> -->\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\nimport empty from \"@/components/empty\";\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\tempty\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tsumPrice:'0.00',\r\n\t\t\t\theaderPosition:\"fixed\",\r\n\t\t\t\theaderTop:null,\r\n\t\t\t\tstatusTop:null,\r\n\t\t\t\tselectedList:[],\r\n\t\t\t\tisAllselected:false,\r\n\t\t\t\tgoodsList:[],\r\n\t\t\t\t//控制滑动效果\r\n\t\t\t\ttheIndex:null,\r\n\t\t\t\toldIndex:null,\r\n\t\t\t\tisStop:false,\r\n\t\t\t\t//配送起步价\r\n\t\t\t\tstartingPrice:0,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.selectedList=[];\r\n\t\t\tthis.goodsList=uni.getStorageSync('cartlist');\r\n\t\t\tlet len = this.goodsList.length;\r\n\t\t\tlet arr = [];\r\n\t\t\tif(len<=0){\r\n\t\t\t\t//this.$set('isAllselected',false);\r\n\t\t\t\tthis.isAllselected=false;\r\n\t\t\t\tthis.sumPrice=0;\r\n\t\t\t}else{\r\n\t\t\t\t//要删除的商品数组\r\n\t\t\t\tlet delarrid=[];\r\n\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\tif(this.goodsList[i].num<=0){\r\n\t\t\t\t\t\t//数量num为0的商品放入到删除数组中\r\n\t\t\t\t\t\tdelarrid.push(this.goodsList[i].id);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tif(this.goodsList[i].selected==true){\r\n\t\t\t\t\t\t\tarr.push(this.goodsList[i].id);\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\t//删除num为0的商品\r\n\t\t\t\tif(delarrid.length>0){\r\n\t\t\t\t\tfor(let i=0;i<delarrid.length;i++){\r\n\t\t\t\t\t\tthis.deleteGoods(delarrid[i])\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(this.goodsList.length<=0){\r\n\t\t\t\t\t\tthis.isAllselected=false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.selectedList = arr;\r\n\t\t\t\t\tthis.isAllselected = this.selectedList.length == this.goodsList.length;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.sum();\r\n\t\t\t// this.selectedList=[]; //这里为什么要清空数据? 20231114\r\n\t\t},\r\n\t\tonPageScroll(e){\r\n\t\t\t//兼容iOS端下拉时顶部漂移\r\n\t\t\tthis.headerPosition = e.scrollTop>=0?\"fixed\":\"absolute\";\r\n\t\t\tthis.headerTop = e.scrollTop>=0?null:0;\r\n\t\t\tthis.statusTop = e.scrollTop>=0?null:-this.statusHeight+'px';\r\n\t\t},\r\n\t\t//下拉刷新,需要自己在page.json文件中配置开启页面下拉刷新 \"enablePullDownRefresh\": true\r\n\t\tonPullDownRefresh() {\r\n\t\t setTimeout(function () {\r\n\t\t uni.stopPullDownRefresh();\r\n\t\t }, 1000);\r\n\t\t},\r\n\t\tfilters: {\r\n\t\t\ttoFixed:function(x) {\r\n\t\t\t\treturn parseFloat(x).toFixed(2);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\t//兼容H5下结算条位置\r\n\t\t\t// #ifdef H5\r\n\t\t\t\tthis.footerbottom = document.getElementsByTagName('uni-tabbar')[0].offsetHeight+'px';\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef APP-PLUS\r\n\t\t\tthis.statusHeight = plus.navigator.getStatusbarHeight();\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync checkkc(gids) {\r\n\t\t\t\tlet userinfo=uni.getStorageSync('userinfo')\r\n\t\t\t\tlet reinfo=await this.$api.checkkc({action:'checkkc',gids:gids,uid:userinfo.uid});\r\n\t\t\t\tlet getcheckarr=reinfo.data;\r\n\t\t\t\tlet thisgoodlist=this.goodsList;\r\n\t\t\t\tif(getcheckarr){\r\n\t\t\t\t\tfor(let i=0;i<getcheckarr.length;i++){\r\n\t\t\t\t\t\tfor(let j=0;j<thisgoodlist.length;j++){\r\n\t\t\t\t\t\t\tif(getcheckarr[i].id==thisgoodlist[j].id){\r\n\t\t\t\t\t\t\t\tthis.$set(this.goodsList[j],'kucun',getcheckarr[i].kucun);\r\n\t\t\t\t\t\t\t\tthis.$set(this.goodsList[j], 'price', getcheckarr[i].price)\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//加入商品 参数 goods:商品数据\r\n\t\t\tjoinGoods(goods){\r\n\t\t\t\t/*\r\n\t\t\t\t* 这里只是展示一种添加逻辑,模板并没有做从其他页面加入商品到购物车的具体动作,\r\n\t\t\t\t* 在实际应用上,前端并不会直接插入记录到goodsList这一个动作,一般是更新列表和本地列表缓存。\r\n\t\t\t\t* 一般商城购物车的增删改动作是由后端来完成的,\r\n\t\t\t\t* 后端记录后返回前端更新前端缓存\r\n\t\t\t\t*/\r\n\t\t\t\tlet len = this.goodsList.length;\r\n\t\t\t\tlet isFind = false;//是否找到ID一样的商品\r\n\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\tlet row = this.goodsList[i];\r\n\t\t\t\t\tif(row.id==goods.id )\r\n\t\t\t\t\t{\t//找到商品一样的商品\r\n\t\t\t\t\t\tthis.goodsList[i].num++;//数量自增\r\n\t\t\t\t\t\tisFind = true;//找到一样的商品\r\n\t\t\t\t\t\tbreak;//跳出循环\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!isFind){\r\n\t\t\t\t\t//没有找到一样的商品,新增一行到购物车商品列表头部\r\n\t\t\t\t\tthis.goodsList[i].unshift(goods);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//控制左滑删除效果-begin\r\n\t\t\ttouchStart(index,event){\r\n\t\t\t\t//多点触控不触发\r\n\t\t\t\tif(event.touches.length>1){\r\n\t\t\t\t\tthis.isStop = true;\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\tthis.oldIndex = this.theIndex;\r\n\t\t\t\tthis.theIndex = null;\r\n\t\t\t\t//初始坐标\r\n\t\t\t\tthis.initXY = [event.touches[0].pageX,event.touches[0].pageY];\r\n\t\t\t},\r\n\t\t\ttouchMove(index,event){\r\n\t\t\t\t//多点触控不触发\r\n\t\t\t\tif(event.touches.length>1){\r\n\t\t\t\t\tthis.isStop = true;\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\tlet moveX = event.touches[0].pageX - this.initXY[0];\r\n\t\t\t\tlet moveY = event.touches[0].pageY - this.initXY[1];\r\n\t\t\t\t\r\n\t\t\t\tif(this.isStop||Math.abs(moveX)<5){\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t\tif (Math.abs(moveY) > Math.abs(moveX)){\r\n\t\t\t\t\t// 竖向滑动-不触发左滑效果\r\n\t\t\t\t\tthis.isStop = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(moveX<0){\r\n\t\t\t\t\tthis.theIndex = index;\r\n\t\t\t\t\tthis.isStop = true;\r\n\t\t\t\t}else if(moveX>0){\r\n\t\t\t\t\tif(this.theIndex!=null&&this.oldIndex==this.theIndex){\r\n\t\t\t\t\t\tthis.oldIndex = index;\r\n\t\t\t\t\t\tthis.theIndex = null;\r\n\t\t\t\t\t\tthis.isStop = true;\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tthis.oldIndex = null;\r\n\t\t\t\t\t\t},150)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttouchEnd(index,$event){\r\n\t\t\t\t//结束禁止触发效果\r\n\t\t\t\tthis.isStop = false;\r\n\t\t\t},\r\n\t\t\t//控制左滑删除效果-end\r\n\t\t\t\r\n\t\t\t//商品跳转\r\n\t\t\ttoGoods(e){\r\n\t\t\t\t// uni.showToast({title: '商品'+e.id,icon:\"none\"});\r\n\t\t\t\t// uni.navigateTo({\r\n\t\t\t\t// \turl: '../goods/goods' \r\n\t\t\t\t// });\r\n\t\t\t},\r\n\t\t\t//跳转确认订单页面\r\n\t\t\ttoConfirmation(){\r\n\t\t\t\tlet userinfo=uni.getStorageSync('userinfo')\r\n\t\t\t\tif(userinfo.uid==''||userinfo.uid==undefined){\r\n\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t title: '温馨提示',\r\n\t\t\t\t\t content: '您还没登录,请登录',\r\n\t\t\t\t\t success: function (res) {\r\n\t\t\t\t\t if (res.confirm) {\r\n\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/user/login'\r\n\t\t\t\t\t\t\t\t})\t\r\n\t\t\t\t\t } else if (res.cancel) {\r\n\t\t\t\t\t //console.log('用户点击取消');\r\n\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n\t\t\t\t\t});\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlet tmpList=[];\r\n\t\t\t\t\tlet len = this.goodsList.length;\r\n\t\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\t\tif(this.goodsList[i].selected&&this.goodsList[i].kucun) {\r\n\t\t\t\t\t\t\ttmpList.push(this.goodsList[i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(tmpList.length<1){\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle:'请选择商品结算',\r\n\t\t\t\t\t\t\ticon:'none'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\treturn ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.setStorage({\r\n\t\t\t\t\t\tkey:'buylist',\r\n\t\t\t\t\t\tdata:tmpList,\r\n\t\t\t\t\t\tsuccess: () => {\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'../orderconfirmation/orderconfirmation'\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\t\r\n\t\t\t},\r\n\t\t\t//删除商品\r\n\t\t\tdeleteGoods(id){\r\n\t\t\t\tlet len = this.goodsList.length;\r\n\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\tif(id==this.goodsList[i].id){\r\n\t\t\t\t\t\tthis.goodsList.splice(i, 1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.selectedList.splice(this.selectedList.indexOf(id), 1);\r\n\t\t\t\t//更新本地储存\r\n\t\t\t\tuni.setStorageSync('cartlist',this.goodsList);\r\n\t\t\t\tthis.sum();\r\n\t\t\t\tthis.oldIndex = null;\r\n\t\t\t\tthis.theIndex = null;\r\n\t\t\t},\r\n\t\t\t// 删除商品s\r\n\t\t\tdeleteList(){\r\n\t\t\t\twhile (this.selectedList.length>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.deleteGoods(this.selectedList[0]);\r\n\t\t\t\t}\r\n\t\t\t\tthis.selectedList = [];\r\n\t\t\t\tthis.isAllselected = this.selectedList.length == this.goodsList.length && this.goodsList.length>0;\r\n\t\t\t\tthis.sum();\r\n\t\t\t},\r\n\t\t\t// 选中商品\r\n\t\t\tselected(index){\r\n\t\t\t\tthis.goodsList[index].selected = this.goodsList[index].selected?false:true;\r\n\t\t\t\tlet i = this.selectedList.indexOf(this.goodsList[index].id);\r\n\t\t\t\ti>-1?this.selectedList.splice(i, 1):this.selectedList.push(this.goodsList[index].id);\r\n\t\t\t\tthis.isAllselected = this.selectedList.length == this.goodsList.length;\r\n\t\t\t\tthis.sum();\r\n\t\t\t},\r\n\t\t\t//全选\r\n\t\t\tallSelect(){\r\n\t\t\t\tlet len = this.goodsList.length;\r\n\t\t\t\tlet arr = [];\r\n\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\tthis.goodsList[i].selected = this.isAllselected? false : true;\r\n\t\t\t\t\tif(this.goodsList[i].kucun>0){\r\n\t\t\t\t\t\tarr.push(this.goodsList[i].id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.selectedList = this.isAllselected?[]:arr;\r\n\t\t\t\tthis.isAllselected = this.isAllselected||this.goodsList.length==0?false : true;\r\n\t\t\t\tthis.sum();\r\n\t\t\t},\r\n\t\t\t// 减少数量\r\n\t\t\tsub(index){\r\n\t\t\t\tif(this.goodsList[index].num<=1){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.goodsList[index].num--;\r\n\t\t\t\tthis.goodsList[index].total=this.goodsList[index].num*this.goodsList[index].price\r\n\t\t\t\t//更新本地储存\r\n\t\t\t\tuni.setStorageSync('cartlist',this.goodsList);\r\n\t\t\t\tthis.sum();\r\n\t\t\t},\r\n\t\t\t// 增加数量\r\n\t\t\tadd(index){\r\n\t\t\t\tif(this.goodsList[index].kucun>this.goodsList[index].num){\r\n\t\t\t\t\tthis.goodsList[index].num++;\r\n\t\t\t\t\tthis.goodsList[index].total=this.goodsList[index].num*this.goodsList[index].price\r\n\t\t\t\t\t//更新本地储存\r\n\t\t\t\t\tuni.setStorageSync('cartlist',this.goodsList);\r\n\t\t\t\t\tthis.sum();\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:'库存不足!',\r\n\t\t\t\t\t\ticon:'none'\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn ;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 合计\r\n\t\t\tsum(e,index){\r\n\t\t\t\tthis.sumPrice=0;\r\n\t\t\t\tlet len = this.goodsList.length;\r\n\t\t\t\tlet gids='';\r\n\t\t\t\tfor(let i=0;i<len;i++){\r\n\t\t\t\t\tgids=gids+','+this.goodsList[i].id;\r\n\t\t\t\t\tif(this.goodsList[i].selected&&this.goodsList[i].kucun>0) {\r\n\t\t\t\t\t\tif(e && i==index){\r\n\t\t\t\t\t\t\tthis.sumPrice = this.sumPrice + (e.detail.value*this.goodsList[i].price);\r\n\t\t\t\t\t\t\tthis.goodsList[i].num=e.detail.value;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.sumPrice = this.sumPrice + (this.goodsList[i].num*this.goodsList[i].price);\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\tuni.setStorageSync('cartlist',this.goodsList);\r\n\t\t\t\tgids=gids.substr(1);\r\n\t\t\t\tthis.checkkc(gids);\r\n\t\t\t\tthis.sumPrice = this.sumPrice.toFixed(2);\r\n\t\t\t},\r\n\t\t\tinputchangeBz(inputsl,inputnum, id, index) {\r\n\t\t\t\tinputnum=inputsl.detail.value;\r\n\t\t\t\tthis.goodsList[index].bz=inputnum;\r\n\t\t\t\t//更新本地储存\r\n\t\t\t\tuni.setStorageSync('cartlist',this.goodsList);\r\n\t\t\t},\r\n\t\t\tinputchangeFudw(inputsl,inputnum, id, index) {\r\n\t\t\t\tinputnum=inputsl.detail.value;\r\n\t\t\t\tthis.goodsList[index].fudw=inputnum;\r\n\t\t\t\t//更新本地储存\r\n\t\t\t\tuni.setStorageSync('cartlist',this.goodsList);\r\n\t\t\t},\r\n\t\t\tdiscard() {\r\n\t\t\t\t//丢弃\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n<style lang=\"scss\">\r\n\tpage{position: relative;}\r\n\t@font-face {font-family:\"HMfont-home\";src:url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAOEAAsAAAAAB7wAAAM1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDHAqDAIJNATYCJAMQCwoABCAFhG0HPhu1BsiOw7jha84s8T+CgOyq6unevTlAeAkRhAhQBjj8eJfmMg/oB5whSgaFspy7AqbpwE3Py3/j9j+X07uGyFHr21lua9HYi9rUCzDeGtBYmw4o0AJJ0BvGLmiJxyEAC3yIQhSVPL9BF4U5TgBi7ChtQzfjQKFYWEdgrFiqEBsxoGurtMfAhuD74g8JQgcNg8ScWjf8xoPz7/nfD8iFpoV0eQi86XQAWwUSiAIUiJGVhgEaUSAKiYXau0kKoKOjwVRthd8PmExIBRvmWH95INCQIIyYqVYAJKGghO/5Dg4B3wtxaPD9QAoS4IOM1gEzYBbAMkT16iIQGPxsopS5ScAcK23LiaBDpzyk1aGLHtsvhVrL7adDD55016wPXnDfcr7T3lcE2TVcP2fNhZM7WeiEhVp44vx9C5vVD6+eEgaLTZvEot3HL1lawlnXLK3XnISDllbWwmrmGjlRLdxq2bpme1RAeqXtzWh6g0F//wCCnRiN2diwr2+Yse3iEs20g05Q5tT0BikOXwKf79vsoEvb6p6xjVhHP92nwDJmX+9hwsf26dXbPiNvZ/98x67/+5T+ev0aWxbXCwOX41zLxia+O73B6Y57fN1u6GvN+Zmbc8XITigTAcB0Rl6X8QB4hDgEpoXypZz2q37D5FVnVa9t1n/dUgHw8uKMq9BmWqjoJoP3zevM+zG8jmVKE5hKpRShw9WTFZW04D7TscAC+B0RcOD9FHLnzqkg0HFOQMMMb5DoBKGKGgUGLEkCIzq5YEEkpastcWQyDYQyByJYBkBgx2nQsOEaSOx4girqOzDgwj8wYickWNAiHLe0JESMsiicTLaQh84PBm6WKlst/TD9hXQV25wWBLQP4jJw435MXD58RynxFDPKT30golBxluAtOI3iOMOcs5Bc2fFF8sPd2OFVBO24WQJ9CmEIG4HwQAb4ARmFS0aK8qoL/cLnXyA0FTE23FBSZf+AYEqCzpF4YojrgN5J004lt/LKFD7RHDAVQYEMh8lIQErAICImJgOZWD0ohHARdhg5wJdzSKxVaXhX6c7y8uQN1wAWmLOU0IQUShiQo0fZTceadqaMdP2uXwEAAAAA') format('woff2');}\r\n\t.icon {\r\n\t\tfont-family:\"HMfont-home\" !important;\r\n\t\tfont-size:60upx;\r\n\t\tfont-style:normal;\r\n\t\tcolor:#000000;\r\n\t\t&.jia {\r\n\t\t\t&:before{content:\"\\e641\";}\r\n\t\t}\r\n\t\t&.jian {\r\n\t\t\t&:before{content:\"\\e643\";}\r\n\t\t}\r\n\t\t&.shanchu {\r\n\t\t\t&:before{content:\"\\e6a4\";}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t.checkbox-box{\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\t.sellq{\r\n\t\t\tfont-size: 28upx;\r\n\t\t\tcolor: #ffffff;\r\n\t\t\tbackground-color: #C4C4C4;\r\n\t\t\tpadding: 5upx 20upx;\r\n\t\t\ttext-align: center;\r\n\t\t\tborder-radius: 25upx;\r\n\t\t}\r\n\t\t.checkbox{\r\n\t\t\twidth: 35upx;\r\n\t\t\theight: 35upx;\r\n\t\t\tborder-radius: 100%;\r\n\t\t\tborder: solid 2upx #f06c7a;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\t.on{\r\n\t\t\t\twidth: 25upx;\r\n\t\t\t\theight: 25upx;\r\n\t\t\t\tborder-radius: 100%;\r\n\t\t\t\tbackground-color: #f06c7a;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.text{\r\n\t\t\tfont-size: 28upx;\r\n\t\t\tmargin-left: 10upx;\r\n\t\t}\r\n\t}\r\n.status {\r\n\t\twidth: 100%;\r\n\t\theight: 0;\r\n\t\tposition: fixed;\r\n\t\tz-index: 10;\r\n\t\tbackground-color: #fff;\r\n\t\ttop: 0;\r\n\t\t/* #ifdef APP-PLUS */\r\n\t\theight: var(--status-bar-height);//覆盖样式\r\n\t\t/* #endif */\r\n\t}\r\n\r\n\t.header{\r\n\t\twidth: 92%;\r\n\t\tpadding: 0 4%;\r\n\t\theight: 100upx;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\tz-index: 10;\r\n\t\tbackground-color: #fff;\r\n\t\t/* #ifdef APP-PLUS */\r\n\t\ttop: var(--status-bar-height);\r\n\t\t/* #endif */\r\n\t\t.title{\r\n\t\t\tfont-size: 36upx;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t.place{\r\n\t\t\r\n\t\tbackground-color: #ffffff;\r\n\t\theight: 100upx;\r\n\t\t/* #ifdef APP-PLUS */\r\n\t\tmargin-top: var(--status-bar-height);\r\n\t\t/* #endif */\r\n\t}\r\n\t.goods-list{\r\n\t\twidth: 100%;\r\n\t\tpadding: 20upx 0 120upx 0;\r\n\t\t.tis{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 60upx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tfont-size: 32upx;\r\n\t\t}\r\n\t\t.row{\r\n\t\t\twidth: calc(92%);\r\n\t\t\theight: calc(25vw + 40upx); \r\n\t\t\tmargin: 20upx auto;\r\n\t\t\t\r\n\t\t\tborder-radius: 15upx;\r\n\t\t\tbox-shadow: 0upx 5upx 20upx rgba(0,0,0,0.1);\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tposition: relative;\r\n\t\t\toverflow: hidden;\r\n\t\t\tz-index: 4;\r\n\t\t\tborder: 0;\r\n\t\t\t.menu{\r\n\t\t\t\t.icon{\r\n\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t\t// font-size: 25upx;\r\n\t\t\t\t}\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\twidth: 30%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\tright: 0;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tbackground-color: red;\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tz-index: 2;\r\n\t\t\t}\r\n\t\t\t.carrier{\r\n\t\t\t\t@keyframes showMenu {\r\n\t\t\t\t\t0% {transform: translateX(0);}100% {transform: translateX(-30%);}\r\n\t\t\t\t}\r\n\t\t\t\t@keyframes closeMenu {\r\n\t\t\t\t\t0% {transform: translateX(-30%);}100% {transform: translateX(0);}\r\n\t\t\t\t}\r\n\t\t\t\t&.open{\r\n\t\t\t\t\tanimation: showMenu 0.25s linear both;\r\n\t\t\t\t}\r\n\t\t\t\t&.close{\r\n\t\t\t\t\tanimation: closeMenu 0.15s linear both;\r\n\t\t\t\t}\r\n\t\t\t\tbackground-color: #fff;\r\n\t\t\t\t.checkbox-box{\r\n\t\t\t\t\tpadding-left: 20upx;\r\n\t\t\t\t\tflex-shrink: 0;\r\n\t\t\t\t\theight: 22vw;\r\n\t\t\t\t\tmargin-right: 20upx;\r\n\t\t\t\t}\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tpadding: 0 0;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\tz-index: 3;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\r\n\t\t\t\t.goods-info{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\tpadding-right: 20upx;\r\n\t\t\t\t\t.img{\r\n\t\t\t\t\t\twidth: 22vw;\r\n\t\t\t\t\t\theight: 25vw;\r\n\t\t\t\t\t\tborder-radius: 10upx;\r\n\t\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\t\tflex-shrink: 0;\r\n\t\t\t\t\t\tmargin-right: 10upx;\r\n\t\t\t\t\t\timage{\r\n\t\t\t\t\t\t\twidth: 22vw;\r\n\t\t\t\t\t\t\theight: 22vw;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.info{\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\theight: 25vw;\r\n\t\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\tflex-wrap: wrap;\r\n\t\t\t\t\t\tposition: relative;\r\n\t\t\t\t\t\t.title{\r\n\t\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\t\tfont-size: 28upx;\r\n\t\t\t\t\t\t\tdisplay: -webkit-box;\r\n\t\t\t\t\t\t\t-webkit-box-orient: vertical;\r\n\t\t\t\t\t\t\t-webkit-line-clamp: 2;\r\n\t\t\t\t\t\t\t// text-align: justify;\r\n\t\t\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t.spec{\r\n\t\t\t\t\t\t\tfont-size: 25upx;\r\n\t\t\t\t\t\t\tbackground-color: #f3f3f3;\r\n\t\t\t\t\t\t\tcolor: #a7a7a7;\r\n\t\t\t\t\t\t\theight: 30upx;\r\n\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t\t\tpadding: 0 10upx;\r\n\t\t\t\t\t\t\tborder-radius: 15upx;\r\n\t\t\t\t\t\t\tmargin-bottom: 10vw;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t.spbz{\r\n\t\t\t\t\t\t\tfont-size: 25upx;\r\n\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\tflex-direction:column;\r\n\t\t\t\t\t\t\tpadding: 0 10upx;\r\n\t\t\t\t\t\t\theight: 80upx;\r\n\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t.kucun{\r\n\t\t\t\t\t\t\tfont-size: 25upx;\r\n\t\t\t\t\t\t\t// position: absolute;\r\n\t\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\t\t// top: 120upx;\r\n\t\t\t\t\t\t\t// padding: 0 10upx;\r\n\t\t\t\t\t\t\tborder-radius: 15upx;\r\n\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\t// margin-bottom: 10vw;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t.price-number{\r\n\t\t\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\t\tbottom: 0upx;\r\n\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\tjustify-content: space-between;\r\n\t\t\t\t\t\t\talign-items: flex-end;\r\n\t\t\t\t\t\t\tfont-size: 28upx;\r\n\t\t\t\t\t\t\theight: 60upx;\r\n\t\t\t\t\t\t\t.price{\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.deltip{\r\n\t\t\t\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\t\t\t\tright: 0;\r\n\t\t\t\t\t\t\t\ttop: -53rpx;\r\n\t\t\t\t\t\t\t\tcolor: #B4B4B4;\r\n\t\t\t\t\t\t\t\tmargin-right: 8rpx;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t.number{\r\n\t\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\t\tjustify-content: center;\r\n\t\t\t\t\t\t\t\talign-items: flex-end;\r\n\t\t\t\t\t\t\t\t.input{\r\n\t\t\t\t\t\t\t\t\twidth: 60upx;\r\n\t\t\t\t\t\t\t\t\theight: 60upx;\r\n\t\t\t\t\t\t\t\t\tmargin: 0 10upx;\r\n\t\t\t\t\t\t\t\t\tbackground-color: #f3f3f3;\r\n\t\t\t\t\t\t\t\t\tinput{\r\n\t\t\t\t\t\t\t\t\t\twidth: 60upx;\r\n\t\t\t\t\t\t\t\t\t\theight: 60upx;\r\n\t\t\t\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\t\t\t\tjustify-content: center;\r\n\t\t\t\t\t\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\t\t\t\t\t\tfont-size: 26upx;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t.sub ,.add{\r\n\t\t\t\t\t\t\t\t\twidth: 45upx;\r\n\t\t\t\t\t\t\t\t\theight: 45upx;\r\n\t\t\t\t\t\t\t\t\tbackground-color: #f3f3f3;\r\n\t\t\t\t\t\t\t\t\tborder-radius: 5upx;\r\n\t\t\t\t\t\t\t\t\t.icon{\r\n\t\t\t\t\t\t\t\t\t\tfont-size: 22upx;\r\n\t\t\t\t\t\t\t\t\t\twidth: 45upx;\r\n\t\t\t\t\t\t\t\t\t\theight: 45upx;\r\n\t\t\t\t\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\t\t\t\t\tjustify-content: center;\r\n\t\t\t\t\t\t\t\t\t\talign-items: center;\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t}\r\n\t.footer{\r\n\t\twidth: 100%;\r\n\t\tpadding: 0 4%;\r\n\t\tbackground-color: #fbfbfb;\r\n\t\theight: 100upx;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tfont-size: 28upx;\r\n\t\tposition: fixed;\r\n\t\tbottom: 0upx;\r\n\t\tz-index: 5;\r\n\t\t.delBtn{\r\n\t\t\tborder: solid 1upx #f06c7a;\r\n\t\t\tcolor: #f06c7a;\r\n\t\t\tpadding: 0 30upx;\r\n\t\t\theight: 50upx;\r\n\t\t\tborder-radius: 30upx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t}\r\n\t\t.settlement{\r\n\t\t\twidth: 64%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: flex-end;\r\n\t\t\talign-items: center;\r\n\t\t\t.sum{\r\n\t\t\t\twidth: 50%;\r\n\t\t\t\tfont-size: 28upx;\r\n\t\t\t\tmargin-right: 10upx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: flex-end;\r\n\t\t\t\t.money{\r\n\t\t\t\t\tfont-weight: 600;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.btn{\r\n\t\t\t\tpadding: 0 20upx;\r\n\t\t\t\theight: 50upx;\r\n\t\t\t\tbackground-color: #f06c7a;\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\t\r\n\t\t\t\tborder-radius: 30upx;\r\n\t\t\t}\r\n\t\t\t.btn_gray{\r\n\t\t\t\tpadding: 0 20upx;\r\n\t\t\t\theight: 50upx;\r\n\t\t\t\tbackground-color: #C4C4C4;\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\twidth: 240upx;\r\n\t\t\t\t\r\n\t\t\t\tborder-radius: 30upx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 // 1720092620983\n var cssReload = require(\"F:/软件/HBuilder X/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 ","import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\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 \"!F:\\\\软件\\\\HBuilder X\\\\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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./cart.vue?vue&type=template&id=0f00adf4&\""],"sourceRoot":""}
|