pages-order-express-log.5350ab2a.js 6.2 KB

1
  1. import{f as t,g as s,w as e,ah as o,B as l,l as d,F as r,r as i,i as a,E as c,k as n,u,v as h,j as m,I as f,z as _,c as g,o as p,aj as y,m as b,x as k,s as w,at as x,n as C,y as v,au as j}from"./index-ba48620e.js";import{_ as B}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as I}from"./s-layout.04b95866.js";import"./phone-international-input.dd3ca29e.js";import"./useGoods.edb8879f.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(_,g,p,y,b,k){const w=m,x=f;return t(),s(w,{class:"uni-swiper__warp"},{default:e((()=>[o(_.$slots,"default",{},void 0,!0),"default"===p.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(p.info,((e,o)=>(t(),s(w,{onClick:t=>k.clickItem(o),style:l({width:(o===p.current?2*b.dots.width:b.dots.width)+"px",height:b.dots.width/2+"px","background-color":o!==p.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"===p.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(p.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!==p.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,border:o!==p.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"===p.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(p.info,((e,o)=>(t(),s(w,{onClick:t=>k.clickItem(o),class:c([[o===p.current&&"uni-swiper__dots-long"],"uni-swiper__dots-item"]),style:l({width:(o===p.current?3*b.dots.width:b.dots.width)+"px",height:b.dots.height+"px","background-color":o!==p.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,border:o!==p.current?b.dots.border:b.dots.selectedBorder}),key:o},null,8,["onClick","class","style"])))),128))])),_:1},8,["style"])):a("",!0),"nav"===p.mode?(t(),s(w,{key:"nav",style:l({"background-color":p.dotsStyles.backgroundColor,bottom:"0"}),class:"uni-swiper__dots-box uni-swiper__dots-nav"},{default:e((()=>[n(x,{style:l({color:p.dotsStyles.color}),class:"uni-swiper__dots-nav-item"},{default:e((()=>[u(h(p.current+1+"/"+p.info.length+" "+p.info[p.current][p.field]),1)])),_:1},8,["style"])])),_:1},8,["style"])):a("",!0),"indexes"===p.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(p.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===p.current?b.dots.selectedColor:b.dots.color,"background-color":d!==p.current?b.dots.backgroundColor:b.dots.selectedBackgroundColor,border:d!==p.current?b.dots.border:b.dots.selectedBorder}),key:d,class:"uni-swiper__dots-item uni-swiper__dots-indexes"},{default:e((()=>[n(x,{class:"uni-swiper__dots-indexes-text"},{default:e((()=>[u(h(d+1),1)])),_:2},1024)])),_:2},1032,["onClick","style"])))),128))])),_:1},8,["style"])):a("",!0)])),_:3})}],["__scopeId","data-v-77e8f2a6"]]),O=B({__name:"log",setup(o){const l=_({info:[],tracks:[]}),c=g((()=>{let t=[];return l.info.items&&l.info.items.forEach((s=>{t.push({image:s.picUrl})})),t}));return p((t=>{!async function(t){const{data:s}=await y.getOrderExpressTrackList(t);l.tracks=s}(t.id),async function(t){const{data:s}=await y.getOrder(t);l.info=s}(t.id)})),(o,_)=>{const g=v,p=m,y=j,B=x,O=b(C("uni-swiper-dot"),S),$=f,F=b(C("s-layout"),I);return t(),s(F,{title:"物流追踪"},{default:e((()=>[n(p,{class:"log-wrap"},{default:e((()=>[c.value.length>0?(t(),s(p,{key:0,class:"log-card ss-flex ss-m-20 ss-r-10"},{default:e((()=>[n(O,{info:c.value,current:l.current,mode:"round"},{default:e((()=>[n(B,{class:"swiper-box"},{default:e((()=>[(t(!0),d(r,null,i(c.value,((o,l)=>(t(),s(y,{key:l},{default:e((()=>[n(p,{class:"image-container",style:{width:"100%",height:"100%"}},{default:e((()=>[n(p,{style:{width:"100%",height:"106rpx","padding-top":"15%"}},{default:e((()=>[n(g,{class:"log-card-img",mode:"aspectFill",src:k(w).$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"]),n(p,{class:"log-card-msg"},{default:e((()=>[n(p,{class:"ss-m-b-16 TrackingNumber"},{default:e((()=>[u("快递单号:"+h(l.info.logisticsNo),1)])),_:1}),n(p,{class:"ss-m-b-16"},{default:e((()=>[u("快递公司:"+h(l.info.logisticsName),1)])),_:1}),n(p,null,{default:e((()=>[u(" 发货时间:"+h(k(w).$helper.timeFormat(l.info.deliveryTime,"yyyy-mm-dd hh:MM")),1)])),_:1})])),_:1})])),_:1})):a("",!0),n(p,{class:"log-content ss-m-20 ss-r-10"},{default:e((()=>[(t(!0),d(r,null,i(l.tracks,((o,d)=>(t(),s(p,{class:"log-content-box ss-flex",key:o.title},{default:e((()=>[n(p,{class:"log-icon ss-flex-col ss-col-center ss-m-r-20"},{default:e((()=>[n($,{class:"cicon-title"}),l.tracks.length-1!==d?(t(),s(p,{key:0,class:"line"})):a("",!0)])),_:2},1024),n(p,{class:"log-content-msg"},{default:e((()=>[n(p,{class:"log-msg-desc ss-m-b-16"},{default:e((()=>[u(h(o.content),1)])),_:2},1024),n(p,{class:"log-msg-date ss-m-b-40"},{default:e((()=>[u(h(k(w).$helper.timeFormat(o.time,"yyyy-mm-dd hh:MM:ss")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-8029bf57"]]);export{O as default};