12345 |
- import{E as Pe,a0 as re,aY as Me,G as Ve,H as z,I as Ne,d as F,U as J,V as we,a5 as He,a3 as Ke,bx as je,j as p,aS as De,a8 as Ge,aB as Je,F as qe,X as Oe,J as Qe,N as Fe,aV as ze,O as Ye,$ as Ce,Q as Xe,Y as _e,g as _,f as ae,n as q,A as Ze,aw as $e,b5 as et,bv as tt,y as ot,bE as pe,u as nt}from"./ResizeObserver.es.39b48a47.js";import{I as se}from"./index.fcbcb027.js";import{P as rt}from"./index.d3f6a1c6.js";import{a as Se,S as Ee}from"./index.0e35d2fb.js";import"./index.608320e9.js";import{T as at,a as ue}from"./index.5d4d28cc.js";import{T as fe}from"./index.94d55063.js";import{c as xe,g as de}from"./shop-mall.eb722a4b.js";import{C as it}from"./index.970ad07b.js";import"./use-id.b004ff17.js";import"./use-tab-status.bcc0c503.js";import"./use-refs.07204da6.js";import"./index.6c529ad4.js";import"./index.c527ae4e.js";import"./index.db115763.js";import"./index.bb84a3aa.js";import"./index.3c44a6d7.js";import"./index.c88884de.js";import"./index.34ac729a.js";import"./icon-sell-out.98742fd0.js";function E(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ie(t){var e=E(t).Element;return t instanceof e||t instanceof Element}function S(t){var e=E(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Re(t){if(typeof ShadowRoot=="undefined")return!1;var e=E(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var H=Math.round;function $(t,e){e===void 0&&(e=!1);var o=t.getBoundingClientRect(),n=1,r=1;if(S(t)&&e){var a=t.offsetHeight,s=t.offsetWidth;s>0&&(n=H(o.width)/s||1),a>0&&(r=H(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 Be(t){var e=E(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function st(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ct(t){return t===E(t)||!S(t)?Be(t):st(t)}function I(t){return t?(t.nodeName||"").toLowerCase():null}function oe(t){return((Ie(t)?t.ownerDocument:t.document)||window.document).documentElement}function lt(t){return $(oe(t)).left+Be(t).scrollLeft}function R(t){return E(t).getComputedStyle(t)}function ce(t){var e=R(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function pt(t){var e=t.getBoundingClientRect(),o=H(e.width)/t.offsetWidth||1,n=H(e.height)/t.offsetHeight||1;return o!==1||n!==1}function ut(t,e,o){o===void 0&&(o=!1);var n=S(e),r=S(e)&&pt(e),a=oe(e),s=$(t,r),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((I(e)!=="body"||ce(a))&&(c=ct(e)),S(e)?(l=$(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=lt(a))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function ft(t){var e=$(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function le(t){return I(t)==="html"?t:t.assignedSlot||t.parentNode||(Re(t)?t.host:null)||oe(t)}function ke(t){return["html","body","#document"].indexOf(I(t))>=0?t.ownerDocument.body:S(t)&&ce(t)?t:ke(le(t))}function Z(t,e){var o;e===void 0&&(e=[]);var n=ke(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),a=E(n),s=r?[a].concat(a.visualViewport||[],ce(n)?n:[]):n,c=e.concat(s);return r?c:c.concat(Z(le(s)))}function dt(t){return["table","td","th"].indexOf(I(t))>=0}function he(t){return!S(t)||R(t).position==="fixed"?null:t.offsetParent}function ht(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&S(t)){var n=R(t);if(n.position==="fixed")return null}var r=le(t);for(Re(r)&&(r=r.host);S(r)&&["html","body"].indexOf(I(r))<0;){var a=R(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function Ue(t){for(var e=E(t),o=he(t);o&&dt(o)&&R(o).position==="static";)o=he(o);return o&&(I(o)==="html"||I(o)==="body"&&R(o).position==="static")?e:o||ht(t)||e}var N="top",ee="bottom",Q="right",T="left",Le="auto",vt=[N,ee,Q,T],We="start",te="end",mt=[].concat(vt,[Le]).reduce(function(t,e){return t.concat([e,e+"-"+We,e+"-"+te])},[]),At="beforeRead",gt="read",bt="afterRead",yt="beforeMain",wt="main",Ot="afterMain",Ct="beforeWrite",St="write",Et="afterWrite",ie=[At,gt,bt,yt,wt,Ot,Ct,St,Et];function xt(t){var e=new Map,o=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function r(a){o.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(c){if(!o.has(c)){var l=e.get(c);l&&r(l)}}),n.push(a)}return t.forEach(function(a){o.has(a.name)||r(a)}),n}function It(t){var e=xt(t);return ie.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function Rt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function k(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return[].concat(o).reduce(function(r,a){return r.replace(/%s/,a)},t)}var L='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Bt='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',ve=["name","enabled","phase","fn","effect","requires","options"];function kt(t){t.forEach(function(e){[].concat(Object.keys(e),ve).filter(function(o,n,r){return r.indexOf(o)===n}).forEach(function(o){switch(o){case"name":typeof e.name!="string"&&console.error(k(L,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(k(L,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":ie.indexOf(e.phase)<0&&console.error(k(L,e.name,'"phase"',"either "+ie.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(k(L,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(k(L,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(k(L,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(k(L,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+ve.map(function(n){return'"'+n+'"'}).join(", ")+'; but "'+o+'" was provided.')}e.requires&&e.requires.forEach(function(n){t.find(function(r){return r.name===n})==null&&console.error(k(Bt,String(e.name),n,n))})})})}function Ut(t,e){var o=new Set;return t.filter(function(n){var r=e(n);if(!o.has(r))return o.add(r),!0})}function ne(t){return t.split("-")[0]}function Lt(t){var e=t.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(e).map(function(o){return e[o]})}function Te(t){return t.split("-")[1]}function Wt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Tt(t){var e=t.reference,o=t.element,n=t.placement,r=n?ne(n):null,a=n?Te(n):null,s=e.x+e.width/2-o.width/2,c=e.y+e.height/2-o.height/2,l;switch(r){case N:l={x:s,y:e.y-o.height};break;case ee:l={x:s,y:e.y+e.height};break;case Q:l={x:e.x+e.width,y:c};break;case T:l={x:e.x-o.width,y:c};break;default:l={x:e.x,y:e.y}}var u=r?Wt(r):null;if(u!=null){var i=u==="y"?"height":"width";switch(a){case We:l[u]=l[u]-(e[i]/2-o[i]/2);break;case te:l[u]=l[u]+(e[i]/2-o[i]/2);break}}return l}var me="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Pt="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ae={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Mt(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,a=r===void 0?Ae:r;return function(c,l,u){u===void 0&&(u=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ae,a),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},g=[],C=!1,d={state:i,setOptions:function(v){var O=typeof v=="function"?v(i.options):v;A(),i.options=Object.assign({},a,i.options,O),i.scrollParents={reference:Ie(c)?Z(c):c.contextElement?Z(c.contextElement):[],popper:Z(l)};var y=It(Lt([].concat(n,i.options.modifiers)));i.orderedModifiers=y.filter(function(w){return w.enabled});{var b=Ut([].concat(y,i.options.modifiers),function(w){var M=w.name;return M});if(kt(b),ne(i.options.placement)===Le){var m=i.orderedModifiers.find(function(w){var M=w.name;return M==="flip"});m||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var h=R(l),B=h.marginTop,U=h.marginRight,K=h.marginBottom,j=h.marginLeft;[B,U,K,j].some(function(w){return parseFloat(w)})&&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 P(),d.update()},forceUpdate:function(){if(!C){var v=i.elements,O=v.reference,y=v.popper;if(!ge(O,y)){console.error(me);return}i.rects={reference:ut(O,Ue(y),i.options.strategy==="fixed"),popper:ft(y)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(w){return i.modifiersData[w.name]=Object.assign({},w.data)});for(var b=0,m=0;m<i.orderedModifiers.length;m++){if(b+=1,b>100){console.error(Pt);break}if(i.reset===!0){i.reset=!1,m=-1;continue}var h=i.orderedModifiers[m],B=h.fn,U=h.options,K=U===void 0?{}:U,j=h.name;typeof B=="function"&&(i=B({state:i,options:K,name:j,instance:d})||i)}}},update:Rt(function(){return new Promise(function(f){d.forceUpdate(),f(i)})}),destroy:function(){A(),C=!0}};if(!ge(c,l))return console.error(me),d;d.setOptions(u).then(function(f){!C&&u.onFirstUpdate&&u.onFirstUpdate(f)});function P(){i.orderedModifiers.forEach(function(f){var v=f.name,O=f.options,y=O===void 0?{}:O,b=f.effect;if(typeof b=="function"){var m=b({state:i,name:v,instance:d,options:y}),h=function(){};g.push(m||h)}})}function A(){g.forEach(function(f){return f()}),g=[]}return d}}var Y={passive:!0};function Vt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,a=r===void 0?!0:r,s=n.resize,c=s===void 0?!0:s,l=E(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&u.forEach(function(i){i.addEventListener("scroll",o.update,Y)}),c&&l.addEventListener("resize",o.update,Y),function(){a&&u.forEach(function(i){i.removeEventListener("scroll",o.update,Y)}),c&&l.removeEventListener("resize",o.update,Y)}}var Nt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vt,data:{}};function Ht(t){var e=t.state,o=t.name;e.modifiersData[o]=Tt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Kt={name:"popperOffsets",enabled:!0,phase:"read",fn:Ht,data:{}},jt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dt(t){var e=t.x,o=t.y,n=window,r=n.devicePixelRatio||1;return{x:H(e*r)/r||0,y:H(o*r)/r||0}}function be(t){var e,o=t.popper,n=t.popperRect,r=t.placement,a=t.variation,s=t.offsets,c=t.position,l=t.gpuAcceleration,u=t.adaptive,i=t.roundOffsets,g=t.isFixed,C=s.x,d=C===void 0?0:C,P=s.y,A=P===void 0?0:P,f=typeof i=="function"?i({x:d,y:A}):{x:d,y:A};d=f.x,A=f.y;var v=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),y=T,b=N,m=window;if(u){var h=Ue(o),B="clientHeight",U="clientWidth";if(h===E(o)&&(h=oe(o),R(h).position!=="static"&&c==="absolute"&&(B="scrollHeight",U="scrollWidth")),h=h,r===N||(r===T||r===Q)&&a===te){b=ee;var K=g&&h===m&&m.visualViewport?m.visualViewport.height:h[B];A-=K-n.height,A*=l?1:-1}if(r===T||(r===N||r===ee)&&a===te){y=Q;var j=g&&h===m&&m.visualViewport?m.visualViewport.width:h[U];d-=j-n.width,d*=l?1:-1}}var w=Object.assign({position:c},u&&jt),M=i===!0?Dt({x:d,y:A}):{x:d,y:A};if(d=M.x,A=M.y,l){var D;return Object.assign({},w,(D={},D[b]=O?"0":"",D[y]=v?"0":"",D.transform=(m.devicePixelRatio||1)<=1?"translate("+d+"px, "+A+"px)":"translate3d("+d+"px, "+A+"px, 0)",D))}return Object.assign({},w,(e={},e[b]=O?A+"px":"",e[y]=v?d+"px":"",e.transform="",e))}function Gt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,a=o.adaptive,s=a===void 0?!0:a,c=o.roundOffsets,l=c===void 0?!0:c;{var u=R(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(g){return u.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 i={placement:ne(e.placement),variation:Te(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,be(Object.assign({},i,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,be(Object.assign({},i,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Jt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gt,data:{}};function qt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},a=e.elements[o];!S(a)||!I(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var c=r[s];c===!1?a.removeAttribute(s):a.setAttribute(s,c===!0?"":c)}))})}function Qt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],a=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),c=s.reduce(function(l,u){return l[u]="",l},{});!S(r)||!I(r)||(Object.assign(r.style,c),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var Ft={name:"applyStyles",enabled:!0,phase:"write",fn:qt,effect:Qt,requires:["computeStyles"]},zt=[Nt,Kt,Jt,Ft],Yt=Mt({defaultModifiers:zt});function Xt(t,e,o){var n=ne(t),r=[T,N].indexOf(n)>=0?-1:1,a=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=a[0],c=a[1];return s=s||0,c=(c||0)*r,[T,Q].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}function _t(t){var e=t.state,o=t.options,n=t.name,r=o.offset,a=r===void 0?[0,0]:r,s=mt.reduce(function(i,g){return i[g]=Xt(g,e.rects,a),i},{}),c=s[e.placement],l=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}var Zt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_t};const[$t,W]=Pe("popover"),eo=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],to={show:Boolean,theme:re("light"),overlay:Boolean,actions:Me(),trigger:re("click"),duration:Ve,showArrow:z,placement:re("bottom"),iconPrefix:String,overlayClass:Ne,overlayStyle:Object,closeOnClickAction:z,closeOnClickOverlay:z,closeOnClickOutside:z,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var oo=F({name:$t,props:to,emits:["select","touchstart","update:show"],setup(t,{emit:e,slots:o,attrs:n}){let r;const a=J(),s=J(),c=()=>a.value&&s.value?Yt(a.value,s.value.popupRef.value,{placement:t.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Qe({},Zt,{options:{offset:t.offset}})]}):null,l=()=>{Oe(()=>{!t.show||(r?r.setOptions({placement:t.placement}):r=c())})},u=f=>e("update:show",f),i=()=>{t.trigger==="click"&&u(!t.show)},g=f=>{f.stopPropagation(),e("touchstart",f)},C=(f,v)=>{f.disabled||(e("select",f,v),t.closeOnClickAction&&u(!1))},d=()=>{t.closeOnClickOutside&&(!t.overlay||t.closeOnClickOverlay)&&u(!1)},P=(f,v)=>o.action?o.action({action:f,index:v}):[f.icon&&p(Fe,{name:f.icon,classPrefix:t.iconPrefix,class:W("action-icon")},null),p("div",{class:[W("action-text"),ze]},[f.text])],A=(f,v)=>{const{icon:O,color:y,disabled:b,className:m}=f;return p("div",{role:"menuitem",class:[W("action",{disabled:b,"with-icon":O}),m],style:{color:y},tabindex:b?void 0:0,"aria-disabled":b||void 0,onClick:()=>C(f,v)},[P(f,v)])};return we(l),He(()=>{r&&(r.destroy(),r=null)}),Ke(()=>[t.show,t.placement],l),je(a,d,{eventName:"touchstart"}),()=>{var f;return p(qe,null,[p("span",{ref:a,class:W("wrapper"),onClick:i},[(f=o.reference)==null?void 0:f.call(o)]),p(De,Ge({ref:s,class:W([t.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:g,"onUpdate:show":u},n,Je(t,eo)),{default:()=>[t.showArrow&&p("div",{class:W("arrow")},null),p("div",{role:"menu",class:W("content")},[o.default?o.default():t.actions.map(A)])]})])}}});const no=Ye(oo);var ro="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAg1JREFUaEPtm79KxEAQh+dXyIG1hT6EhdxiL9jIwRV3PoFPYKO2V9opNtf5BCJ2gojtFXcLgr22gv0Jio7kMBJClGz23+ydqTPJfJlvJ9llAxJ4tNvtJQAbRHRMROtE9ADgqNPp6MFg8GmaMkwDfJ+fATJzD8AJEa3l9wPwCKA/Ho/vTXMQB6mU2mHmcyJaLcG8EdGB1vosWchvRbeZ+YKIlitA0oYsKHpaUcEZL4AnAL1kdf1D0bygU2bud7vdm+QaTw1FM8hnAHuTyeTadCz+NK2mgbZxdRTNAJl5H8Cl1vq96T2jddc6igLYZeZbG8DZeG76dJrGhVK0mF9QyJCKRoMMqWhwyBiKBoWMpWhQyFiKBoGMrah3SAmKeoeUoKg3SEmKeoGUpqgXSGmKOoWUqqgzSMmKOoOUrKg1ZAqKWkGmoqgVpFJqk5mvigu/pQn01NWMvunEvBxnPGlWSt0x89YvCVgvOrkCs63kCzOvVCTzwczDVqt1OBqNXn0k2/Sa/5WsenILMSYXortm1Z3792RR4bn+4slBU1HXuLuWm1EK6lpD5tCS1XUGKVldZ5CSu65TSKnqeoGUpq4XSGnqeoOUpK53SAnqeoeUoG4QyNjqBoWMpW5QyFjqBoeMoW40yJDqR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o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAAAWlJREFUWEftmL9Lw0AUx7+v6VIVBzuqo65KLsR01slVsjsLiiDo36AgiIOze3F10tlYklBXHW1HHUTt0vTJDXYoqSfpWY9yt4Xj5T73ee/y4xEAcl13h4iOACzIa4x3MIAWMx+naXpBQohdAOfjZRi62p4EagGYNwSoLYF6/5CmYftnCSRz2B9Jkoy1hgbXt0CDubKGVKfXGvoTQ77vV7Ms22bmGdUCefNE9O44zmWj0XjRUtSe590w83oRmO8YIrqN43hDC5AQ4hNAZRQgAJ0kSaa0ABlnyLgaGjFVP4bb55DKrjVkDakMqOYno4bc6CroMZ8BvKjacf48PZeI9tNgK9Ly6li9qz8CWCoG0496atbCZV1A8rNhbkSg12YtrGoBWonqBwBOiFEqAsUE+e93+BCEp1qA5E3WouvZbrkzXQSo3K183Aebb3mxk3HKilj5bYw1pDJlDU2EIeMaVsa19MxqeprWFv4Cg3ombpWgR0sAAAAASUVORK5CYII=",po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABLtJREFUWEe9l2toXEUUgM+Zu4kaQVKpVVLKZjMz2bYrRiEpEhHFltJqWpXijxbBNlUQrIoSKkIrFqvS+kb7Q3yB+kPoQ2tBqVLjI7WowUeFxt25s5uIkFCVsk26mN29c2R0d5ndbDebJuT8u/eexzdzzp1zBqEO0Vp3GWN6ELGbiNoRcSERNQLABACMAMBJxlh/KBT6KBwOn6nDZUkFayknk8l1QRA8BQAddTqdZIy96Xne062traP12FQFGBoaam1oaHifiG6ox0kVnQwi7hJC7J3OfgqA1nqlMeYDAFhYw5gAIAcANg215GA2m90ci8VsqqpKGYDWepUx5hMAaHC1icgGOwgAR0Kh0PFIJDKKiNmRkZEF+XyeE9EaItoIAMsroyDiN5OTk6tisVi2GkEJIJFILEPEbwGguULxYGNj4/ZwOJystVQiYr7vb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wQirhdC9NcNMNM0uPpKqccQ8Vmb2tLWI2YYY3fOC4ANqrV+2BhjB9JSTMbY/nkDsBCJROJ+RLStmAHAgXQ6vWleASyE7/ubAeAWzvkWe/n5F1ek5boVi45TAAAAAElFTkSuQmCC";const uo="_hotGoods_1xtmi_1",fo="_title_1xtmi_8",ho="_tips_1xtmi_20",vo="_hotGoodsSection_1xtmi_36",mo="_hotGoodsItem_1xtmi_42",Ao="_hotGoodsItemImg_1xtmi_43",go="_hotGoodsWrap_1xtmi_50",bo="_hotIcon_1xtmi_53";var X={hotGoods:uo,title:fo,tips:ho,hotGoodsSection:vo,hotGoodsItem:mo,hotGoodsItemImg:Ao,hotGoodsWrap:go,hotIcon:bo},yo=F({name:"hot-goods",props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){return p("div",{class:X.hotGoods},[p("div",{class:X.hotGoodsSection},[this.hotProductList.map(t=>p("div",{class:X.hotGoodsItem,onClick:()=>{this.onOpenWebView("/goodsDetail?id="+t.id)}},[p(se,{class:X.hotGoodsItemImg,src:t.pic,fit:"cover"},null)]))])])}});const wo="_swipeType_se6u6_1",Oo="_swipeTypeShow_se6u6_17",Co="_typeSection_se6u6_20",So="_typeItem_se6u6_24",Eo="_swipeTypeImg_se6u6_28",xo="_typeName_se6u6_34";var V={swipeType:wo,swipeTypeShow:Oo,typeSection:Co,typeItem:So,swipeTypeImg:Eo,typeName:xo};function ye(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ce(t)}var Io=F({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){let t;return p(Ee,{class:[V.swipeType,this.productList.length>1&&V.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},ye(t=this.productList.map(e=>{let o;return p(Se,{class:V.typeSection},ye(o=e.map(n=>p("div",{class:V.typeItem,onClick:()=>{this.onOpenWebView("/goodsList?id="+n.id+"&tag="+encodeURIComponent(n.name))}},[p(se,{class:V.swipeTypeImg,src:n.icon,fit:"cover"},null),p("p",{class:V.typeName},[n.name])])))?o:{default:()=>[o]})}))?t:{default:()=>[t]})}});const Ro="_shopMall_3fob3_1",Bo="_hotContent_3fob3_5",ko="_dot_3fob3_15",Uo="_iconBadge_3fob3_24",Lo="_searchBox_3fob3_27",Wo="_swipe_3fob3_33",To="_swipeItemImg_3fob3_38",Po="_tabs_3fob3_53";var G={shopMall:Ro,hotContent:Bo,"icon-shop-cart":"_icon-shop-cart_3fob3_10",dot:ko,iconBadge:Uo,searchBox:Lo,swipe:Wo,swipeItemImg:To,tabs:Po};const Mo="_theHomeHeader_14nm7_1",Vo="_content_14nm7_8",No="_iconBack_14nm7_12",Ho="_mall_14nm7_17",Ko="_cart_14nm7_22",jo="_more_14nm7_27",Do="_searchBox_14nm7_34",Go="_iconSearch_14nm7_46",Jo="_popover_14nm7_51";var x={theHomeHeader:Mo,content:Vo,iconBack:No,mall:Ho,cart:Ko,more:jo,searchBox:Do,iconSearch:Go,popover:Jo};var qo=F({name:"TheHomeHeader",emits:["cart","more","search","headerDom"],setup(t,{emit:e}){const o=Xe(),n=J(sessionStorage.getItem("navHeight")),r=J(null);(()=>{q({api:"setBarStatus",content:{status:0}}),!n.value&&q({api:"getNavHeight"},u=>{const{content:i}=u,g=i.dpi||2;if(i.navHeight){const C=i.navHeight/g+"";sessionStorage.setItem("navHeight",C),n.value=C}})})();const s={reference:()=>p("img",{class:x.more,src:co,onClick:()=>e("more")},null)};we(()=>{Oe(()=>{setTimeout(()=>{const{height:u}=_e(r);e("headerDom",u)},300)})});const c=J(!1),l=[{text:"\u6211\u7684\u8BA2\u5355",icon:lo,url:"/goodsOrder"},{text:"\u6211\u7684\u5730\u5740",icon:io,url:"/"}];return()=>p("div",{class:x.theHomeHeader,ref:r},[_.sourcType==="kt"?p(it,null,null):p("div",{style:{height:n.value+"px",background:"#fff"}},null),p("div",{class:x.content},[_.sourcType!=="kt"&&_.platformType!=="TEACHER"?p("img",{class:x.iconBack,src:ro,onClick:()=>{ae().isApp?q({api:"goBack"}):o.back()}},null):"",p("img",{class:x.mall,src:so},null),p("div",{class:x.searchBox,onClick:()=>e("search")},[p("img",{class:x.iconSearch,src:po},null),p("span",null,[Ze("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),p($e,{content:xe.value,showZero:!1},{default:()=>[p("img",{class:x.cart,src:ao,onClick:()=>e("cart")},null)]}),p(no,{placement:"bottom-end",class:x.popover,show:c.value,"onUpdate:show":u=>c.value=u,actions:l,onSelect:u=>e("more",u)},s)])])}});function Qo(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ce(t)}var hn=F({name:"shop-mall",data(){return{loading:!1,height:"auto",count:0,advertiseList:[],productList:[],hotProductList:[],productCategoryList:[]}},mounted(){this.init(),ae().ios?document.addEventListener("visibilitychange",t=>{if(!document.hidden){de();const e=this.$refs.tabFirst;e==null||e.onSearch()}}):et("UpdateToken",t=>{t!=null&&t.content.token&&nt(t==null?void 0:t.content.token),de();const e=this.$refs.tabFirst;e==null||e.onSearch()})},unmounted(){tt("UpdateToken",()=>{})},methods:{onRefresh(){this.productCategoryList=[],this.$nextTick(()=>{this.init()});const t=this.$refs.tabFirst;t==null||t.onSearch()},async init(){try{const e=(await ot.get("/api-mall-portal/home/content")).data||{};this.count=e.count,xe.value=e.count,this.advertiseList=e.advertiseList;const o=e.productCategoryList||[],n=[];for(;o.length>0;){const r=o.splice(0,5);n.push(r)}this.productList=n,this.hotProductList=e.hotProductList||[],this.productCategoryList=e.productAttributeCategoryList||[]}catch{}setTimeout(()=>{this.loading=!1},500)},openWebView(t){try{const e=location.origin+location.pathname+"#";if(!t)return;if(t.indexOf("http")<0&&(t=e+t),!ae().isApp){location.href=t;return}_.sourcType==="kt"&&(t.indexOf("?")!==-1?t+=`&Authorization=${encodeURI(pe()||"")}&source=kt`:t+=`?Authorization=${encodeURI(pe()||"")}&source=kt`),q({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}catch{}}},render(){let t;return p("div",{class:G.shopMall},[p(qo,{onCart:()=>this.openWebView("/cart"),onSearch:()=>this.openWebView("/goodsList?input=focus"),onHeaderDom:e=>{console.log(e,"height"),this.height=e+"px"},onMore:e=>{!e||(e.text=="\u6211\u7684\u5730\u5740"?q({api:"setAddress",content:{}}):this.openWebView(e.url))}},null),p(rt,{modelValue:this.loading,"onUpdate:modelValue":e=>this.loading=e,"loading-text":"\u6B63\u5728\u5237\u65B0...","success-text":"\u5237\u65B0\u5B8C\u6210",onRefresh:()=>this.onRefresh()},{default:()=>[p("div",{class:G.hotContent},[p(Ee,{class:G.swipe,autoplay:3e3},Qo(t=this.advertiseList.map(e=>p(Se,{onClick:()=>this.openWebView(e.url)},{default:()=>[p(se,{class:G.swipeItemImg,src:e.pic,fit:"fill"},null)]})))?t:{default:()=>[t]}),p(Io,{productList:this.productList,onOpenWebView:this.openWebView},null)]),this.hotProductList.length===3&&p(yo,{hotProductList:this.hotProductList,onOpenWebView:this.openWebView},null),p(at,{shrink:!0,lineWidth:25,background:"#f6f8f9",color:"var(--van-primary)",class:G.tabs,sticky:!0,offsetTop:this.height,lazyRender:!0},{default:()=>[p(ue,{title:"\u5168\u90E8",name:0},{default:()=>[p(fe,{ref:"tabFirst",isTab:!0,productAttributeCategoryId:0,onOpenWebView:this.openWebView,showAdd:!1},null)]}),this.productCategoryList.map(e=>p(ue,{title:e.name,name:e.id},{default:()=>[p(fe,{isTab:!0,showAdd:!1,productAttributeCategoryId:e.id,onOpenWebView:this.openWebView},null)]}))]})]})])}});export{hn as default};
|