You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.7 KiB
1 lines
3.7 KiB
import{d as e,r as s,o as a,c as t,w as l,b as o,B as r,z as u,A as i,u as c,Q as n,a3 as p,R as d,f as x,j as f,ap as v,E as m,g as _,i as b,G as h,S as y,aj as g}from"./index-ed377420.js";import{_ as k,a as j}from"./u-steps.5021fd1d.js";import{_ as w}from"./u-popup.c17b5064.js";import{c as C}from"./order.6f990fce.js";import{_ as I}from"./_plugin-vue_export-helper.1b428a4d.js";const T=I(e({__name:"logistics-tracking",setup(e,{expose:I}){const T=s(!1),z=s([]),A=s({}),B=async e=>{let s=await C(e);A.value=s.data},Q=s(0),S=s(0),V=()=>{T.value=!1};return I({packageList:z,open:e=>{Q.value=e.id,B(e),T.value=!0}}),(e,s)=>{const C=f,I=v,E=m,G=_(b("u-steps-item"),k),L=_(b("u-steps"),j),O=_(b("u-popup"),w);return a(),t(C,{onTouchmove:s[3]||(s[3]=r((()=>{}),["prevent","stop"]))},{default:l((()=>[o(O,{show:T.value,mode:"bottom",round:10,onClose:V,closeable:!0,safeAreaInsetBottom:!0,onTouchmove:s[2]||(s[2]=r((()=>{}),["prevent","stop"]))},{default:l((()=>[Object.keys(A.value).length?(a(),t(C,{key:0,class:"h-[70vh] px-[24rpx] bg-page pb-[20rpx]",onTouchmove:s[1]||(s[1]=r((()=>{}),["prevent","stop"]))},{default:l((()=>[o(C,{class:"font-500 text-center text-[32rpx] leading-[104rpx] box-border h-[104rpx]"},{default:l((()=>[u(i(c(h)("detailedInformation")),1)])),_:1}),o(I,{"scroll-x":!0,"scroll-with-animation":"","scroll-into-view":"id"+(S.value>3?S.value-2:0)},{default:l((()=>[z.value.length>1?(a(),t(C,{key:0,class:"flex py-[22rpx] whitespace-nowrap"},{default:l((()=>[(a(!0),n(d,null,p(z.value,((e,s)=>(a(),t(C,{id:"id"+s,class:y(["text-[26rpx] leading-[36rpx] mr-[30rpx] text-[#626779]",{"!text-primary class-select":e.id==Q.value}]),key:s,onClick:a=>((e,s)=>{Q.value=e.id,S.value=s;let a={id:e.id,mobile:e.mobile};B(a)})(e,s)},{default:l((()=>[u(i(e.name),1)])),_:2},1032,["id","class","onClick"])))),128))])),_:1})):x("v-if",!0)])),_:1},8,["scroll-into-view"]),o(C,{class:"text-[28rpx] mt-[20rpx]"},{default:l((()=>[o(C,{class:"flex justify-between mb-[20rpx]"},{default:l((()=>["none_express"==A.value.sub_delivery_type?(a(),t(E,{key:0,class:"mr-[20rpx]"},{default:l((()=>[u("无需物流")])),_:1})):(a(),n(d,{key:1},[o(E,{class:"mr-[20rpx]"},{default:l((()=>[u(i(A.value.company.company_name),1)])),_:1}),o(C,null,{default:l((()=>[o(E,{class:"mr-[14rpx]"},{default:l((()=>[u(i(A.value.express_number),1)])),_:1}),o(E,{onClick:s[0]||(s[0]=e=>c(g)(A.value.express_number))},{default:l((()=>[u(i(c(h)("copy")),1)])),_:1})])),_:1})],64))])),_:1})])),_:1}),"express"==A.value.sub_delivery_type?(a(),t(C,{key:0,class:"parcel",style:{height:"53vh"}},{default:l((()=>[0==A.value.traces.success?(a(),t(C,{key:0,class:"h-[56vh] flex flex-col items-center justify-center"},{default:l((()=>[o(E,{class:"nc-iconfont nc-icon-daishouhuoV6xx text-[180rpx] text-[#bfbfbf]"}),o(C,{class:"text-[28rpx] text-[#bfbfbf] leading-8"},{default:l((()=>[u("暂无物流信息~~")])),_:1})])),_:1})):(a(),t(I,{key:1,"scroll-y":!0,style:{height:"53vh",padding:"20rpx","box-sizing":"border-box"},class:"bg-white rounded-md"},{default:l((()=>[o(L,{current:0,dot:"",direction:"column",activeColor:"var(--primary-color)"},{default:l((()=>[(a(!0),n(d,null,p(A.value.traces.list,((e,s)=>(a(),t(G,{key:s+"id",title:e.remark,desc:e.datetime},null,8,["title","desc"])))),128))])),_:1})])),_:1}))])),_:1})):"none_express"==A.value.sub_delivery_type?(a(),t(C,{key:1,style:{height:"53vh"}},{default:l((()=>[o(C,{class:"h-[56vh] flex-col flex items-center justify-center"},{default:l((()=>[o(E,{class:"nc-iconfont nc-icon-daishouhuoV6xx text-[180rpx] text-[#bfbfbf]"}),o(C,{class:"text-[28rpx] text-[#bfbfbf] leading-8"},{default:l((()=>[u("无需物流~~")])),_:1})])),_:1})])),_:1})):x("v-if",!0)])),_:1})):x("v-if",!0)])),_:1},8,["show"])])),_:1})}}}),[["__scopeId","data-v-c7584293"]]);export{T as l};
|
|
|