System.register(["./index-legacy.088d07fe.js","./index-legacy.d77a1394.js","./index-legacy.47f904f4.js","./index-legacy.fb6f2309.js","./index-legacy.958bfabf.js","./index-legacy.6795e61d.js","./index-legacy.4f295f67.js","./cart-legacy.ce217835.js","./index.module-legacy.2b6ca4e3.js","./index-legacy.0592cbcd.js","./index-legacy.7c708c34.js","./index-legacy.843058f9.js","./index-legacy.7770632d.js","./index-legacy.e79f682c.js","./index-legacy.ab524b39.js","./index-legacy.062d49e9.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.6168d53d.js","./index-legacy.e7620068.js","./use-height-legacy.166530e2.js","./index-legacy.4f0a81cc.js","./hooks-legacy.dea977fc.js","./index-legacy.c610561c.js","./index-legacy.666b8d34.js","./index-legacy.0364b3a2.js","./index-legacy.fc0040e4.js","./use-id-legacy.a726c7df.js","./index-legacy.3db9a70d.js"],(function(e){"use strict";var n,o,t,i,u,c,l,r,a,d,s,f,v,m,g,y,p,x,j,b,h,A,I,C,B;return{setters:[function(e){n=e.d,o=e.O,t=e.N,i=e.Z,u=e.M,c=e.i,l=e.bu,r=e.w,a=e.aQ,d=e.C,s=e.F,f=e.aE,v=e.s},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,j=e.f},function(e){b=e.s},function(e){h=e.A},function(e){A=e.C},function(e){I=e.P},function(e){C=e.C},function(e){B=e.U},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",n({name:"cartConfirmAgin",setup:function(){var e,n,P,N,S,k,V,O,T,U,M,w,L,Q,_=(null===(e=x.orderInfo)||void 0===e?void 0:e.orderItemList)||[],z={totalAmount:(null===(n=x.orderInfo)||void 0===n?void 0:n.totalAmount)||0,payAmount:(null===(P=x.orderInfo)||void 0===P?void 0:P.payAmount)||0,freightAmount:(null===(N=x.orderInfo)||void 0===N?void 0:N.freightAmount)||0,couponAmount:null===(S=x.orderInfo)||void 0===S?void 0:S.couponAmount};o(0);var D={city:null===(k=x.orderInfo)||void 0===k?void 0:k.receiverCity,detailAddress:null===(V=x.orderInfo)||void 0===V?void 0:V.receiverDetailAddress,name:null===(O=x.orderInfo)||void 0===O?void 0:O.receiverName,phoneNumber:null===(T=x.orderInfo)||void 0===T?void 0:T.receiverPhone,postCode:null===(U=x.orderInfo)||void 0===U?void 0:U.receiverPostCode,province:null===(M=x.orderInfo)||void 0===M?void 0:M.receiverProvince,region:null===(w=x.orderInfo)||void 0===w?void 0:w.receiverRegion},E=o(!1),F=o(!1),H=o(!1),R=t({orderNo:(null===(L=x.orderInfo)||void 0===L?void 0:L.orderSn)||"",actualPrice:(null===(Q=x.orderInfo)||void 0===Q?void 0:Q.payAmount)||0});i(H,(function(e,n){H.value?postMessage({api:"setBarStatus",content:{status:0}}):postMessage({api:"setBarStatus",content:{status:1}})}));var W=function(){if(E.value){var e=v.user.data;null!=e&&e.realName&&null!=e&&e.idCardNo?R.orderNo?F.value=!0:f("没有订单号!"):H.value=!0}else f("请先阅读并同意《酷乐秀平台服务协议》")},Z=u(),q=function(){H.value=!1,W()};return function(){return c(s,null,[_.length?c("div",{class:b.cartConfirm},[c("div",{class:b.cartConfirmBox},[c(h,{item:D,isLink:!1},null)]),c("div",{style:{marginTop:"20px"},class:[b.cartBox,b.cartConfirmBox]},[c("div",{class:b.shopBox},[_.map((function(e){return c("div",{class:[b.cartItem],style:{marginBottom:"10px"}},[c(m,{price:l(e.productPrice),desc:j(e.productAttr),title:e.productName,thumb:e.productPic,num:e.productQuantity},null)])}))]),c(y,{border:!1},{default:function(){return[c(g,{border:!1,title:"优惠券"},{value:function(){return c("span",{style:{fontSize:"0.42667rem",color:"#ff3535",fontWeight:"bold"}},["-¥ "+z.couponAmount])}}),c(g,{border:!1,title:"总额",value:"¥ "+z.totalAmount},null)]}})]),c("div",{class:b.payProtocol},[c(A,{modelValue:E.value,"onUpdate:modelValue":function(e){return E.value=e}},null),c(p,{buttonText:"结算(".concat(_.length,")"),buttonColor:"var(--van-primary)",disabled:0===_.length,onSubmit:function(){return W()}},{default:function(){return[c("div",{class:b.confirmBottom},[r("合计")," ",c("span",{class:b["price-des"]},[r("¥"),l(z.payAmount)])])]}})]),c("div",{style:{height:"var(--van-submit-bar-height)"}},null),c(C,{modelValue:H.value,"onUpdate:modelValue":function(e){return H.value=e}},{default:function(){return[c(B,{onSuccess:q},null)]}}),c(a,{show:F.value,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[c(I,{modelValue:F.value,"onUpdate:modelValue":function(e){return F.value=e},orderInfo:R,paymentType:"goodsPay",onBackOut:function(){return F.value=!1}},null)]}})]):c(d,{buttonText:"去购物车",onClick:function(){Z.push({path:"/cart"})}},null)])}}}))}}}));
