import{e as t,d as s,w as e,al as o,n as l,x as d,F as r,y as i,z as a,L as n,f as c,g as u,j as _,i as m,l as p,v as h,c as g,o as f,a as y,b,an as k,u as w,s as x,ax as v,k as C,ay as j}from"./index-DNuNVpwk.js";import{_ as B}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as I}from"./s-layout.D9p6eCz-.js";import"./s-menu-tools.CEs7fo1o.js";import"./s-search-block.vue_vue_type_style_index_0_scoped_f692e81a_lang.nx0iNK_l.js";import"./uni-icons.BwI1_kKT.js";import"./s-layout.vue_vue_type_style_index_0_scoped_d5f7c468_lang.C_5j2fBR.js";import"./phone-international-input.vue_vue_type_style_index_0_scoped_a793e264_lang.CZSqjCi7.js";import"./s-search-block.DtORRFbA.js";import"./useGoods.CrGbmvFq.js";import"./phone-international-input.CCPqViBY.js";const S=B({name:"UniSwiperDot",emits:["clickItem"],props:{info:{type:Array,default:()=>[]},current:{type:Number,default:0},dotsStyles:{type:Object,default:()=>({})},mode:{type:String,default:"default"},field:{type:String,default:""}},data:()=>({dots:{width:6,height:6,bottom:10,color:"#fff",backgroundColor:"rgba(0, 0, 0, .3)",border:"1px rgba(0, 0, 0, .3) solid",selectedBackgroundColor:"#333",selectedBorder:"1px rgba(0, 0, 0, .9) solid"}}),watch:{dotsStyles(t){this.dots=Object.assign(this.dots,this.dotsStyles)},mode(t){"indexes"===t?(this.dots.width=14,this.dots.height=14):(this.dots.width=6,this.dots.height=6)}},created(){"indexes"===this.mode&&(this.dots.width=12,this.dots.height=12),this.dots=Object.assign(this.dots,this.dotsStyles)},methods:{clickItem(t){this.$emit("clickItem",t)}}},[["render",function(h,g,f,y,b,k){const w=m,x=p;return t(),s(w,{class:"uni-swiper__warp"},{default:e((()=>[o(h.$slots,"default",{},void 0,!0),"default"===f.mode?(t(),s(w,{style:l({bottom:b.dots.bottom+"px"}),class:"uni-swiper__dots-box",key:"default"},{default:e((()=>[(t(!0),d(r,null,i(f.info,((e,o)=>(t(),s(w,{onClick:t=>k.clickItem(o),style:l({width:(o===f.current?2*b.dots.width:b.dots.width)+"px",height:b.dots.width/2+"px","background-color":o!==f.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,"border-radius":"0px"}),key:o,class:"uni-swiper__dots-item uni-swiper__dots-bar"},null,8,["onClick","style"])))),128))])),_:1},8,["style"])):a("",!0),"dot"===f.mode?(t(),s(w,{style:l({bottom:b.dots.bottom+"px"}),class:"uni-swiper__dots-box",key:"dot"},{default:e((()=>[(t(!0),d(r,null,i(f.info,((e,o)=>(t(),s(w,{onClick:t=>k.clickItem(o),style:l({width:b.dots.width+"px",height:b.dots.height+"px","background-color":o!==f.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,border:o!==f.current?b.dots.border:b.dots.selectedBorder}),key:o,class:"uni-swiper__dots-item"},null,8,["onClick","style"])))),128))])),_:1},8,["style"])):a("",!0),"round"===f.mode?(t(),s(w,{style:l({bottom:b.dots.bottom+"px"}),class:"uni-swiper__dots-box",key:"round"},{default:e((()=>[(t(!0),d(r,null,i(f.info,((e,o)=>(t(),s(w,{onClick:t=>k.clickItem(o),class:n([[o===f.current&&"uni-swiper__dots-long"],"uni-swiper__dots-item"]),style:l({width:(o===f.current?3*b.dots.width:b.dots.width)+"px",height:b.dots.height+"px","background-color":o!==f.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,border:o!==f.current?b.dots.border:b.dots.selectedBorder}),key:o},null,8,["onClick","class","style"])))),128))])),_:1},8,["style"])):a("",!0),"nav"===f.mode?(t(),s(w,{key:"nav",style:l({"background-color":f.dotsStyles.backgroundColor,bottom:"0"}),class:"uni-swiper__dots-box uni-swiper__dots-nav"},{default:e((()=>[c(x,{style:l({color:f.dotsStyles.color}),class:"uni-swiper__dots-nav-item"},{default:e((()=>[u(_(f.current+1+"/"+f.info.length+" "+f.info[f.current][f.field]),1)])),_:1},8,["style"])])),_:1},8,["style"])):a("",!0),"indexes"===f.mode?(t(),s(w,{key:"indexes",style:l({bottom:b.dots.bottom+"px"}),class:"uni-swiper__dots-box"},{default:e((()=>[(t(!0),d(r,null,i(f.info,((o,d)=>(t(),s(w,{onClick:t=>k.clickItem(d),style:l({width:b.dots.width+"px",height:b.dots.height+"px",color:d===f.current?b.dots.selectedColor:b.dots.color,"background-color":d!==f.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,border:d!==f.current?b.dots.border:b.dots.selectedBorder}),key:d,class:"uni-swiper__dots-item uni-swiper__dots-indexes"},{default:e((()=>[c(x,{class:"uni-swiper__dots-indexes-text"},{default:e((()=>[u(_(d+1),1)])),_:2},1024)])),_:2},1032,["onClick","style"])))),128))])),_:1},8,["style"])):a("",!0)])),_:3})}],["__scopeId","data-v-60e24dc5"]]),$=B({__name:"log",setup(o){const l=h({info:[],tracks:[]}),n=g((()=>{let t=[];return l.info.items&&l.info.items.forEach((s=>{t.push({image:s.picUrl})})),t}));return f((t=>{!async function(t){const{data:s}=await k.getOrderExpressTrackList(t);l.tracks=s}(t.id),async function(t){const{data:s}=await k.getOrder(t);l.info=s}(t.id)})),(o,h)=>{const g=C,f=m,k=j,B=v,$=y(b("uni-swiper-dot"),S),O=p,F=y(b("s-layout"),I);return t(),s(F,{title:o.$t("order.logistics_tracking")},{default:e((()=>[c(f,{class:"log-wrap"},{default:e((()=>[n.value.length>0?(t(),s(f,{key:0,class:"log-card ss-flex ss-m-20 ss-r-10"},{default:e((()=>[c($,{info:n.value,current:l.current,mode:"round"},{default:e((()=>[c(B,{class:"swiper-box"},{default:e((()=>[(t(!0),d(r,null,i(n.value,((o,l)=>(t(),s(k,{key:l},{default:e((()=>[c(f,{class:"image-container",style:{width:"100%",height:"100%"}},{default:e((()=>[c(f,{style:{width:"100%",height:"106rpx","padding-top":"15%"}},{default:e((()=>[c(g,{class:"log-card-img",mode:"aspectFill",src:w(x).$url.static(o.image),style:{width:"100%",height:"100%","object-fit":"cover"}},null,8,["src"])])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["info","current"]),c(f,{class:"log-card-msg"},{default:e((()=>[c(f,{class:"ss-m-b-16 TrackingNumber"},{default:e((()=>[u(_(o.$t("order.tracking_number")+":"+l.info.logisticsNo),1)])),_:1}),c(f,{class:"ss-m-b-16"},{default:e((()=>[u(_(o.$t("order.courier_company")+":"+l.info.logisticsName),1)])),_:1}),c(f,null,{default:e((()=>[u(_(o.$t("order.shipping_time")+":"+w(x).$helper.timeFormat(l.info.deliveryTime,"yyyy-mm-dd hh:MM")),1)])),_:1})])),_:1})])),_:1})):a("",!0),c(f,{class:"log-content ss-m-20 ss-r-10"},{default:e((()=>[(t(!0),d(r,null,i(l.tracks,((o,d)=>(t(),s(f,{class:"log-content-box ss-flex",key:o.title},{default:e((()=>[c(f,{class:"log-icon ss-flex-col ss-col-center ss-m-r-20"},{default:e((()=>[c(O,{class:"cicon-title"}),l.tracks.length-1!==d?(t(),s(f,{key:0,class:"line"})):a("",!0)])),_:2},1024),c(f,{class:"log-content-msg"},{default:e((()=>[c(f,{class:"log-msg-desc ss-m-b-16"},{default:e((()=>[u(_(o.content),1)])),_:2},1024),c(f,{class:"log-msg-date ss-m-b-40"},{default:e((()=>[u(_(w(x).$helper.timeFormat(o.time,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1},8,["title"])}}},[["__scopeId","data-v-9c98eeb8"]]);export{$ as default};