3601.255168a3.js 7.4 KB

12
  1. "use strict";(self["webpackChunkbyte_sailing_mobile"]=self["webpackChunkbyte_sailing_mobile"]||[]).push([[3601],{1088:function(){},89137:function(){},32681:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var l=a(28620),i=(a(31958),a(89137),a(28101)),n=(a(1088),a(57658),a(73396)),o=a(87139),u=a.p+"img/banner1.a3a1d7c3.png",r=a(44870);const c=e=>((0,n.dD)("data-v-e26bac8a"),e=e(),(0,n.Cn)(),e),s={class:"working"},v=c((()=>(0,n._)("img",{src:u,alt:""},null,-1))),d={class:"title"},f=["onClick"],h={class:"text"};var p={__name:"index",setup(e){const t=(0,n.FN)().proxy;console.log((0,r.IU)(t),"asss");const a=(0,r.iH)([]),u=()=>{t.get("getRouters",{}).then((e=>{for(let t=0;t<e.data.length;t++){const l=e.data[t];2==l.type&&(a.value=l.children,console.log(a.value))}}))};u();const c=()=>{t.$router.push({path:"/main/iframWinfaster"})},p=e=>{t.$router.push({path:e.path})};return(e,t)=>{const u=i.j,r=l.oF;return(0,n.wg)(),(0,n.iD)("div",s,[(0,n.Wm)(r,{class:"my-swipe","indicator-color":"white"},{default:(0,n.w5)((()=>[(0,n.Wm)(u,{onClick:c},{default:(0,n.w5)((()=>[v])),_:1}),(0,n.Wm)(u,null,{default:(0,n.w5)((()=>[(0,n.Uk)("2")])),_:1})])),_:1}),((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.value,(e=>((0,n.wg)(),(0,n.iD)("div",{class:"card",key:e.path},[(0,n._)("div",d,(0,o.zw)(e.meta.title),1),(0,n._)("ul",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.children,(e=>((0,n.wg)(),(0,n.iD)("li",{key:e.path,onClick:t=>p(e)},[(0,n._)("div",{class:"icon",style:(0,o.j5)(`background:${e.background?e.background:"#1989fa"};color:${e.color?e.color:"#fff"}`)},[(0,n._)("i",{class:(0,o.C_)(["iconfont","icon-"+e.meta.icon])},null,2)],4),(0,n._)("div",h,(0,o.zw)(e.meta.title),1)],8,f)))),128))])])))),128))])}}},g=a(40089);const w=(0,g.Z)(p,[["__scopeId","data-v-e26bac8a"]]);var m=w},28101:function(e,t,a){a.d(t,{j:function(){return f}});var l=a(11404),i=a(73396),n=a(44870),o=a(610),u=a(64050),r=a(253),c=a(3444);const[s,v]=(0,o["do"])("swipe-item");var d=(0,i.aZ)({name:s,setup(e,{slots:t}){let a;const l=(0,n.qj)({offset:0,inited:!1,mounted:!1}),{parent:o,index:s}=(0,r.NB)(u.PG);if(!o)return void 0;const d=(0,i.Fl)((()=>{const e={},{vertical:t}=o.props;return o.size.value&&(e[t?"height":"width"]=`${o.size.value}px`),l.offset&&(e.transform=`translate${t?"Y":"X"}(${l.offset}px)`),e})),f=(0,i.Fl)((()=>{const{loop:e,lazyRender:t}=o.props;if(!t||a)return!0;if(!l.mounted)return!1;const i=o.activeIndicator.value,n=o.count.value-1,u=0===i&&e?n:i-1,r=i===n&&e?0:i+1;return a=s.value===i||s.value===u||s.value===r,a})),h=e=>{l.offset=e};return(0,i.bv)((()=>{(0,i.Y3)((()=>{l.mounted=!0}))})),(0,c.F)({setOffset:h}),()=>{var e;return(0,i.Wm)("div",{class:v(),style:d.value},[f.value?null==(e=t.default)?void 0:e.call(t):null])}}});const f=(0,l.n)(d)},64050:function(e,t,a){a.d(t,{PG:function(){return g},ZP:function(){return w}});var l=a(73396),i=a(44870),n=a(610),o=a(5323),u=a(96048),r=a(47936),c=a(253),s=a(65261),v=a(3444),d=a(10648);const[f,h]=(0,n["do"])("swipe"),p={loop:o.J5,width:o.Or,height:o.Or,vertical:Boolean,autoplay:(0,o.SI)(0),duration:(0,o.SI)(500),touchable:o.J5,lazyRender:Boolean,initialSwipe:(0,o.SI)(0),indicatorColor:String,showIndicators:o.J5,stopPropagation:o.J5},g=Symbol(f);var w=(0,l.aZ)({name:f,props:p,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:a}){const n=(0,i.iH)(),o=(0,i.iH)(),f=(0,i.qj)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let p=!1;const w=(0,s.o)(),{children:m,linkChildren:b}=(0,c.$E)(g),y=(0,l.Fl)((()=>m.length)),_=(0,l.Fl)((()=>f[e.vertical?"height":"width"])),k=(0,l.Fl)((()=>e.vertical?w.deltaY.value:w.deltaX.value)),F=(0,l.Fl)((()=>{if(f.rect){const t=e.vertical?f.rect.height:f.rect.width;return t-_.value*y.value}return 0})),C=(0,l.Fl)((()=>_.value?Math.ceil(Math.abs(F.value)/_.value):y.value)),x=(0,l.Fl)((()=>y.value*_.value)),P=(0,l.Fl)((()=>(f.active+y.value)%y.value)),Y=(0,l.Fl)((()=>{const t=e.vertical?"vertical":"horizontal";return w.direction.value===t})),$=(0,l.Fl)((()=>{const t={transitionDuration:`${f.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${f.offset}px)`};if(_.value){const a=e.vertical?"height":"width",l=e.vertical?"width":"height";t[a]=`${x.value}px`,t[l]=e[l]?`${e[l]}px`:""}return t})),S=t=>{const{active:a}=f;return t?e.loop?(0,u.uZ)(a+t,-1,y.value):(0,u.uZ)(a+t,0,C.value):a},W=(t,a=0)=>{let l=t*_.value;e.loop||(l=Math.min(l,-F.value));let i=a-l;return e.loop||(i=(0,u.uZ)(i,F.value,0)),i},z=({pace:a=0,offset:l=0,emitChange:i})=>{if(y.value<=1)return;const{active:n}=f,o=S(a),u=W(o,l);if(e.loop){if(m[0]&&u!==F.value){const e=u<F.value;m[0].setOffset(e?x.value:0)}if(m[y.value-1]&&0!==u){const e=u>0;m[y.value-1].setOffset(e?-x.value:0)}}f.active=o,f.offset=u,i&&o!==n&&t("change",P.value)},D=()=>{f.swiping=!0,f.active<=-1?z({pace:y.value}):f.active>=y.value&&z({pace:-y.value})},I=()=>{D(),w.reset(),(0,c.d1)((()=>{f.swiping=!1,z({pace:-1,emitChange:!0})}))},Z=()=>{D(),w.reset(),(0,c.d1)((()=>{f.swiping=!1,z({pace:1,emitChange:!0})}))};let j;const M=()=>clearTimeout(j),O=()=>{M(),+e.autoplay>0&&y.value>1&&(j=setTimeout((()=>{Z(),O()}),+e.autoplay))},H=(t=+e.initialSwipe)=>{if(!n.value)return;const a=()=>{var a,l;if(!(0,r.xj)(n)){const t={width:n.value.offsetWidth,height:n.value.offsetHeight};f.rect=t,f.width=+(null!=(a=e.width)?a:t.width),f.height=+(null!=(l=e.height)?l:t.height)}y.value&&(t=Math.min(y.value-1,t),-1===t&&(t=y.value-1)),f.active=t,f.swiping=!0,f.offset=W(t),m.forEach((e=>{e.setOffset(0)})),O()};(0,r.xj)(n)?(0,l.Y3)().then(a):a()},T=()=>H(f.active);let J;const E=t=>{!e.touchable||t.touches.length>1||(w.start(t),p=!1,J=Date.now(),M(),D())},R=a=>{if(e.touchable&&f.swiping&&(w.move(a),Y.value)){const l=!e.loop&&(0===f.active&&k.value>0||f.active===y.value-1&&k.value<0);l||((0,r.PF)(a,e.stopPropagation),z({offset:k.value}),p||(t("dragStart",{index:P.value}),p=!0))}},X=()=>{if(!e.touchable||!f.swiping)return;const a=Date.now()-J,l=k.value/a,i=Math.abs(l)>.25||Math.abs(k.value)>_.value/2;if(i&&Y.value){const t=e.vertical?w.offsetY.value:w.offsetX.value;let a=0;a=e.loop?t>0?k.value>0?-1:1:0:-Math[k.value>0?"ceil":"floor"](k.value/_.value),z({pace:a,emitChange:!0})}else k.value&&z({pace:0});p=!1,f.swiping=!1,t("dragEnd",{index:P.value}),O()},B=(t,a={})=>{D(),w.reset(),(0,c.d1)((()=>{let l;l=e.loop&&t===y.value?0===f.active?0:t:t%y.value,a.immediate?(0,c.d1)((()=>{f.swiping=!1})):f.swiping=!1,z({pace:l-f.active,emitChange:!0})}))},K=(t,a)=>{const i=a===P.value,n=i?{backgroundColor:e.indicatorColor}:void 0;return(0,l.Wm)("i",{style:n,class:h("indicator",{active:i})},null)},q=()=>a.indicator?a.indicator({active:P.value,total:y.value}):e.showIndicators&&y.value>1?(0,l.Wm)("div",{class:h("indicators",{vertical:e.vertical})},[Array(y.value).fill("").map(K)]):void 0;return(0,v.F)({prev:I,next:Z,state:f,resize:T,swipeTo:B}),b({size:_,props:e,count:y,activeIndicator:P}),(0,l.YP)((()=>e.initialSwipe),(e=>H(+e))),(0,l.YP)(y,(()=>H(f.active))),(0,l.YP)((()=>e.autoplay),O),(0,l.YP)([r.bn,r.uK],T),(0,l.YP)((0,c.d9)(),(e=>{"visible"===e?O():M()})),(0,l.bv)(H),(0,l.dl)((()=>H(f.active))),(0,d.h)((()=>H(f.active))),(0,l.se)(M),(0,l.Jd)(M),(0,c.OR)("touchmove",R,{target:o}),()=>{var t;return(0,l.Wm)("div",{ref:n,class:h()},[(0,l.Wm)("div",{ref:o,style:$.value,class:h("track",{vertical:e.vertical}),onTouchstartPassive:E,onTouchend:X,onTouchcancel:X},[null==(t=a.default)?void 0:t.call(a)]),q()])}}})},28620:function(e,t,a){a.d(t,{oF:function(){return n}});var l=a(11404),i=a(64050);const n=(0,l.n)(i.ZP)}}]);
  2. //# sourceMappingURL=3601.255168a3.js.map