"use strict";(self["webpackChunkyjk"]=self["webpackChunkyjk"]||[]).push([[467],{467:function(e,s,t){t.r(s),t.d(s,{default:function(){return W}});var l=t(3396),i=t(7139),c=t(9242),o=t(2882);const n=e=>((0,l.dD)("data-v-45b1eaa8"),e=e(),(0,l.Cn)(),e),a={class:"flex-1 flex-v"},d={class:"flex-1 body v-scroll"},r={class:"mx-10 h14 text-8"},p=n((()=>(0,l._)("h2",{class:"text-center text-warning py-3"},"欢迎使用 天加云模型",-1))),u={key:0,class:"text-left py-1"},_=n((()=>(0,l._)("div",{class:"text-left py-1"},[(0,l.Uk)("天加云模型由 "),(0,l._)("a",{href:"https://tianjiaad.com/w/?p=175",target:"_blank"},"天加快模软件"),(0,l.Uk)(" 生成，可以手机上方便地查看盈建科三维模型和计算结果。")],-1))),y=n((()=>(0,l._)("div",{class:"my-10"},null,-1))),m={key:0,class:"box mx-10 bk-e flex-v flex-stretch flex-top box-ccc"},h={class:"flex-left px-4 py-2"},k={class:"flex-left px-4 pb-2"},v=n((()=>(0,l._)("div",{class:"pr-2"},"访问密码：",-1))),f={class:"bt-ccc flex-cc pa-2 bk-f"},D=(0,l.Uk)("打开"),w={key:1,class:"h14 flex-left mx-10 py-2 text-red"},x={key:2,class:"h14 flex-left mx-10 py-2 text-red"},g=["src"],b={class:"flex-1 my-10 px-10 flex-v"},q={key:4,class:"login flex-cc"},Z=(0,l.Uk)("请 "),C=n((()=>(0,l._)("span",{class:"text-info"},"登录",-1))),I=(0,l.Uk)(" 后查看"),j=[Z,C,I],U=n((()=>(0,l._)("div",{class:"bt-ccc bk-e pa-1"},[(0,l._)("div",{class:"h12"},"天加云模型:可直接在手机里查看盈建科三维模型和计算结果"),(0,l._)("div",{class:"h12"},"Powered By 天加建筑科技有限公司 ©2021-2023")],-1)));function z(e,s,t,n,Z,C){return(0,l.wg)(),(0,l.iD)("div",a,[(0,l._)("div",d,[(0,l._)("div",r,[p,e.D.sn?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",u,"您正在打开天加云模型，请向您的好友索取模型访问密码。")),_]),y,e.D.id?((0,l.wg)(),(0,l.iD)("div",m,[(0,l._)("div",h,"天加云模型 id："+(0,i.zw)(e.D.id),1),(0,l._)("div",k,[v,(0,l.wy)((0,l._)("input",{class:"tiny","onUpdate:modelValue":s[0]||(s[0]=s=>e.D.sn=s),onKeyup:s[1]||(s[1]=s=>e.D.prompt=""),size:"4"},null,544),[[c.nr,e.D.sn]])]),(0,l._)("div",f,[(0,l.Wm)(o.T,{color:"primary",disabled:e.D.delay.sec>0,onClick:e.D.look},{default:(0,l.w5)((()=>[D])),_:1},8,["disabled","onClick"])])])):(0,l.kq)("",!0),e.D.delay.sec<=0?((0,l.wg)(),(0,l.iD)("div",w,(0,i.zw)(e.D.delay_open.sec&&`${e.D.delay_open.sec}秒后自动打开模型`||e.D.prompt||" "),1)):(0,l.kq)("",!0),e.D.delay.sec>0?((0,l.wg)(),(0,l.iD)("div",x,"连续密码错误, "+(0,i.zw)(e.D.delay.sec)+" 秒后再试",1)):(0,l.kq)("",!0),e.D.id?((0,l.wg)(),(0,l.iD)("div",{key:3,class:"mx-10 bk-0 my-2 radius",onClick:s[2]||(s[2]=(...s)=>e.D.look&&e.D.look(...s))},[(0,l._)("img",{class:"preview-img",src:e.D.preview_url},null,8,g)])):(0,l.kq)("",!0),(0,l._)("div",b,[(0,l._)("div",{class:"btn",onClick:s[3]||(s[3]=(...s)=>e.gohome&&e.gohome(...s))},"返回首页")]),"no"==e.D.login_status?((0,l.wg)(),(0,l.iD)("div",q,[(0,l._)("div",{class:"login-body",onClick:s[4]||(s[4]=(...s)=>e.D.wx_login&&e.D.wx_login(...s))},j)])):(0,l.kq)("",!0)]),U])}var T=t(4870),N=t(982),O=t(3136),R=t(5726),A=t(2482),B=t(653);class E{constructor(){(0,A.Z)(this,"sec",0),(0,A.Z)(this,"defer",(0,B.N)()),(0,A.Z)(this,"timerID",0)}countdown(e=10){return this.defer=(0,B.N)(),this.sec=~~e||0,this.timer(),this.defer.promise}timer(){if(this.sec<=0)return this.defer.resolve(0);this.sec--,clearTimeout(this.timerID),this.timerID=window.setTimeout((()=>this.timer()),1e3)}cancel(){clearTimeout(this.timerID)}}var K=(0,l.aZ)({name:"IdEntrance",props:["css"],setup:()=>{const e=O.O.my_clound,s=+(N.Z.currentRoute.value.query.id||0),t=N.Z.currentRoute.value.query.sn,i=e.preview_root()+s+"/preview.jpg";(0,l.Ah)((()=>{console.log("退出 ID"),c.delay.cancel(),c.delay_open.cancel()})),(0,l.bv)((()=>{e.user.login_data.defer.promise.then((()=>{c.login_status="yes"})).catch((()=>{c.login_status="no"}))})),e.list_ready().then((()=>{c.is_my_mode=!!e.item(s)})).catch((()=>{c.is_my_mode=!1}));const c=(0,T.qj)({id:s,sn:t,login_status:"",preview_url:i,prompt:"",delay:new E,delay_open:new E,is_my_mode:!1,look:(e=0)=>{O.O.user.post("yjk/check_sn",{id:s,sn:c.sn}).then((()=>{c.delay_open.countdown(e/1e3).then((()=>{N.Z.push({path:"mobile-show",query:{id:s,sn:c.sn}})}))})).catch((e=>{if(c.prompt="天加云模型 id 或 密码 错误",e.sec){const s=+new Date(e.t),t=+new Date,l=+e.sec-(t-s)/1e3;c.delay.countdown(l)}}))},wx_login:()=>{R.X.emit("wx-login",{})}});return t&&c.look(4e3),{my_clound:e,D:c,gohome:()=>{c.delay_open.cancel(),N.Z.push("/mobile-home")}}}}),P=t(89);const V=(0,P.Z)(K,[["render",z],["__scopeId","data-v-45b1eaa8"]]);var W=V}}]);