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.
shop-app/h5/static/js/pages-cart-cart~pages-cart-...

1 line
20 KiB

3 years ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart~pages-cart-tabBarCart"],{"0e7d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={uLoadmore:n("c153").default,uNumberBox:n("071b").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("UiPageHeader",{class:"head__"+t.type,attrs:{back:"inner"==t.type}},[a("template",{slot:"custom"},[a("v-uni-view",{staticClass:"head--title"},[a("v-uni-text",[t._v("购物车")]),t.list.length?a("v-uni-text",[t._v("("+t._s(t.list.length)+")")]):t._e()],1),t.list.length?["normal"==t.mode?a("v-uni-view",{staticClass:"head--edit",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToggleMode.apply(void 0,arguments)}}},[t._v("编辑")]):a("v-uni-view",{staticClass:"head--finish",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToggleMode.apply(void 0,arguments)}}},[t._v("完成")])]:t._e()],2)],2),t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e(),t.list.length||t.isLoading?t._l(t.list,(function(e,n){return a("UiWhiteBox",{key:n,staticClass:"cart-item"},[a("v-uni-label",{staticClass:"cart-item--radio",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.handleCheckItem(e.id)}}},[a("v-uni-radio",{staticClass:"radio",attrs:{color:"#FF875B",checked:!!t.checkedIds.length&&t.checkedIds.includes(e.id)}})],1),a("v-uni-image",{staticClass:"cart-item--image",attrs:{src:e.product.mainPicture,mode:"scaleToFill"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.productId)}}}),a("v-uni-view",{staticClass:"cart-item--content",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.productId)}}},[a("v-uni-view",{staticClass:"cart-item--title"},[t._v(t._s(e.product.name))]),a("v-uni-view",{staticClass:"cart-item--props"},[t._v(t._s(e.productSku.name))]),a("v-uni-view",{staticClass:"cart-item--footer"},[a("UiMoney",{staticClass:"cart-item--price",attrs:{money:e.productSku.sellPrice,prefix:!0}}),a("v-uni-view",{staticClass:"cart-item--stepper"},[a("u-number-box",{attrs:{min:1,"button-size":"40rpx",bgColor:"#F5F6FA",value:e.number,max:e.maxBuyNum},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.onChangeStepper(n,e)}}},[a("v-uni-text",{staticClass:"cart-item--stepper-icon",attrs:{slot:"minus"},slot:"minus"},[t._v("-")]),a("v-uni-text",{staticClass:"cart-item--stepper-icon",attrs:{slot:"plus"},slot:"plus"},[t._v("+")])],1)],1)],1)],1)],1)})):a("BsEmpty",{staticClass:"empty",attrs:{tips:"去挑点喜欢的好货吧~"}},[a("v-uni-image",{staticClass:"empty--icon",attrs:{slot:"icon",src:n("d7da")},slot:"icon"}),a("v-uni-view",{staticClass:"empty--btn",attrs:{slot:"btn"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.pushTab("/")}},slot:"btn"},[t._v("去逛逛")])],1),t.isLoading?t._e():[a("v-uni-view",{staticClass:"title"},[t._v("为您推荐")])],t.list.length?a("v-uni-view",{class:"footer footer__"+t.type},[a("v-uni-label",{staticClass:"all-radio",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCheckAll.apply(void 0,arguments)}}},[a("v-uni-radio",{staticClass:"radio",attrs:{color:"#FF875B",checked:t.checkedIds.length>0&&t.checkedIds.length===t.list.length}}),a("v-uni-text",[t._v("全选")])],1),a("v-uni-view",{staticClass:"total-info"},[a("v-uni-text",[t._v("合计:")]),a("UiMoney",{staticClass:"goods-price",attrs:{money:t.totalPrice,prefix:!0}})],1),a("v-uni-view",{staticClass:"cart-action"},["edit"==t.mode?a("UiButton",{attrs:{size:"max",disable:!t.checkedIds.length},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleDelete.apply(void 0,arguments)}}},[t._v("删除")]):a("UiButton",{attrs:{type:"gradual",size:"max",disable:!t.checkedIds.length},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOrder.apply(void 0,arguments)}}},[t._v("去结算("+t._s(t.list.length)+")")])],1)],1):t._e()],2)},r=[]},1014:function(t,e,n){"use strict";n.r(e