You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.6 KiB
1 lines
4.6 KiB
import{B as e,x as a,v as o,K as t,p as i,m as s,T as r,c as l,t as c,y as d,L as n,u,s as p,z as v,w as f,M as g,o as m}from"./vendor.269b2875.js";import{_ as C}from"./denglu-fanhui@2x.42b0d81d.js";import{_ as h}from"./denglu-yiyuedu@2x.40d0a4e2.js";const y={setup(){const{proxy:i}=e(),s=a({array:["武汉图书馆","国家图书馆","汤湖图书馆","科技精英图书馆"],index:0,agreeVals:!1,certificateNo:"",verification:"获取验证码",verificationCode:"",password:"",positionTop:0,agreeVal:!1,num:60,ClntId:"",CardCode:"",shoru:!1});o((()=>{let e=i.$route.query;s.ClntId=e.ClntId,s.CardCode=e.CardCode})),t((()=>s.certificateNo),((e,a)=>{s.certificateNo=e,s.certificateNo&&s.verificationCode&&s.password?s.shoru=!0:s.shoru=!1})),t((()=>s.verificationCode),((e,a)=>{s.verificationCode=e,s.certificateNo&&s.verificationCode&&s.password?s.shoru=!0:s.shoru=!1})),t((()=>s.password),((e,a)=>{s.password=e,s.certificateNo&&s.verificationCode&&s.password?s.shoru=!0:s.shoru=!1}));return{data:s,bindPickerChange:e=>{s.index=e.target.value},ToRegistereds:()=>{if(s.agreeVals){let e={phone:s.certificateNo,MsgCode:s.verificationCode,ClntId:s.ClntId,Source:3,Pwd:s.password,CardCode:s.CardCode};i.$http.post(i.$API.REGISTER,e).then((e=>{200==e.type?(r("注册成功"),i.$router.push("/Login")):r(e.content)})).catch((e=>{}))}else r("请阅读服务协议")},ToRegistered:()=>{0==/^1[3,4,5,6,7,8,9]\d{9}$/.test(s.certificateNo)?r("手机号为空或手机格式不正确"):i.GetAuthCode()},GetAuthCode:()=>{if(1==!s.agreeVal){const e=i;let a={phone:s.certificateNo};i.$http.post(i.$API.SENDMSGCODE,a).then((a=>{200==a.type?(s.agreeVal=!0,e.Num()):r(a.content)})).catch((e=>{}))}},Num:()=>{const e=s;let a=setInterval((function(){if(0==e.num)return e.agreeVal=!1,e.verification="重新获取",e.num=60,void window.clearInterval(a);e.num--,e.verification=e.num+"重新获取"}),1e3)},tologin:()=>{i.$router.push("/Login")},toBack:()=>{i.$router.go(-1)},toUserAgreement:()=>{i.$router.push("/UserAgreement")},toPrivacyNotice:()=>{i.$router.push("/PrivacyNotice")}}}},k=f("data-v-82222998");i("data-v-82222998");const N={class:"logoStyle"},I=c("div",{class:"status_bar"},null,-1),V={class:"top-info"},w=c("div",{class:"zctit"},"注册 ",-1),z={class:"input-form"},T={class:"pohpas"},$={class:"uni-form-item uni-column"},x={class:"verificationCode"},R={class:"loginInput yzm"},b={class:"uni-form-item uni-column"},A={class:"protocol uni-column"},P={style:{display:"flex"}},_={key:0,class:"kon"},B={key:1,src:h,class:"dui"},U=g("我已阅读并同意"),S=g("和"),E={class:"RegisteredBtn uni-column"},G={class:"registered"},j=c("div",{style:{color:"rgb(128,128,128)"},class:"tozhuce"},"已有账号, ",-1);s();const L=k(((e,a,o,t,i,s)=>(m(),l("div",N,[I,c("div",V,[c("img",{src:C,class:"fanhui",onClick:a[1]||(a[1]=(...e)=>t.toBack&&t.toBack(...e))}),w]),c("div",z,[c("div",T,[c("div",$,[d(c("input",{"onUpdate:modelValue":a[2]||(a[2]=e=>t.data.certificateNo=e),class:"loginInput yzm","placeholder-style":"color:#999999",placeholder:"手机号"},null,512),[[n,t.data.certificateNo]])]),c("div",x,[c("div",R,[d(c("input",{style:{"font-size":"0.28rem",height:"0.70rem"},"onUpdate:modelValue":a[3]||(a[3]=e=>t.data.verificationCode=e),"placeholder-style":"color:#999999;font-size:0.28rem",placeholder:"验证码"},null,512),[[n,t.data.verificationCode]]),c("div",{class:["verificationBtn",{color:t.data.agreeVal}],onClick:a[4]||(a[4]=(...e)=>t.ToRegistered&&t.ToRegistered(...e)),style:{"font-size":"0.28rem"}},u(t.data.verification),3)])]),c("div",b,[d(c("input",{"onUpdate:modelValue":a[5]||(a[5]=e=>t.data.password=e),class:"loginInput input",password:"",type:"text","placeholder-style":"color:#888888",placeholder:"登录密码"},null,512),[[n,t.data.password]])])]),c("div",A,[c("div",P,[c("div",{onClick:a[6]||(a[6]=e=>t.data.agreeVals=!t.data.agreeVals),style:{display:"flex"}},[t.data.agreeVals?p("",!0):(m(),l("div",_)),t.data.agreeVals?(m(),l("img",B)):p("",!0)]),c("div",{class:["agree_link",{active_link:t.data.agreeVals}]},[U,c("span",{onClick:a[7]||(a[7]=e=>t.toUserAgreement())},"《AI阅行用户服务协议》"),S,c("span",{onClick:a[8]||(a[8]=e=>t.toPrivacyNotice())},"《隐私政策》")],2)])]),c("div",E,[d(c("button",{type:"primary",onClick:a[9]||(a[9]=(...e)=>t.ToRegistereds&&t.ToRegistereds(...e))},"确认注册",512),[[v,t.data.shoru]]),d(c("div",{onClick:a[10]||(a[10]=(...a)=>e.Toyz&&e.Toyz(...a)),class:"bu2"},"确认注册",512),[[v,!t.data.shoru]])]),c("div",G,[j,c("div",{style:{color:"rgb(81,148,255)"},class:"tozhuce",onClick:a[11]||(a[11]=(...e)=>t.tologin&&t.tologin(...e))}," 去登录 ")])])]))));y.render=L,y.__scopeId="data-v-82222998";export{y as default};
|