index.e63d10b2.js 12 KB

1
  1. import{_ as de,W as le,z as ce,a as _,B as re,X as ae,V as he,r as g,Y as ue,Z as _e,$ as ve,a0 as ge,a1 as me,a2 as pe,y as V,o,g as n,d as e,F as h,n as u,u as r,e as w,w as P,t as l,c as U,m as v,a3 as A,x as z,K as xe,L as fe,f as G}from"./index.a944d9c8.js";import{i as ke}from"./CountDate.vue_vue_type_style_index_0_scoped_true_lang.7d984e62.js";import{R as be}from"./RightSliderBar.3360ab45.js";import{C as ye}from"./CountDate.5654c1ac.js";import{F as Se}from"./Footer.c28b9925.js";import{A as we,P as Ce,N as Ie,S as je,a as ze,b as $e}from"./swiper-slide.06f76005.js";import"./scrollbar.min.ecd7810d.js";import{d as q}from"./index.274414e3.js";const c=f=>(xe("data-v-b56e1978"),f=f(),fe(),f),Te={class:"login-wrapper"},De={class:"leftSlider"},Ee=["onClick"],Ne={key:0},Le={class:"sliderName"},Be=c(()=>e("div",{class:"slider-bottom"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/line-s.png"})],-1)),Oe={class:"index-center",ref:"scrollRef"},Re={class:"index-top-center",id:"div1"},Fe=["onMouseenter"],Me={class:"index-sort-name overflow2"},He=["onClick"],Ve={class:"index-sort-img"},Pe=["src"],Ue={class:"index-sort-name overflow2",style:{color:"#333"}},Ae={class:"index-swiper-center"},qe={class:"banner"},Ge=["src"],Ye={class:"index-rights"},Je={key:0,class:"index-right-user",style:{padding:"20px 0"}},Ke={class:"index-userInfo"},We={class:"user-avatar"},Xe=["src"],Ze={style:{color:"#999999","font-size":"22px",margin:"30px 0 0 20px"},class:"overflow1"},Qe={key:1,class:"index-right-user"},es=c(()=>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)),ss={class:"index-buttons"},ts={class:"index-right-nav"},os=["onClick"],is={class:"nav-icon"},ns=["src"],ds={class:"nav-name"},ls={class:"index-right-gg"},cs=c(()=>e("div",{class:"index-gg-img"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-user-gg.png"})],-1)),rs=c(()=>e("div",{class:"index-gg-more"}," \u66F4\u591A ",-1)),as=[cs,rs],hs={class:"index-notice"},us={class:"index-notice-list"},_s={key:0},vs={class:"index-seckill",id:"div2"},gs={class:"seckill-bg"},ms=c(()=>e("div",{class:"seckill-text"},[e("p",null,"\u9650\u65F6"),e("p",null,"\u79D2\u6740")],-1)),ps=c(()=>e("div",{class:"time-color"},"\u8DDD\u7ED3\u675F\uFF1A",-1)),xs=["onClick"],fs={class:"seckill-img"},ks=["src"],bs={class:"seckillName overflow1"},ys={class:"seckillDesc overflow1"},Ss={class:"seckill-price"},ws=G(" \u79D2\u6740\u4EF7:"),Cs=G(),Is={class:"index-hot-sell",id:"div3"},js=c(()=>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)),zs={class:"index-hot-content"},$s=c(()=>e("div",{class:"index-hot-title"},[e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/hot-sell-text.png"})],-1)),Ts={class:"index-hot-bottom"},Ds=c(()=>e("div",{class:"index-hot-img",style:{color:"#fff","text-align":"center","padding-top":"50px"}}," \u70ED\u9500\u7206\u6B3E ",-1)),Es=["onClick"],Ns={class:"hot-img"},Ls=["src"],Bs={class:"hotNames overflow1"},Os={class:"hotDesc overflow2"},Rs={class:"hot-price"},Fs=["id"],Ms={key:0},Hs={class:"index-goods-content"},Vs={class:"index-goods-gg"},Ps={class:"flex-s"},Us=["onClick"],As={class:"hot-img"},qs=["src"],Gs={class:"hotNames overflow2"},Ys={class:"hotDesc overflow2"},Js={class:"hot-price"},Ks={class:"index-product index-design"},Ws=c(()=>e("div",{class:"titles"},"\xB7\u4EA7\u54C1\u5B9A\u5236\xB7",-1)),Xs=c(()=>e("div",{class:"titles-eng"},"Product customizatio",-1)),Zs={class:"index-design"},Qs=c(()=>e("div",{class:"titles"},"\xB7\u65B9\u6848\u8BBE\u8BA1\xB7",-1)),et=c(()=>e("div",{class:"titles-eng"},"conceptual design",-1)),st={class:"design-content"},tt=["onClick"],ot={class:"design-img"},it=["src"],nt=c(()=>e("img",{src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/dev-cloud.png"},null,-1)),dt=[nt],lt={__name:"index",setup(f){const Y=t=>{window.location.href=t};localStorage.getItem("USER__INFO__")&&le().then(t=>{});const $=ce(),C=$.getUserInfo;let I=_("");re(()=>{window.addEventListener("scroll",L),Z()}),ae(()=>{window.removeEventListener("scroll",L)}),he().then(t=>{I.value=t.data,localStorage.setItem("config",JSON.stringify(t.data))});const J=[we,Ce,Ie,je],K=_(0),T=g({time:null}),W={nextElRef:".swiper-button-next",prevElRef:".swiper-button-prev"};_(""),_("");const D=_(null),m=_(null);_(null);const E=_(!1);let N=_(!1);console.error("111");const X=(t,i)=>{if(t===5){D.value.navTaps();return}t!==1&&(V(),A.push(i.url))},k=t=>{A.push(t)};ue().then(t=>{p.arr=t.data});async function Z(){setTimeout(()=>{_e().then(t=>{if(t.code==1){O.arr=t.data.goods;let i=q(t.time),s=q(t.data.endtime);const d=new Date(i).getTime(),y=new Date(s).getTime()-d;T.time=y/1e3,N.value=!0}})},300)}ve().then(t=>{R.arr=t.data.goods});const Q={delay:5e4,disableOnInteraction:!1,loop:!1,pauseOnMouseEnter:!0,reverseDirection:!0};localStorage.getItem("USER__INFO__")&&$.setShoppingStore("1");const L=t=>{let i=document.querySelectorAll(".scroll-item"),s=document.getElementById("div1").offsetHeight,d=document.getElementById("div2").offsetHeight,a=document.getElementById("div3").offsetHeight;const y=s+d+a;let H=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;for(let S=i.length-1;S>=0;S--)if(H-y>=i[S].offsetTop-i[0].offsetTop){b.value=S;break}else b.value=null},j=(t,i)=>{t&&(m.value=i),E.value=!0},B=()=>{E.value=!1,m.value=null},ee=t=>{},se=t=>{console.log("slide change",t.activeIndex),K.value=t.activeIndex},te=[{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:[]});ge("").then(t=>{});const oe=[{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"}],F=g({arr:[]});me({pos:0}).then(t=>{F.arr=t.data});const b=_(null),ie=(t,i)=>{console.error(t),b.value=i;const s="#"+t;console.error(s),document.querySelector(s).scrollIntoView({behavior:"smooth"})};let p=g({arr:[]}),M=g({arr:[]});pe().then(t=>{M.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=V(),x=(t,i)=>{ne.push({path:t,query:{id:i}})};return(t,i)=>(o(),n(h,null,[e("div",Te,[e("div",De,[(o(!0),n(h,null,u(r(p).arr,(s,d)=>(o(),n("a",{href:"javascript:void(0)",class:z([b.value===d?"sliderStyle":"","slider"]),onClick:a=>ie("anchor"+s.id,d)},[s.goods!=""?(o(),n("div",Ne,[e("div",Le,l(s.name),1),Be])):v("v-if",!0)],10,Ee))),256))]),e("div",null,[w(ke,{ref_key:"ChildsDom",ref:D},null,512)]),e("div",Oe,[e("div",Re,[e("div",{class:"index-center-left",onMouseenter:i[1]||(i[1]=s=>j()),onMouseleave:B},[(o(!0),n(h,null,u(r(p).arr,(s,d)=>(o(),n("div",null,[s.goods!=""?(o(),n("div",{key:0,class:z(["index-sort-list",m.value==d?"colorStyles":""]),onMouseenter:a=>j(s,d)},[e("div",Me,l(s.name),1),e("div",{class:z(["right-icon",m.value==d?"bgRight":""])},null,2)],42,Fe)):v("v-if",!0),m.value!=null?(o(),n("div",{key:1,class:"index-sort-content",onMouseenter:i[0]||(i[0]=a=>j()),onMouseleave:B},[(o(!0),n(h,null,u(r(p).arr[m.value].goods,(a,y)=>(o(),n("div",{class:"index-sort-lists",onClick:H=>x("/goodsDetail",a.id)},[e("div",Ve,[e("img",{src:a.logo[0],alt:""},null,8,Pe)]),e("div",Ue,l(a.name),1)],8,He))),256))],32)):v("v-if",!0)]))),256))],32),e("div",Ae,[w(r($e),{modules:J,pagination:{clickable:!0},autoplay:Q,onSwiper:ee,onSlideChange:se,navigation:W},{default:P(()=>[(o(!0),n(h,null,u(F.arr,s=>(o(),U(r(ze),null,{default:P(()=>[e("div",qe,[e("img",{src:s.img,alt:""},null,8,Ge)])]),_:2},1024))),256))]),_:1})]),e("div",Ye,[r(C)?(o(),n("div",Je,[e("div",Ke,[e("div",We,[e("img",{src:r(C).avatar,style:{width:"80px",height:"80px","border-radius":"50%"}},null,8,Xe)]),e("div",Ze," Hi\uFF01"+l(r(C).nickname),1)])])):(o(),n("div",Qe,[es,e("div",ss,[e("div",{onClick:i[2]||(i[2]=s=>k("/login"))},"\u767B\u5F55"),e("div",{class:"buttonStyle",onClick:i[3]||(i[3]=s=>k("/register"))},"\u6CE8\u518C")])])),e("div",ts,[(o(),n(h,null,u(oe,(s,d)=>e("div",{class:"nav-view",onClick:a=>X(d,s)},[e("div",is,[e("img",{src:s.src},null,8,ns)]),e("div",ds,l(s.name),1)],8,os)),64))]),e("div",ls,[e("div",{class:"index-gg-top",onClick:i[4]||(i[4]=s=>k("/news/list"))},as),e("div",hs,[(o(!0),n(h,null,u(r(M).arr,(s,d)=>(o(),n("div",us,[d<5?(o(),n("div",_s,l(s.title),1)):v("v-if",!0)]))),256))])])])]),e("div",vs,[e("div",gs,[ms,ps,r(N)?(o(),U(ye,{key:0,"remain-time":T.time},null,8,["remain-time"])):v("v-if",!0)]),(o(!0),n(h,null,u(O.arr,(s,d)=>(o(),n("div",{class:"seckill-lists",onClick:a=>x("/goodsDetail",s.id)},[e("div",fs,[e("img",{src:s.logo[0],alt:""},null,8,ks)]),e("div",bs,l(s.name),1),e("div",ys,l(s.describe),1),e("div",Ss,[ws,e("span",null,"\xA5"+l(s.amount_kill),1),Cs,e("a",null,"\xA5"+l(s.amount),1)])],8,xs))),256))]),e("div",Is,[js,e("div",zs,[$s,e("div",Ts,[Ds,(o(!0),n(h,null,u(R.arr,s=>(o(),n("div",{class:"index-hot-lists",onClick:d=>x("/goodsDetail",s.id)},[e("div",Ns,[e("img",{src:s.logo[0],alt:""},null,8,Ls)]),e("div",Bs,l(s.name),1),e("div",Os,l(s.describe),1),e("div",Rs,l(s.amount),1)],8,Es))),256))])])]),(o(!0),n(h,null,u(r(p).arr,s=>(o(),n("div",{class:"index-hot-sell scroll-item",id:`anchor${s.id}`},[s.goods!=""?(o(),n("div",Ms,[e("div",Hs,[e("div",Vs,l(s.name)+"\u7CFB\u5217 ",1),e("div",Ps,[s.goods?(o(!0),n(h,{key:0},u(s.goods,d=>(o(),n("div",{class:"index-goods-list",onClick:a=>x("/goodsDetail",d.id)},[e("div",As,[e("img",{src:d.logo[0],alt:""},null,8,qs)]),e("div",Gs,l(d.name),1),e("div",Ys,l(d.describe),1),e("div",Js," \xA5"+l(d.amount),1)],8,Us))),256)):v("v-if",!0)])])])):v("v-if",!0)],8,Fs))),256))],512)]),v(" <LeftSliderBar/>"),w(be,{url:r(I)},null,8,["url"]),e("div",Ks,[Ws,Xs,e("img",{onClick:i[5]||(i[5]=s=>k("/product")),src:"http://screen-test.zhousi.hdlkeji.com/aksdbn/img/index/index-design.png"})]),e("div",Zs,[Qs,et,e("div",st,[(o(),n(h,null,u(te,s=>e("div",{class:"designs",onClick:d=>x(s.url)},[e("div",ot,[e("img",{src:s.src},null,8,it)])],8,tt)),64))])]),e("div",{class:"dev-cloud",onClick:i[6]||(i[6]=s=>Y(r(I).cloud_link))},dt),w(Se)],64))}};var pt=de(lt,[["__scopeId","data-v-b56e1978"]]);export{pt as default};