index-legacy.586f279c.js 43 KB

1
  1. !function(){function e(e,t,o,n,r,a,i){try{var s=e[a](i),c=s.value}catch(p){return void o(p)}s.done?t(c):Promise.resolve(c).then(n,r)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==o)return;var n,r,a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){s=!0,r=c}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var n=document.createElement("style");n.innerHTML="._hotGoods_1xtmi_1{margin:.32rem .37333rem;background:url(./assets/icon-hotbg.abc2d610.png);background-repeat:no-repeat;background-size:100%;border-radius:.18667rem}._hotGoods_1xtmi_1 ._title_1xtmi_8{font-size:.42667rem;font-weight:500;color:#333;display:flex;align-items:inherit;line-height:.58667rem}._hotGoods_1xtmi_1 ._title_1xtmi_8 .van-icon{margin-left:.21333rem;margin-right:.13333rem}._hotGoods_1xtmi_1 ._tips_1xtmi_20{display:flex;align-items:center;justify-content:flex-end}._hotGoods_1xtmi_1 ._tips_1xtmi_20>div{margin-left:.37333rem;display:flex;align-items:center;font-size:.32rem;color:#ff4e19;line-height:.42667rem}._hotGoods_1xtmi_1 ._tips_1xtmi_20 .van-icon{margin-right:.08rem}._hotGoods_1xtmi_1 ._hotGoodsSection_1xtmi_36{padding:.98667rem .21333rem .21333rem;display:flex;justify-content:space-between;align-items:center}._hotGoods_1xtmi_1 ._hotGoodsItem_1xtmi_42,._hotGoods_1xtmi_1 ._hotGoodsItemImg_1xtmi_43{width:2.8rem;height:2.8rem;background:#ffffff;border-radius:.16rem;overflow:hidden}._hotGoodsWrap_1xtmi_50{padding:.26667rem .21333rem .24rem}._hotIcon_1xtmi_53{height:.48rem}._swipeType_se6u6_1{padding-top:.53333rem;padding-bottom:.53333rem}._swipeType_se6u6_1 .van-swipe__indicators{bottom:.32rem}._swipeType_se6u6_1 .van-swipe__indicator:not(:last-child){margin-right:0}._swipeType_se6u6_1 .van-swipe__indicator{width:.53333rem;height:.10667rem;background:#ebebeb;border-radius:.10667rem}._swipeTypeShow_se6u6_17{padding-bottom:.8rem}._typeSection_se6u6_20{display:flex;align-items:center}._typeItem_se6u6_24{width:20%;text-align:center}._typeItem_se6u6_24 ._swipeTypeImg_se6u6_28{width:1.6rem;height:1.6rem;border-radius:50%;overflow:hidden}._typeItem_se6u6_24 ._typeName_se6u6_34{padding-top:.08rem;font-size:.32rem;color:#333}._shopMall_3fob3_1{max-width:20rem;margin:0 auto}._hotContent_3fob3_5{padding:.29333rem .37333rem 0;background-color:#fff;border-radius:0 0 .48rem .48rem}._icon-shop-cart_3fob3_10{display:flex;align-items:center;justify-content:center}._icon-shop-cart_3fob3_10 ._dot_3fob3_15{line-height:.42667rem;background:#ff4e19;border-radius:.26667rem .26667rem 0;font-size:.32rem;color:#fff;padding:0 .13333rem;margin-right:.13333rem}._iconBadge_3fob3_24 .van-badge{border:none}._searchBox_3fob3_27 .van-search{padding-bottom:0}._searchBox_3fob3_27 .van-search .van-search__content{background-color:#fff!important}._swipe_3fob3_33{height:35.2vmin;border-radius:.26667rem;overflow:hidden}._swipe_3fob3_33 ._swipeItemImg_3fob3_38{height:100%;width:100%}._swipe_3fob3_33 .van-swipe__indicators{right:.26667rem;left:initial}._swipe_3fob3_33 .van-swipe__indicator{transition:width .3s}._swipe_3fob3_33 .van-swipe__indicator--active{width:.32rem;border-radius:.10667rem}._tabs_3fob3_53 .van-tab{height:.8rem;padding:0 .37333rem;border-radius:.16rem;color:#333;font-size:.37333rem;background-color:#fff;margin-right:.26667rem}._tabs_3fob3_53 .van-tabs__wrap{height:initial!important;padding-top:.37333rem;padding-bottom:.37333rem;background-color:#f6f8f9}._tabs_3fob3_53 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._tabs_3fob3_53 .van-tab--active{background-color:#d9fff8;color:var(--van-primary)}._tabs_3fob3_53 .van-tabs__nav{padding:0 .10667rem 0 .37333rem!important}._tabs_3fob3_53 .van-tabs__line{display:none}._theHomeHeader_14nm7_1{position:sticky;top:0;background-color:#fff;padding:.26667rem .37333rem;z-index:100}._theHomeHeader_14nm7_1 ._content_14nm7_8{display:flex;align-items:center}._theHomeHeader_14nm7_1 ._content_14nm7_8 ._iconBack_14nm7_12{width:.50667rem;height:.50667rem;margin-right:.16rem}._theHomeHeader_14nm7_1 ._content_14nm7_8 ._mall_14nm7_17{width:1.92rem;height:.74667rem;flex-shrink:0}._theHomeHeader_14nm7_1 ._content_14nm7_8 ._cart_14nm7_22{width:.53333rem;height:.53333rem;flex-shrink:0}._theHomeHeader_14nm7_1 ._content_14nm7_8 ._more_14nm7_27{width:.53333rem;height:.42667rem;flex-shrink:0;margin-left:.42667rem;-o-object-fit:contain;object-fit:contain}._theHomeHeader_14nm7_1 ._searchBox_14nm7_34{flex:1;display:flex;align-items:center;padding:0 .42667rem;background-color:#f8f8f8;border-radius:.53333rem;color:#ccc;height:.8rem;margin-left:.10667rem;margin-right:.42667rem}._theHomeHeader_14nm7_1 ._searchBox_14nm7_34 ._iconSearch_14nm7_46{width:.42667rem;height:.42667rem;margin-right:.42667rem}._popover_14nm7_51 .van-popover__arrow{right:0!important}:root{--van-popover-arrow-size: .16rem;--van-popover-border-radius: var(--van-border-radius-lg);--van-popover-action-width: 3.41333rem;--van-popover-action-height: 1.17333rem;--van-popover-action-font-size: var(--van-font-size-md);--van-popover-action-line-height: var(--van-line-height-md);--van-popover-action-icon-size: .53333rem;--van-popover-light-text-color: var(--van-text-color);--van-popover-light-background-color: var(--van-background-color-light);--van-popover-light-action-disabled-text-color: var(--van-text-color-3);--van-popover-dark-text-color: var(--van-white);--van-popover-dark-background-color: #4a4a4a;--van-popover-dark-action-disabled-text-color: var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-border-radius)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text:after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;transform:translate(-50%);margin-bottom:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background-color);box-shadow:0 .05333rem .32rem rgba(50,50,51,.12)}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background-color)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background-color)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background-color)}.van-popover--dark .van-popover__action:active{background-color:rgba(0,0,0,.2)}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text:after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}\n",document.head.appendChild(n),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.4be048cf.js","./index-legacy.f82ecd29.js","./index-legacy.9d5cae73.js","./index-legacy.3ccba950.js","./index-legacy.cf09c997.js","./index-legacy.e703eecb.js","./shop-mall-legacy.8b9a3c37.js","./index-legacy.6ac2a941.js","./use-id-legacy.ef8b5e97.js","./use-tab-status-legacy.d7434e0b.js","./use-refs-legacy.d925b49f.js","./index-legacy.43e69380.js","./index-legacy.86ff9906.js","./index-legacy.c8c5bc4e.js","./index-legacy.421f1fa7.js","./index-legacy.23131301.js","./index-legacy.a203f53b.js","./index-legacy.9d25098b.js","./icon-sell-out-legacy.ae9d997a.js"],(function(o){"use strict";var n,r,a,i,s,c,p,l,d,f,u,v,m,h,g,b,A,_,y,w,x,k,O,C,S,E,j,U,B,W,R,I,L,H,V,P,z,K,T,M,J,q,N,G,Q;return{setters:[function(e){n=e.E,r=e.a0,a=e.aY,i=e.G,s=e.H,c=e.I,p=e.d,l=e.U,d=e.V,f=e.a5,u=e.a3,v=e.bx,m=e.j,h=e.aS,g=e.a8,b=e.aB,A=e.F,_=e.X,y=e.J,w=e.N,x=e.aV,k=e.O,O=e.$,C=e.Q,S=e.Y,E=e.g,j=e.f,U=e.n,B=e.A,W=e.aw,R=e.b3,I=e.bv,L=e.y,H=e.bE,V=e.u},function(e){P=e.I},function(e){z=e.P},function(e){K=e.a,T=e.S},function(){},function(e){M=e.T,J=e.a},function(e){q=e.T},function(e){N=e.c,G=e.g},function(e){Q=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){function D(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function F(e){return e instanceof D(e).Element||e instanceof Element}function Y(e){return e instanceof D(e).HTMLElement||e instanceof HTMLElement}function X(e){return"undefined"!=typeof ShadowRoot&&(e instanceof D(e).ShadowRoot||e instanceof ShadowRoot)}var Z=Math.round;function $(e,t){void 0===t&&(t=!1);var o=e.getBoundingClientRect(),n=1,r=1;if(Y(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(n=Z(o.width)/i||1),a>0&&(r=Z(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 ee(e){var t=D(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function te(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){return((F(e)?e.ownerDocument:e.document)||window.document).documentElement}function ne(e){return D(e).getComputedStyle(e)}function re(e){var t=ne(e),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function ae(e,t,o){void 0===o&&(o=!1);var n,r,a=Y(t),i=Y(t)&&function(e){var t=e.getBoundingClientRect(),o=Z(t.width)/e.offsetWidth||1,n=Z(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),s=oe(t),c=$(e,i),p={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!o)&&(("body"!==te(t)||re(s))&&(p=(n=t)!==D(n)&&Y(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:ee(n)),Y(t)?((l=$(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=function(e){return $(oe(e)).left+ee(e).scrollLeft}(s))),{x:c.left+p.scrollLeft-l.x,y:c.top+p.scrollTop-l.y,width:c.width,height:c.height}}function ie(e){return"html"===te(e)?e:e.assignedSlot||e.parentNode||(X(e)?e.host:null)||oe(e)}function se(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:Y(e)&&re(e)?e:se(ie(e))}function ce(e,t){var o;void 0===t&&(t=[]);var n=se(e),r=n===(null==(o=e.ownerDocument)?void 0:o.body),a=D(n),i=r?[a].concat(a.visualViewport||[],re(n)?n:[]):n,s=t.concat(i);return r?s:s.concat(ce(ie(i)))}function pe(e){return["table","td","th"].indexOf(te(e))>=0}function le(e){return Y(e)&&"fixed"!==ne(e).position?e.offsetParent:null}function de(e){for(var t=D(e),o=le(e);o&&pe(o)&&"static"===ne(o).position;)o=le(o);return o&&("html"===te(o)||"body"===te(o)&&"static"===ne(o).position)?t:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Y(e)&&"fixed"===ne(e).position)return null;var o=ie(e);for(X(o)&&(o=o.host);Y(o)&&["html","body"].indexOf(te(o))<0;){var n=ne(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}var fe="top",ue="bottom",ve="right",me="left",he="auto",ge="start",be="end",Ae=[].concat([fe,ue,ve,me],[he]).reduce((function(e,t){return e.concat([t,t+"-"+ge,t+"-"+be])}),[]),_e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ye(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function we(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(e,t){return e.replace(/%s/,t)}),e)}var xe='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ke=["name","enabled","phase","fn","effect","requires","options"];function Oe(e){return e.split("-")[0]}function Ce(e){return e.split("-")[1]}var Se="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ee={placement:"bottom",modifiers:[],strategy:"absolute"};function je(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ue(e){void 0===e&&(e={});var t=e,o=t.defaultModifiers,n=void 0===o?[]:o,r=t.defaultOptions,a=void 0===r?Ee:r;return function(e,t,o){void 0===o&&(o=a);var r,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ee,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,l={state:s,setOptions:function(o){var r="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},a,s.options,r),s.scrollParents={reference:F(e)?ce(e):e.contextElement?ce(e.contextElement):[],popper:ce(t)};var i=function(e){var t=ye(e);return _e.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}(function(e){var t=e.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));(s.orderedModifiers=i.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),ke).filter((function(e,t,o){return o.indexOf(e)===t})).forEach((function(o){switch(o){case"name":"string"!=typeof t.name&&console.error(we(xe,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(we(xe,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":_e.indexOf(t.phase)<0&&console.error(we(xe,t.name,'"phase"',"either "+_e.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(we(xe,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(we(xe,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(we(xe,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(we(xe,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 '+ke.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+o+'" was provided.')}t.requires&&t.requires.forEach((function(o){null==e.find((function(e){return e.name===o}))&&console.error(we('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),o,o))}))}))}))}((p=[].concat(i,s.options.modifiers),f=function(e){return e.name},u=new Set,p.filter((function(e){var t=f(e);if(!u.has(t))return u.add(t),!0})))),Oe(s.options.placement)===he)&&(s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var p,f,u,v=ne(t);return[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some((function(e){return parseFloat(e)}))&&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(" ")),s.orderedModifiers.forEach((function(e){var t=e.name,o=e.options,n=void 0===o?{}:o,r=e.effect;if("function"==typeof r){var a=r({state:s,name:t,instance:l,options:n}),i=function(){};c.push(a||i)}})),l.update()},forceUpdate:function(){if(!p){var e=s.elements,t=e.reference,o=e.popper;if(je(t,o)){var n,r,a,i;s.rects={reference:ae(t,de(o),"fixed"===s.options.strategy),popper:(n=o,r=$(n),a=n.offsetWidth,i=n.offsetHeight,Math.abs(r.width-a)<=1&&(a=r.width),Math.abs(r.height-i)<=1&&(i=r.height),{x:n.offsetLeft,y:n.offsetTop,width:a,height:i})},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var c=0,d=0;d<s.orderedModifiers.length;d++){if((c+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var f=s.orderedModifiers[d],u=f.fn,v=f.options,m=void 0===v?{}:v,h=f.name;"function"==typeof u&&(s=u({state:s,options:m,name:h,instance:l})||s)}else s.reset=!1,d=-1}}else console.error(Se)}},update:(r=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(r())}))}))),i}),destroy:function(){d(),p=!0}};if(!je(e,t))return console.error(Se),l;function d(){c.forEach((function(e){return e()})),c=[]}return l.setOptions(o).then((function(e){!p&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}var Be={passive:!0};var We={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,n=e.options,r=n.scroll,a=void 0===r||r,i=n.resize,s=void 0===i||i,c=D(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",o.update,Be)})),s&&c.addEventListener("resize",o.update,Be),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",o.update,Be)})),s&&c.removeEventListener("resize",o.update,Be)}},data:{}};var Re={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=function(e){var t,o=e.reference,n=e.element,r=e.placement,a=r?Oe(r):null,i=r?Ce(r):null,s=o.x+o.width/2-n.width/2,c=o.y+o.height/2-n.height/2;switch(a){case fe:t={x:s,y:o.y-n.height};break;case ue:t={x:s,y:o.y+o.height};break;case ve:t={x:o.x+o.width,y:c};break;case me:t={x:o.x-n.width,y:c};break;default:t={x:o.x,y:o.y}}var p=a?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(a):null;if(null!=p){var l="y"===p?"height":"width";switch(i){case ge:t[p]=t[p]-(o[l]/2-n[l]/2);break;case be:t[p]=t[p]+(o[l]/2-n[l]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Ie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Le(e){var t,o=e.popper,n=e.popperRect,r=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,p=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=i.x,u=void 0===f?0:f,v=i.y,m=void 0===v?0:v,h="function"==typeof l?l({x:u,y:m}):{x:u,y:m};u=h.x,m=h.y;var g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),A=me,_=fe,y=window;if(p){var w=de(o),x="clientHeight",k="clientWidth";if(w===D(o)&&"static"!==ne(w=oe(o)).position&&"absolute"===s&&(x="scrollHeight",k="scrollWidth"),r===fe||(r===me||r===ve)&&a===be)_=ue,m-=(d&&w===y&&y.visualViewport?y.visualViewport.height:w[x])-n.height,m*=c?1:-1;if(r===me||(r===fe||r===ue)&&a===be)A=ve,u-=(d&&w===y&&y.visualViewport?y.visualViewport.width:w[k])-n.width,u*=c?1:-1}var O,C=Object.assign({position:s},p&&Ie),S=!0===l?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:Z(t*n)/n||0,y:Z(o*n)/n||0}}({x:u,y:m}):{x:u,y:m};return u=S.x,m=S.y,c?Object.assign({},C,((O={})[_]=b?"0":"",O[A]=g?"0":"",O.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",O)):Object.assign({},C,((t={})[_]=b?m+"px":"",t[A]=g?u+"px":"",t.transform="",t))}var He={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,a=o.adaptive,i=void 0===a||a,s=o.roundOffsets,c=void 0===s||s,p=ne(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some((function(e){return p.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'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.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var l={placement:Oe(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Le(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Le(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];Y(r)&&te(r)&&(Object.assign(r.style,o),Object.keys(n).forEach((function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var n=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});Y(n)&&te(n)&&(Object.assign(n.style,a),Object.keys(r).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},Pe=Ue({defaultModifiers:[We,Re,He,Ve]});var ze={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,r=o.offset,a=void 0===r?[0,0]:r,i=Ae.reduce((function(e,o){return e[o]=function(e,t,o){var n=Oe(e),r=[me,fe].indexOf(n)>=0?-1:1,a="function"==typeof o?o(Object.assign({},t,{placement:e})):o,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[me,ve].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(o,t.rects,a),e}),{}),s=i[t.placement],c=s.x,p=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=i}},Ke=t(n("popover"),2),Te=Ke[0],Me=Ke[1],Je=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],qe={show:Boolean,theme:r("light"),overlay:Boolean,actions:a(),trigger:r("click"),duration:i,showArrow:s,placement:r("bottom"),iconPrefix:String,overlayClass:c,overlayStyle:Object,closeOnClickAction:s,closeOnClickOverlay:s,closeOnClickOutside:s,offset:{type:Array,default:function(){return[0,8]}},teleport:{type:[String,Object],default:"body"}},Ne=p({name:Te,props:qe,emits:["select","touchstart","update:show"],setup:function(e,t){var o,n=t.emit,r=t.slots,a=t.attrs,i=l(),s=l(),c=function(){_((function(){e.show&&(o?o.setOptions({placement:e.placement}):o=i.value&&s.value?Pe(i.value,s.value.popupRef.value,{placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},y({},ze,{options:{offset:e.offset}})]}):null)}))},p=function(e){return n("update:show",e)},k=function(){"click"===e.trigger&&p(!e.show)},O=function(e){e.stopPropagation(),n("touchstart",e)},C=function(t,o){return r.action?r.action({action:t,index:o}):[t.icon&&m(w,{name:t.icon,classPrefix:e.iconPrefix,class:Me("action-icon")},null),m("div",{class:[Me("action-text"),x]},[t.text])]},S=function(t,o){var r=t.icon,a=t.color,i=t.disabled,s=t.className;return m("div",{role:"menuitem",class:[Me("action",{disabled:i,"with-icon":r}),s],style:{color:a},tabindex:i?void 0:0,"aria-disabled":i||void 0,onClick:function(){return function(t,o){t.disabled||(n("select",t,o),e.closeOnClickAction&&p(!1))}(t,o)}},[C(t,o)])};return d(c),f((function(){o&&(o.destroy(),o=null)})),u((function(){return[e.show,e.placement]}),c),v(i,(function(){!e.closeOnClickOutside||e.overlay&&!e.closeOnClickOverlay||p(!1)}),{eventName:"touchstart"}),function(){var t;return m(A,null,[m("span",{ref:i,class:Me("wrapper"),onClick:k},[null==(t=r.reference)?void 0:t.call(r)]),m(h,g({ref:s,class:Me([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:O,"onUpdate:show":p},a,b(e,Je)),{default:function(){return[e.showArrow&&m("div",{class:Me("arrow")},null),m("div",{role:"menu",class:Me("content")},[r.default?r.default():e.actions.map(S)])]}})])}}}),Ge=k(Ne),Qe="_hotGoods_1xtmi_1",De="_hotGoodsSection_1xtmi_36",Fe="_hotGoodsItem_1xtmi_42",Ye="_hotGoodsItemImg_1xtmi_43",Xe=p({name:"hot-goods",props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:function(e){}}},render:function(){var e=this;return m("div",{class:Qe},[m("div",{class:De},[this.hotProductList.map((function(t){return m("div",{class:Fe,onClick:function(){e.onOpenWebView("/goodsDetail?id="+t.id)}},[m(P,{class:Ye,src:t.pic,fit:"cover"},null)])}))])])}}),Ze="_swipeType_se6u6_1",$e="_swipeTypeShow_se6u6_17",et="_typeSection_se6u6_20",tt="_typeItem_se6u6_24",ot="_swipeTypeImg_se6u6_28",nt="_typeName_se6u6_34";function rt(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!O(e)}var at=p({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:function(e){}}},render:function(){var e,t=this;return m(T,{class:[Ze,this.productList.length>1&&$e],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},rt(e=this.productList.map((function(e){var o;return m(K,{class:et},rt(o=e.map((function(e){return m("div",{class:tt,onClick:function(){t.onOpenWebView("/goodsList?id="+e.id+"&tag="+encodeURIComponent(e.name))}},[m(P,{class:ot,src:e.icon,fit:"cover"},null),m("p",{class:nt},[e.name])])})))?o:{default:function(){return[o]}})})))?e:{default:function(){return[e]}})}}),it="_shopMall_3fob3_1",st="_hotContent_3fob3_5",ct="_swipe_3fob3_33",pt="_swipeItemImg_3fob3_38",lt="_tabs_3fob3_53",dt="_theHomeHeader_14nm7_1",ft="_content_14nm7_8",ut="_iconBack_14nm7_12",vt="_mall_14nm7_17",mt="_cart_14nm7_22",ht="_more_14nm7_27",gt="_searchBox_14nm7_34",bt="_iconSearch_14nm7_46",At="_popover_14nm7_51",_t=p({name:"TheHomeHeader",emits:["cart","more","search","headerDom"],setup:function(e,t){var o=t.emit,n=C(),r=l(sessionStorage.getItem("navHeight")),a=l(null);U({api:"setBarStatus",content:{status:0}}),r.value||U({api:"getNavHeight"},(function(e){var t=e.content,o=t.dpi||2;if(t.navHeight){var n=t.navHeight/o+"";sessionStorage.setItem("navHeight",n),r.value=n}}));var i={reference:function(){return m("img",{class:ht,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAAXNSR0IArs4c6QAAAKhJREFUOE+9k80NwjAMhb8ugMQQZQUYgAVgGmABugxlABigXaEMgWACZDU+ENV9OTWXKPGT/H7sivFsgCuwT+8ncAaGKhU7YJ2Kfr2BnQFuwDEr+rM1wAdYBYBvEUC2MAWzJKdkPoCLywz4jd9GciGAKWmyLE7FWbTAIWB6L7JahiWzqIE+GJitO2mgqZF7LWh1mKhzyPfib2DkyEmjpNUSIFtIkrPr/wMjhDS5mC5rjQAAAABJRU5ErkJggg==",onClick:function(){return o("more")}},null)}};d((function(){_((function(){setTimeout((function(){var e=S(a).height;o("headerDom",e)}),300)}))}));var s=l(!1),c=[{text:"我的订单",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAAAWlJREFUWEftmL9Lw0AUx7+v6VIVBzuqo65KLsR01slVsjsLiiDo36AgiIOze3F10tlYklBXHW1HHUTt0vTJDXYoqSfpWY9yt4Xj5T73ee/y4xEAcl13h4iOACzIa4x3MIAWMx+naXpBQohdAOfjZRi62p4EagGYNwSoLYF6/5CmYftnCSRz2B9Jkoy1hgbXt0CDubKGVKfXGvoTQ77vV7Ms22bmGdUCefNE9O44zmWj0XjRUtSe590w83oRmO8YIrqN43hDC5AQ4hNAZRQgAJ0kSaa0ABlnyLgaGjFVP4bb55DKrjVkDakMqOYno4bc6CroMZ8BvKjacf48PZeI9tNgK9Ly6li9qz8CWCoG0496atbCZV1A8rNhbkSg12YtrGoBWonqBwBOiFEqAsUE+e93+BCEp1qA5E3WouvZbrkzXQSo3K183Aebb3mxk3HKilj5bYw1pDJlDU2EIeMaVsa19MxqeprWFv4Cg3ombpWgR0sAAAAASUVORK5CYII=",url:"/goodsOrder"},{text:"我的地址",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAABttJREFUWEetWH2MXFUV/503HXZX90OQFFTQNKkubGHsvPvW7keVWoKtIqVYdrRCQUBDjEqi0cREUeJHNBoMRkhK1ARKDWW7bQUCRqOyhcIuztw30921sVBqJSBCWbHdYdvZmbnHnM3MevftvHkz1PPfvHvOub97zpl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+LMUZogyIiOVzWGHNPNptd9CrWaLpE779qLb1txBR+1QAAAABJRU5ErkJggg==",url:"/"}];return function(){return m("div",{class:dt,ref:a},["kt"===E.sourcType?m(Q,null,null):m("div",{style:{height:r.value+"px",background:"#fff"}},null),m("div",{class:ft},["kt"!==E.sourcType&&"TEACHER"!==E.platformType?m("img",{class:ut,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAg1JREFUaEPtm79KxEAQh+dXyIG1hT6EhdxiL9jIwRV3PoFPYKO2V9opNtf5BCJ2gojtFXcLgr22gv0Jio7kMBJClGz23+ydqTPJfJlvJ9llAxJ4tNvtJQAbRHRMROtE9ADgqNPp6MFg8GmaMkwDfJ+fATJzD8AJEa3l9wPwCKA/Ho/vTXMQB6mU2mHmcyJaLcG8EdGB1vosWchvRbeZ+YKIlitA0oYsKHpaUcEZL4AnAL1kdf1D0bygU2bud7vdm+QaTw1FM8hnAHuTyeTadCz+NK2mgbZxdRTNAJl5H8Cl1vq96T2jddc6igLYZeZbG8DZeG76dJrGhVK0mF9QyJCKRoMMqWhwyBiKBoWMpWhQyFiKBoGMrah3SAmKeoeUoKg3SEmKeoGUpqgXSGmKOoWUqqgzSMmKOoOUrKg1ZAqKWkGmoqgVpFJqk5mvigu/pQn01NWMvunEvBxnPGlWSt0x89YvCVgvOrkCs63kCzOvVCTzwczDVqt1OBqNXn0k2/Sa/5WsenILMSYXortm1Z3792RR4bn+4slBU1HXuLuWm1EK6lpD5tCS1XUGKVldZ5CSu65TSKnqeoGUpq4XSGnqeoOUpK53SAnqeoeUoG4QyNjqBoWMpW5QyFjqBoeMoW40yJDqRoMMqW5USBN1k90labLCkPx+15rqpr1zuebi2PxALsTfBAV1nf0X8gUxb3lYEbtkpwAAAABJRU5ErkJggg==",onClick:function(){j().isApp?U({api:"goBack"}):n.back()}},null):"",m("img",{class:vt,src:"./assets/icon-mall.5e97cdfd.png"},null),m("div",{class:gt,onClick:function(){return o("search")}},[m("img",{class:bt,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABLtJREFUWEe9l2toXEUUgM+Zu4kaQVKpVVLKZjMz2bYrRiEpEhHFltJqWpXijxbBNlUQrIoSKkIrFqvS+kb7Q3yB+kPoQ2tBqVLjI7WowUeFxt25s5uIkFCVsk26mN29c2R0d5ndbDebJuT8u/eexzdzzp1zBqEO0Vp3GWN6ELGbiNoRcSERNQLABACMAMBJxlh/KBT6KBwOn6nDZUkFayknk8l1QRA8BQAddTqdZIy96Xne062traP12FQFGBoaam1oaHifiG6ox0kVnQwi7hJC7J3OfgqA1nqlMeYDAFhYw5gAIAcANg215GA2m90ci8VsqqpKGYDWepUx5hMAaHC1icgGOwgAR0Kh0PFIJDKKiNmRkZEF+XyeE9EaItoIAMsroyDiN5OTk6tisVi2GkEJIJFILEPEbwGguULxYGNj4/ZwOJystVQiYr7vb0TE54noKlcXEd8VQtxzXoDBwcGG5ubmH4no6qISIgaI2Mc5f3m6PLrf4/H4Ys/zPiSiLvc9Y2wr5/ztKTtkX/i+/xARvVJB3SeEeGEmwYu6NjW5XO4EEUUd+7+y2Wyksh6QiDzf9+2/vNhZ/SEhxIYLCV60KaT0F7eeGGOPcs5fKluo7/tricgWXlFssSyXUurZAFhbpdRrAPCA4+dXKeU1ZQBKqVcBYJuz+sNCiDtmG9zax+PxpYyxoQpfS6SUf5TiKaW+A4AVxReMsV7O+TtzAVCor9/cWmCMbeCcH3IB/nQPHcbYCs75D3MFoJQ6AAClekLE7UKI51wAm3P34CnbotmCVEnxbiHEThcgAwCXOClo55yr2QYu2iul3gCAex1/T0opd7kAvwPAEkfhZinlV3MIYP+wtY6/bVLKfS7AUQBY7fwFO4UQu+cCgIhCWuvTRLTA8b9SCPFF6TmRSOxARNvzi/KzlPK6uQBIJpOrgyCwCyxKNpPJXN7R0XGuBDA8PLwsl8udqgh4u5Ty49lC+L4/UDFTHJFSrnf9/tcNlVJfAsBNzjYpROzinKcvFEJrvcUYU9Z8GGO3cc7dUxeKADZ4P8D/zwX5LJ1O93R2dtpZYEaSTCZvDILgcwC4yDE8IaXsrnRUCqiUegsAesu2B3HA87y7IpHIWL0ESqm7EfF1ImpybP4xxlwfjUZtcyqTEkAqlbo4CIJjRFRGSUR/M8b2NDU17WtpabFnRlVJpVLX5vN5W8w9FQqEiJuEEHbMmyJlI5lS6goA+BoAllbRPYeIx+zURESjxhj7vAgR7Uhm//Mp4xgA2NnxcSnlHt/3FwkhTp93B4oflFKXIeJ7RFRWrfWmwNGb8Dyvt62tbb9S6hkAuM+eN1LKn8rSXM0xEaHW2vbxHUR05UyDI+KnRNQnpTyllHoRAB4p+DhjjFkTjUa/L/qseTEZGxu7dHx8/EFE3EpEYhoQ29SOMsb2cs4HrK5Sah0AVJ4nZxHxViHEcatTE8ANWBixuhGxnYjsncHeCcYZY7aXnDTGDEgpz1ZCaq2fMMaUmk/h+wQirhdC9NcNMNM0uPpKqccQ8Vmb2tLWI2YYY3fOC4ANqrV+2BhjB9JSTMbY/nkDsBCJROJ+RLStmAHAgXQ6vWleASyE7/ubAeAWzvkWe/n5F1ek5boVi45TAAAAAElFTkSuQmCC"},null),m("span",null,[B("搜索你喜欢的内容")])]),m(W,{content:N.value,showZero:!1},{default:function(){return[m("img",{class:mt,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAoCAYAAACIC2hQAAAAAXNSR0IArs4c6QAAA9pJREFUWEfN2H1oVWUcwPHvc69Z0ybONpGZmU6NEt2mhdsw06B8AVFcW4hS4gvOl0jDNJUsRSgyUHoPEl+CEZso+s/Y/lDKV2jSNrXwlXKuLIZOXc2md4/85J7tuYe7c869ec7t+e/ee57n+dzzvP2enwIKgB3AU4AitrQB3wGLgIjtt0A/CuwM8IxLr/OAXYHKbJ0J9BqQ4YL4EliaaugHwDsuiGpgSqqh0v+Ltjk6AXjVgJ0HRvwfoHbDTGCf8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z4P7YN7nAAAAAElFTkSuQmCC",onClick:function(){return o("cart")}},null)]}}),m(Ge,{placement:"bottom-end",class:At,show:s.value,"onUpdate:show":function(e){return s.value=e},actions:c,onSelect:function(e){return o("more",e)}},i)])])}}});o("default",p({name:"shop-mall",data:function(){return{loading:!1,height:"auto",count:0,advertiseList:[],productList:[],hotProductList:[],productCategoryList:[]}},mounted:function(){var e=this;this.init(),j().ios?document.addEventListener("visibilitychange",(function(t){if(!document.hidden){G();var o=e.$refs.tabFirst;null==o||o.onSearch()}})):R("UpdateToken",(function(t){null!=t&&t.content.token&&V(null==t?void 0:t.content.token),G();var o=e.$refs.tabFirst;null==o||o.onSearch()}))},unmounted:function(){I("UpdateToken",(function(){}))},methods:{onRefresh:function(){var e=this;this.productCategoryList=[],this.$nextTick((function(){e.init()}));var t=this.$refs.tabFirst;null==t||t.onSearch()},init:function(){var t,o=this;return(t=regeneratorRuntime.mark((function e(){var t,n,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,L.get("/api-mall-portal/home/content");case 3:for(t=e.sent,n=t.data||{},o.count=n.count,N.value=n.count,o.advertiseList=n.advertiseList,r=n.productCategoryList||[],a=[];r.length>0;)i=r.splice(0,5),a.push(i);o.productList=a,o.hotProductList=n.hotProductList||[],o.productCategoryList=n.productAttributeCategoryList||[],e.next=18;break;case 16:e.prev=16,e.t0=e.catch(0);case 18:setTimeout((function(){o.loading=!1}),500);case 19:case"end":return e.stop()}}),e,null,[[0,16]])})),function(){var o=this,n=arguments;return new Promise((function(r,a){var i=t.apply(o,n);function s(t){e(i,r,a,s,c,"next",t)}function c(t){e(i,r,a,s,c,"throw",t)}s(void 0)}))})()},openWebView:function(e){try{var t=location.origin+location.pathname+"#";if(!e)return;if(e.indexOf("http")<0&&(e=t+e),!j().isApp)return void(location.href=e);"kt"===E.sourcType&&(-1!==e.indexOf("?")?e+="&Authorization=".concat(encodeURI(H()||""),"&source=kt"):e+="?Authorization=".concat(encodeURI(H()||""),"&source=kt")),U({api:"openWebView",content:{url:e,orientation:1,isHideTitle:!1}})}catch(o){}}},render:function(){var e,t=this;return m("div",{class:it},[m(_t,{onCart:function(){return t.openWebView("/cart")},onSearch:function(){return t.openWebView("/goodsList?input=focus")},onHeaderDom:function(e){console.log(e,"height"),t.height=e+"px"},onMore:function(e){e&&("我的地址"==e.text?U({api:"setAddress",content:{}}):t.openWebView(e.url))}},null),m(z,{modelValue:this.loading,"onUpdate:modelValue":function(e){return t.loading=e},"loading-text":"正在刷新...","success-text":"刷新完成",onRefresh:function(){return t.onRefresh()}},{default:function(){return[m("div",{class:st},[m(T,{class:ct,autoplay:3e3},(o=e=t.advertiseList.map((function(e){return m(K,{onClick:function(){return t.openWebView(e.url)}},{default:function(){return[m(P,{class:pt,src:e.pic,fit:"fill"},null)]}})})),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!O(o)?e:{default:function(){return[e]}})),m(at,{productList:t.productList,onOpenWebView:t.openWebView},null)]),3===t.hotProductList.length&&m(Xe,{hotProductList:t.hotProductList,onOpenWebView:t.openWebView},null),m(M,{shrink:!0,lineWidth:25,background:"#f6f8f9",color:"var(--van-primary)",class:lt,sticky:!0,offsetTop:t.height,lazyRender:!0},{default:function(){return[m(J,{title:"全部",name:0},{default:function(){return[m(q,{ref:"tabFirst",isTab:!0,productAttributeCategoryId:0,onOpenWebView:t.openWebView,showAdd:!1},null)]}}),t.productCategoryList.map((function(e){return m(J,{title:e.name,name:e.id},{default:function(){return[m(q,{isTab:!0,showAdd:!1,productAttributeCategoryId:e.id,onOpenWebView:t.openWebView},null)]}})}))]}})];var o}})])}}))}}}))}();