index-legacy.fc9e1c61.js 4.6 KB

12
  1. System.register(["./index-legacy.fba2875c.js","./index-legacy.d92f7da7.js","./index-legacy.78361179.js","./index-legacy.aa1e9cdc.js","./index-legacy.7dcec7b3.js","./index-legacy.f231f1c5.js","./index-legacy.fc62badd.js","./cart-legacy.df78b0a7.js","./index.module-legacy.2b6ca4e3.js","./index-legacy.905e666f.js","./index-legacy.b554edea.js","./index-legacy.5347388e.js","./index-legacy.2049c355.js","./index-legacy.8ed66537.js","./index-legacy.45490234.js","./index-legacy.32d1c54d.js","./icon_checkbox_default-legacy.e33240bc.js","./icon_checkbox-tenant-legacy.2501219f.js","./index-legacy.e7460ea1.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.23cbc114.js","./hooks-legacy.148eb332.js","./index-legacy.a8eec4ea.js","./index-legacy.fc77fe4f.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js","./index-legacy.21d121b2.js"],(function(e){"use strict";var n,o,t,i,u,c,l,a,r,d,s,f,v,m,g,y,p,x,b,j,h,A,I,C,P;return{setters:[function(e){n=e.d,o=e.S,t=e.Q,i=e.a2,u=e.P,c=e.j,l=e.by,a=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){I=e.P},function(e){C=e.C},function(e){P=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,B,S,k,N,V,T,O,U,_,z,L,M,Q=(null===(e=x.orderInfo)||void 0===e?void 0:e.orderItemList)||[],R={totalAmount:(null===(n=x.orderInfo)||void 0===n?void 0:n.totalAmount)||0,payAmount:(null===(B=x.orderInfo)||void 0===B?void 0:B.payAmount)||0,freightAmount:(null===(S=x.orderInfo)||void 0===S?void 0:S.freightAmount)||0,couponAmount:null===(k=x.orderInfo)||void 0===k?void 0:k.couponAmount};o(0);var w={city:null===(N=x.orderInfo)||void 0===N?void 0:N.receiverCity,detailAddress:null===(V=x.orderInfo)||void 0===V?void 0:V.receiverDetailAddress,name:null===(T=x.orderInfo)||void 0===T?void 0:T.receiverName,phoneNumber:null===(O=x.orderInfo)||void 0===O?void 0:O.receiverPhone,postCode:null===(U=x.orderInfo)||void 0===U?void 0:U.receiverPostCode,province:null===(_=x.orderInfo)||void 0===_?void 0:_.receiverProvince,region:null===(z=x.orderInfo)||void 0===z?void 0:z.receiverRegion},D=o(!1),F=o(!1),H=o(!1),W=t({orderNo:(null===(L=x.orderInfo)||void 0===L?void 0:L.orderSn)||"",actualPrice:(null===(M=x.orderInfo)||void 0===M?void 0:M.payAmount)||0});i(H,(function(e,n){H.value?postMessage({api:"setBarStatus",content:{status:0}}):postMessage({api:"setBarStatus",content:{status:1}})}));var q=function(){if(D.value){var e=v.user.data;null!=e&&e.realName&&null!=e&&e.idCardNo?W.orderNo?F.value=!0:f("没有订单号!"):H.value=!0}else f("请先阅读并同意《酷乐秀平台服务协议》")},E=u(),G=function(){H.value=!1,q()};return function(){return c(s,null,[Q.length?c("div",{class:j.cartConfirm},[c("div",{class:j.cartConfirmBox},[c(h,{item:w,isLink:!1},null)]),c("div",{style:{marginTop:"20px"},class:[j.cartBox,j.cartConfirmBox]},[c("div",{class:j.shopBox},[Q.map((function(e){return c("div",{class:[j.cartItem],style:{marginBottom:"10px"}},[c(m,{price:l(e.productPrice),desc:b(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"}},["-¥ "+R.couponAmount])}}),c(g,{border:!1,title:"总额",value:"¥ "+R.totalAmount},null)]}})]),c("div",{class:j.payProtocol},[c(A,{modelValue:D.value,"onUpdate:modelValue":function(e){return D.value=e}},null),c(p,{buttonText:"结算(".concat(Q.length,")"),buttonColor:"var(--van-primary)",disabled:0===Q.length,onSubmit:function(){return q()}},{default:function(){return[c("div",{class:j.confirmBottom},[a("合计")," ",c("span",{class:j["price-des"]},[a("¥"),l(R.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(P,{onSuccess:G},null)]}}),c(r,{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:W,paymentType:"goodsPay",onBackOut:function(){return F.value=!1}},null)]}})]):c(d,{buttonText:"去购物车",onClick:function(){E.push({path:"/cart"})}},null)])}}}))}}}));