System.register(["./index-legacy.b903c881.js","./index-legacy.5b93d63d.js","./index-legacy.857a8bc7.js","./index-legacy.e2c2fd7f.js","./index-legacy.b7f666cc.js","./index-legacy.5907f1a9.js","./index-legacy.620e91a3.js","./cart-legacy.85717cc7.js","./index.module-legacy.2b6ca4e3.js","./index-legacy.0c4a19d4.js","./index-legacy.c8a9dab3.js","./index-legacy.09b6928b.js","./index-legacy.6b9cf323.js","./index-legacy.f3de5482.js","./index-legacy.885c229f.js","./index-legacy.a3b9d61a.js","./index-legacy.fea60f22.js","./icon_checkbox_default-legacy.e33240bc.js","./icon_checkbox-tenant-legacy.b4d3b7a3.js","./index-legacy.b1d7bbb4.js","./hooks-legacy.84a774a1.js","./index-legacy.71eb94ae.js","./index-legacy.6a47581c.js","./index-legacy.e9e6da38.js","./use-id-legacy.29724920.js","./index-legacy.99367098.js"],(function(n){"use strict";var e,o,t,i,u,l,a,c,r,d,s,f,v,m,g,y,p,b,x,j,h,A,C,I,P,B;return{setters:[function(n){e=n.d,o=n.S,t=n.Q,i=n.a2,u=n.P,l=n.j,a=n.bz,c=n.z,r=n.aR,d=n.C,s=n.F,f=n.T,v=n.g},function(){},function(){},function(n){m=n.C},function(n){g=n.C},function(n){y=n.C},function(n){p=n.S},function(n){b=n.c,x=n.f},function(n){j=n.s},function(n){h=n.A},function(n){A=n.C},function(n){C=n.P},function(n){I=n.C},function(n){P=n.U},function(n){B=n.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){n("default",e({name:"cartConfirmAgin",setup:function(){var n,e,S,k,N,V,T,O,U,z,_,L,M,Q,R=(null===(n=b.orderInfo)||void 0===n?void 0:n.orderItemList)||[],w={totalAmount:(null===(e=b.orderInfo)||void 0===e?void 0:e.totalAmount)||0,payAmount:(null===(S=b.orderInfo)||void 0===S?void 0:S.payAmount)||0,freightAmount:(null===(k=b.orderInfo)||void 0===k?void 0:k.freightAmount)||0,couponAmount:null===(N=b.orderInfo)||void 0===N?void 0:N.couponAmount};o(0);var D={city:null===(V=b.orderInfo)||void 0===V?void 0:V.receiverCity,detailAddress:null===(T=b.orderInfo)||void 0===T?void 0:T.receiverDetailAddress,name:null===(O=b.orderInfo)||void 0===O?void 0:O.receiverName,phoneNumber:null===(U=b.orderInfo)||void 0===U?void 0:U.receiverPhone,postCode:null===(z=b.orderInfo)||void 0===z?void 0:z.receiverPostCode,province:null===(_=b.orderInfo)||void 0===_?void 0:_.receiverProvince,region:null===(L=b.orderInfo)||void 0===L?void 0:L.receiverRegion},F=o(!1),H=o(!1),W=o(!1),q=t({orderNo:(null===(M=b.orderInfo)||void 0===M?void 0:M.orderSn)||"",actualPrice:(null===(Q=b.orderInfo)||void 0===Q?void 0:Q.payAmount)||0});i(W,(function(n,e){W.value?postMessage({api:"setBarStatus",content:{status:0}}):postMessage({api:"setBarStatus",content:{status:1}})}));var E=function(){if(F.value){var n=v.user.data;null!=n&&n.realName&&null!=n&&n.idCardNo?q.orderNo?H.value=!0:f("没有订单号!"):W.value=!0}else f("请先阅读并同意《酷乐秀平台服务协议》")},G=u(),J=function(){W.value=!1,E()};return function(){return l(s,null,[l(B,null,null),R.length?l("div",{class:j.cartConfirm},[l("div",{class:j.cartConfirmBox},[l(h,{item:D,isLink:!1},null)]),l("div",{style:{marginTop:"20px"},class:[j.cartBox,j.cartConfirmBox]},[l("div",{class:j.shopBox},[R.map((function(n){return l("div",{class:[j.cartItem],style:{marginBottom:"10px"}},[l(m,{price:a(n.productPrice),desc:x(n.productAttr),title:n.productName,thumb:n.productPic,num:n.productQuantity},null)])}))]),l(y,{border:!1},{default:function(){return[l(g,{border:!1,title:"优惠券"},{value:function(){return l("span",{style:{fontSize:"0.42667rem",color:"#ff3535",fontWeight:"bold"}},["-¥ "+w.couponAmount])}}),l(g,{border:!1,title:"总额",value:"¥ "+w.totalAmount},null)]}})]),l("div",{class:j.payProtocol},[l(A,{modelValue:F.value,"onUpdate:modelValue":function(n){return F.value=n}},null),l(p,{buttonText:"结算(".concat(R.length,")"),buttonColor:"var(--van-primary)",disabled:0===R.length,onSubmit:function(){return E()}},{default:function(){return[l("div",{class:j.confirmBottom},[c("合计")," ",l("span",{class:j["price-des"]},[c("¥"),a(w.payAmount)])])]}})]),l("div",{style:{height:"var(--van-submit-bar-height)"}},null),l(I,{modelValue:W.value,"onUpdate:modelValue":function(n){return W.value=n}},{default:function(){return[l(P,{onSuccess:J},null)]}}),l(r,{show:H.value,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:function(){return[l(C,{modelValue:H.value,"onUpdate:modelValue":function(n){return H.value=n},orderInfo:q,paymentType:"goodsPay",onBackOut:function(){return H.value=!1}},null)]}})]):l(d,{buttonText:"去购物车",onClick:function(){G.push({path:"/cart"})}},null)])}}}))}}}));