| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[7],{781:function(t,e,o){t.exports=o.p+"img/del.8f9bf3d.png"},782:function(t,e,o){var content=o(858);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(8).default)("d51f18f6",content,!0,{sourceMap:!1})},857:function(t,e,o){"use strict";o(782)},858:function(t,e,o){var n=o(7)(!1);n.push([t.i,".col_red[data-v-3fbf24be]{color:#f11111}.col_green[data-v-3fbf24be]{color:#44be95}.col_white[data-v-3fbf24be]{color:#fff}.flex-col[data-v-3fbf24be]{flex-direction:column}.flex-j-c[data-v-3fbf24be]{justify-content:center}.flex-j-sb[data-v-3fbf24be]{justify-content:space-between}.flex-j-ar[data-v-3fbf24be]{justify-content:space-around}.flex-a-c[data-v-3fbf24be]{align-items:center}.flex-a-e[data-v-3fbf24be]{align-items:flex-end}.w[data-v-3fbf24be]{width:1200px}.m-auto[data-v-3fbf24be]{margin:0 auto}.height-one[data-v-3fbf24be]{height:100%}.flex[data-v-3fbf24be]{display:flex}.text-overflow[data-v-3fbf24be]{-webkit-line-clamp:4}.text-overflow[data-v-3fbf24be],.text-overflow-2[data-v-3fbf24be]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-3fbf24be]{-webkit-line-clamp:2}.text-overflow-3[data-v-3fbf24be]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-3fbf24be],.text-overflow-3[data-v-3fbf24be]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-3fbf24be]{white-space:nowrap}.hiddenScroll[data-v-3fbf24be]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-3fbf24be]::-webkit-scrollbar{display:none}.finger-point[data-v-3fbf24be]{cursor:pointer}.cursor-default[data-v-3fbf24be]{cursor:default}.el-icon-circle-close[data-v-3fbf24be]{color:#fff}.cart_index[data-v-3fbf24be]{padding:30px 0}.cart_index .cart_content[data-v-3fbf24be]{width:1200px}.cart_index .cart_content .top_info[data-v-3fbf24be]{color:#666;margin-bottom:22px;padding:0 23px;font-size:16px}.cart_index .cart_content .top_info .goods_title[data-v-3fbf24be]{width:50%;position:relative}.cart_index .cart_content .top_info .goods_title .el-checkbox[data-v-3fbf24be]{position:absolute;left:0}.cart_index .cart_content .top_info .goods_title[data-v-3fbf24be] .el-checkbox__label{font-size:16px}.cart_index .cart_content .top_info .goods_price[data-v-3fbf24be]{width:10%}.cart_index .cart_content .top_info .goods_num[data-v-3fbf24be]{width:20%}.cart_index .cart_content .top_info .goods_amo[data-v-3fbf24be],.cart_index .cart_content .top_info .goods_del[data-v-3fbf24be]{width:10%}.cart_index .cart_content .cart_list .list_wrap[data-v-3fbf24be]{margin-bottom:30px}.cart_index .cart_content .cart_list .list_wrap .shop_head[data-v-3fbf24be]{display:flex;background-color:#f5f5f5;padding:10px 20px;align-items:center}.cart_index .cart_content .cart_list .list_wrap .shop_head .logo[data-v-3fbf24be]{width:35px;height:35px;margin:0 10px 0 20px}.cart_index .cart_content .cart_list .list_wrap .shop_head .clear_failure[data-v-3fbf24be]{text-align:right;color:#f14e4e;margin-left:20px;cursor:pointer}.cart_index .cart_content .cart_list .list_wrap .shop_head .clear_failure[data-v-3fbf24be],.cart_index .cart_content .cart_list .list_wrap .shop_head .disabled-title[data-v-3fbf24be]{font-size:15px}.cart_index .cart_content .cart_list .list_wrap .coupons-list[data-v-3fbf24be]{flex:1;display:flex;align-self:center}.cart_index .cart_content .cart_list .list_wrap .coupons-list .coupon-left[data-v-3fbf24be]{flex:1;text-align:left;padding:0 0 0 2.5rem;font-size:14px}.cart_index .cart_content .cart_list .list_wrap .coupons-list .tag[data-v-3fbf24be]{border-radius:4px;border:1px solid #f14e4e;color:#f14e4e;padding:1px 3px;margin-right:5px}.cart_index .cart_content .cart_list .list_wrap .coupons-list .tag-title[data-v-3fbf24be]{padding:1px;text-align:left}.cart_index .cart_content .cart_list .list_wrap .coupons-list .coupon-right[data-v-3fbf24be]{padding:1px;color:#f14e4e;flex:0 0 4.5rem;font-size:14px;line-height:14px;cursor:pointer}.cart_index .cart_content .cart_list .list_wrap .list_title[data-v-3fbf24be]{padding-left:20px;padding-top:10px;padding-bottom:10px;background-color:#f5f5f5;border:1px solid #f0f0f0;border-bottom:none;box-sizing:border-box;font-size:18px}.cart_index .cart_content .cart_list .list_wrap .list_title .shop_name[data-v-3fbf24be]{margin:0 8px}.cart_index .cart_content .cart_list .list_wrap .content_wrap[data-v-3fbf24be]{border:1px solid #f0f0f0;padding:20px}.cart_index .cart_content .cart_list .list_wrap .content_wrap[data-v-3fbf24be] .el-checkbox__label{display:none}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content[data-v-3fbf24be]{margin-bottom:20px}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_info[data-v-3fbf24be]{width:50%;cursor:pointer}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_info img[data-v-3fbf24be]{width:90px;height:90px}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_info .item_mes[data-v-3fbf24be]{margin-left:19px;font-size:16px}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_money[data-v-3fbf24be],.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_total[data-v-3fbf24be]{width:10%;font-size:16px}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_btn[data-v-3fbf24be]{width:10%;cursor:pointer}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_num[data-v-3fbf24be]{width:20%}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_num .input[data-v-3fbf24be]{width:113px;height:28px;border-radius:4px;box-sizing:border-box}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_num .input .input_left[data-v-3fbf24be]{width:30px;height:100%;background-color:#c9c9ca;color:#ededed;font-size:24px;cursor:pointer}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_num .input .input_right[data-v-3fbf24be]{width:30px;height:100%;background-color:#c9c9ca;font-size:24px;cursor:pointer}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content .item_num .input input[data-v-3fbf24be]{text-align:center;width:53px;outline:none;border:1px solid #cbcbcb}.cart_index .cart_content .cart_list .list_wrap .content_wrap .list_content[data-v-3fbf24be]:last-child{margin-bottom:0}.cart_index .cart_content .cart_list .list_wrap .content_wrap .activity[data-v-3fbf24be],.cart_index .cart_content .cart_list .list_wrap .content_wrap .estimated[data-v-3fbf24be]{font-size:14px}.cart_index .cart_content .cart_list .list_wrap .content_wrap .estimated[data-v-3fbf24be]{display:inline-block;align-self:self-start;padding:2px 8px;border-radius:10px;text-align:left;color:#f14e4e;background-color:#fdf2f2}.cart_index .cart_content .cart_list .list_wrap .content_wrap .activity[data-v-3fbf24be]{color:#f14e4e;padding:0 .2rem 0 .875rem;display:flex;text-align:left;flex:1}.cart_index .cart_content .cart_list .list_wrap .content_wrap .activity .activity-box[data-v-3fbf24be]{display:flex;flex-wrap:wrap}.cart_index .cart_content .cart_list .list_wrap .content_wrap .activity .activity-title[data-v-3fbf24be]{flex:0 0 4rem;margin-right:5px;font-weight:700}.cart_index .cart_content .cart_list .list_wrap .content_wrap .activity .activity-box .activity-item[data-v-3fbf24be]{background-color:#fdf2f2;padding:2px 4px;border-radius:4px;margin:0 5px 5px 0}.cart_index .cart_content .cart_list .list_wrap .content_wrap .gray[data-v-3fbf24be]{text-align:center;padding:0 3px;flex:0 0 30px;margin-right:5px;color:#fff;background:#dfdfdf;border-radius:15px}.cart_index .cart_content .cart_list .list_wrap .carts-box[data-v-3fbf24be]{border-bottom:1px solid #eee;padding-top:10px}.cart_index .cart_content .cart_list .list_wrap .carts-box[data-v-3fbf24be]:last-child{border-bottom:none}.cart_index .all_amount[data-v-3fbf24be]{background:#fff;width:1160px;margin:0 auto;bottom:0;padding:0 20px;height:90px;border:1px solid #f0f0f0;font-size:16px;z-index:10}.cart_index .all_amount .amount_left img[data-v-3fbf24be]{margin-left:79px;margin-right:5px;width:12px;height:14px;cursor:pointer}.cart_index .all_amount .amount_left[data-v-3fbf24be] .el-checkbox__label{font-size:16px}.cart_index .all_amount .amount_right[data-v-3fbf24be]{font-size:16px;display:flex;align-items:center}.cart_index .all_amount .amount_right .coupon[data-v-3fbf24be]{color:#f15353;margin-right:20px}.cart_index .all_amount .confirm[data-v-3fbf24be]{margin-left:20px}.cart_index .all_amount .confirm .confirm_btn[data-v-3fbf24be]{width:185px;height:50px;background-color:#f11111;font-size:20px;color:#fff;cursor:pointer}.cart_index .all_amount.isFixed[data-v-3fbf24be]{position:fixed;left:50%;transform:translateX(-50%)}.cart_index .tips[data-v-3fbf24be]{color:#f11111}.cart_index .choose-content[data-v-3fbf24be]{height:400px;margin-top:15px;overflow-y:scroll}.cart_index .choose-content[data-v-3fbf24be] .el-radio-group{width:100%}.cart_index .choose-content[data-v-3fbf24be] .el-radio{display:flex;align-items:center}.cart_index .choose-content[data-v-3fbf24be] .el-radio__input.is-checked .el-radio__inner{border-color:#f11111;background:#f11111}.cart_index .radio-title[data-v-3fbf24be]{color:#202020;font-size:16px;font-weight:700}.cart_index .radio-list[data-v-3fbf24be]{padding:8px 20px;font-size:14px}.cart_index .radio-item[data-v-3fbf24be]{background-color:#f8f8f8;padding:15px;border-bottom:1px solid #ececec}.no-data[data-v-3fbf24be]{text-align:center}.coupon-detail-title[data-v-3fbf24be]{color:#333;padding:5px 15px 15px;font-size:18px;font-weight:700}.coupon-detail[data-v-3fbf24be],.coupon-pop[data-v-3fbf24be]{padding:.5rem 1rem}.coupon-detail-box li[data-v-3fbf24be]{display:flex;padding:.5rem 0}.coupon-detail-box li .left[data-v-3fbf24be]{flex:1;text-align:left;color:#666}.coupon-detail-box li:last-child .left[data-v-3fbf24be]{font-weight:700}.coupon-detail-box li .right[data-v-3fbf24be]{flex:1;text-align:right;font-weight:700;font-size:16px}.total-box[data-v-3fbf24be]{display:flex;margin-bottom:10px}.total-box .left[data-v-3fbf24be]{flex:1;text-align:left}.total-box .right[data-v-3fbf24be]{flex:1;text-align:right;color:#f14e4e;font-weight:700;font-size:16px}",""]),t.exports=n},993:function(t,e,o){"use strict";o.r(e);o(12),o(13),o(16),o(11),o(17);var n=o(4),c=(o(14),o(90),o(55),o(36),o(92),o(40),o(6),o(47),o(5));function r(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?r(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var d={data:function(){return{selectBol:!0,isFixed:!1,total_price:0,total_count:0,cartList:[],failureCartList:[],eachCheckList:[],eachCartsList:[],allCartsList:[],all_carts_id:[],eachCheckShop:[],cart_ids:[],total_goods_price:0,total_amount:0,total_discount_amount:0,discount_amount_items:[],showCouponDetail:!1,checkAll:!1,rentIndex:-1,showChoose:!1,radioChoose:"",dispatch_types:[],chooseType:""}},components:{},head:function(){return{title:"购物车-".concat(this.basicSet.seo.title),meta:[{name:"keywords",content:"购物车,".concat(this.basicSet.seo.keywords)},{name:"description",content:"".concat(this.basicSet.seo.description)}]}},computed:l(l({},Object(c.b)(["basic_info","basicSet"])),{},{credit1Text:function(){return this.basic_info.home&&this.basic_info.home.mailInfo&&this.basic_info.home.mailInfo.credit1?this.basic_info.home.mailInfo.credit1:"积分"}}),mounted:function(){this.getCart()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll:function(){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,e=document.getElementById("cart_content").offsetHeight,o=document.documentElement.clientHeight-document.getElementById("cart_content").offsetTop-50;this.isFixed=t<e-o},getFailureCart:function(){var t=this;this.fun.$get("cart.list.failure-cart").then((function(e){1===e.result&&(t.failureCartList=e.data||[])}),(function(t){console.log(t)}))},clearFailureCart:function(){var t=this;this.$confirm("确定清空失效商品吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"success"}).then((function(e){"confirm"==e&&t.fun.$get("cart.list.del-failure-cart").then((function(e){1===e.result&&(t.failureCartList=[],t.$message.success("清空成功"))}),(function(t){console.log(t)}))}))},getCart:function(t){var e=this;this.fun.$post("cart.list.index",{cart_ids:this.cart_ids.join(",")},"正在获取").then((function(o){1===o.result?(e.total_discount_amount=o.data.total_discount_amount,e.discount_amount_items=o.data.discount_amount_items,e.total_amount=o.data.total_amount,e.total_goods_price=o.data.total_goods_price,e.cartList=o.data.list,t?"delete"===t&&e.allCheckListInit(e.cartList,t):(e.getFailureCart(),e.allCheckListInit(e.cartList),document.body.scrollIntoView(),window.addEventListener("scroll",e.handleScroll),e.$nextTick((function(){if(document.getElementById("cart_content")){var t=document.documentElement.clientHeight-document.getElementById("cart_content").offsetTop-50;document.getElementById("cart_content").offsetHeight>t&&(e.isFixed=!0)}})))):e.$message.error(o.msg)}))},allCheckListInit:function(data,t){var e=this;data.length&&function(){"delete"!==t&&(e.cart_ids=[]);for(var o=[],n=[],i=0;i<data.length;i++)e.eachCartsList[i]=data[i].carts,"delete"!==t&&(e.eachCheckList.push([]),e.eachCheckShop.push({check:!1,code:data[i].code})),"lease-toy"===data[i].code&&(e.rentIndex=i),o[i]=data[i].carts.map((function(t){return n.push(t.cart_id),t.cart_id}));e.allCartsList=o,e.all_carts_id=n}()},selectBolfun:function(t){this.selectBol="1"===t},allSelect:function(t){if(this.selectBol){if(t)if(this.rentIndex>-1&&1===this.allCartsList.length)this.chooseType="rent",this.eachCheckList=JSON.parse(JSON.stringify(this.allCartsList)),this.eachCheckShop[0].check=!0;else{this.chooseType="buy",this.eachCheckList=[];for(var e=JSON.parse(JSON.stringify(this.allCartsList)),i=0;i<e.length;i++)this.rentIndex!==i?(this.eachCheckShop[i].check=!0,this.eachCheckList.push(this.allCartsList[i])):(this.eachCheckShop[i].check=!1,this.eachCheckList.push([]))}else{this.chooseType="",this.eachCheckList=[];for(var o=0;o<this.allCartsList.length;o++)this.eachCheckList.push([]),this.eachCheckShop[o].check=!1}this.countCartView()}},allSelectHandle:function(t,e){this.selectBol||(this.eachCheckShop[e].check=t.length===this.eachCartsList[e].length,this.countCartView())},shopChange:function(t,e){var o=this;this.cartList[e].disable||(t?(this.eachCheckList[e].splice(0,this.eachCheckList[e].length),this.eachCartsList[e].map((function(t){o.eachCheckList[e].push(t.cart_id)}))):this.eachCheckList[e].splice(0,this.eachCheckList[e].length),this.allSelectHandle(this.eachCheckList[e],e))},checkGoods:function(){var t=this;if(0!=this.cart_ids.length){this.fun.$get("memberCart.checkout",{cart_ids:this.cart_ids.join(",")},"处理中").then((function(e){1==e.result?1==e.data.need_choose?(t.dispatch_types=e.data.dispatch_types,t.showChoose=!0):t.submitGoods():t.$message.error(e.msg)}),(function(t){console.log(t)}))}else this.$message.error("请选择结算商品")},toBuy:function(){1==this.dispatch_types[this.radioChoose].id?this.submitGoods():this.$message.warning("请到手机端进行下单")},submitGoods:function(){var t=[];if(!this.showChoose||this.radioChoose){if(this.showChoose)for(var i=0;i<this.dispatch_types[this.radioChoose].member_carts.length;i++)t.push(this.dispatch_types[this.radioChoose].member_carts[i].id);else t=this.cart_ids;"rent"===this.chooseType?this.$router.push(this.fun.getUrl("goodsorder",{},{tag:"rentCartBuy",cart_ids:t.join(",")})):"buy"===this.chooseType&&this.$router.push(this.fun.getUrl("goodsorder",{},{tag:"-1",cart_ids:t.join(",")}))}else this.$message.error("请先选择配送方式")},toGoods:function(t){var e=t.goods_id;this.$baseURL?window.open(this.fun.getSiteRoot()+"/plugins/shop_server/goods?i="+this.fun.getKeyByI()+"&id="+e,"_blank"):window.open(this.fun.getSiteRoot()+"/plugins/shop_server/goods/"+e+"?i="+this.fun.getKeyByI(),"_blank")},toShop:function(t){t.merchant_id&&this.$router.push(this.fun.getUrl("supplier_shop2-id",{id:t.merchant_id}))},toSearch:function(t){t.merchant_id?this.$router.push(this.fun.getUrl("supplier_shop2-id",{id:t.merchant_id})):this.$router.push(this.fun.getUrl("search",{},{plugin_id:1}))},toUrl:function(t,e,o){this.$router.push(this.fun.getUrl(t,e,o))},numberLeft:function(t,e){this.cartList[e].carts[t].total<=1?this.$message.error("商品数量不能为负数或零"):(this.cartList[e].carts[t].total=Number(this.cartList[e].carts[t].total)-1,this.changeCount(this.cartList[e].carts[t].total,this.cartList[e].carts[t].cart_id,t,e))},numberRight:function(t,e){this.cartList[e].carts[t].total=Number(this.cartList[e].carts[t].total)+1,this.changeCount(this.cartList[e].carts[t].total,this.cartList[e].carts[t].cart_id,t,e)},changeCount:function(t,e,o,n){var c=this;if(t<0)return this.$message.error("商品数量不能为负数"),void(this.cartList[n].carts[o].total=1);var r={id:e,num:t};this.fun.$get("cart.list.updateNumV2",r,"...").then((function(t){1===t.result?c.countCartView():(c.$message.error(t.msg),c.cartList[n].carts[o].total=1)}),(function(t){console.log(t)}))},deleteGoods:function(t,e,o){var n=this,c={};t?(c={ids:t.cart_id.toString()},this.cart_ids.splice(this.eachCheckList[o].indexOf(t.cart_id),1),this.eachCheckList[o].splice(this.eachCheckList[o].indexOf(t.cart_id),1)):(c={ids:this.cart_ids.join(",")},this.onCartDelete()),this.fun.$post("cart.list.destroy",c,"操作中").then((function(t){1==t.result?n.getCart("delete"):n.$message.error(t.msg)}),(function(t){console.log(t)}))},onCartDelete:function(){this.chooseType="",this.checkAll=!1,this.eachCheckList=[],this.cart_ids=[],this.total_amount=0,this.total_goods_price=0,this.total_discount_amount=0;for(var i=0;i<this.eachCartsList.length;i++)this.eachCheckList.push([]),this.cartList[i].disable=!1,this.eachCheckShop[i].check=!1},countCartView:function(){for(var t=[],i=0;i<this.eachCheckList.length;i++)this.eachCheckList[i].map((function(e){t.push(e)}));this.cart_ids=t,this.checkRent(),this.checkChooseAll(),this.getCart("count")},checkChooseAll:function(){this.rentIndex>-1&&this.allCartsList.length>1?this.all_carts_id.length-this.allCartsList[this.rentIndex].length===this.cart_ids.length?this.checkAll=!0:this.checkAll=!1:this.all_carts_id.length===this.cart_ids.length?this.checkAll=!0:this.checkAll=!1},checkRent:function(){this.cart_ids.length>0?this.rentIndex>-1&&this.eachCheckList[this.rentIndex].length>0?this.chooseType="rent":this.chooseType="buy":this.chooseType=""}}},f=(o(857),o(1)),component=Object(f.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cart_index"},[n("div",{staticClass:"cart_content m-auto",attrs:{id:"cart_content"}},[n("div",{staticClass:"top_info flex"},[n("div",{staticClass:"goods_title flex flex-j-c",on:{click:function(e){return e.stopPropagation(),t.selectBolfun("1")}}},[n("el-checkbox",{on:{change:t.allSelect},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")]),t._v("\n 商品信息\n ")],1),t._v(" "),n("div",{staticClass:"goods_price flex flex-j-c"},[t._v("\n 单价\n ")]),t._v(" "),n("div",{staticClass:"goods_num flex flex-j-c"},[t._v("\n 数量\n ")]),t._v(" "),n("div",{staticClass:"goods_amo flex flex-j-c"},[t._v("\n 小计\n ")]),t._v(" "),n("div",{staticClass:"goods_del flex flex-j-c"},[t._v("\n 删除\n ")])]),t._v(" "),n("div",{staticClass:"cart_list"},[t._l(t.cartList,(function(e,c){return n("div",{key:c,staticClass:"list_wrap"},[n("div",{staticClass:"shop_head",on:{click:function(e){return e.stopPropagation(),t.selectBolfun(0)}}},[n("el-checkbox",{attrs:{disabled:e.disable},on:{change:function(e){return t.shopChange(t.eachCheckShop[c].check,c)}},model:{value:t.eachCheckShop[c].check,callback:function(e){t.$set(t.eachCheckShop[c],"check",e)},expression:"eachCheckShop[c_index].check"}}),t._v(" "),n("img",{staticClass:"logo finger-point",attrs:{src:o(722),alt:""},on:{click:function(o){return o.stopPropagation(),t.toShop(e)}}}),t._v(" "),n("span",{staticClass:"finger-point",on:{click:function(o){return o.stopPropagation(),t.toShop(e)}}},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"coupons-list"},[n("div",{staticClass:"coupon-left"},[t._l(e.discount_activity,(function(e){return[n("span",{staticClass:"tag"},[t._v(t._s(e.name)+":")]),t._v(" "),n("span",{staticClass:"tag-title"},[t._v(t._s(e.desc))])]}))],2)])],1),t._v(" "),n("div",{staticClass:"content_wrap"},[n("el-checkbox-group",{on:{change:function(e){return t.allSelectHandle(e,c)}},model:{value:t.eachCheckList[c],callback:function(e){t.$set(t.eachCheckList,c,e)},expression:"eachCheckList[c_index]"}},t._l(e.carts,(function(e,r){return n("div",{key:r,staticClass:"carts-box"},[n("div",{staticClass:"list_content flex flex-a-c",on:{click:function(e){return e.stopPropagation(),t.selectBolfun(0)}}},[n("el-checkbox",{staticStyle:{"margin-right":"25px"},attrs:{disabled:e.disable,label:e.cart_id}}),t._v(" "),n("div",{staticClass:"item_info flex",on:{click:function(o){return t.toGoods(e)}}},[n("img",{attrs:{src:e.goods_thumb}}),t._v(" "),n("div",{staticClass:"item_mes flex flex-col flex-j-ar"},[n("div",{staticClass:"text-overflow"},[t._v(t._s(e.goods_title))]),t._v(" "),e.goods_option_title?n("div",[t._v("规格:"+t._s(e.goods_option_title))]):t._e()])]),t._v(" "),"point-mall"==e.style_type?n("div",{staticClass:"item_money flex flex-j-c"},[t._v("\n "+t._s(t.good.point_goods.point)+t._s(t.credit1Text)+"\n ")]):"lease-toy"==e.style_type?n("div",{staticClass:"item_money flex flex-j-c"},[t._v("\n ¥"+t._s(e.goods_price)+"/天(押金:"+t._s(e.lease_goods.goods_deposit)+")\n ")]):n("div",{staticClass:"item_money flex flex-j-c"},[t._v("\n ¥"+t._s(e.goods_price)+"\n ")]),t._v(" "),n("div",{staticClass:"flex flex-j-c item_num"},[n("div",{staticClass:"input flex"},[n("span",{staticClass:"input_left flex flex-a-c flex-j-c",on:{click:function(e){return e.stopPropagation(),t.numberLeft(r,c)}}},[t._v("-")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.total,expression:"item.total",modifiers:{lazy:!0}}],staticClass:"flex",attrs:{title:"输入数量",type:"text"},domProps:{value:e.total},on:{blur:function(o){return t.changeCount(e.total,r,c)},change:function(o){return t.$set(e,"total",o.target.value)}}}),t._v(" "),n("span",{staticClass:"input_right flex flex-a-c flex-j-c",on:{click:function(e){return e.stopPropagation(),t.numberRight(r,c)}}},[t._v("+")])])]),t._v(" "),n("div",{staticClass:"item_total flex flex-j-c"},[t._v("\n ¥"+t._s((e.goods_price*e.total).toFixed(2))+"\n ")]),t._v(" "),n("div",{staticClass:"item_btn flex flex-j-c",on:{click:function(o){return t.deleteGoods(e,r,c)}}},[n("img",{attrs:{src:o(781)}})])],1),t._v(" "),n("div",{staticClass:"flex",staticStyle:{"margin-left":"8rem"}},[Number(e.estimated_price)>0&&e.estimated_price!=e.price?n("div",{staticClass:"estimated"},[t._v("\n 预估到手价:¥"),n("span",[t._v(t._s(e.estimated_price))])]):t._e(),t._v(" "),e.discount_activity&&e.discount_activity.length>0?n("div",{staticClass:"activity"},[n("span",{staticClass:"activity-title"},[t._v("单品活动")]),t._v(" "),n("div",{staticClass:"activity-box"},t._l(e.discount_activity,(function(e,i){return n("span",{key:i,staticClass:"activity-item"},[t._v(t._s(e.desc))])})),0)]):t._e()])])})),0),t._v(" "),t.cartList.length<=0?n("div",{staticClass:"no-data"},[t._v("暂无商品")]):t._e()],1)])})),t._v(" "),t.failureCartList&&t.failureCartList.length>0?n("div",{staticClass:"list_wrap"},[n("div",{staticClass:"shop_head"},[n("span",{staticClass:"disabled-title"},[t._v("失效商品"+t._s(t.failureCartList.length)+"件")]),t._v(" "),n("span",{staticClass:"clear_failure",on:{click:function(e){return e.stopPropagation(),t.clearFailureCart.apply(null,arguments)}}},[t._v("清空失效商品")])]),t._v(" "),n("div",{staticClass:"content_wrap"},[t._l(t.failureCartList,(function(e,o){return[n("div",{key:o,staticClass:"list_content flex flex-a-c"},[n("div",{staticClass:"gray"},[t._v("失效")]),t._v(" "),n("div",{staticClass:"item_info flex"},[n("img",{attrs:{src:e.goods_thumb}}),t._v(" "),n("div",{staticClass:"item_mes flex flex-col flex-j-ar"},[n("div",{staticClass:"text-overflow"},[t._v(t._s(e.goods_title))])])]),t._v(" "),n("div",{staticClass:" flex flex-j-c"},[t._v("\n 该商品已不能购买\n ")])])]}))],2)]):t._e()],2)]),t._v(" "),n("div",{staticClass:"all_amount flex flex-a-c flex-j-sb",class:[t.isFixed?"isFixed":""]},[n("div",{staticClass:"amount_left flex flex-a-c",on:{click:function(e){return e.stopPropagation(),t.selectBolfun("1")}}},[n("el-checkbox",{on:{change:t.allSelect},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")]),t._v(" "),n("div",{staticStyle:{cursor:"pointer"},on:{click:function(e){return t.deleteGoods()}}},[n("img",{attrs:{src:o(781)}}),t._v("删除")])],1),t._v(" "),n("div",{staticClass:"amount_right"},[Number(t.total_discount_amount)>0?n("div",{staticClass:"coupon finger-point",on:{click:function(e){e.stopPropagation(),t.showCouponDetail=!0}}},[t._v("\n 优惠明细:¥"+t._s(t.total_discount_amount)+"\n ")]):t._e(),t._v(" "),n("div",{staticClass:"price-box"},[n("p",[t._v("应付总额(不含运费):"),n("span",{staticClass:"col_red"},[t._v(t._s(t.total_amount))]),t._v("元")]),t._v(" "),n("p",[t._v("已选商品:"+t._s(t.cart_ids.length)+" 件")])]),t._v(" "),n("div",{staticClass:"confirm flex"},[n("div",{staticClass:"confirm_btn flex flex-a-c flex-j-c",on:{click:t.checkGoods}},[t._v("去结算")])])])]),t._v(" "),n("el-dialog",{attrs:{title:"提示",visible:t.showChoose,"show-close":!1},on:{"update:visible":function(e){t.showChoose=e}}},[n("span",{staticClass:"tips"},[t._v("您的购物车配送方式有冲突,请选择其中一种配送方式~")]),t._v(" "),n("div",{staticClass:"choose-content"},[n("el-radio-group",{model:{value:t.radioChoose,callback:function(e){t.radioChoose=e},expression:"radioChoose"}},t._l(t.dispatch_types,(function(e,o){return n("div",{key:o,staticStyle:{padding:"8px 0"}},[n("el-radio",{attrs:{label:o.toString()}},[n("div",{staticClass:"radio-title"},[t._v(t._s(e.name)+" ("+t._s(e.member_carts.length)+"件)\n "),"1"!=e.id?n("span",{staticClass:"tips",staticStyle:{"font-weight":"normal"}},[t._v("请到手机端进行下单")]):t._e()])]),t._v(" "),n("ul",{staticClass:"radio-list"},t._l(e.member_carts,(function(e,i){return n("li",{key:i,staticClass:"radio-item"},[n("p",{staticStyle:{color:"#333333","font-weight":"bold"}},[t._v(t._s(e.title))]),t._v(" "),e.option_title?n("p",{staticStyle:{"font-size":"12px",color:"#666666","margin-top":"10px"}},[t._v("规格:"+t._s(e.option_title))]):t._e()])})),0)],1)})),0)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.showChoose=!1}}},[t._v("返 回")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.toBuy}},[t._v("确 定")])],1)]),t._v(" "),n("el-dialog",{attrs:{title:"优惠明细",visible:t.showCouponDetail,"show-close":!0},on:{"update:visible":function(e){t.showCouponDetail=e}}},[n("div",{staticClass:"coupon-detail"},[n("ul",{staticClass:"coupon-detail-box"},[n("li",[n("p",{staticClass:"left"},[t._v("商品总价")]),t._v(" "),n("p",{staticClass:"right"},[t._v("¥"+t._s(t.total_goods_price))])]),t._v(" "),t._l(t.discount_amount_items,(function(e){return n("li",{key:e.code},[n("p",{staticClass:"left"},[t._v(t._s(e.name))]),t._v(" "),n("p",{staticClass:"right"},[t._v("-¥"+t._s(e.amount))])])})),t._v(" "),n("li",[n("p",{staticClass:"left"},[t._v("共优惠")]),t._v(" "),n("p",{staticClass:"right"},[t._v("-¥"+t._s(t.total_discount_amount))])])],2),t._v(" "),n("div",{staticClass:"total-box"},[n("p",{staticClass:"left"},[n("span",{staticStyle:{"font-weight":"bold"}},[t._v("合计")]),t._v(" "),n("span",{staticStyle:{color:"#999","font-size":"10px"}},[t._v("(不含运费)")])]),t._v(" "),n("p",{staticClass:"right"},[t._v("¥"+t._s(t.total_amount))])]),t._v(" "),n("p",{staticClass:"tips"},[t._v("优惠抵扣金额请在下单页查看")])])])],1)}),[],!1,null,"3fbf24be",null);e.default=component.exports}}]);
|