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.
2 lines
3.4 KiB
2 lines
3.4 KiB
11 months ago
|
import{_ as s}from"./u-tabs.ea263673.js";import{o as e,c as a,w as t,e as r,i as l,v as o,x as i,a as c,b as n,d,F as u,f as p,t as f,m as _,y as m,l as x,k as g,g as b}from"./index-4ddb689d.js";import{r as h}from"./uni-app.es.24af5d4f.js";import{a as T}from"./order.42b61037.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const k=y({data:()=>({isLoading:!0,curTab:0,orderId:null,express:{}}),computed:{tabs(){if(this.express&&this.express.length){const s=this.express.map(((s,e)=>({name:`包裹${e+1}`})));return console.log("test",s),this.express.map(((s,e)=>({name:`包裹${e+1}`})))}return[]}},onLoad({orderId:s}){this.orderId=s,this.getExpress()},methods:{getExpress(){const s=this;s.isLoading=!0,T(s.orderId).then((e=>{s.express=e.data.express,s.isLoading=!1}))},handleCopy(s){const e=this;uni.setClipboardData({data:s,success:()=>e.$toast("复制成功"),fail:({errMsg:s})=>e.$toast("复制失败 "+s)})},onChangeTab(s){this.curTab=s}}},[["render",function(T,y,k,v,C,j){const I=h(m("u-tabs"),s),L=b,$=l,w=x;return!C.isLoading&&C.express.length?(e(),a($,{key:0,class:"container"},{default:t((()=>[j.tabs.length>1?(e(),a(I,{key:0,list:j.tabs,isScroll:!0,current:C.curTab,"active-color":T.appTheme.mainBg,duration:.2,"bar-width":"60",onChange:j.onChangeTab},null,8,["list","current","active-color","duration","onChange"])):r("",!0),o(c($,{class:"deliver-goods-list i-card clearfix"},{default:t((()=>[(e(!0),n(u,null,d(C.express[C.curTab].goods,((s,r)=>(e(),a($,{class:"goods-item",key:r},{default:t((()=>[c(L,{class:"goods-img",src:s.goods.goods_image,alt:"商品图片"},null,8,["src"]),c($,{class:"title"},{default:t((()=>[p("共"+f(s.delivery_num)+"件",1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},512),[[i,j.tabs.length>1]]),c($,{class:"express i-card"},{default:t((()=>[c($,{class:"info-item"},{default:t((()=>[c($,{class:"item-lable"},{default:t((()=>[p("物流公司:")])),_:1}),c($,{class:"item-content"},{default:t((()=>[20==C.express[C.curTab].delivery_method?(e(),a(w,{key:0},{default:t((()=>[p("无需物流")])),_:1})):(e(),a(w,{key:1},{default:t((()=>[p(f(C.express[C.curTab].express?C.express[C.curTab].express.express_name:"--"),1)])),_:1}))])),_:1})])),_:1}),c($,{class:"info-item"},{default:t((()=>[c($,{class:"item-lable"},{default:t((()=>[p("物流单号:")])),_:1}),c($,{class:"item-content"},{default:t((()=>[c(w,null,{default:t((()=>[p(f(C.express[C.curTab].express_no?C.express[C.curTab].express_no:"--"),1)])),_:1}),o(c($,{class:"act-copy",onClick:y[0]||(y[0]=_((s=>j.handleCopy(C.express[C.curTab].express_no)),["stop"]))},{default:t((()=>[c(w,null,{default:t((()=>[p("复制")])),_:1})])),_:1},512),[[i,C.express[C.curTab].express_no]])])),_:1})])),_:1})])),_:1}),C.express[C.curTab].traces&&C.express[C.curTab].traces.length?(e(),a($,{key:1,class:"logis-detail"},{default:t((()=>[(e(!0),n(u,null,d(C.express[C.curTab].traces,((s,r)=>(e(),a($,{class:g(["logis-item",{first:0===r}]),key:r},{default:t((()=>[c($,{class:"logis-item-content"},{default:t((()=>[c($,{class:"logis-item-content__describe"},{default:t((()=>[c(w,{class:"f-26"},{default:t((()=>[p(f(s.context),1)])),_:2},1024)])),_:2},1024),c($,{class:"logis-item-content__time"},{default:t((()=>[c(w,{class:"f-22"},{default:t((()=>[p(f(s.time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class"])))),128))])),_:1})):r("",!0)])),_:1})):r("",!0)}],["__scopeId","data-v-390f9c2a"]]);export{k as default};
|