import{O as f}from"./index.00e2f453.js";import{d as m,aQ as p,v as y,k as e,a2 as o,l as s,F as d,B as g}from"./index.879f7421.js";import{C as l}from"./index.9a3a3b84.js";import{O as B}from"./index.4f243ca1.js";import{C as v}from"./index.4aec72fa.js";import{I as r}from"./index.c463dbd0.js";import{T as u}from"./index.30499db4.js";const F="_cartConfirm_2ua18_1",k="_cartConfirmBox_2ua18_9",I="_cartItem_2ua18_15",N="_mlr13_2ua18_24",h="_paymentContainer_2ua18_28",P="_needPrice_2ua18_34",b="_allPrice_2ua18_44",j="_cellItem_2ua18_52",x="_img_2ua18_55",A="_cellPrice_2ua18_63",D="_goodsContent_2ua18_69",E="_goodsNum_2ua18_75";var n={cartConfirm:F,cartConfirmBox:k,cartItem:I,mlr13:N,paymentContainer:h,needPrice:P,allPrice:b,cellItem:j,img:x,cellPrice:A,goodsContent:D,goodsNum:E};const w="_cellEntry_13jw9_1",O="_cell_13jw9_1",L="_userName_13jw9_18",T="_phone_13jw9_23",$="_addressInfo_13jw9_28",z="_emtry_13jw9_32";var a={cellEntry:w,cell:O,userName:L,phone:T,addressInfo:$,emtry:z},i="./assets/icon-address.135cd83f.png",S=m({name:"cart-address",props:{item:{type:Object,default:()=>({})},isLink:{type:Boolean,default:!0},setAddress:{type:Function,default:t=>{}}},setup(t){const _=p(),C=y(()=>[t.item.province,t.item.city,t.item.region,t.item.detailAddress].join("")),c=()=>{!t.isLink||_.push("/")};return()=>e(d,null,[t.item&&t.item.phoneNumber?e(l,{class:a.cell,"is-link":t.isLink,onClick:()=>c()},{icon:()=>e(o,{name:i,size:19},null),title:()=>e("div",null,[e("span",{class:a.userName},[t.item.name]),e("span",{class:a.phone},[t.item&&t.item.phoneNumber&&t.item.phoneNumber.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2")])]),label:()=>e("span",{class:a.addressInfo},[C.value])}):e(l,{class:a.cell,"is-link":t.isLink,onClick:()=>c()},{icon:()=>e(o,{name:i,size:19},null),title:()=>e("div",{class:a.emtry},[s("\u53BB\u586B\u5199\u6536\u8D27\u5730\u5740")])})])}}),K=m({name:"order-detail",setup(){const t=()=>{};return()=>e(d,null,[e(f,null,null),e("div",{class:n.cartConfirm},[e("div",{class:n.cartConfirmBox},[e(S,null,null)]),e(v,{style:{margin:0}},{default:()=>[e(l,{class:n.cellItem,center:!0},{icon:()=>e(r,{class:n.img,src:"https://daya.ks3-cn-beijing.ksyuncs.com/12/1670231208704.png"},null),title:()=>e("div",{class:n.goodsContent},[e("h2",null,[s("\u957F\u7B1B\u6807\u51C6\u914D\u7F6E")]),e(u,{type:"primary"},{default:()=>[s("\u54C1\u724C\u578B\u53F7")]}),e("p",{class:n.goodsNum},[s("x 1")])]),value:()=>e("span",{class:n.cellPrice},[s("1212")])}),e(l,{class:n.cellItem,center:!0},{icon:()=>e(r,{class:n.img,src:"https://daya.ks3-cn-beijing.ksyuncs.com/12/1670231208704.png"},null),title:()=>e("div",{class:n.goodsContent},[e("h2",null,[s("\u957F\u7B1B\u6807\u51C6\u914D\u7F6E\u957F\u7B1B\u6807\u51C6\u914D\u7F6E")]),e(u,{type:"primary"},{default:()=>[s("\u54C1\u724C\u578B\u53F7")]}),e("p",{class:n.goodsNum},[s("x 1")])]),value:()=>e("span",{class:n.cellPrice},[s("1212")])})]})]),e(B,{position:"bottom",background:"white"},{default:()=>[e("div",{class:n.paymentContainer},[e("div",{class:n.payemntPrice},[e("p",{class:n.needPrice},[s("\u5171\u9700\u652F\u4ED8\uFF1A"),e("span",null,[s("\xA53,860.00")])])]),e("div",{class:n.paymentBtn},[e(g,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:t},{default:()=>[s("\u7ACB\u5373\u8D2D\u4E70")]})])])]})])}});export{K as default};
