index.667d8055.js 12 KB

1
  1. import{_ as de,z as le,a as u,O as ce,Q as ae,r as g,y as H,o as n,g as o,d as e,F as r,n as h,u as a,e as y,m as _,w as P,t as c,c as V,R as A,x as z,G as re,H as he,f as U}from"./index.5dd2a406.js";import{i as ue}from"./CountDate.vue_vue_type_style_index_0_scoped_true_lang.a9c829eb.js";import{R as _e}from"./RightSliderBar.20f6105a.js";import{C as ve}from"./CountDate.0ba5ca10.js";import{g as ge,c as me,k as pe,h as xe,i as ke,a as fe,F as Se}from"./Footer.7a4d3521.js";import{A as be,P as ye,N as we,S as Ce,a as Ie,b as je}from"./swiper-slide.08a4be63.js";import"./scrollbar.min.ecd7810d.js";import{d as G}from"./index.81aaed5c.js";const l=k=>(re("data-v-b56e1978"),k=k(),he(),k),ze={class:"login-wrapper"},Te={class:"leftSlider"},$e=["onClick"],De={class:"sliderName"},Ee=l(()=>e("div",{class:"slider-bottom"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/line-s.png"})],-1)),Ne={class:"index-center",ref:"scrollRef"},Le={class:"index-top-center",id:"div1"},Be=["onMouseenter"],Oe={class:"index-sort-name"},Re=["onClick"],Me={class:"index-sort-img"},Fe=["src"],He={class:"index-sort-name",style:{color:"#333"}},Pe={class:"index-swiper-center"},Ve={class:"banner"},Ae=["src"],Ge={class:"index-rights"},Ue={key:0,class:"index-right-user",style:{padding:"20px 0"}},qe={class:"index-userInfo"},Je={class:"user-avatar"},Qe=["src"],Ye={style:{color:"#999999","font-size":"22px",margin:"30px 0 0 20px"},class:"overflow1"},Ke={key:1,class:"index-right-user"},We=l(()=>e("div",{class:"index-userInfo"},[e("div",{class:"user-avatar"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-login.png"})]),e("div",{class:"index-user-text"},"\u6B22\u8FCE\u5149\u4E34\u5C4F\u9177\uFF01")],-1)),Xe={class:"index-buttons"},Ze={class:"index-right-nav"},es=["onClick"],ss={class:"nav-icon"},ts=["src"],is={class:"nav-name"},ns={class:"index-right-gg"},os=l(()=>e("div",{class:"index-gg-img"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-gg.png"})],-1)),ds=l(()=>e("div",{class:"index-gg-more"}," \u66F4\u591A ",-1)),ls=[os,ds],cs={class:"index-notice"},as={class:"index-notice-list"},rs={key:0},hs={class:"index-seckill",id:"div2"},us={class:"seckill-bg"},_s=l(()=>e("div",{class:"seckill-text"},[e("p",null,"\u9650\u65F6"),e("p",null,"\u79D2\u6740")],-1)),vs=l(()=>e("div",{class:"time-color"},"\u8DDD\u7ED3\u675F\uFF1A",-1)),gs=["onClick"],ms={class:"seckill-img"},ps=["src"],xs={class:"seckillName overflow1"},ks={class:"seckillDesc overflow1"},fs={class:"seckill-price"},Ss=U(" \u79D2\u6740\u4EF7:"),bs=U(),ys={class:"index-hot-sell",id:"div3"},ws=l(()=>e("div",{class:"index-hot-bg"},[e("div",{class:"title"},"IPS\u5168\u9762\u5C4F"),e("div",{class:"text"},"IPS\u5168\u9762\u5C4F\uFF0C\u53EF\u89C6\u89D2\u5EA6\u9AD8\uFF0C\u54CD\u5E94\u901F\u5EA6\u5FEB\uFF0C\u8272\u5F69\u51C6\u786E")],-1)),Cs={class:"index-hot-content"},Is=l(()=>e("div",{class:"index-hot-title"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/hot-sell-text.png"})],-1)),js={class:"index-hot-bottom"},zs=l(()=>e("div",{class:"index-hot-img",style:{color:"#fff","text-align":"center","padding-top":"50px"}}," \u70ED\u9500\u7206\u6B3E ",-1)),Ts=["onClick"],$s={class:"hot-img"},Ds=["src"],Es={class:"hotNames overflow1"},Ns={class:"hotDesc overflow2"},Ls={class:"hot-price"},Bs=["id"],Os={class:"index-goods-content"},Rs={class:"index-goods-gg"},Ms={class:"flex-s"},Fs=["onClick"],Hs={class:"hot-img"},Ps=["src"],Vs=l(()=>e("div",{class:"hotNames"},"\u7A84\u63A5\u7F1D\u6DB2\u6676\u62FC\u63A5\u5C4F",-1)),As=l(()=>e("div",{class:"hotDesc"},"\u968F\u5FC3\u7EC4\u5408\u521B\u610F\u65E0\u9650\u5907\u4EFD",-1)),Gs=l(()=>e("div",{class:"hot-price"}," \xA51000 ",-1)),Us={class:"index-product index-design"},qs=l(()=>e("div",{class:"titles"},"\xB7\u4EA7\u54C1\u5B9A\u5236\xB7",-1)),Js=l(()=>e("div",{class:"titles-eng"},"Product customizatio",-1)),Qs={class:"index-design"},Ys=l(()=>e("div",{class:"titles"},"\xB7\u65B9\u6848\u8BBE\u8BA1\xB7",-1)),Ks=l(()=>e("div",{class:"titles-eng"},"conceptual design",-1)),Ws={class:"design-content"},Xs=["onClick"],Zs={class:"design-img"},et=["src"],st=l(()=>e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/dev-cloud.png"},null,-1)),tt=[st],it={__name:"index",setup(k){const q=t=>{window.location.href=t},T=le(),w=T.getUserInfo;let C=u("");ce(()=>{window.addEventListener("scroll",L),W()}),ae(()=>{window.removeEventListener("scroll",L)}),ge().then(t=>{C.value=t.data,localStorage.setItem("config",JSON.stringify(t.data))});const J=[be,ye,we,Ce],Q=u(0),$=g({time:null}),Y={nextElRef:".swiper-button-next",prevElRef:".swiper-button-prev"};u(""),u("");const D=u(null),m=u(null);u(null);const E=u(!1);let N=u(!1);const K=(t,i)=>{if(t===5){D.value.navTaps();return}t!==1&&(H(),A.push(i.url))},f=t=>{A.push(t)};me().then(t=>{p.arr=t.data});async function W(){setTimeout(()=>{pe().then(t=>{if(t.code==1){O.arr=t.data.goods;let i=G(t.time),s=G(t.data.endtime);const d=new Date(i).getTime(),j=new Date(s).getTime()-d;$.time=j/1e3,N.value=!0}})},300)}xe().then(t=>{R.arr=t.data.goods});const X={delay:5e4,disableOnInteraction:!1,loop:!1,pauseOnMouseEnter:!0,reverseDirection:!0};localStorage.getItem("USER__INFO__")&&T.setShoppingStore("1");const L=t=>{let i=document.querySelectorAll(".scroll-item"),s=document.getElementById("div1").offsetHeight,d=document.getElementById("div2").offsetHeight,v=document.getElementById("div3").offsetHeight;const j=s+d+v;let oe=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;for(let b=i.length-1;b>=0;b--)if(oe-j>=i[b].offsetTop-i[0].offsetTop){S.value=b;break}else S.value=null},I=(t,i)=>{t&&(m.value=i),E.value=!0},B=()=>{E.value=!1,m.value=null},Z=t=>{},ee=t=>{console.log("slide change",t.activeIndex),Q.value=t.activeIndex},se=[{id:"1",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-design-yl.png",url:"/medical"},{id:"2",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-design-cy.png",url:"/repast"},{id:"3",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-design-jr.png",url:"/financial"},{id:"4",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-design-ls.png",url:"/resale"}],O=g({arr:[]}),R=g({arr:[]}),te=[{name:"\u6211\u7684\u8BA2\u5355",id:"1",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-order.png",url:"/user/order/list"},{name:"\u67E5\u7269\u6D41",id:"2",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-logi.png"},{name:"\u67E5\u53D1\u7968",id:"3",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-invoice.png",url:"/user/invoice"},{name:"\u4F18\u60E0\u5238",id:"4",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-coupon.png",url:"user/coupon"},{name:"\u6536\u8D27\u5730\u5740",id:"5",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-address.png",url:"/user/address"},{name:"\u610F\u89C1\u53CD\u9988",id:"6",src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-idea.png"}],M=g({arr:[]});ke({pos:0}).then(t=>{M.arr=t.data});const S=u(null),ie=(t,i)=>{console.error(t),S.value=i;const s="#"+t;console.error(s),document.querySelector(s).scrollIntoView({behavior:"smooth"})};let p=g({arr:[]}),F=g({arr:[]});fe().then(t=>{F.arr=t.data.data}),g([{name:"\u5E7F\u544A\u673A\u7CFB\u5217",id:"anchor1",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A1",id:"anchor2"}]},{name:"\u62FC\u63A5\u5C4F\u7CFB\u5217",id:"anchor2",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A2",id:"anchor2"}]},{name:"\u4F1A\u8BAE\u5E73\u677F\u7CFB\u5217",id:"anchor3",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A3",id:"anchor2"}]},{name:"\u89E6\u6478\u4E00\u4F53\u673A",id:"anchor4",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A4",id:"anchor2"}]},{name:"\u53CC\u9762\u5C4F\u7CFB\u5217",id:"anchor5",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A5",id:"anchor2"}]},{name:"OLED\u7CFB\u5217",id:"anchor6",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A6",id:"anchor2"}]},{name:"\u900F\u660E\u5C55\u793A\u67DC",id:"anchor7",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A7",id:"anchor2"}]},{name:"LED\u5C4F\u7CFB\u5217",id:"anchor8",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A8",id:"anchor2"}]},{name:"\u914D\u4EF6\u4E2D\u5FC3",id:"anchor9",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A9",id:"anchor2"}]},{name:"\u5468\u8FB9\u4EA7\u54C1\u53CA\u670D\u52A1",id:"anchor10",children:[{name:"\u58C1\u6302\u4E00\u4F53\u673A10",id:"anchor2"}]}]);const ne=H(),x=(t,i)=>{ne.push({path:t,query:{id:i}})};return(t,i)=>(n(),o(r,null,[e("div",ze,[e("div",Te,[(n(!0),o(r,null,h(a(p).arr,(s,d)=>(n(),o("a",{href:"javascript:void(0)",class:z([S.value===d?"sliderStyle":"","slider"]),onClick:v=>ie("anchor"+s.id,d)},[e("div",De,c(s.name),1),Ee],10,$e))),256))]),e("div",null,[y(ue,{ref_key:"ChildsDom",ref:D},null,512)]),e("div",Ne,[e("div",Le,[e("div",{class:"index-center-left",onMouseenter:i[1]||(i[1]=s=>I()),onMouseleave:B},[(n(!0),o(r,null,h(a(p).arr,(s,d)=>(n(),o("div",{class:z(["index-sort-list",m.value==d?"colorStyles":""]),onMouseenter:v=>I(s,d)},[e("div",Oe,c(s.name),1),e("div",{class:z(["right-icon",m.value==d?"bgRight":""])},null,2)],42,Be))),256)),m.value!=null?(n(),o("div",{key:0,class:"index-sort-content",onMouseenter:i[0]||(i[0]=s=>I()),onMouseleave:B},[(n(!0),o(r,null,h(a(p).arr[m.value].goods,(s,d)=>(n(),o("div",{class:"index-sort-lists",onClick:v=>x("/goodsDetail",s.id)},[e("div",Me,[e("img",{src:s.logo[0],alt:""},null,8,Fe)]),e("div",He,c(s.name),1)],8,Re))),256))],32)):_("v-if",!0)],32),e("div",Pe,[y(a(je),{modules:J,pagination:{clickable:!0},autoplay:X,onSwiper:Z,onSlideChange:ee,navigation:Y},{default:P(()=>[(n(!0),o(r,null,h(M.arr,s=>(n(),V(a(Ie),null,{default:P(()=>[e("div",Ve,[e("img",{src:s.img,alt:""},null,8,Ae)])]),_:2},1024))),256))]),_:1})]),e("div",Ge,[a(w)?(n(),o("div",Ue,[e("div",qe,[e("div",Je,[e("img",{src:a(w).avatar,style:{width:"80px",height:"80px","border-radius":"50%"}},null,8,Qe)]),e("div",Ye," Hi\uFF01"+c(a(w).nickname),1)])])):(n(),o("div",Ke,[We,e("div",Xe,[e("div",{onClick:i[2]||(i[2]=s=>f("/login"))},"\u767B\u5F55"),e("div",{class:"buttonStyle",onClick:i[3]||(i[3]=s=>f("/register"))},"\u6CE8\u518C")])])),e("div",Ze,[(n(),o(r,null,h(te,(s,d)=>e("div",{class:"nav-view",onClick:v=>K(d,s)},[e("div",ss,[e("img",{src:s.src},null,8,ts)]),e("div",is,c(s.name),1)],8,es)),64))]),e("div",ns,[e("div",{class:"index-gg-top",onClick:i[4]||(i[4]=s=>f("/news/list"))},ls),e("div",cs,[(n(!0),o(r,null,h(a(F).arr,(s,d)=>(n(),o("div",as,[d<5?(n(),o("div",rs,c(s.title),1)):_("v-if",!0)]))),256))])])])]),e("div",hs,[e("div",us,[_s,vs,a(N)?(n(),V(ve,{key:0,"remain-time":$.time},null,8,["remain-time"])):_("v-if",!0)]),(n(!0),o(r,null,h(O.arr,(s,d)=>(n(),o("div",{class:"seckill-lists",onClick:v=>x("/goodsDetail",s.id)},[e("div",ms,[e("img",{src:s.logo[0],alt:""},null,8,ps)]),e("div",xs,c(s.name),1),e("div",ks,c(s.name),1),e("div",fs,[Ss,e("span",null,"\xA5"+c(s.amount_kill),1),bs,e("a",null,"\xA5"+c(s.amount),1)])],8,gs))),256))]),e("div",ys,[ws,e("div",Cs,[Is,e("div",js,[zs,(n(!0),o(r,null,h(R.arr,s=>(n(),o("div",{class:"index-hot-lists",onClick:d=>x("/goodsDetail",s.id)},[e("div",$s,[e("img",{src:s.logo[0],alt:""},null,8,Ds)]),e("div",Es,c(s.name),1),e("div",Ns,c(s.describe),1),e("div",Ls,c(s.amount),1)],8,Ts))),256))])])]),(n(!0),o(r,null,h(a(p).arr,s=>(n(),o("div",{class:"index-hot-sell scroll-item",id:`anchor${s.id}`},[_(' <div class="index-hot-bg">'),_(' <div class="title">IPS\u5168\u9762\u5C4F</div>'),_(' <div class="text">IPS\u5168\u9762\u5C4F\uFF0C\u53EF\u89C6\u89D2\u5EA6\u9AD8\uFF0C\u54CD\u5E94\u901F\u5EA6\u5FEB\uFF0C\u8272\u5F69\u51C6\u786E</div>'),_(" </div>"),e("div",Os,[e("div",Rs,c(s.name)+"\u7CFB\u5217 ",1),e("div",Ms,[s.goods?(n(!0),o(r,{key:0},h(s.goods,d=>(n(),o("div",{class:"index-goods-list",onClick:v=>x("/goodsDetail",d.id)},[e("div",Hs,[e("img",{src:d.logo[0],alt:""},null,8,Ps)]),Vs,As,Gs],8,Fs))),256)):_("v-if",!0)])])],8,Bs))),256))],512)]),_(" <LeftSliderBar/>"),y(_e,{url:a(C)},null,8,["url"]),e("div",Us,[qs,Js,e("img",{onClick:i[5]||(i[5]=s=>f("/product")),src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-design.png"})]),e("div",Qs,[Ys,Ks,e("div",Ws,[(n(),o(r,null,h(se,s=>e("div",{class:"designs",onClick:d=>x(s.url)},[e("div",Zs,[e("img",{src:s.src},null,8,et)])],8,Xs)),64))])]),e("div",{class:"dev-cloud",onClick:i[6]||(i[6]=s=>q(a(C).cloud_link))},tt),y(Se)],64))}};var _t=de(it,[["__scopeId","data-v-b56e1978"]]);export{_t as default};