OrderMobileIndex-9fa3accc.js 28 KB

1
  1. import{an as Te,ai as vt,ao as Ie,Y as I,r as x,e as at,q as ft,aj as j,ap as Pt,aq as Ht,l as ze,ar as A,as as Be,a as z,at as bn,d as N,f as g,au as wn,av as Re,aw as _n,T as xn,ax as Cn,ay as kn,z as Oe,$ as Sn,af as $n,ac as Tn,o as Z,x as In,w as Ae,K as zn,g as Ee,c as G,a0 as J,_ as Bn,__tla as Rn}from"./index-f7cc944f.js";import{_ as On,__tla as An}from"./ContentWrap-245d9641.js";import En,{__tla as Mn}from"./OrderBaseInfo-4fc352be.js";import Ln,{__tla as Dn}from"./OrderProduct-fb828639.js";import Yn,{__tla as Xn}from"./OrderComment-6e1dfb62.js";import jn,{__tla as Pn}from"./OrderService-2d2ca17b.js";import Hn,{__tla as Wn}from"./OrderAfterSale-3b386e93.js";import Fn,{__tla as Nn}from"./OrderLogistics-d95aeb36.js";import Zn,{__tla as Vn}from"./OrderPay-3cbca064.js";import qn,{__tla as Un}from"./OrderLogs-acb7c475.js";import{__tla as Kn}from"./el-card-ce8bdc39.js";import{__tla as Gn}from"./SPuUploadImg-2701c96c.js";import{__tla as Jn}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-0e9f1f59.js";import{__tla as Qn}from"./index-3edc08b6.js";import{__tla as ta}from"./el-image-viewer-fa28466e.js";import{__tla as ea}from"./useMessage-05f5efb9.js";import{__tla as na}from"./index-d30c40d2.js";import{__tla as aa}from"./formatTime-d04e6fef.js";import{__tla as ia}from"./dict-53c02d35.js";import{__tla as la}from"./el-descriptions-item-949613c5.js";import{__tla as oa}from"./DictTag-f6da0857.js";import"./color-6e929987.js";import{__tla as ra}from"./index-286cc65c.js";import{__tla as sa}from"./el-timeline-item-a9444d35.js";let Me,ca=Promise.all([(()=>{try{return Rn}catch{}})(),(()=>{try{return An}catch{}})(),(()=>{try{return Mn}catch{}})(),(()=>{try{return Dn}catch{}})(),(()=>{try{return Xn}catch{}})(),(()=>{try{return Pn}catch{}})(),(()=>{try{return Wn}catch{}})(),(()=>{try{return Nn}catch{}})(),(()=>{try{return Vn}catch{}})(),(()=>{try{return Un}catch{}})(),(()=>{try{return Kn}catch{}})(),(()=>{try{return Gn}catch{}})(),(()=>{try{return Jn}catch{}})(),(()=>{try{return Qn}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return sa}catch{}})()]).then(async()=>{function Le(){}const Ct=Object.assign,kt=typeof window<"u",St=t=>t!==null&&typeof t=="object",Q=t=>t!=null,$t=t=>typeof t=="function",Wt=t=>typeof t=="number"||/^\d+(\.\d+)?$/.test(t);function Ft(t,e){const a=e.split(".");let i=t;return a.forEach(r=>{var n;i=St(i)&&(n=i[r])!=null?n:""}),i}function Nt(t,e,a){return e.reduce((i,r)=>(a&&t[r]===void 0||(i[r]=t[r]),i),{})}const L=[Number,String],X={type:Boolean,default:!0},Tt=t=>({type:t,required:!0}),P=t=>({type:L,default:t}),pt=t=>({type:String,default:t});var it=typeof window<"u";function rt(t){return it?requestAnimationFrame(t):-1}function Zt(t){it&&cancelAnimationFrame(t)}function st(t){rt(()=>rt(t))}var Vt=(t,e)=>({top:0,left:0,right:t,bottom:e,width:t,height:e}),tt=t=>{const e=z(t);if(e===window){const a=e.innerWidth,i=e.innerHeight;return Vt(a,i)}return e!=null&&e.getBoundingClientRect?e.getBoundingClientRect():Vt(0,0)};function qt(t){const e=Te(t,null);if(e){const a=vt(),{link:i,unlink:r,internalChildren:n}=e;return i(a),Ie(()=>r(a)),{parent:e,index:I(()=>n.indexOf(a))}}return{parent:null,index:x(-1)}}var ht,It,Ut=(t,e)=>{const a=t.indexOf(e);return a===-1?t.findIndex(i=>e.key!==void 0&&e.key!==null&&i.type===e.type&&i.key===e.key):a};function De(t,e,a){const i=function(n){const s=[],l=o=>{Array.isArray(o)&&o.forEach(m=>{var d;bn(m)&&(s.push(m),(d=m.component)!=null&&d.subTree&&(s.push(m.component.subTree),l(m.component.subTree.children)),m.children&&l(m.children))})};return l(n),s}(t.subTree.children);a.sort((n,s)=>Ut(i,n.vnode)-Ut(i,s.vnode));const r=a.map(n=>n.proxy);e.sort((n,s)=>r.indexOf(n)-r.indexOf(s))}function Kt(t){const e=at([]),a=at([]),i=vt();return{children:e,linkChildren:r=>{Be(t,Object.assign({link:n=>{n.proxy&&(a.push(n),e.push(n.proxy),De(i,e,a))},unlink:n=>{const s=a.indexOf(n);e.splice(s,1),a.splice(s,1)},children:e,internalChildren:a},r))}}}function zt(t){let e;ft(()=>{t(),j(()=>{e=!0})}),Pt(()=>{e&&t()})}function Bt(t,e,a={}){if(!it)return;const{target:i=window,passive:r=!1,capture:n=!1}=a;let s,l=!1;const o=v=>{if(l)return;const f=z(v);f&&!s&&(f.addEventListener(t,e,{capture:n,passive:r}),s=!0)},m=v=>{if(l)return;const f=z(v);f&&s&&(f.removeEventListener(t,e,n),s=!1)};let d;return Ie(()=>m(i)),Ht(()=>m(i)),zt(()=>o(i)),ze(i)&&(d=A(i,(v,f)=>{m(f),o(v)})),()=>{d==null||d(),m(i),l=!0}}var mt,Ye=/scroll|auto|overlay/i,Gt=it?window:void 0;function Xe(t){return t.tagName!=="HTML"&&t.tagName!=="BODY"&&t.nodeType===1}function Jt(t,e=Gt){const a=x();return ft(()=>{t.value&&(a.value=function(i,r=Gt){let n=i;for(;n&&n!==r&&Xe(n);){const{overflowY:s}=window.getComputedStyle(n);if(Ye.test(s))return n;n=n.parentNode}return r}(t.value,e))}),a}function Rt(t){const e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function Ot(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function Qt(t,e){if(t===window)return 0;const a=e?Rt(e):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return tt(t).top+a}kt&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function ct(t){const e=z(t);if(!e)return!1;const a=window.getComputedStyle(e),i=a.display==="none",r=e.offsetParent===null&&a.position!=="fixed";return i||r}const{width:gt,height:At}=function(){if(!ht&&(ht=x(0),It=x(0),it)){const t=()=>{ht.value=window.innerWidth,It.value=window.innerHeight};t(),window.addEventListener("resize",t,{passive:!0}),window.addEventListener("orientationchange",t,{passive:!0})}return{width:ht,height:It}}();function V(t){if(Q(t))return Wt(t)?`${t}px`:String(t)}let Et;function je(t){return+(t=t.replace(/rem/g,""))*function(){if(!Et){const e=document.documentElement,a=e.style.fontSize||window.getComputedStyle(e).fontSize;Et=parseFloat(a)}return Et}()}function te(t){if(typeof t=="number")return t;if(kt){if(t.includes("rem"))return je(t);if(t.includes("vw"))return function(e){return+(e=e.replace(/vw/g,""))*gt.value/100}(t);if(t.includes("vh"))return function(e){return+(e=e.replace(/vh/g,""))*At.value/100}(t)}return parseFloat(t)}const Pe=/-(\w)/g,ee=t=>t.replace(Pe,(e,a)=>a.toUpperCase()),Mt=(t,e,a)=>Math.min(Math.max(t,e),a),{hasOwnProperty:He}=Object.prototype;function ne(t,e){return Object.keys(e).forEach(a=>{(function(i,r,n){const s=r[n];Q(s)&&(He.call(i,n)&&St(s)?i[n]=ne(Object(i[n]),s):i[n]=s)})(t,e,a)}),t}const ae=x("zh-CN"),ie=at({"zh-CN":{name:"\u59D3\u540D",tel:"\u7535\u8BDD",save:"\u4FDD\u5B58",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",confirm:"\u786E\u8BA4",delete:"\u5220\u9664",loading:"\u52A0\u8F7D\u4E2D...",noCoupon:"\u6682\u65E0\u4F18\u60E0\u5238",nameEmpty:"\u8BF7\u586B\u5199\u59D3\u540D",addContact:"\u6DFB\u52A0\u8054\u7CFB\u4EBA",telInvalid:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7535\u8BDD",vanCalendar:{end:"\u7ED3\u675F",start:"\u5F00\u59CB",title:"\u65E5\u671F\u9009\u62E9",weekdays:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],monthTitle:(t,e)=>`${t}\u5E74${e}\u6708`,rangePrompt:t=>`\u6700\u591A\u9009\u62E9 ${t} \u5929`},vanCascader:{select:"\u8BF7\u9009\u62E9"},vanPagination:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875"},vanPullRefresh:{pulling:"\u4E0B\u62C9\u5373\u53EF\u5237\u65B0...",loosing:"\u91CA\u653E\u5373\u53EF\u5237\u65B0..."},vanSubmitBar:{label:"\u5408\u8BA1:"},vanCoupon:{unlimited:"\u65E0\u95E8\u69DB",discount:t=>`${t}\u6298`,condition:t=>`\u6EE1${t}\u5143\u53EF\u7528`},vanCouponCell:{title:"\u4F18\u60E0\u5238",count:t=>`${t}\u5F20\u53EF\u7528`},vanCouponList:{exchange:"\u5151\u6362",close:"\u4E0D\u4F7F\u7528",enable:"\u53EF\u7528",disabled:"\u4E0D\u53EF\u7528",placeholder:"\u8F93\u5165\u4F18\u60E0\u7801"},vanAddressEdit:{area:"\u5730\u533A",areaEmpty:"\u8BF7\u9009\u62E9\u5730\u533A",addressEmpty:"\u8BF7\u586B\u5199\u8BE6\u7EC6\u5730\u5740",addressDetail:"\u8BE6\u7EC6\u5730\u5740",defaultAddress:"\u8BBE\u4E3A\u9ED8\u8BA4\u6536\u8D27\u5730\u5740"},vanAddressList:{add:"\u65B0\u589E\u5730\u5740"}}});var We={messages:()=>ie[ae.value],use(t,e){ae.value=t,this.add({[t]:e})},add(t={}){ne(ie,t)}};function Fe(t){const e=ee(t)+".";return(a,...i)=>{const r=We.messages(),n=Ft(r,e+a)||Ft(r,a);return $t(n)?n(...i):n}}function Lt(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((a,i)=>a+Lt(t,i),""):Object.keys(e).reduce((a,i)=>a+(e[i]?Lt(t,i):""),""):""}function Ne(t){return(e,a)=>(e&&typeof e!="string"&&(a=e,e=""),`${e=e?`${t}__${e}`:t}${Lt(e,a)}`)}function q(t){const e=`van-${t}`;return[e,Ne(e),Fe(e)]}function Ze(t,{args:e=[],done:a,canceled:i,error:r}){if(t){const s=t.apply(null,e);St(n=s)&&$t(n.then)&&$t(n.catch)?s.then(l=>{l?a():i&&i()}).catch(r||Le):s?a():i&&i()}else a();var n}function lt(t){return t.install=e=>{const{name:a}=t;a&&(e.component(a,t),e.component(ee(`-${a}`),t))},t}const Ve=Symbol();function le(t){const e=Te(Ve,null);e&&A(e,a=>{a&&t()})}function ut(t){const e=vt();e&&Ct(e.proxy,t)}const qe={to:[String,Object],url:String,replace:Boolean},[Ue,oe]=q("badge"),Ke=lt(N({name:Ue,props:{dot:Boolean,max:L,tag:pt("div"),color:String,offset:Array,content:L,showZero:X,position:pt("top-right")},setup(t,{slots:e}){const a=()=>{if(e.content)return!0;const{content:l,showZero:o}=t;return Q(l)&&l!==""&&(o||l!==0&&l!=="0")},i=()=>{const{dot:l,max:o,content:m}=t;if(!l&&a())return e.content?e.content():Q(o)&&Wt(m)&&+m>+o?`${o}+`:m},r=l=>l.startsWith("-")?l.replace("-",""):`-${l}`,n=I(()=>{const l={background:t.color};if(t.offset){const[o,m]=t.offset,{position:d}=t,[v,f]=d.split("-");e.default?(l[v]=typeof m=="number"?V(v==="top"?m:-m):v==="top"?V(m):r(m),l[f]=typeof o=="number"?V(f==="left"?o:-o):f==="left"?V(o):r(o)):(l.marginTop=V(m),l.marginLeft=V(o))}return l}),s=()=>{if(a()||t.dot)return g("div",{class:oe([t.position,{dot:t.dot,fixed:!!e.default}]),style:n.value},[i()])};return()=>{if(e.default){const{tag:l}=t;return g(l,{class:oe("wrapper")},{default:()=>[e.default(),s()]})}return s()}}}));let Ge=0;function re(){const t=vt(),{name:e="unknown"}=(t==null?void 0:t.type)||{};return`${e}-${++Ge}`}function se(t,e){if(!kt||!window.IntersectionObserver)return;const a=new IntersectionObserver(r=>{e(r[0].intersectionRatio>0)},{root:document.body}),i=()=>{t.value&&a.unobserve(t.value)};Ht(i),Re(i),zt(()=>{t.value&&a.observe(t.value)})}const[Je,Qe]=q("sticky");var tn=N({name:Je,props:{zIndex:L,position:pt("top"),container:Object,offsetTop:P(0),offsetBottom:P(0)},emits:["scroll","change"],setup(t,{emit:e,slots:a}){const i=x(),r=Jt(i),n=at({fixed:!1,width:0,height:0,transform:0}),s=x(!1),l=I(()=>te(t.position==="top"?t.offsetTop:t.offsetBottom)),o=I(()=>{if(s.value)return;const{fixed:v,height:f,width:y}=n;return v?{width:`${y}px`,height:`${f}px`}:void 0}),m=I(()=>{if(!n.fixed||s.value)return;const v=Ct(function(f){const y={};return f!==void 0&&(y.zIndex=+f),y}(t.zIndex),{width:`${n.width}px`,height:`${n.height}px`,[t.position]:`${l.value}px`});return n.transform&&(v.transform=`translate3d(0, ${n.transform}px, 0)`),v}),d=()=>{if(!i.value||ct(i))return;const{container:v,position:f}=t,y=tt(i),H=Rt(window);if(n.width=y.width,n.height=y.height,f==="top")if(v){const O=tt(v),w=O.bottom-l.value-n.height;n.fixed=l.value>y.top&&O.bottom>0,n.transform=w<0?w:0}else n.fixed=l.value>y.top;else{const{clientHeight:O}=document.documentElement;if(v){const w=tt(v),W=O-w.top-l.value-n.height;n.fixed=O-l.value<y.bottom&&O>w.top,n.transform=W<0?-W:0}else n.fixed=O-l.value<y.bottom}(O=>{e("scroll",{scrollTop:O,isFixed:n.fixed})})(H)};return A(()=>n.fixed,v=>e("change",v)),Bt("scroll",d,{target:r,passive:!0}),se(i,d),A([gt,At],()=>{i.value&&!ct(i)&&n.fixed&&(s.value=!0,j(()=>{const v=tt(i);n.width=v.width,n.height=v.height,s.value=!1}))}),()=>{var v;return g("div",{ref:i,style:o.value},[g("div",{class:Qe({fixed:n.fixed&&!s.value}),style:m.value},[(v=a.default)==null?void 0:v.call(a)])])}}});const en=lt(tn),[ce,yt]=q("swipe"),nn={loop:X,width:L,height:L,vertical:Boolean,autoplay:P(0),duration:P(500),touchable:X,lazyRender:Boolean,initialSwipe:P(0),indicatorColor:String,showIndicators:X,stopPropagation:X},ue=Symbol(ce);var an=N({name:ce,props:nn,emits:["change","dragStart","dragEnd"],setup(t,{emit:e,slots:a}){const i=x(),r=x(),n=at({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let s=!1;const l=function(){const h=x(0),k=x(0),C=x(0),c=x(0),u=x(0),p=x(0),b=x(""),_=x(!0),B=()=>{C.value=0,c.value=0,u.value=0,p.value=0,b.value="",_.value=!0};return{move:$=>{const S=$.touches[0];var R,D;C.value=(S.clientX<0?0:S.clientX)-h.value,c.value=S.clientY-k.value,u.value=Math.abs(C.value),p.value=Math.abs(c.value),(!b.value||u.value<10&&p.value<10)&&(b.value=(R=u.value)>(D=p.value)?"horizontal":D>R?"vertical":""),_.value&&(u.value>5||p.value>5)&&(_.value=!1)},start:$=>{B(),h.value=$.touches[0].clientX,k.value=$.touches[0].clientY},reset:B,startX:h,startY:k,deltaX:C,deltaY:c,offsetX:u,offsetY:p,direction:b,isVertical:()=>b.value==="vertical",isHorizontal:()=>b.value==="horizontal",isTap:_}}(),{children:o,linkChildren:m}=Kt(ue),d=I(()=>o.length),v=I(()=>n[t.vertical?"height":"width"]),f=I(()=>t.vertical?l.deltaY.value:l.deltaX.value),y=I(()=>n.rect?(t.vertical?n.rect.height:n.rect.width)-v.value*d.value:0),H=I(()=>v.value?Math.ceil(Math.abs(y.value)/v.value):d.value),O=I(()=>d.value*v.value),w=I(()=>(n.active+d.value)%d.value),W=I(()=>{const h=t.vertical?"vertical":"horizontal";return l.direction.value===h}),T=I(()=>{const h={transitionDuration:`${n.swiping?0:t.duration}ms`,transform:`translate${t.vertical?"Y":"X"}(${+n.offset.toFixed(2)}px)`};if(v.value){const k=t.vertical?"height":"width",C=t.vertical?"width":"height";h[k]=`${O.value}px`,h[C]=t[C]?`${t[C]}px`:""}return h}),U=(h,k=0)=>{let C=h*v.value;t.loop||(C=Math.min(C,-y.value));let c=k-C;return t.loop||(c=Mt(c,y.value,0)),c},M=({pace:h=0,offset:k=0,emitChange:C})=>{if(d.value<=1)return;const{active:c}=n,u=(b=>{const{active:_}=n;return b?t.loop?Mt(_+b,-1,d.value):Mt(_+b,0,H.value):_})(h),p=U(u,k);if(t.loop){if(o[0]&&p!==y.value){const b=p<y.value;o[0].setOffset(b?O.value:0)}if(o[d.value-1]&&p!==0){const b=p>0;o[d.value-1].setOffset(b?-O.value:0)}}n.active=u,n.offset=p,C&&u!==c&&e("change",w.value)},F=()=>{n.swiping=!0,n.active<=-1?M({pace:d.value}):n.active>=d.value&&M({pace:-d.value})},dt=()=>{F(),l.reset(),st(()=>{n.swiping=!1,M({pace:1,emitChange:!0})})};let ot;const K=()=>clearTimeout(ot),Y=()=>{K(),+t.autoplay>0&&d.value>1&&(ot=setTimeout(()=>{dt(),Y()},+t.autoplay))},E=(h=+t.initialSwipe)=>{if(!i.value)return;const k=()=>{var C,c;if(!ct(i)){const u={width:i.value.offsetWidth,height:i.value.offsetHeight};n.rect=u,n.width=+((C=t.width)!=null?C:u.width),n.height=+((c=t.height)!=null?c:u.height)}d.value&&(h=Math.min(d.value-1,h))===-1&&(h=d.value-1),n.active=h,n.swiping=!0,n.offset=U(h),o.forEach(u=>{u.setOffset(0)}),Y()};ct(i)?j().then(k):k()},et=()=>E(n.active);let nt;const wt=h=>{!t.touchable||h.touches.length>1||(l.start(h),s=!1,nt=Date.now(),K(),F())},_t=()=>{if(!t.touchable||!n.swiping)return;const h=Date.now()-nt,k=f.value/h;if((Math.abs(k)>.25||Math.abs(f.value)>v.value/2)&&W.value){const C=t.vertical?l.offsetY.value:l.offsetX.value;let c=0;c=t.loop?C>0?f.value>0?-1:1:0:-Math[f.value>0?"ceil":"floor"](f.value/v.value),M({pace:c,emitChange:!0})}else f.value&&M({pace:0});s=!1,n.swiping=!1,e("dragEnd",{index:w.value}),Y()},Yt=(h,k)=>{const C=k===w.value,c=C?{backgroundColor:t.indicatorColor}:void 0;return g("i",{style:c,class:yt("indicator",{active:C})},null)};return ut({prev:()=>{F(),l.reset(),st(()=>{n.swiping=!1,M({pace:-1,emitChange:!0})})},next:dt,state:n,resize:et,swipeTo:(h,k={})=>{F(),l.reset(),st(()=>{let C;C=t.loop&&h===d.value?n.active===0?0:h:h%d.value,k.immediate?st(()=>{n.swiping=!1}):n.swiping=!1,M({pace:C-n.active,emitChange:!0})})}}),m({size:v,props:t,count:d,activeIndicator:w}),A(()=>t.initialSwipe,h=>E(+h)),A(d,()=>E(n.active)),A(()=>t.autoplay,Y),A([gt,At,()=>t.width,()=>t.height],et),A(function(){if(!mt&&(mt=x("visible"),it)){const h=()=>{mt.value=document.hidden?"hidden":"visible"};h(),window.addEventListener("visibilitychange",h)}return mt}(),h=>{h==="visible"?Y():K()}),ft(E),Pt(()=>E(n.active)),le(()=>E(n.active)),Ht(K),Re(K),Bt("touchmove",h=>{t.touchable&&n.swiping&&(l.move(h),W.value)&&(!t.loop&&(n.active===0&&f.value>0||n.active===d.value-1&&f.value<0)||(function(k,C){(typeof k.cancelable!="boolean"||k.cancelable)&&k.preventDefault(),C&&(c=>{c.stopPropagation()})(k)}(h,t.stopPropagation),M({offset:f.value}),s||(e("dragStart",{index:w.value}),s=!0)))},{target:r}),()=>{var h;return g("div",{ref:i,class:yt()},[g("div",{ref:r,style:T.value,class:yt("track",{vertical:t.vertical}),onTouchstartPassive:wt,onTouchend:_t,onTouchcancel:_t},[(h=a.default)==null?void 0:h.call(a)]),a.indicator?a.indicator({active:w.value,total:d.value}):t.showIndicators&&d.value>1?g("div",{class:yt("indicators",{vertical:t.vertical})},[Array(d.value).fill("").map(Yt)]):void 0])}}});const ln=lt(an),[on,de]=q("tabs");var rn=N({name:on,props:{count:Tt(Number),inited:Boolean,animated:Boolean,duration:Tt(L),swipeable:Boolean,lazyRender:Boolean,currentIndex:Tt(Number)},emits:["change"],setup(t,{emit:e,slots:a}){const i=x(),r=l=>e("change",l),n=()=>{var l;const o=(l=a.default)==null?void 0:l.call(a);return t.animated||t.swipeable?g(ln,{ref:i,loop:!1,class:de("track"),duration:1e3*+t.duration,touchable:t.swipeable,lazyRender:t.lazyRender,showIndicators:!1,onChange:r},{default:()=>[o]}):o},s=l=>{const o=i.value;o&&o.state.active!==l&&o.swipeTo(l,{immediate:!t.inited})};return A(()=>t.currentIndex,s),ft(()=>{s(t.currentIndex)}),ut({swipeRef:i}),()=>g("div",{class:de("content",{animated:t.animated||t.swipeable})},[n()])}});const[ve,bt]=q("tabs"),sn={type:pt("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:P(0),duration:P(.3),animated:Boolean,ellipsis:X,swipeable:Boolean,scrollspy:Boolean,offsetTop:P(0),background:String,lazyRender:X,showHeader:X,lineWidth:L,lineHeight:L,beforeChange:Function,swipeThreshold:P(5),titleActiveColor:String,titleInactiveColor:String},fe=Symbol(ve);var cn=N({name:ve,props:sn,emits:["change","scroll","rendered","clickTab","update:active"],setup(t,{emit:e,slots:a}){let i,r,n,s,l;const o=x(),m=x(),d=x(),v=x(),f=re(),y=Jt(o),[H,O]=function(){const c=x([]),u=[];return wn(()=>{c.value=[]}),[c,p=>(u[p]||(u[p]=b=>{c.value[p]=b}),u[p])]}(),{children:w,linkChildren:W}=Kt(fe),T=at({inited:!1,position:"",lineStyle:{},currentIndex:-1}),U=I(()=>w.length>+t.swipeThreshold||!t.ellipsis||t.shrink),M=I(()=>({borderColor:t.color,background:t.background})),F=(c,u)=>{var p;return(p=c.name)!=null?p:u},dt=I(()=>{const c=w[T.currentIndex];if(c)return F(c,T.currentIndex)}),ot=I(()=>te(t.offsetTop)),K=I(()=>t.sticky?ot.value+i:0),Y=c=>{const u=m.value,p=H.value;if(!(U.value&&u&&p&&p[T.currentIndex]))return;const b=p[T.currentIndex].$el,_=b.offsetLeft-(u.offsetWidth-b.offsetWidth)/2;s&&s(),s=function(B,$,S){let R,D=0;const Xt=B.scrollLeft,xt=S===0?1:Math.round(1e3*S/16);return function jt(){B.scrollLeft+=($-Xt)/xt,++D<xt&&(R=rt(jt))}(),function(){Zt(R)}}(u,_,c?0:+t.duration)},E=()=>{const c=T.inited;j(()=>{const u=H.value;if(!u||!u[T.currentIndex]||t.type!=="line"||ct(o.value))return;const p=u[T.currentIndex].$el,{lineWidth:b,lineHeight:_}=t,B=p.offsetLeft+p.offsetWidth/2,$={width:V(b),backgroundColor:t.color,transform:`translateX(${B}px) translateX(-50%)`};if(c&&($.transitionDuration=`${t.duration}s`),Q(_)){const S=V(_);$.height=S,$.borderRadius=S}T.lineStyle=$})},et=(c,u)=>{const p=(S=>{const R=S<T.currentIndex?-1:1;for(;S>=0&&S<w.length;){if(!w[S].disabled)return S;S+=R}})(c);if(!Q(p))return;const b=w[p],_=F(b,p),B=T.currentIndex!==null;var $;T.currentIndex!==p&&(T.currentIndex=p,u||Y(),E()),_!==t.active&&(e("update:active",_),B&&e("change",_,b.title)),n&&!t.scrollspy&&($=Math.ceil(Qt(o.value)-ot.value),Ot(window,$),Ot(document.body,$))},nt=(c,u)=>{const p=w.find((_,B)=>F(_,B)===c),b=p?w.indexOf(p):0;et(b,u)},wt=(c=!1)=>{if(t.scrollspy){const u=w[T.currentIndex].$el;if(u&&y.value){const p=Qt(u,y.value)-K.value;r=!0,l&&l(),l=function(b,_,B,$){let S,R=Rt(b);const D=R<_,Xt=B===0?1:Math.round(1e3*B/16),xt=(_-R)/Xt;return function jt(){R+=xt,(D&&R>_||!D&&R<_)&&(R=_),Ot(b,R),D&&R<_||!D&&R>_?S=rt(jt):$&&(S=rt($))}(),function(){Zt(S)}}(y.value,p,c?0:+t.duration,()=>{r=!1})}}},_t=(c,u,p)=>{const{title:b,disabled:_}=w[u],B=F(w[u],u);_||(Ze(t.beforeChange,{args:[B],done:()=>{et(u),wt()}}),function({to:$,url:S,replace:R,$router:D}){$&&D?D[R?"replace":"push"]($):S&&(R?location.replace(S):location.href=S)}(c)),e("clickTab",{name:B,title:b,event:p,disabled:_})},Yt=c=>{n=c.isFixed,e("scroll",c)},h=()=>{if(t.type==="line"&&w.length)return g("div",{class:bt("line"),style:T.lineStyle},null)},k=()=>{var c,u,p;const{type:b,border:_,sticky:B}=t,$=[g("div",{ref:B?void 0:d,class:[bt("wrap"),{"van-hairline--top-bottom":b==="line"&&_}]},[g("div",{ref:m,role:"tablist",class:bt("nav",[b,{shrink:t.shrink,complete:U.value}]),style:M.value,"aria-orientation":"horizontal"},[(c=a["nav-left"])==null?void 0:c.call(a),w.map(S=>S.renderTitle(_t)),h(),(u=a["nav-right"])==null?void 0:u.call(a)])]),(p=a["nav-bottom"])==null?void 0:p.call(a)];return B?g("div",{ref:d},[$]):$},C=()=>{E(),j(()=>{var c,u;Y(!0),(u=(c=v.value)==null?void 0:c.swipeRef.value)==null||u.resize()})};return A(()=>[t.color,t.duration,t.lineWidth,t.lineHeight],E),A(gt,C),A(()=>t.active,c=>{c!==dt.value&&nt(c)}),A(()=>w.length,()=>{T.inited&&(nt(t.active),E(),j(()=>{Y(!0)}))}),ut({resize:C,scrollTo:c=>{j(()=>{nt(c),wt(!0)})}}),Pt(E),le(E),zt(()=>{nt(t.active,!0),j(()=>{T.inited=!0,d.value&&(i=tt(d.value).height),Y(!0)})}),se(o,E),Bt("scroll",()=>{if(t.scrollspy&&!r){const c=(()=>{for(let u=0;u<w.length;u++){const{top:p}=tt(w[u].$el);if(p>K.value)return u===0?0:u-1}return w.length-1})();et(c)}},{target:y,passive:!0}),W({id:f,props:t,setLine:E,scrollable:U,onRendered:(c,u)=>e("rendered",c,u),currentName:dt,setTitleRefs:O,scrollIntoView:Y}),()=>g("div",{ref:o,class:bt([t.type])},[t.showHeader?t.sticky?g(en,{container:o.value,offsetTop:ot.value,onScroll:Yt},{default:()=>[k()]}):k():null,g(rn,{ref:v,count:w.length,inited:T.inited,animated:t.animated,duration:t.duration,swipeable:t.swipeable,lazyRender:t.lazyRender,currentIndex:T.currentIndex,onChange:et},{default:()=>{var c;return[(c=a.default)==null?void 0:c.call(a)]}})])}});const un=Symbol(),[dn,pe]=q("tab"),vn=N({name:dn,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:L,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:X},setup(t,{slots:e}){const a=I(()=>{const r={},{type:n,color:s,disabled:l,isActive:o,activeColor:m,inactiveColor:d}=t;s&&n==="card"&&(r.borderColor=s,l||(o?r.backgroundColor=s:r.color=s));const v=o?m:d;return v&&(r.color=v),r}),i=()=>{const r=g("span",{class:pe("text",{ellipsis:!t.scrollable})},[e.title?e.title():t.title]);return t.dot||Q(t.badge)&&t.badge!==""?g(Ke,{dot:t.dot,content:t.badge,showZero:t.showZeroBadge},{default:()=>[r]}):r};return()=>g("div",{id:t.id,role:"tab",class:[pe([t.type,{grow:t.scrollable&&!t.shrink,shrink:t.shrink,active:t.isActive,disabled:t.disabled}])],style:a.value,tabindex:t.disabled?void 0:t.isActive?0:-1,"aria-selected":t.isActive,"aria-disabled":t.disabled||void 0,"aria-controls":t.controls},[i()])}}),[fn,pn]=q("swipe-item");var hn=N({name:fn,setup(t,{slots:e}){let a;const i=at({offset:0,inited:!1,mounted:!1}),{parent:r,index:n}=qt(ue);if(!r)return void console.error("[Vant] <SwipeItem> must be a child component of <Swipe>.");const s=I(()=>{const o={},{vertical:m}=r.props;return r.size.value&&(o[m?"height":"width"]=`${r.size.value}px`),i.offset&&(o.transform=`translate${m?"Y":"X"}(${i.offset}px)`),o}),l=I(()=>{const{loop:o,lazyRender:m}=r.props;if(!m||a)return!0;if(!i.mounted)return!1;const d=r.activeIndicator.value,v=r.count.value-1,f=d===0&&o?v:d-1,y=d===v&&o?0:d+1;return a=n.value===d||n.value===f||n.value===y,a});return ft(()=>{j(()=>{i.mounted=!0})}),ut({setOffset:o=>{i.offset=o}}),()=>{var o;return g("div",{class:pn(),style:s.value},[l.value?(o=e.default)==null?void 0:o.call(e):null])}}});const mn=lt(hn),[gn,Dt]=q("tab");var yn=N({name:gn,props:Ct({},qe,{dot:Boolean,name:L,badge:L,title:String,disabled:Boolean,titleClass:null,titleStyle:[String,Object],showZeroBadge:X}),setup(t,{slots:e}){const a=re(),i=x(!1),r=vt(),{parent:n,index:s}=qt(fe);if(!n)return void console.error("[Vant] <Tab> must be a child component of <Tabs>.");const l=()=>{var f;return(f=t.name)!=null?f:s.value},o=I(()=>{const f=l()===n.currentName.value;return f&&!i.value&&(i.value=!0,n.props.lazyRender&&j(()=>{n.onRendered(l(),t.title)})),f}),m=x(""),d=x("");_n(()=>{const{titleClass:f,titleStyle:y}=t;m.value=f?xn(f):"",d.value=y&&typeof y!="string"?Cn(kn(y)):y});const v=x(!o.value);return A(o,f=>{f?v.value=!1:st(()=>{v.value=!0})}),A(()=>t.title,()=>{n.setLine(),n.scrollIntoView()}),Be(un,o),ut({id:a,renderTitle:f=>g(vn,$n({key:a,id:`${n.id}-${s.value}`,ref:n.setTitleRefs(s.value),style:d.value,class:m.value,isActive:o.value,controls:a,scrollable:n.scrollable.value,activeColor:n.props.titleActiveColor,inactiveColor:n.props.titleInactiveColor,onClick:y=>f(r.proxy,s.value,y)},Nt(n.props,["type","color","shrink"]),Nt(t,["dot","badge","title","disabled","showZeroBadge"])),{title:e.title})}),()=>{var f;const y=`${n.id}-${s.value}`,{animated:H,swipeable:O,scrollspy:w,lazyRender:W}=n.props;if(!e.default&&!H)return;const T=w||o.value;if(H||O)return g(mn,{id:a,role:"tabpanel",class:Dt("panel-wrapper",{inactive:v.value}),tabindex:o.value?0:-1,"aria-hidden":!o.value,"aria-labelledby":y},{default:()=>{var M;return[g("div",{class:Dt("panel")},[(M=e.default)==null?void 0:M.call(e)])]}});const U=i.value||w||!W?(f=e.default)==null?void 0:f.call(e):null;return Oe(g("div",{id:a,role:"tabpanel",class:Dt("panel"),tabindex:T?0:-1,"aria-labelledby":y},[U]),[[Sn,T]])}}});let he,me,ge,ye,be,we,_e,xe,Ce,ke,Se,$e;he=lt(yn),me=lt(cn),ge={class:"top",style:{position:"relative",overflow:"hidden"}},ye={class:"bottom"},be={key:0},we={key:1},_e={key:2},xe={key:3},Ce={key:4},ke={key:5},Se={key:6},$e={key:7},Me=Bn(N({name:"ProductSpuForm",__name:"OrderMobileIndex",props:{id:Tn.number.def(void 0)},setup(t){const e=x(!1),a=x("info"),i=x(0),r=t;return i.value=r.id,(n,s)=>{const l=he,o=me,m=On,d=zn;return Oe((Z(),In(m,{style:{"overflow-y":"auto"}},{default:Ae(()=>[Ee("div",ge,[g(o,{active:z(a),"onUpdate:active":s[0]||(s[0]=v=>ze(a)?a.value=v:null)},{default:Ae(()=>[g(l,{title:"\u57FA\u672C\u4FE1\u606F",name:"info"}),g(l,{title:"\u5546\u54C1",name:"product"}),g(l,{title:"\u8BC4\u4EF7",name:"comment"}),g(l,{title:"\u5BA2\u670D",name:"service"}),g(l,{title:"\u552E\u540E",name:"afterSale"}),g(l,{title:"\u7269\u6D41",name:"logistics"}),g(l,{title:"\u652F\u4ED8",name:"pay"}),g(l,{title:"\u65E5\u5FD7",name:"logs"})]),_:1},8,["active"])]),Ee("div",ye,[z(a)=="info"?(Z(),G("div",be,[g(En,{ref:"baseInfoRef","is-detail":!1,id:z(i)},null,8,["id"])])):J("",!0),z(a)=="product"?(Z(),G("div",we,[g(Ln,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0),z(a)=="comment"?(Z(),G("div",_e,[g(Yn,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0),z(a)=="service"?(Z(),G("div",xe,[g(jn,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0),z(a)=="afterSale"?(Z(),G("div",Ce,[g(Hn,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0),z(a)=="logistics"?(Z(),G("div",ke,[g(Fn,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0),z(a)=="pay"?(Z(),G("div",Se,[g(Zn,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0),z(a)=="logs"?(Z(),G("div",$e,[g(qn,{ref:"infoRef","is-detail":n.isDetail,id:z(i)},null,8,["is-detail","id"])])):J("",!0)])]),_:1})),[[d,z(e)]])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/components/OrderMobileIndex.vue"]])});export{ca as __tla,Me as default};