System.register(["./index-legacy.77fd7daf.js","./index-legacy.16d6e7da.js","./index-legacy.586e7b6f.js","./index-legacy.0c981638.js","./index-legacy.2393a936.js","./index-legacy.9e1cc14a.js","./index-legacy.184e7d67.js","./cart-legacy.a97fbc59.js","./index.module-legacy.2b6ca4e3.js","./index-legacy.ea6a96cf.js","./index-legacy.dad1c30b.js","./index-legacy.160c8f79.js","./index-legacy.54aee614.js","./index-legacy.4a9eab36.js","./index-legacy.6d038ac6.js","./index-legacy.74c71eea.js","./index-legacy.8742752a.js","./icon_checkbox_default-legacy.e33240bc.js","./icon_checkbox-tenant-legacy.b4d3b7a3.js","./index-legacy.23424f6c.js","./hooks-legacy.eeb437e3.js","./index-legacy.c8e04a6c.js","./index-legacy.8792d9c7.js","./index-legacy.33c6b81d.js","./use-id-legacy.4a1010a1.js","./index-legacy.9dfac9c6.js"],(function(e){"use strict";var n,o,t,i,u,a,c,l,r,d,s,f,v,m,g,y,p,x,b,j,h,A,C,I,P,B;return{setters:[function(e){n=e.d,o=e.S,t=e.Q,i=e.a2,u=e.P,a=e.j,c=e.bz,l=e.z,r=e.aR,d=e.C,s=e.F,f=e.T,v=e.g},function(){},function(){},function(e){m=e.C},function(e){g=e.C},function(e){y=e.C},function(e){p=e.S},function(e){x=e.c,b=e.f},function(e){j=e.s},function(e){h=e.A},function(e){A=e.C},function(e){C=e.P},function(e){I=e.C},function(e){P=e.U},function(e){B=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",n({name:"cartConfirmAgin",setup:function(){var e,n,S,k,N,V,T,O,U,z,_,L,M,Q,R=(null===(e=x.orderInfo)||void 0===e?void 0:e.orderItemList)||[],w={totalAmount:(null===(n=x.orderInfo)||void 0===n?void 0:n.totalAmount)||0,payAmount:(null===(S=x.orderInfo)||void 0===S?void 0:S.payAmount)||0,freightAmount:(null===(k=x.orderInfo)||void 0===k?void 0:k.freightAmount)||0,couponAmount:null===(N=x.orderInfo)||void 0===N?void 0:N.couponAmount};o(0);var D={city:null===(V=x.orderInfo)||void 0===V?void 0:V.receiverCity,detailAddress:null===(T=x.orderInfo)||void 0===T?void 0:T.receiverDetailAddress,name:null===(O=x.orderInfo)||void 0===O?void 0:O.receiverName,phoneNumber:null===(U=x.orderInfo)||void 0===U?void 0:U.receiverPhone,postCode:null===(z=x.orderInfo)||void 0===z?void 0:z.receiverPostCode,province:null===(_=x.orderInfo)||void 0===_?void 0:_.receiverProvince,region:null===(L=x.orderInfo)||void 0===L?void 0:L.receiverRegion},F=o(!1),H=o(!1),W=o(!1),q=t({orderNo:(null===(M=x.orderInfo)||void 0===M?void 0:M.orderSn)||"",actualPrice:(null===(Q=x.orderInfo)||void 0===Q?void 0:Q.payAmount)||0});i(W,(function(e,n){W.value?postMessage({api:"setBarStatus",content:{status:0}}):postMessage({api:"setBarStatus",content:{status:1}})}));var E=function(){if(F.value){var e=v.user.data;null!=e&&e.realName&&null!=e&&e.idCardNo?q.orderNo?H.value=!0:f("没有订单号!"):W.value=!0}else f("请先阅读并同意《酷乐秀平台服务协议》")},G=u(),J=function(){W.value=!1,E()};return function(){return a(s,null,[a(B,null,null),R.length?a("div",{class:j.cartConfirm},[a("div",{class:j.cartConfirmBox},[a(h,{item:D,isLink:!1},null)]),a("div",{style:{marginTop:"20px"},class:[j.cartBox,j.cartConfirmBox]},[a("div",{class:j.shopBox},[R.map((function(e){return a("div",{class:[j.cartItem],style:{marginBottom:"10px"}},[a(m,{price:c(e.productPrice),desc:b(e.productAttr),title:e.productName,thumb:e.productPic,num:e.productQuantity},null)])}))]),a(y,{border:!1},{default:function(){return[a(g,{border:!1,title:"优惠券"},{value:function(){return a("span",{style:{fontSize:"0.42667rem",color:"#ff3535",fontWeight:"bold"}},["-¥ "+w.couponAmount])}}),a(g,{border:!1,title:"总额",value:"¥ "+w.totalAmount},null)]}})]),a("div",{class:j.payProtocol},[a(A,{modelValue:F.value,"onUpdate:modelValue":function(e){return F.value=e}},null),a(p,{buttonText:"结算(".concat(R.length,")"),buttonColor:"var(--van-primary)",disabled:0===R.length,onSubmit:function(){return E()}},{default:function(){return[a("div",{class:j.confirmBottom},[l("合计")," ",a("span",{class:j["price-des"]},[l("¥"),c(w.payAmount)])])]}})]),a("div",{style:{height:"var(--van-submit-bar-height)"}},null),a(I,{modelValue:W.value,"onUpdate:modelValue":function(e){return W.value=e}},{default:function(){return[a(P,{onSuccess:J},null)]}}),a(r,{show:H.value,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[a(C,{modelValue:H.value,"onUpdate:modelValue":function(e){return H.value=e},orderInfo:q,paymentType:"goodsPay",onBackOut:function(){return H.value=!1}},null)]}})]):a(d,{buttonText:"去购物车",onClick:function(){G.push({path:"/cart"})}},null)])}}}))}}}));
