"use strict";const e=require("../../../common/vendor.js"),n=require("../method.js"),r=require("../model.js"),o=require("../../../common/libraries/naviHelper.js");require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/store/useWorkStore.js");const u=e.defineComponent({__name:"PageBanner",setup(u){const l=e.ref({});return e.onShow((()=>{l.value=e.index.getMenuButtonBoundingClientRect(),n.method.getBanner()})),(n,u)=>{var a,i,t,s,d,v,m,c,b,p,g,q,f,j,h;return e.e({a:(null==(i=null==(a=e.unref(r.useModel))?void 0:a.bannerData)?void 0:i.value)&&(null==(v=null==(d=null==(s=null==(t=e.unref(r.useModel))?void 0:t.bannerData)?void 0:s.value)?void 0:d.banners)?void 0:v.length)},(null==(c=null==(m=e.unref(r.useModel))?void 0:m.bannerData)?void 0:c.value)&&(null==(q=null==(g=null==(p=null==(b=e.unref(r.useModel))?void 0:b.bannerData)?void 0:p.value)?void 0:g.banners)?void 0:q.length)?{b:e.f(null==(h=null==(j=null==(f=e.unref(r.useModel))?void 0:f.bannerData)?void 0:j.value)?void 0:h.banners,((n,r,u)=>{var l;return{a:null==(l=null==n?void 0:n.source[0])?void 0:l.url,b:e.o((r=>e.unref(o.gotoEventToPage)(n)),`banner_${r}`),c:`banner_${r}`}})),c:e.s(`padding-top:${l.value.top+l.value.height+10}px;`)}:{})}}}),l=e._export_sfc(u,[["__scopeId","data-v-00500044"]]);wx.createComponent(l);
