| 12345 |
- import{x as be,W as re,aT as Me,y as Oe,z as J,A as De,d as D,O as Q,P as je,a0 as Ke,Z as Se,bp as ze,i as p,aQ as Fe,a3 as Ge,aw as Qe,F as _e,S as xe,E as Je,J as Ye,aW as qe,K as Ce,a6 as ae,a7 as Xe,N as Ze,ad as $e,aP as et,al as tt,ac as ot,V as Ee,w as nt,ar as rt,p as Z,b as ue,a$ as at,bw as st,e as it,a as ct}from"./index.91fba510.js";import{I as ie}from"./index.890dc2dd.js";import{a as Ie,S as Te}from"./index.d119e0b0.js";import"./index.d954790d.js";import{T as lt,a as pe}from"./index.dacebc23.js";import{T as fe}from"./index.d7a20a9b.js";import{c as Re,g as de}from"./shop-mall.8f5a102f.js";import"./use-id.34dab0fd.js";import"./use-tab-status.e3a33d06.js";import"./use-refs.56c6a150.js";import"./index.07b1fa4e.js";import"./index.c2954f1d.js";import"./index.2a81faf1.js";import"./index.e4ca3902.js";import"./index.880a6124.js";import"./index.db714a5d.js";import"./index.692e893e.js";import"./icon-sell-out.98742fd0.js";function C(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Be(e){var t=C(e).Element;return e instanceof t||e instanceof Element}function x(e){var t=C(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pe(e){if(typeof ShadowRoot=="undefined")return!1;var t=C(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var M=Math.round;function $(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(x(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(n=M(o.width)/s||1),a>0&&(r=M(o.height)/a||1)}return{width:o.width/n,height:o.height/r,top:o.top/r,right:o.right/n,bottom:o.bottom/r,left:o.left/n,x:o.left/n,y:o.top/r}}function Le(e){var t=C(e),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function ut(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pt(e){return e===C(e)||!x(e)?Le(e):ut(e)}function E(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){return((Be(e)?e.ownerDocument:e.document)||window.document).documentElement}function ft(e){return $(oe(e)).left+Le(e).scrollLeft}function I(e){return C(e).getComputedStyle(e)}function ce(e){var t=I(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function dt(e){var t=e.getBoundingClientRect(),o=M(t.width)/e.offsetWidth||1,n=M(t.height)/e.offsetHeight||1;return o!==1||n!==1}function ht(e,t,o){o===void 0&&(o=!1);var n=x(t),r=x(t)&&dt(t),a=oe(t),s=$(e,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((E(t)!=="body"||ce(a))&&(i=pt(t)),x(t)?(l=$(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ft(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function vt(e){var t=$(e),o=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:n}}function le(e){return E(e)==="html"?e:e.assignedSlot||e.parentNode||(Pe(e)?e.host:null)||oe(e)}function ke(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:x(e)&&ce(e)?e:ke(le(e))}function X(e,t){var o;t===void 0&&(t=[]);var n=ke(e),r=n===((o=e.ownerDocument)==null?void 0:o.body),a=C(n),s=r?[a].concat(a.visualViewport||[],ce(n)?n:[]):n,i=t.concat(s);return r?i:i.concat(X(le(s)))}function mt(e){return["table","td","th"].indexOf(E(e))>=0}function he(e){return!x(e)||I(e).position==="fixed"?null:e.offsetParent}function gt(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&x(e)){var n=I(e);if(n.position==="fixed")return null}var r=le(e);for(Pe(r)&&(r=r.host);x(r)&&["html","body"].indexOf(E(r))<0;){var a=I(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function We(e){for(var t=C(e),o=he(e);o&&mt(o)&&I(o).position==="static";)o=he(o);return o&&(E(o)==="html"||E(o)==="body"&&I(o).position==="static")?t:o||gt(e)||t}var N="top",ee="bottom",_="right",U="left",Ue="auto",At=[N,ee,_,U],Ve="start",te="end",wt=[].concat(At,[Ue]).reduce(function(e,t){return e.concat([t,t+"-"+Ve,t+"-"+te])},[]),yt="beforeRead",bt="read",Ot="afterRead",St="beforeMain",xt="main",Ct="afterMain",Et="beforeWrite",It="write",Tt="afterWrite",se=[yt,bt,Ot,St,xt,Ct,Et,It,Tt];function Rt(e){var t=new Map,o=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function r(a){o.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!o.has(i)){var l=t.get(i);l&&r(l)}}),n.push(a)}return e.forEach(function(a){o.has(a.name)||r(a)}),n}function Bt(e){var t=Rt(e);return se.reduce(function(o,n){return o.concat(t.filter(function(r){return r.phase===n}))},[])}function Pt(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function B(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return[].concat(o).reduce(function(r,a){return r.replace(/%s/,a)},e)}var k='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Lt='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',ve=["name","enabled","phase","fn","effect","requires","options"];function kt(e){e.forEach(function(t){[].concat(Object.keys(t),ve).filter(function(o,n,r){return r.indexOf(o)===n}).forEach(function(o){switch(o){case"name":typeof t.name!="string"&&console.error(B(k,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(B(k,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":se.indexOf(t.phase)<0&&console.error(B(k,t.name,'"phase"',"either "+se.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(B(k,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(B(k,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(B(k,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(B(k,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+ve.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+o+'" was provided.')}t.requires&&t.requires.forEach(function(n){e.find(function(r){return r.name===n})==null&&console.error(B(Lt,String(t.name),n,n))})})})}function Wt(e,t){var o=new Set;return e.filter(function(n){var r=t(n);if(!o.has(r))return o.add(r),!0})}function ne(e){return e.split("-")[0]}function Ut(e){var t=e.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}function He(e){return e.split("-")[1]}function Vt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ht(e){var t=e.reference,o=e.element,n=e.placement,r=n?ne(n):null,a=n?He(n):null,s=t.x+t.width/2-o.width/2,i=t.y+t.height/2-o.height/2,l;switch(r){case N:l={x:s,y:t.y-o.height};break;case ee:l={x:s,y:t.y+t.height};break;case _:l={x:t.x+t.width,y:i};break;case U:l={x:t.x-o.width,y:i};break;default:l={x:t.x,y:t.y}}var d=r?Vt(r):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case Ve:l[d]=l[d]-(t[c]/2-o[c]/2);break;case te:l[d]=l[d]+(t[c]/2-o[c]/2);break}}return l}var me="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Nt="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ge={placement:"bottom",modifiers:[],strategy:"absolute"};function Ae(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Mt(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,n=o===void 0?[]:o,r=t.defaultOptions,a=r===void 0?ge:r;return function(i,l,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ge,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},g=[],S=!1,m={state:c,setOptions:function(A){var b=typeof A=="function"?A(c.options):A;y(),c.options=Object.assign({},a,c.options,b),c.scrollParents={reference:Be(i)?X(i):i.contextElement?X(i.contextElement):[],popper:X(l)};var u=Bt(Ut([].concat(n,c.options.modifiers)));c.orderedModifiers=u.filter(function(O){return O.enabled});{var h=Wt([].concat(u,c.options.modifiers),function(O){var V=O.name;return V});if(kt(h),ne(c.options.placement)===Ue){var v=c.orderedModifiers.find(function(O){var V=O.name;return V==="flip"});v||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var w=I(l),R=w.marginTop,L=w.marginRight,j=w.marginBottom,K=w.marginLeft;[R,L,j,K].some(function(O){return parseFloat(O)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return T(),m.update()},forceUpdate:function(){if(!S){var A=c.elements,b=A.reference,u=A.popper;if(!Ae(b,u)){console.error(me);return}c.rects={reference:ht(b,We(u),c.options.strategy==="fixed"),popper:vt(u)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var h=0,v=0;v<c.orderedModifiers.length;v++){if(h+=1,h>100){console.error(Nt);break}if(c.reset===!0){c.reset=!1,v=-1;continue}var w=c.orderedModifiers[v],R=w.fn,L=w.options,j=L===void 0?{}:L,K=w.name;typeof R=="function"&&(c=R({state:c,options:j,name:K,instance:m})||c)}}},update:Pt(function(){return new Promise(function(f){m.forceUpdate(),f(c)})}),destroy:function(){y(),S=!0}};if(!Ae(i,l))return console.error(me),m;m.setOptions(d).then(function(f){!S&&d.onFirstUpdate&&d.onFirstUpdate(f)});function T(){c.orderedModifiers.forEach(function(f){var A=f.name,b=f.options,u=b===void 0?{}:b,h=f.effect;if(typeof h=="function"){var v=h({state:c,name:A,instance:m,options:u}),w=function(){};g.push(v||w)}})}function y(){g.forEach(function(f){return f()}),g=[]}return m}}var Y={passive:!0};function Dt(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,a=r===void 0?!0:r,s=n.resize,i=s===void 0?!0:s,l=C(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",o.update,Y)}),i&&l.addEventListener("resize",o.update,Y),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",o.update,Y)}),i&&l.removeEventListener("resize",o.update,Y)}}var jt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Dt,data:{}};function Kt(e){var t=e.state,o=e.name;t.modifiersData[o]=Ht({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var zt={name:"popperOffsets",enabled:!0,phase:"read",fn:Kt,data:{}},Ft={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gt(e){var t=e.x,o=e.y,n=window,r=n.devicePixelRatio||1;return{x:M(t*r)/r||0,y:M(o*r)/r||0}}function we(e){var t,o=e.popper,n=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,g=e.isFixed,S=s.x,m=S===void 0?0:S,T=s.y,y=T===void 0?0:T,f=typeof c=="function"?c({x:m,y}):{x:m,y};m=f.x,y=f.y;var A=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),u=U,h=N,v=window;if(d){var w=We(o),R="clientHeight",L="clientWidth";if(w===C(o)&&(w=oe(o),I(w).position!=="static"&&i==="absolute"&&(R="scrollHeight",L="scrollWidth")),w=w,r===N||(r===U||r===_)&&a===te){h=ee;var j=g&&w===v&&v.visualViewport?v.visualViewport.height:w[R];y-=j-n.height,y*=l?1:-1}if(r===U||(r===N||r===ee)&&a===te){u=_;var K=g&&w===v&&v.visualViewport?v.visualViewport.width:w[L];m-=K-n.width,m*=l?1:-1}}var O=Object.assign({position:i},d&&Ft),V=c===!0?Gt({x:m,y}):{x:m,y};if(m=V.x,y=V.y,l){var z;return Object.assign({},O,(z={},z[h]=b?"0":"",z[u]=A?"0":"",z.transform=(v.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",z))}return Object.assign({},O,(t={},t[h]=b?y+"px":"",t[u]=A?m+"px":"",t.transform="",t))}function Qt(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=n===void 0?!0:n,a=o.adaptive,s=a===void 0?!0:a,i=o.roundOffsets,l=i===void 0?!0:i;{var d=I(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(g){return d.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
- `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:ne(t.placement),variation:He(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var _t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qt,data:{}};function Jt(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},r=t.attributes[o]||{},a=t.elements[o];!x(a)||!E(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var i=r[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Yt(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),i=s.reduce(function(l,d){return l[d]="",l},{});!x(r)||!E(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var qt={name:"applyStyles",enabled:!0,phase:"write",fn:Jt,effect:Yt,requires:["computeStyles"]},Xt=[jt,zt,_t,qt],Zt=Mt({defaultModifiers:Xt});function $t(e,t,o){var n=ne(e),r=[U,N].indexOf(n)>=0?-1:1,a=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=a[0],i=a[1];return s=s||0,i=(i||0)*r,[U,_].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function eo(e){var t=e.state,o=e.options,n=e.name,r=o.offset,a=r===void 0?[0,0]:r,s=wt.reduce(function(c,g){return c[g]=$t(g,t.rects,a),c},{}),i=s[t.placement],l=i.x,d=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}var to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};const[oo,W]=be("popover"),no=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],ro={show:Boolean,theme:re("light"),overlay:Boolean,actions:Me(),trigger:re("click"),duration:Oe,showArrow:J,placement:re("bottom"),iconPrefix:String,overlayClass:De,overlayStyle:Object,closeOnClickAction:J,closeOnClickOverlay:J,closeOnClickOutside:J,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var ao=D({name:oo,props:ro,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:o,attrs:n}){let r;const a=Q(),s=Q(),i=()=>a.value&&s.value?Zt(a.value,s.value.popupRef.value,{placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Je({},to,{options:{offset:e.offset}})]}):null,l=()=>{xe(()=>{!e.show||(r?r.setOptions({placement:e.placement}):r=i())})},d=f=>t("update:show",f),c=()=>{e.trigger==="click"&&d(!e.show)},g=f=>{f.stopPropagation(),t("touchstart",f)},S=(f,A)=>{f.disabled||(t("select",f,A),e.closeOnClickAction&&d(!1))},m=()=>{e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&d(!1)},T=(f,A)=>o.action?o.action({action:f,index:A}):[f.icon&&p(Ye,{name:f.icon,classPrefix:e.iconPrefix,class:W("action-icon")},null),p("div",{class:[W("action-text"),qe]},[f.text])],y=(f,A)=>{const{icon:b,color:u,disabled:h,className:v}=f;return p("div",{role:"menuitem",class:[W("action",{disabled:h,"with-icon":b}),v],style:{color:u},tabindex:h?void 0:0,"aria-disabled":h||void 0,onClick:()=>S(f,A)},[T(f,A)])};return je(l),Ke(()=>{r&&(r.destroy(),r=null)}),Se(()=>[e.show,e.placement],l),ze(a,m,{eventName:"touchstart"}),()=>{var f;return p(_e,null,[p("span",{ref:a,class:W("wrapper"),onClick:c},[(f=o.reference)==null?void 0:f.call(o)]),p(Fe,Ge({ref:s,class:W([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:g,"onUpdate:show":d},n,Qe(e,no)),{default:()=>[e.showArrow&&p("div",{class:W("arrow")},null),p("div",{role:"menu",class:W("content")},[o.default?o.default():e.actions.map(y)])]})])}}});const so=Ce(ao),[io,F,co]=be("pull-refresh"),Ne=50,lo=["pulling","loosing","success"],uo={disabled:Boolean,modelValue:Boolean,headHeight:ae(Ne),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:Oe,successDuration:ae(500),animationDuration:ae(300)};var po=D({name:io,props:uo,emits:["refresh","update:modelValue"],setup(e,{emit:t,slots:o}){let n;const r=Q(),a=Xe(r),s=Ze({status:"normal",distance:0,duration:0}),i=$e(),l=()=>{if(e.headHeight!==Ne)return{height:`${e.headHeight}px`}},d=()=>s.status!=="loading"&&s.status!=="success"&&!e.disabled,c=u=>{const h=+(e.pullDistance||e.headHeight);return u>h&&(u<h*2?u=h+(u-h)/2:u=h*1.5+(u-h*2)/4),Math.round(u)},g=(u,h)=>{const v=+(e.pullDistance||e.headHeight);s.distance=u,h?s.status="loading":u===0?s.status="normal":u<v?s.status="pulling":s.status="loosing"},S=()=>{const{status:u}=s;return u==="normal"?"":e[`${u}Text`]||co(u)},m=()=>{const{status:u,distance:h}=s;if(o[u])return o[u]({distance:h});const v=[];return lo.includes(u)&&v.push(p("div",{class:F("text")},[S()])),u==="loading"&&v.push(p(et,{class:F("loading")},{default:S})),v},T=()=>{s.status="success",setTimeout(()=>{g(0)},+e.successDuration)},y=u=>{n=ot(a.value)===0,n&&(s.duration=0,i.start(u))},f=u=>{d()&&y(u)},A=u=>{if(d()){n||y(u);const{deltaY:h}=i;i.move(u),n&&h.value>=0&&i.isVertical()&&(tt(u),g(c(h.value)))}},b=()=>{n&&i.deltaY.value&&d()&&(s.duration=+e.animationDuration,s.status==="loosing"?(g(+e.headHeight,!0),t("update:modelValue",!0),xe(()=>t("refresh"))):g(0))};return Se(()=>e.modelValue,u=>{s.duration=+e.animationDuration,u?g(+e.headHeight,!0):o.success||e.successText?T():g(0,!1)}),()=>{var u;const h={transitionDuration:`${s.duration}ms`,transform:s.distance?`translate3d(0,${s.distance}px, 0)`:""};return p("div",{ref:r,class:F()},[p("div",{class:F("track"),style:h,onTouchstart:f,onTouchmove:A,onTouchend:b,onTouchcancel:b},[p("div",{class:F("head"),style:l()},[m()]),(u=o.default)==null?void 0:u.call(o)])])}}});const fo=Ce(po);var ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAoCAYAAACIC2hQAAAAAXNSR0IArs4c6QAAA9pJREFUWEfN2H1oVWUcwPHvc69Z0ybONpGZmU6NEt2mhdsw06B8AVFcW4hS4gvOl0jDNJUsRSgyUHoPEl+CEZso+s/Y/lDKV2jSNrXwlXKuLIZOXc2md4/85J7tuYe7c869ec7t+e/ee57n+dzzvP2enwIKgB3AU4AitrQB3wGLgIjtt0A/CuwM8IxLr/OAXYHKbJ0J9BqQ4YL4EliaaugHwDsuiGpgSqqh0v+Ltjk6AXjVgJ0HRvwfoHbDTGCf8WU7kAZ0pAprX+WWYzRQb6IGrV0yI3P6pBuBQnuEdaSDSw0FxVe6gz4K3DS3q5xt635PH5efHSgU0OgOQuGl3UHF8xeQZcEGrlrYnFU8OTNoqPSnFVedoCeAcRas/+uz7maXze6RCihw3QlaDsy2YH3GP3dt6JbV/VIE/ckJuhlYb8FU2sP1uQfLlwUBVUTWaNR0qy8Ne52gC4BvDNifwIAgoHnHKqtRvNzZl1IfO0EnAQcNmAbSgb/9xuYdrzwHDO+ChpY5QQcDv9pQo4DTvkK1DuWd2CNRW8/OaQfTnKBh4B+zAjADOOAndGxtxRORO+o3s4+IVk87QeVZOeOHGZVWAtv8hOYdr5wIHOoad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EHbMmyJlI5lS6goA+BoAllbRPYeIx+zURESjxhj7vAgR7Uhm//Mp4xgA2NnxcSnlHt/3FwkhTp93B4oflFKXIeJ7RFRWrfWmwNGb8Dyvt62tbb9S6hkAuM+eN1LKn8rSXM0xEaHW2vbxHUR05UyDI+KnRNQnpTyllHoRAB4p+DhjjFkTjUa/L/qseTEZGxu7dHx8/EFE3EpEYhoQ29SOMsb2cs4HrK5Sah0AVJ4nZxHxViHEcatTE8ANWBixuhGxnYjsncHeCcYZY7aXnDTGDEgpz1ZCaq2fMMaUmk/h+wQirhdC9NcNMNM0uPpKqccQ8Vmb2tLWI2YYY3fOC4ANqrV+2BhjB9JSTMbY/nkDsBCJROJ+RLStmAHAgXQ6vWleASyE7/ubAeAWzvkWe/n5F1ek5boVi45TAAAAAElFTkSuQmCC";const yo="_hotGoods_1xtmi_1",bo="_title_1xtmi_8",Oo="_tips_1xtmi_20",So="_hotGoodsSection_1xtmi_36",xo="_hotGoodsItem_1xtmi_42",Co="_hotGoodsItemImg_1xtmi_43",Eo="_hotGoodsWrap_1xtmi_50",Io="_hotIcon_1xtmi_53";var q={hotGoods:yo,title:bo,tips:Oo,hotGoodsSection:So,hotGoodsItem:xo,hotGoodsItemImg:Co,hotGoodsWrap:Eo,hotIcon:Io},To=D({name:"hot-goods",props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:e=>{}}},render(){return p("div",{class:q.hotGoods},[p("div",{class:q.hotGoodsSection},[this.hotProductList.map(e=>p("div",{class:q.hotGoodsItem,onClick:()=>{this.onOpenWebView("/goodsDetail?id="+e.id)}},[p(ie,{class:q.hotGoodsItemImg,src:e.pic,fit:"cover"},null)]))])])}});const Ro="_swipeType_se6u6_1",Bo="_swipeTypeShow_se6u6_17",Po="_typeSection_se6u6_20",Lo="_typeItem_se6u6_24",ko="_swipeTypeImg_se6u6_28",Wo="_typeName_se6u6_34";var H={swipeType:Ro,swipeTypeShow:Bo,typeSection:Po,typeItem:Lo,swipeTypeImg:ko,typeName:Wo};function ye(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ee(e)}var Uo=D({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:e=>{}}},render(){let e;return p(Te,{class:[H.swipeType,this.productList.length>1&&H.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},ye(e=this.productList.map(t=>{let o;return p(Ie,{class:H.typeSection},ye(o=t.map(n=>p("div",{class:H.typeItem,onClick:()=>{this.onOpenWebView("/goodsList?id="+n.id+"&tag="+encodeURIComponent(n.name))}},[p(ie,{class:H.swipeTypeImg,src:n.icon,fit:"cover"},null),p("p",{class:H.typeName},[n.name])])))?o:{default:()=>[o]})}))?e:{default:()=>[e]})}});const Vo="_shopMall_1n3sa_1",Ho="_hotContent_1n3sa_5",No="_dot_1n3sa_15",Mo="_iconBadge_1n3sa_24",Do="_searchBox_1n3sa_27",jo="_swipe_1n3sa_33",Ko="_swipeItemImg_1n3sa_38",zo="_tabs_1n3sa_53";var G={shopMall:Vo,hotContent:Ho,"icon-shop-cart":"_icon-shop-cart_1n3sa_10",dot:No,iconBadge:Mo,searchBox:Do,swipe:jo,swipeItemImg:Ko,tabs:zo};const Fo="_theHomeHeader_1wz49_1",Go="_content_1wz49_8",Qo="_mall_1wz49_12",_o="_cart_1wz49_17",Jo="_more_1wz49_22",Yo="_searchBox_1wz49_29",qo="_iconSearch_1wz49_41",Xo="_popover_1wz49_46";var P={theHomeHeader:Fo,content:Go,mall:Qo,cart:_o,more:Jo,searchBox:Yo,iconSearch:qo,popover:Xo};var Zo=D({name:"TheHomeHeader",emits:["cart","more","search"],setup(e,{emit:t}){const o=Q(sessionStorage.getItem("navHeight"));(()=>{Z({api:"setBarStatus",content:{status:0}}),!o.value&&Z({api:"getNavHeight"},i=>{const{content:l}=i,d=l.dpi||2;if(l.navHeight){const c=l.navHeight/d+"";sessionStorage.setItem("navHeight",c),o.value=c}})})();const r={reference:()=>p("img",{class:P.more,src:go,onClick:()=>t("more")},null)},a=Q(!1),s=[{text:"\u6211\u7684\u8BA2\u5355",icon:Ao,url:"/goodsOrder"},{text:"\u6211\u7684\u5730\u5740",icon:vo,url:"/"}];return()=>p("div",{class:P.theHomeHeader},[p("div",{style:{height:o.value+"px",background:"#fff"}},null),p("div",{class:P.content},[p("img",{class:P.mall,src:mo},null),p("div",{class:P.searchBox,onClick:()=>t("search")},[p("img",{class:P.iconSearch,src:wo},null),p("span",null,[nt("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),p(rt,{content:Re.value,showZero:!1},{default:()=>[p("img",{class:P.cart,src:ho,onClick:()=>t("cart")},null)]}),p(so,{placement:"bottom-end",class:P.popover,show:a.value,"onUpdate:show":i=>a.value=i,actions:s,onSelect:i=>t("more",i)},r)])])}});function $o(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ee(e)}var wn=D({name:"shop-mall",data(){return{loading:!1,height:"auto",count:0,advertiseList:[],productList:[],hotProductList:[],productCategoryList:[]}},mounted(){this.init(),ue().ios?document.addEventListener("visibilitychange",e=>{if(!document.hidden){de();const t=this.$refs.tabFirst;t==null||t.onSearch()}}):at("UpdateToken",e=>{e!=null&&e.content.token&&ct(e==null?void 0:e.content.token),de();const t=this.$refs.tabFirst;t==null||t.onSearch()})},unmounted(){st("UpdateToken",()=>{})},methods:{onRefresh(){this.productCategoryList=[],this.$nextTick(()=>{this.init()});const e=this.$refs.tabFirst;e==null||e.onSearch()},async init(){try{const t=(await it.get("/api-mall-portal/home/content")).data||{};this.count=t.count,Re.value=t.count,this.advertiseList=t.advertiseList;const o=t.productCategoryList||[],n=[];for(;o.length>0;){const r=o.splice(0,5);n.push(r)}this.productList=n,this.hotProductList=t.hotProductList||[],this.productCategoryList=t.productAttributeCategoryList||[]}catch{}setTimeout(()=>{this.loading=!1},500)},openWebView(e){try{let t=location.origin+location.pathname+"#";if(!e)return;if(e.indexOf("http")<0&&(e=t+e),console.log("\u8DF3\u8F6Curl:",e),!ue().isApp){location.href=e;return}Z({api:"openWebView",content:{url:e,orientation:1,isHideTitle:!1}})}catch{}}},render(){let e;return p("div",{class:G.shopMall},[p(Zo,{onCart:()=>this.openWebView("/cart"),onSearch:()=>this.openWebView("/goodsList?input=focus"),onMore:t=>{!t||(t.text=="\u6211\u7684\u5730\u5740"?Z({api:"setAddress",content:{}}):this.openWebView(t.url))}},null),p(fo,{modelValue:this.loading,"onUpdate:modelValue":t=>this.loading=t,"loading-text":"\u6B63\u5728\u5237\u65B0...","success-text":"\u5237\u65B0\u5B8C\u6210",onRefresh:()=>this.onRefresh()},{default:()=>[p("div",{class:G.hotContent},[p(Te,{class:G.swipe,autoplay:3e3},$o(e=this.advertiseList.map(t=>p(Ie,{onClick:()=>this.openWebView(t.url)},{default:()=>[p(ie,{class:G.swipeItemImg,src:t.pic,fit:"fill"},null)]})))?e:{default:()=>[e]}),p(Uo,{productList:this.productList,onOpenWebView:this.openWebView},null)]),this.hotProductList.length===3&&p(To,{hotProductList:this.hotProductList,onOpenWebView:this.openWebView},null),p(lt,{shrink:!0,lineWidth:25,background:"#f6f8f9",color:"var(--van-primary)",class:G.tabs,sticky:!0,offsetTop:this.height,lazyRender:!0},{default:()=>[p(pe,{title:"\u5168\u90E8",name:0},{default:()=>[p(fe,{ref:"tabFirst",isTab:!0,productAttributeCategoryId:0,onOpenWebView:this.openWebView,showAdd:!1},null)]}),this.productCategoryList.map(t=>p(pe,{title:t.name,name:t.id},{default:()=>[p(fe,{isTab:!0,showAdd:!1,productAttributeCategoryId:t.id,onOpenWebView:this.openWebView},null)]}))]})]})])}});export{wn as default};
|