(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order_addcart-order_addcart"],{2216:function(t,i,e){"use strict";e.r(i);var n=e("4b1b"),o=e("6414");for(var a in o)"default"!==a&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("287d");var r,s=e("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"8f89bb24",null,!1,n["a"],r);i["default"]=c.exports},"287d":function(t,i,e){"use strict";var n=e("5f41"),o=e.n(n);o.a},3453:function(t,i,e){t.exports=e.p+"static/img/noCoupon.cca04173.png"},"3db4":function(t,i,e){t.exports=e.p+"static/img/noCart.50b36491.png"},"415b":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,"@supports (bottom:constant(safe-area-inset-bottom)) or (bottom:env(safe-area-inset-bottom)){.shoppingCart .footer[data-v-37d1d774]{bottom:calc(var(--window-bottom) + constant(safe-area-inset-bottom));bottom:calc(var(--window-bottom) + env(safe-area-inset-bottom))}}",""]),t.exports=i},"42e5":function(t,i,e){"use strict";e.r(i);var n=e("949c"),o=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},"4b1b":function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var o=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",[n("v-uni-view",{staticClass:"coupon-list-window animated",class:1==t.coupon.coupon?"slideInUp":""},[n("v-uni-view",{staticClass:"title"},t._l(t.tabList,(function(i,e){return n("v-uni-view",{key:e,staticClass:"item",class:{on:t.tabIndex==e},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.bindTab(i,e)}}},[t._v(t._s(i))])})),1),t.couponArr.length?n("v-uni-view",{staticClass:"coupon-list"},t._l(t.couponArr,(function(i,e){return n("v-uni-view",{key:e,staticClass:"item acea-row row-center-wrapper",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.getCouponUser(e,i)}}},[n("v-uni-view",{staticClass:"money acea-row row-column row-center-wrapper",class:i.issue?"moneyGray":""},[n("v-uni-view",[n("v-uni-text",{staticClass:"money-type"},[t._v("HK$")]),n("v-uni-text",{staticClass:"num"},[t._v(t._s(i.coupon_price))])],1),n("v-uni-view",{staticClass:"pic-num"},[t._v("滿"+t._s(i.use_min_price)+"元可用")])],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"condition line1"},[0===i.type?n("span",{staticClass:"line-title",class:i.issue?"gray":""},[t._v("品牌券")]):1===i.type?n("span",{staticClass:"line-title",class:i.issue?"gray":""},[t._v("商品券")]):t._e(),n("span",[t._v(t._s(i.title))])]),n("v-uni-view",{staticClass:"data acea-row row-between-wrapper"},[1==i.coupon_type?[n("v-uni-view",[t._v(t._s(t._f("timeYMD")(i.use_start_time))+"-"+t._s(t._f("timeYMD")(i.use_end_time)))])]:t._e(),0==i.coupon_type?[n("v-uni-view",[t._v("領取後"+t._s(i.coupon_time)+"天內可用")])]:t._e(),i.issue?n("v-uni-view",{staticClass:"bnt gray"},[t._v(t._s(i.use_title||"已領取"))]):n("v-uni-view",{staticClass:"bnt bg-color"},[t._v(t._s(t.coupon.statusTile||"立即領取"))])],2)],1)],1)})),1):n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e("3453")}})],1)],1),n("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.coupon.coupon},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}})],1)},a=[]},"4ba2":function(t,i,e){"use strict";e.r(i);var n=e("6a36"),o=e("42e5");for(var a in o)"default"!==a&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("5384"),e("8b6c");var r,s=e("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"37d1d774",null,!1,n["a"],r);i["default"]=c.exports},"510f":function(t,i,e){"use strict";var n=e("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.getIndexData=a,i.getLogo=r,i.setFormId=s,i.setCouponReceive=c,i.getCoupons=u,i.getShopCoupons=d,i.getUserCoupons=l,i.getArticleCategoryList=f,i.getArticleList=p,i.getArticleHotList=h,i.getArticleBannerList=v,i.getArticleDetails=g,i.loginMobile=m,i.verifyCode=b,i.registerVerify=C,i.phoneRegister=w,i.phoneRegisterReset=_,i.phoneLogin=x,i.switchH5Login=k,i.bindingPhone=y,i.logout=A,i.getTemlIds=L,i.pink=T,i.getCity=z,i.getLiveList=$;var o=n(e("db75"));function a(){return o.default.get("common/home",{},{noAuth:!0})}function r(){return o.default.get("wechat/get_logo",{},{noAuth:!0})}function s(t){return o.default.post("wechat/set_form_id",{formId:t})}function c(t){return o.default.post("coupon/receive/"+t)}function u(t){return o.default.get("coupon/product",t,{noAuth:!0})}function d(t){return o.default.get("coupon/store/"+t,{},{noAuth:!0})}function l(t){return o.default.get("coupon/list",t)}function f(){return o.default.get("article/category/lst",{},{noAuth:!0})}function p(t,i){return o.default.get("article/lst/"+t,i,{noAuth:!0})}function h(){return o.default.get("article/hot/list",{},{noAuth:!0})}function v(){return o.default.get("article/banner/list",{},{noAuth:!0})}function g(t){return o.default.get("article/detail/"+t,{},{noAuth:!0})}function m(t){return o.default.post("login/mobile",t,{noAuth:!0})}function b(){return o.default.get("verify_code",{},{noAuth:!0})}function C(t,i,e,n){return o.default.post("register/verify",{phone:t,type:void 0===i?"reset":i,key:e,code:n},{noAuth:!0})}function w(t){return o.default.post("register",t,{noAuth:!0})}function _(t){return o.default.post("register/reset",t,{noAuth:!0})}function x(t){return o.default.post("login",t,{noAuth:!0})}function k(t){return o.default.post("user/switch",t)}function y(t){return o.default.post("user/binding",t)}function A(){return o.default.get("logout")}function L(){return o.default.get("wechat/teml_ids",{},{noAuth:!0})}function T(){return o.default.get("pink",{},{noAuth:!0})}function z(){return o.default.get("system/city/lst",{},{noAuth:!0})}function $(t,i){return o.default.get("wechat/live",{page:t,limit:i},{noAuth:!0})}},5384:function(t,i,e){"use strict";var n=e("d3ad"),o=e.n(n);o.a},"554d":function(t,i,e){var n=e("415b");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("fa6fadbc",n,!0,{sourceMap:!1,shadowMode:!1})},"5f41":function(t,i,e){var n=e("e0b5");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("d4e1849a",n,!0,{sourceMap:!1,shadowMode:!1})},6414:function(t,i,e){"use strict";e.r(i);var n=e("cec2"),o=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},"6a36":function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var o=function(){var t=this,i=t.$createElement,n=t._self._c||i;return n("v-uni-view",[n("v-uni-view",{staticClass:"shoppingCart  "},[n("v-uni-view",{staticClass:"labelNav acea-row row-around row-middle height"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),t._v("100%正品保證")],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),t._v("所有商品精挑細選")],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-text",{staticClass:"iconfont icon-xuanzhong"}),t._v("售後無憂")],1)],1),n("v-uni-view",{staticClass:"nav acea-row row-between-wrapper top"},[n("v-uni-view",[t._v("購物數量"),n("v-uni-text",{staticClass:"num font-color"},[t._v(t._s(t.cartTotalCount))])],1),t.cartList.valid.length>0||t.cartList.invalid.length>0?n("v-uni-view",{staticClass:"administrate acea-row row-center-wrapper",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.manage.apply(void 0,arguments)}}},[t._v(t._s(t.footerswitch?"管理":"取消"))]):t._e()],1),t.cartList.valid.length>0||t.cartList.invalid.length>0?n("v-uni-view",[n("v-uni-view",{staticClass:"list"},[t._l(t.cartList.valid,(function(i,e){return[n("v-uni-view",{key:e+"_0",staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"store-title"},[n("v-uni-view",{staticClass:"checkbox",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.storeAllCheck(i,e)}}},[i.allCheck?n("v-uni-text",{staticClass:"iconfont icon-xuanzhong1"}):n("v-uni-text",{staticClass:"iconfont icon-weixuanzhong"})],1),n("v-uni-navigator",{staticClass:"info",attrs:{url:0==t.hide_mer_status?"/pages/store/home/index?id="+i.mer_id:"#"}},[n("v-uni-text",{staticClass:"iconfont icon-shangjiadingdan"}),n("v-uni-view",{staticClass:"name"},[t._v(t._s(i.mer_name))]),n("v-uni-text",{staticClass:"iconfont icon-xiangyou"})],1),i.hasCoupon>0?n("v-uni-view",{staticClass:"coupon-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.giveCoupon(i)}}},[t._v("優惠券")]):t._e()],1),t._l(i.list,(function(i){return n("v-uni-navigator",{key:i.cart_id,staticClass:"picTxt acea-row",attrs:{url:"/pages/goods_details/index?id="+i.product.product_id,"hover-class":"none"}},[n("v-uni-view",{staticClass:"checkbox",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.goodsCheck(i,e)}}},[i.check?n("v-uni-text",{staticClass:"iconfont icon-xuanzhong1"}):n("v-uni-text",{staticClass:"iconfont icon-weixuanzhong"})],1),n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:i.productAttr&&i.productAttr.image||i.product.image}})],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"line1"},[t._v(t._s(i.product.store_name))]),i.productAttr.sku?n("v-uni-view",{staticClass:"infor line1"},[t._v("屬性："+t._s(i.productAttr.sku))]):t._e(),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",{staticClass:"money-type"},[t._v("HK$")]),t._v(t._s(i.productAttr.price))],1)],1),n("v-uni-view",{staticClass:"carnum acea-row row-center-wrapper"},[n("v-uni-view",{staticClass:"reduce",class:i.numSub?"on":"",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.subCart(i)}}},[t._v("-")]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(i.cart_num))]),n("v-uni-view",{staticClass:"plus",class:i.numAdd?"on":"",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.addCart(i)}}},[t._v("+")])],1)],1)}))],2)]}))],2),t.cartList.invalid.length>0?n("v-uni-view",{staticClass:"invalidGoods"},[n("v-uni-view",{staticClass:"goodsNav acea-row row-between-wrapper"},[n("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goodsOpen.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont",class:1==t.goodsHidden?"icon-xiangxia":"icon-xiangshang"}),t._v("失效商品")],1),n("v-uni-view",{staticClass:"del",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.unsetCart.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-shanchu1"}),t._v("清空")],1)],1),n("v-uni-view",{staticClass:"goodsList",attrs:{hidden:t.goodsHidden}},[t._l(t.cartList.invalid,(function(i,e){return[n("v-uni-view",{key:e+"_0",staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"invalid"},[t._v("失效")]),n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:i.productAttr&&i.productAttr.image||i.product.image}})],1),n("v-uni-view",{staticClass:"text acea-row row-column-between"},[n("v-uni-view",{staticClass:"line1 name"},[t._v(t._s(i.product.store_name))]),n("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"end"},[t._v("該商品已失效")])],1)],1)],1)]}))],2)],1):t._e()],1):t._e(),t.recommend?n("v-uni-view",{staticClass:"noCart",style:{marginTop:0==t.cartList.invalid.length&&0==t.cartList.invalid.length?"170rpx":""}},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:e("3db4")}})],1),n("recommend",{attrs:{hostProduct:t.hostProduct,isLogin:t.isLogin}}),t.hostProduct.length>5?n("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[n("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e()],1):t._e(),n("v-uni-view",{staticStyle:{height:"120rpx"}}),t.cartList.valid.length>0?n("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[n("v-uni-view",[n("v-uni-view",{staticClass:"allcheckbox",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.checkboxAllChange.apply(void 0,arguments)}}},[t.isAllSelect?n("v-uni-text",{staticClass:"iconfont icon-xuanzhong1"}):n("v-uni-text",{staticClass:"iconfont icon-weixuanzhong"}),t._v("全選 ("+t._s(t.cartCount)+")")],1)],1),1==t.footerswitch?n("v-uni-view",{staticClass:"money acea-row row-middle"},[n("v-uni-text",{staticClass:"font-color"},[n("v-uni-text",{staticClass:"money-type"},[t._v("HK$")]),t._v(t._s(t.selectCountPrice))],1),n("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subOrder.apply(void 0,arguments)}}},[n("v-uni-button",{staticClass:"placeOrder bg-color",attrs:{formType:"submit"}},[t._v("立即下單")])],1)],1):n("v-uni-view",{staticClass:"button acea-row row-middle"},[n("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subCollect.apply(void 0,arguments)}}},[n("v-uni-button",{staticClass:"bnt cart-color",attrs:{formType:"submit"}},[t._v("收藏")])],1),n("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subDel.apply(void 0,arguments)}}},[n("v-uni-button",{staticClass:"bnt",attrs:{formType:"submit"}},[t._v("刪除")])],1)],1)],1):t._e()],1),t.coupon.coupon?[n("couponListWindow",{attrs:{coupon:t.coupon},on:{ChangCouponsClone:function(i){arguments[0]=i=t.$handleEvent(i),t.ChangCouponsClone.apply(void 0,arguments)},ChangCouponsUseState:function(i){arguments[0]=i=t.$handleEvent(i),t.ChangCouponsUseState.apply(void 0,arguments)}}})]:t._e()],2)},a=[]},"72ac":function(t,i,e){"use strict";var n=e("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.getCartCounts=a,i.getCartList=r,i.changeCartNum=s,i.cartDel=c,i.getOrderList=u,i.orderProduct=d,i.orderComment=l,i.orderPay=f,i.orderData=p,i.unOrderCancel=h,i.orderDel=v,i.getOrderDetail=g,i.groupOrderDetail=m,i.getPayOrder=b,i.orderAgain=C,i.orderTake=w,i.express=_,i.ordeRefundReason=x,i.orderRefundVerify=k,i.orderConfirm=y,i.getCouponsOrderPrice=A,i.postOrderComputed=L,i.orderCreate=T,i.groupOrderList=z,i.refundBatch=$,i.refundProduct=P,i.refundApply=S,i.refundMessage=E,i.refundList=O,i.refundDetail=N,i.expressList=D,i.refundBackGoods=G,i.refundDel=M,i.refundExpress=H,i.verifyCode=R,i.presellOrderPay=B,i.receiptOrder=j,i.getReceiptOrder=U,i.getCallBackUrlApi=I;var o=n(e("db75"));function a(){return o.default.get("user/cart/count")}function r(){return o.default.get("user/cart/lst")}function s(t,i){return o.default.post("user/cart/change/"+t,i)}function c(t){return o.default.post("user/cart/delete",t)}function u(t){return o.default.get("order/list",t)}function d(t){return o.default.get("reply/product/"+t)}function l(t,i){return o.default.post("reply/"+t,i)}function f(t,i){return o.default.post("order/pay/"+t,i)}function p(){return o.default.get("order/number")}function h(t){return o.default.post("order/cancel/"+t)}function v(t){return o.default.post("order/del/"+t)}function g(t){return o.default.get("order/detail/"+t)}function m(t){return o.default.get("order/group_order_detail/"+t)}function b(t){return o.default.get("order/status/"+t)}function C(t){return o.default.post("user/cart/again",t)}function w(t){return o.default.post("order/take/"+t)}function _(t){return o.default.post("order/express/"+t)}function x(){return o.default.get("order/refund/reason")}function k(t){return o.default.post("order/refund/verify",t)}function y(t){return o.default.post("order/check",t)}function A(t,i){return o.default.get("coupons/order/"+t,i)}function L(t,i){return o.default.post("/order/computed/"+t,i)}function T(t){return o.default.post("order/create",t,{noAuth:!0})}function z(t){return o.default.get("order/group_order_list",t,{noAuth:!0})}function $(t){return o.default.get("refund/batch_product/"+t,{noAuth:!0})}function P(t,i){return o.default.get("refund/product/"+t,i,{noAuth:!0})}function S(t,i){return o.default.post("refund/apply/"+t,i,{noAuth:!0})}function E(){return o.default.get("common/refund_message",{noAuth:!0})}function O(t){return o.default.get("refund/list",t,{noAuth:!0})}function N(t){return o.default.get("refund/detail/"+t,{noAuth:!0})}function D(){return o.default.get("common/express")}function G(t,i){return o.default.post("refund/back_goods/"+t,i,{noAuth:!0})}function M(t){return o.default.post("refund/del/"+t,{noAuth:!0})}function H(t){return o.default.get("refund/express/"+t,{noAuth:!0})}function R(t){return o.default.get("order/verify_code/"+t)}function B(t,i){return o.default.post("presell/pay/"+t,i)}function j(t){return o.default.get("user/receipt/order",t)}function U(t){return o.default.get("user/receipt/order/"+t)}function I(t){return o.default.get("common/pay_key/"+t,{},{noAuth:!0})}},"8b6c":function(t,i,e){"use strict";var n=e("554d"),o=e.n(n);o.a},"949c":function(t,i,e){"use strict";var n=e("4ea4");e("99af"),e("4de4"),e("4160"),e("a15b"),e("d81d"),e("a9e3"),e("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=n(e("2216")),a=e("72ac"),r=e("510f"),s=e("e774"),c=e("3135"),u=e("2f62"),d=n(e("b0c8")),l=(getApp(),{components:{recommend:d.default,couponListWindow:o.default},data:function(){return{loading:!1,loadend:!1,loadTitle:"加載更多",cartCount:0,goodsHidden:!0,footerswitch:!0,hostProduct:[],cartList:{valid:[],invalid:[]},isAllSelect:!1,selectValue:[],selectCountPrice:0,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,coupon:{coupon:!1,list:[]},cartTotalCount:0,recommend:!1,hide_mer_status:1}},computed:(0,u.mapGetters)(["isLogin"]),onReady:function(){var t=this;uni.$on("update",(function(i){t.hide_mer_status=i.hide_mer_status}))},mounted:function(){var t=this,i=getApp();this.$nextTick((function(){t.hide_mer_status=i.globalData.hide_mer_status}))},onLoad:function(t){var i=this;0==i.isLogin&&(0,c.toLogin)()},onShow:function(){uni.showTabBar(),1==this.isLogin&&(this.hostProduct=[],this.hotScroll=!1,this.hotLimit=10,this.hotPage=1,this.getHostProduct(),this.getCartList(),this.getCartNum(),this.goodsHidden=!0,this.footerswitch=!0,this.cartList={valid:[],invalid:[]},this.isAllSelect=!1,this.selectValue=[],this.selectCountPrice=0,this.cartCount=0,this.isShowAuth=!1,uni.setStorage({key:"invoice_Data",data:{},success:function(){}}))},methods:{authColse:function(t){this.isShowAuth=t},onLoadFun:function(){this.isShowAuth=!1},subDel:function(t){var i=this,e=this,n=[];if(this.cartList.valid.forEach((function(t){t.list.forEach((function(t){t.check&&n.push(t.cart_id)}))})),0==n.length)return e.$util.Tips({title:"請選擇產品"});(0,a.cartDel)({cart_id:n}).then((function(t){return i.getCartList(),i.getCartNum(),e.$util.Tips({title:t.message,icon:"success"})})).catch((function(t){return e.$util.Tips({title:t})}))},subCollect:function(t){var i=this,e=[];if(this.cartList.valid.forEach((function(t){t.list.forEach((function(t){t.check&&e.push(t.product.product_id)}))})),0==e.length)return i.$util.Tips({title:"請選擇產品"});(0,s.collectAll)({type_id:e,type:1}).then((function(t){return i.$util.Tips({title:t.message,icon:"success"})})).catch((function(t){return i.$util.Tips({title:t})}))},subOrder:function(t){var i=[];if(this.cartList.valid.forEach((function(t){t.list.forEach((function(t){t.check&&i.push(t.cart_id)}))})),!(i.length>0))return that.$util.Tips({title:"請選擇產品"});uni.navigateTo({url:"/pages/users/order_confirm/index?cartId="+i.join(",")})},addCart:function(t,i){if(t.cart_num=Number(t.cart_num)+1,this.cartTotalCount=Number(this.cartTotalCount)+1,t.hasOwnProperty("productAttr")&&t.cart_num>t.productAttr.stock)return t.cart_num=t.productAttr.stock,t.numAdd=!0,void(t.numSub=!1);t.numAdd=!1,t.numSub=!1,(0,a.changeCartNum)(t.cart_id,{cart_num:t.cart_num}).then((function(t){})).catch((function(i){t.cart_num=Number(t.cart_num)-1})),this.cartAllCheck("goodsCheck")},subCart:function(t){var i=!1;t.cart_num<1&&(i=!0),t.cart_num<=1?(t.cart_num=1,t.numSub=!0,i=!0):(t.cart_num=Number(t.cart_num)-1,this.cartTotalCount=Number(this.cartTotalCount)-1,t.numSub=!1,t.numAdd=!1,t.cart_num<=1&&(t.numSub=!0)),0==i&&((0,a.changeCartNum)(t.cart_id,{cart_num:t.cart_num}).then((function(t){})).catch((function(i){t.cart_num=Number(t.cart_num)-1})),this.cartAllCheck("goodsCheck"))},getCartNum:function(){var t=this;(0,a.getCartCounts)().then((function(i){t.cartTotalCount=i.data[0].count||0}))},getCartList:function(){var t=this;(0,a.getCartList)().then((function(i){i.data.list.forEach((function(t,i){t.allCheck=!0,t.list.forEach((function(t,i){t.check=!0,1==t.cart_num?t.numSub=!0:t.numSub=!1,t.cart_num==t.productAttr.stock?t.numAdd=!0:t.numAdd=!1}))})),t.cartList.valid=i.data.list,t.cartList.invalid=i.data.fail,0==i.data.list.length&&0==i.data.list.length?t.recommend=!0:t.recommend=!1,t.checkboxAllChange()}))},storeAllCheck:function(t,i){t.allCheck?(t.allCheck=!1,t.list.forEach((function(t,i){t.check=!1}))):(t.allCheck=!0,t.list.forEach((function(t,i){t.check=!0}))),this.cartAllCheck("goodsCheck")},goodsCheck:function(t){t.check=!t.check,this.cartAllCheck("goodsCheck")},cartAllCheck:function(t){var i=this,e=[],n=0,o=0;this.cartList.valid.forEach((function(a,r){if("goodsCheck"==t){var s=a.list.filter((function(t){return 1==t.check}));a.list.length==s.length?(a.allCheck=!0,e.push(a)):a.allCheck=!1}else a.list.forEach((function(t){t.check=i.isAllSelect})),a.allCheck=i.isAllSelect,a.allCheck&&e.push(a);a.list.forEach((function(t){t.check&&(n=i.$util.$h.Add(n,i.$util.$h.Mul(t.productAttr.price,t.cart_num)),o+=t.cart_num)}))})),this.cartCount=o,this.selectCountPrice=n,this.isAllSelect=e.length==this.cartList.valid.length},checkboxAllChange:function(){this.isAllSelect=!this.isAllSelect,this.cartAllCheck("cartCheck")},getHostProduct:function(){var t=this;t.loadend||t.hotScroll||(t.loading=!0,t.loadTitle="加載更多",(0,s.getProductHot)(t.hotPage,t.hotLimit).then((function(i){i.data.list;t.hotPage++,t.hotScroll=i.data.list.length<t.hotLimit,t.hostProduct=t.hostProduct.concat(i.data.list),t.loading=!1,t.loadTitle=t.hotScroll?"我也是有底線的":"加載更多"})))},goodsOpen:function(){var t=this;t.goodsHidden=!t.goodsHidden},manage:function(){var t=this;t.footerswitch=!t.footerswitch},unsetCart:function(){for(var t=this,i=[],e=0,n=t.cartList.invalid.length;e<n;e++)i.push(t.cartList.invalid[e].cart_id);(0,a.cartDel)({cart_id:i}).then((function(i){t.$util.Tips({title:"清除成功"}),t.$set(t.cartList,"invalid",[])})).catch((function(t){}))},giveCoupon:function(t){var i=this,e=[],n=[],o=[];t.list.map((function(t){o.push(t.product_id)})),(0,r.getCoupons)({ids:o.join(",")}).then((function(o){e=o.data,(0,r.getShopCoupons)(t.mer_id).then((function(t){var o=t.data;uni.hideTabBar(),n=e.concat(o),i.$set(i.coupon,"list",n),i.$set(i.coupon,"coupon",!0)})).catch((function(t){uni.showTabBar()}))}))},ChangCouponsClone:function(){uni.showTabBar(),this.$set(this.coupon,"coupon",!1)},ChangCouponsUseState:function(t){uni.showTabBar();var i=this;i.coupon.list[t].issue=!0}},onReachBottom:function(){this.getHostProduct()}});i.default=l},"981c":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.shoppingCart .height[data-v-37d1d774]{height:%?76?%}.shoppingCart .height1[data-v-37d1d774]{height:%?146?%}.shoppingCart .top[data-v-37d1d774]{top:%?76?%}.shoppingCart .top1[data-v-37d1d774]{top:%?106?%}.shoppingCart .labelNav[data-v-37d1d774]{padding:0 %?30?%;font-size:%?22?%;color:#8c8c8c;position:fixed;left:0;width:100%;box-sizing:border-box;background-color:#f5f5f5;z-index:5;top:0}.shoppingCart .labelNav .item .iconfont[data-v-37d1d774]{font-size:%?25?%;margin-right:%?10?%}.shoppingCart .nav[data-v-37d1d774]{width:100%;height:%?80?%;background-color:#fff;padding:0 %?30?%;box-sizing:border-box;font-size:%?28?%;color:#282828;position:fixed;left:0;z-index:5}.shoppingCart .nav .administrate[data-v-37d1d774]{font-size:%?26?%;color:#282828;width:%?110?%;height:%?46?%;border-radius:%?6?%;border:1px solid #868686}.shoppingCart .noCart[data-v-37d1d774]{margin-top:%?20?%;margin-bottom:%?20?%;background-color:#fff;padding-top:%?0.1?%}.shoppingCart .noCart .pictrue[data-v-37d1d774]{width:%?414?%;height:%?336?%;margin:%?78?% auto %?56?% auto}.shoppingCart .noCart .pictrue uni-image[data-v-37d1d774]{width:100%;height:100%}.shoppingCart .list[data-v-37d1d774]{margin-top:%?171?%}.shoppingCart .list .item[data-v-37d1d774]{background-color:#fff;margin-bottom:%?15?%}.shoppingCart .list .item .store-title[data-v-37d1d774]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;padding:0 %?30?%;height:%?85?%;border-bottom:1px solid #f0f0f0}.shoppingCart .list .item .store-title .checkbox[data-v-37d1d774]{width:%?60?%}.shoppingCart .list .item .store-title .checkbox .iconfont[data-v-37d1d774]{font-size:%?40?%;color:#ccc}.shoppingCart .list .item .store-title .checkbox .icon-xuanzhong1[data-v-37d1d774]{color:#e93323}.shoppingCart .list .item .store-title .info[data-v-37d1d774]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.shoppingCart .list .item .store-title .info .iconfont[data-v-37d1d774]{font-size:%?36?%}.shoppingCart .list .item .store-title .info .name[data-v-37d1d774]{margin:0 0 0 %?10?%;font-size:%?28?%;color:#282828;font-weight:700}.shoppingCart .list .item .store-title .info .icon-xiangyou[data-v-37d1d774]{margin-top:%?6?%;font-size:%?22?%;color:#999}.shoppingCart .list .item .store-title .coupon-btn[data-v-37d1d774]{color:#e93323;font-size:%?22?%;width:%?100?%;height:%?36?%;line-height:%?36?%;background:#ffedeb;border-radius:%?18?%;text-align:center}.shoppingCart .list .item .picTxt[data-v-37d1d774]{width:100%;padding:%?25?% %?30?%;position:relative;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid #f0f0f0}.shoppingCart .list .item .picTxt .checkbox[data-v-37d1d774]{width:%?60?%}.shoppingCart .list .item .picTxt .checkbox .iconfont[data-v-37d1d774]{font-size:%?40?%;color:#ccc}.shoppingCart .list .item .picTxt .checkbox .icon-xuanzhong1[data-v-37d1d774]{color:#e93323}.shoppingCart .list .item .picTxt .pictrue[data-v-37d1d774]{width:%?160?%;height:%?160?%}.shoppingCart .list .item .picTxt .pictrue uni-image[data-v-37d1d774]{width:100%;height:100%;border-radius:%?6?%}.shoppingCart .list .item .picTxt .text[data-v-37d1d774]{width:%?444?%;margin-left:%?20?%;font-size:%?28?%;color:#282828}.shoppingCart .list .item .picTxt .text .infor[data-v-37d1d774]{font-size:%?24?%;color:#868686;margin-top:%?16?%}.shoppingCart .list .item .picTxt .text .money[data-v-37d1d774]{font-size:%?32?%;color:#282828;margin-top:%?28?%}.shoppingCart .list .item .picTxt .carnum[data-v-37d1d774]{height:%?47?%;position:absolute;bottom:%?30?%;right:%?30?%}.shoppingCart .list .item .picTxt .carnum uni-view[data-v-37d1d774]{border:%?1?% solid #a4a4a4;width:%?66?%;text-align:center;height:100%;line-height:%?40?%;font-size:%?28?%;color:#a4a4a4}.shoppingCart .list .item .picTxt .carnum .reduce[data-v-37d1d774]{border-right:0;border-radius:%?3?% 0 0 %?3?%}.shoppingCart .list .item .picTxt .carnum .reduce.on[data-v-37d1d774]{border-color:#e3e3e3;color:#dedede}.shoppingCart .list .item .picTxt .carnum .plus[data-v-37d1d774]{border-left:0;border-radius:0 %?3?% %?3?% 0}.shoppingCart .list .item .picTxt .carnum .num[data-v-37d1d774]{color:#282828}.shoppingCart .invalidGoods[data-v-37d1d774]{background-color:#fff}.shoppingCart .invalidGoods .goodsNav[data-v-37d1d774]{width:100%;height:%?66?%;padding:0 %?30?%;box-sizing:border-box;font-size:%?28?%;color:#282828}.shoppingCart .invalidGoods .goodsNav .iconfont[data-v-37d1d774]{color:#424242;font-size:%?28?%;margin-right:%?17?%}.shoppingCart .invalidGoods .goodsNav .del[data-v-37d1d774]{font-size:%?26?%;color:#999}.shoppingCart .invalidGoods .goodsNav .del .icon-shanchu1[data-v-37d1d774]{color:#999;font-size:%?33?%;vertical-align:%?-2?%;margin-right:%?8?%}.shoppingCart .invalidGoods .goodsList .item[data-v-37d1d774]{padding:%?20?% %?30?%;border-top:%?1?% solid #f5f5f5}.shoppingCart .invalidGoods .goodsList .item .invalid[data-v-37d1d774]{font-size:%?22?%;color:#fff;width:%?70?%;height:%?36?%;background-color:#aaa;border-radius:%?3?%;text-align:center;line-height:%?36?%}.shoppingCart .invalidGoods .goodsList .item .pictrue[data-v-37d1d774]{width:%?140?%;height:%?140?%}.shoppingCart .invalidGoods .goodsList .item .pictrue uni-image[data-v-37d1d774]{width:100%;height:100%;border-radius:%?6?%}.shoppingCart .invalidGoods .goodsList .item .text[data-v-37d1d774]{width:%?433?%;font-size:%?28?%;color:#999;height:%?140?%}.shoppingCart .invalidGoods .goodsList .item .text .name[data-v-37d1d774]{width:100%}.shoppingCart .invalidGoods .goodsList .item .text .infor[data-v-37d1d774]{font-size:%?24?%}.shoppingCart .invalidGoods .goodsList .item .text .end[data-v-37d1d774]{font-size:%?26?%;color:#bbb}.shoppingCart .footer[data-v-37d1d774]{z-index:9;width:100%;height:%?96?%;background-color:#fafafa;position:fixed;padding:0 %?30?%;box-sizing:border-box;border-top:%?1?% solid #eee;bottom:var(--window-bottom)}.shoppingCart .footer .checkAll[data-v-37d1d774]{font-size:%?28?%;color:#282828;margin-left:%?16?%}.shoppingCart .footer .money[data-v-37d1d774]{font-size:%?30?%}.shoppingCart .footer .placeOrder[data-v-37d1d774]{color:#fff;font-size:%?30?%;width:%?226?%;height:%?70?%;border-radius:%?50?%;text-align:center;line-height:%?70?%;margin-left:%?22?%}.shoppingCart .footer .button .bnt[data-v-37d1d774]{font-size:%?28?%;color:#999;border-radius:%?50?%;border:1px solid #999;width:%?160?%;height:%?60?%;text-align:center;line-height:%?60?%}.shoppingCart .footer .button uni-form ~ uni-form[data-v-37d1d774]{margin-left:%?17?%}.allcheckbox[data-v-37d1d774]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:%?260?%}.allcheckbox .iconfont[data-v-37d1d774]{margin-right:%?20?%;font-size:%?40?%;color:#ccc}.allcheckbox .icon-xuanzhong1[data-v-37d1d774]{color:#e93323}',""]),t.exports=i},cec2:function(t,i,e){"use strict";e("4de4"),e("a9e3"),e("ac1f"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e("510f"),o={props:{openType:{type:Number,default:0},coupon:{type:Object,default:function(){return{}}}},filters:{timeYMD:function(t){if(t){var i=/\d{4}-\d{1,2}-\d{1,2}/g.exec(t);return i[0]}}},data:function(){return{tabList:["商品券","品牌券"],tabIndex:0,couponArr:[]}},mounted:function(){this.$nextTick((function(){this.couponArr=this.coupon.list,this.filterArray()}))},methods:{close:function(){this.$emit("ChangCouponsClone")},getCouponUser:function(t,i){var e=this,o=this.couponArr;if(o[t].issue)return!0;switch(this.openType){case 0:(0,n.setCouponReceive)(i.coupon_id).then((function(n){i.issue=!0,e.$emit("ChangCouponsUseState",t),e.$util.Tips({title:"領取成功"}),e.$emit("ChangCoupons",o[t])}));break;case 1:e.$emit("ChangCoupons",t);break}},filterArray:function(){0==this.tabIndex?this.couponArr=this.coupon.list.filter((function(t){return 1==t.type})):this.couponArr=this.coupon.list.filter((function(t){return 0==t.type}))},bindTab:function(t,i){this.tabIndex=i,this.filterArray()}}};i.default=o},d3ad:function(t,i,e){var n=e("981c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("6d1205db",n,!0,{sourceMap:!1,shadowMode:!1})},e0b5:function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.animated[data-v-8f89bb24]{-webkit-animation-duration:.3s;animation-duration:.3s}.title[data-v-8f89bb24]{display:-webkit-box;display:-webkit-flex;display:flex}.title .item[data-v-8f89bb24]{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?28?%;color:#999}.title .item[data-v-8f89bb24]::after{content:" ";position:absolute;left:50%;bottom:%?18?%;width:%?50?%;height:%?5?%;background:transparent;border-radius:3px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.title .item.on[data-v-8f89bb24]{color:#282828}.title .item.on[data-v-8f89bb24]::after{background:#e93323}.coupon-list[data-v-8f89bb24]{padding:%?30?%}.coupon-list .item[data-v-8f89bb24]{box-shadow:0 2px 10px 0 rgba(0,0,0,.06)}.coupon-list-window[data-v-8f89bb24]{position:fixed;bottom:0;left:0;width:100%;background-color:#fff;border-radius:%?16?% %?16?% 0 0;z-index:555;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-webkit-transition:all .3s cubic-bezier(.25,.5,.5,.9);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.coupon-list-window.on[data-v-8f89bb24]{-webkit-animation:aminup;animation:aminup}.coupon-list-window .title[data-v-8f89bb24]{height:%?106?%;width:100%;text-align:center;line-height:%?106?%;font-size:%?32?%;font-weight:700;position:relative;border:1px solid #f5f5f5}.coupon-list-window .title .iconfont[data-v-8f89bb24]{position:absolute;right:%?30?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?35?%;color:#8a8a8a;font-weight:400}.coupon-list-window .coupon-list[data-v-8f89bb24]{margin:0 0 %?50?% 0;height:%?550?%;overflow:auto}.coupon-list-window .pictrue[data-v-8f89bb24]{width:%?414?%;height:%?336?%;margin:0 auto %?50?% auto}.coupon-list-window .pictrue uni-image[data-v-8f89bb24]{width:100%;height:100%}.pic-num[data-v-8f89bb24]{color:#fff;font-size:%?24?%}.line-title[data-v-8f89bb24]{width:%?90?%;padding:0 %?10?%;box-sizing:border-box;background:#fff7f7;border:1px solid #e83323;opacity:1;border-radius:%?20?%;font-size:%?20?%;color:#e83323;margin-right:%?12?%}.line-title.gray[data-v-8f89bb24]{border-color:#bbb;color:#bbb;background-color:#f5f5f5}',""]),t.exports=i}}]);