"use strict";(self["webpackChunkyjk"]=self["webpackChunkyjk"]||[]).push([[2],{4002:function(e,s,t){t.r(s),t.d(s,{default:function(){return $}});var l=t(3396),i=t(7139),c=t(9242),n=t(2882);const o=e=>((0,l.dD)("data-v-16583524"),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=o((()=>(0,l._)("h2",{class:"text-center text-warning py-3"},"欢迎使用 天加云模型",-1))),_={key:0,class:"text-left py-1"},m=o((()=>(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))),u=o((()=>(0,l._)("div",{class:"my-10"},null,-1))),y={class:"box mx-10 bk-e flex-v flex-stretch flex-top box-ccc"},h={class:"flex-left px-4 py-2"},v={class:"flex-left px-4 pb-2"},f=o((()=>(0,l._)("div",{class:"pr-2"},"访问密码：",-1))),x={class:"bt-ccc flex-cc pa-2 bk-f"},w=(0,l.Uk)("打开"),k={key:0,class:"h14 flex-left mx-10 py-2 text-red"},D={key:1,class:"h14 flex-left mx-10 py-2 text-red"},g={class:"mx-10 bk-0 my-2 radius"},b=["src"],Z={class:"flex-1 my-10 px-10 flex-v"},q={key:2,class:"login flex-cc"},C=(0,l.Uk)("请 "),j=o((()=>(0,l._)("span",{class:"text-info"},"登录",-1))),I=(0,l.Uk)(" 后查看"),U=[C,j,I],z=o((()=>(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 T(e,s,t,o,C,j){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",_,"您正在打开天加云模型，请向您的好友索取模型访问密码。")),m]),u,(0,l._)("div",y,[(0,l._)("div",h,"天加云模型 id："+(0,i.zw)(e.D.id),1),(0,l._)("div",v,[f,(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",x,[(0,l.Wm)(n.T,{color:"primary",disabled:e.D.delay.sec>0,onClick:e.D.look},{default:(0,l.w5)((()=>[w])),_:1},8,["disabled","onClick"])])]),e.D.delay.sec<=0?((0,l.wg)(),(0,l.iD)("div",k,(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",D,"连续密码错误, "+(0,i.zw)(e.D.delay.sec)+" 秒后再试",1)):(0,l.kq)("",!0),(0,l._)("div",g,[(0,l._)("img",{class:"preview-img",src:e.D.preview_url},null,8,b)]),(0,l._)("div",Z,[(0,l._)("div",{class:"btn",onClick:s[2]||(s[2]=(...s)=>e.gohome&&e.gohome(...s))}," 返回首页 ")]),e.my_clound.is_user_login()?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",q,[(0,l._)("div",{class:"login-body",onClick:s[3]||(s[3]=(...s)=>e.D.wx_login&&e.D.wx_login(...s))},U)]))]),z])}var N=t(4870),O=t(1781),R=t(5803),B=t(5726),E=t(2482),K=t(653);class P{constructor(){(0,E.Z)(this,"sec",0),(0,E.Z)(this,"defer",(0,K.N)()),(0,E.Z)(this,"timerID",0)}countdown(e=10){return this.defer=(0,K.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 V=(0,l.aZ)({name:"IdEntrance",props:["css"],setup:()=>{const e=R.O.my_clound,s=+(O.Z.currentRoute.value.query.id||0),t=O.Z.currentRoute.value.query.sn,l=e.preview_root()+s+"/preview.jpg";e.list_ready().then((()=>{i.is_my_mode=!!e.item(s)})).catch((()=>{i.is_my_mode=!1}));const i=(0,N.qj)({id:s,sn:t,preview_url:l,prompt:"",delay:new P,delay_open:new P,is_my_mode:!1,look:(e=0)=>{R.O.user.post("yjk/check_sn",{id:s,sn:i.sn}).then((()=>{i.delay_open.countdown(e/1e3).then((()=>{O.Z.push({path:"mobile-show",query:{id:s,sn:i.sn}})}))})).catch((e=>{if(i.prompt="天加云模型 id 或 密码 错误",e.sec){const s=+new Date(e.t),t=+new Date,l=+e.sec-(t-s)/1e3;i.delay.countdown(l)}}))},wx_login:()=>{B.X.emit("wx-login",{})}});return t&&i.look(4e3),{my_clound:e,D:i,gohome:()=>{i.delay_open.cancel(),O.Z.push("/mobile-home")}}}}),W=t(89);const X=(0,W.Z)(V,[["render",T],["__scopeId","data-v-16583524"]]);var $=X}}]);