import{_ as e}from"./el-navbar.DVIyjZEN.js";import{b as l,d as t,e as s,f as a,w as o,g as n,z as i,h as c,F as u,i as r,x as d,v as _,A as p,y as m,p as f,r as v,o as y,Y as g,l as w,K as C,j as b}from"./index-DVkgSHpn.js";import{_ as x,b as h,a as k}from"./el-layout._U-vZTft.js";import{_ as j}from"./el-loading.BSG4bmSC.js";import"./el-loading-icon.Bh3RKCou.js";const S=x({name:"UniSteps",props:{direction:{type:String,default:"row"},activeColor:{type:String,default:"#2979FF"},deactiveColor:{type:String,default:"#B7BDC6"},active:{type:Number,default:0},activeIcon:{type:String,default:"checkbox-filled"},options:{type:Array,default:()=>[]}},data:()=>({})},[["render",function(e,v,y,g,w,C){const b=m,x=f,k=l(t("uni-icons"),h);return s(),a(x,{class:"uni-steps"},{default:o((()=>[n(x,{class:i(["column"===y.direction?"uni-steps__column":"uni-steps__row"])},{default:o((()=>[n(x,{class:i(["column"===y.direction?"uni-steps__column-text-container":"uni-steps__row-text-container"])},{default:o((()=>[(s(!0),c(u,null,r(y.options,((e,l)=>(s(),a(x,{key:l,class:i(["column"===y.direction?"uni-steps__column-text":"uni-steps__row-text"])},{default:o((()=>[n(b,{style:d({color:l===y.active?y.activeColor:y.deactiveColor}),class:i(["column"===y.direction?"uni-steps__column-title":"uni-steps__row-title"])},{default:o((()=>[_(p(e.title),1)])),_:2},1032,["style","class"]),n(b,{style:d({color:y.deactiveColor}),class:i(["column"===y.direction?"uni-steps__column-desc":"uni-steps__row-desc"])},{default:o((()=>[_(p(e.desc),1)])),_:2},1032,["style","class"])])),_:2},1032,["class"])))),128))])),_:1},8,["class"]),n(x,{class:i(["column"===y.direction?"uni-steps__column-container":"uni-steps__row-container"])},{default:o((()=>[(s(!0),c(u,null,r(y.options,((e,l)=>(s(),a(x,{class:i(["column"===y.direction?"uni-steps__column-line-item":"uni-steps__row-line-item"]),key:l},{default:o((()=>[n(x,{class:i(["column"===y.direction?"uni-steps__column-line":"uni-steps__row-line","column"===y.direction?"uni-steps__column-line--before":"uni-steps__row-line--before"]),style:d({backgroundColor:l<=y.active&&0!==l?y.activeColor:0===l?"transparent":y.deactiveColor})},null,8,["class","style"]),l===y.active?(s(),a(x,{key:0,class:i(["column"===y.direction?"uni-steps__column-check":"uni-steps__row-check"])},{default:o((()=>[n(k,{color:y.activeColor,type:y.activeIcon,size:"14"},null,8,["color","type"])])),_:1},8,["class"])):(s(),a(x,{key:1,class:i(["column"===y.direction?"uni-steps__column-circle":"uni-steps__row-circle"]),style:d({backgroundColor:l<y.active?y.activeColor:y.deactiveColor})},null,8,["class","style"])),n(x,{class:i(["column"===y.direction?"uni-steps__column-line":"uni-steps__row-line","column"===y.direction?"uni-steps__column-line--after":"uni-steps__row-line--after"]),style:d({backgroundColor:l<y.active&&l!==y.options.length-1?y.activeColor:l===y.options.length-1?"transparent":y.deactiveColor})},null,8,["class","style"])])),_:2},1032,["class"])))),128))])),_:1},8,["class"])])),_:1},8,["class"])])),_:1})}],["__scopeId","data-v-633474a6"]]),I=x({__name:"express",setup(i){const c=v(0),u=v(!0),r=v();return y((e=>{uni.$http.get("order.index/express",{id:e.order_id||0}).then((e=>{if(u.value=!1,e.code){if(r.value=e.data,e.data.list.length>0){let l=[];c.value=e.data.list.length-1,e.data.list.forEach(((e,t)=>{l.push({title:e.content,desc:e.timestamp})})),r.value.list=l}}else g("pages/public/empty")}))})),(i,d)=>{const m=l(t("el-navbar"),e),v=f,y=l(t("uni-steps"),S),g=l(t("el-loading"),j),x=l(t("el-layout"),k);return s(),a(x,null,{default:o((()=>[n(m,{placeholder:!0,fixed:!0,border:!0,title:"物流信息"}),w(C)(r.value)?b("",!0):(s(),a(v,{key:0,class:"wrapper"},{default:o((()=>[n(v,{class:"order"},{default:o((()=>[n(v,{class:"list"},{default:o((()=>[n(v,null,{default:o((()=>[_("物流公司")])),_:1}),n(v,null,{default:o((()=>[_(p(r.value.expName),1)])),_:1})])),_:1}),n(v,{class:"list"},{default:o((()=>[n(v,null,{default:o((()=>[_("发货时间")])),_:1}),n(v,null,{default:o((()=>[_(p(r.value.takeTime||"-"),1)])),_:1})])),_:1}),n(v,{class:"list"},{default:o((()=>[n(v,null,{default:o((()=>[_("物流单号")])),_:1}),n(v,null,{default:o((()=>[_(p(r.value.number||"-"),1)])),_:1})])),_:1})])),_:1}),n(v,{class:"express"},{default:o((()=>[n(y,{options:r.value.list,direction:"column",active:c.value},null,8,["options","active"])])),_:1})])),_:1})),n(g,{modelValue:u.value,"onUpdate:modelValue":d[0]||(d[0]=e=>u.value=e)},null,8,["modelValue"])])),_:1})}}},[["__scopeId","data-v-76df6262"]]);export{I as default};
//# sourceMappingURL=pages-order-express.E6PDTewc.js.map
