PageSourceSearch

https://love.chizhouren.com/web/js/index-uhmldSvm.js

js chizhouren.com collected 2026-10-06 20:09:50 UTC 5,479 bytes, 1 lines download raw bytes

1import{bi as $,bg as G,be as J,r,_ as b,c as X,H as Z,o as ee,q as oe,aH as d,aQ as te,K as ie,u as o,y as _,x,z as t,R as s,L as E,Q as le,J as a,O as w,P as se,Y as ae,C as q,I as ne,bn as re,f as de}from"./vendor-BEbQWTGx.js";import{u as ce,a as ue,d as pe,f as me,s as A,e as M,b as fe}from"./index-c2Kqdklw.js";import{u as ge}from"./useVerificationCode-9pdZlOAS.js";import{a as T}from"./element-plus-D2K2CsqT.js";import"./lodash-Ct1ycaSU.js";const _e={class:"container"},ve={class:"container-main wrap clearfix"},be={class:"login-wrap mt30 ui-panel"},xe={class:"login-box clearfix"},he={class:"login-left"},ke={key:0,class:"login-title"},ye={class:"protocol_tips"},we=["value"],Ce={key:2,class:"quick-login"},Ve={class:"wxlogin-box"},De={__name:"index",setup(Fe){const m=G(),C=J(),{siteInfo:h}=ce(),V=ue(),B=(i,e,l)=>{if(e)if(/^(13|14|15|16|17|18|19)[0-9]{9}$/.test(e))l();else return l(new Error("请填写正确手机号"));else return l(new Error("手机号不能为空"))},c=r("1"),D=r(!1),k=r(!1),f=r(!1),n=b({...{mobile:"",tencentcode:{},smscode:"",verifycode:"",channel:""}}),K=b({mobile:[{validator:B,trigger:"blur"}],smscode:[{required:!0,message:"请输入验证码",trigger:"blur"}]}),g=b({appid:"",scope:"snsapi_login",redirect_uri:""}),F=r(""),R=r({}),y=b({...C.query}),L=X(()=>pe()),I=r(),{verificationCode:S,getVerificationCode:N}=ge({mobile:Z(n,"mobile"),captchaAppId:h.config.tencent_Captcha_appid,sendCodeAction:i=>fe({actiontype:"sendcode"},i),onTencentCodeUpdate:i=>{n.tencentcode=i}}),P=()=>{c.value=c.value=="0"?"1":"0"},Q=()=>{y.channel=localStorage.getItem("channel"),me({actiontype:"wxlogin_callback"},y).then(i=>{if(i.code!=200)return T.error(i.data),!1;i.data.fansid!=""?i.data.uid?(A(i.data.uid),i.data.isfull?window.location.href="/":(store.commit("SET_DECRYPTDATA",!1),m.push({path:"/register"}))):(M(i.data.fansid),m.replace("/login")):m.replace("/login")})},j=()=>{n.channel=localStorage.getItem("channel"),I.value.validate(i=>{if(i)k.value=!0,V.Login(n).then(e=>{if(k.value=!1,e.code==200){const{uid:l,fansid:u,isfull:v}=e.data;A(l),u&&M(u),V.GetUserInfo(),v?m.push({path:F.value||"/",query:R.value}):m.push({path:"/register"})}else T.error(e.data)});else return!1})},O=i=>Object.keys(i).reduce((e,l)=>(l!=="redirect"&&(e[l]=i[l]),e),{});return ee(()=>C.query,i=>{i&&(F.value=i.redirect,R.value=O(i))},{immediate:!0}),oe(()=>{}),y.code&&(D.value=!0,Q()),g.appid=h.config.pc_appid,g.redirect_uri=h.config.basePath+"/web/login",(i,e)=>{const l=d("el-input"),u=d("el-form-item"),v=d("el-col"),U=d("el-button"),z=d("el-form"),H=d("router-link"),W=d("el-dialog"),Y=te("loading");return ie((_(),x("div",_e,[t("div",ve,[t("div",be,[t("div",xe,[t("div",he,[o(L)?(_(),x(le,{key:1},[e[4]||(e[4]=t("div",{class:"login-title"},"手机绑定",-1)),e[5]||(e[5]=t("div",{class:"login-tip"},"该微信号尚未绑定相亲账号",-1))],64)):(_(),x("div",ke,"手机短信登录")),s(z,{ref_key:"loginFormRef",ref:I,model:o(n),rules:o(K),class:"login-form"},{default:a(()=>[s(u,{prop:"mobile"},{default:a(()=>[s(l,{ref:"mobile",modelValue:o(n).mobile,"onUpdate:modelValue":e[0]||(e[0]=p=>o(n).mobile=p),modelModifiers:{number:!0},placeholder:"请输入手机号",clearable:""},{prefix:a(()=>e[6]||(e[6]=[t("i",{class:"icon icon-mobile"},null,-1)])),_:1},8,["modelValue"])]),_:1}),s(u,{prop:"smscode"},{default:a(()=>[s(v,{span:15},{default:a(()=>[s(l,{modelValue:o(n).smscode,"onUpdate:modelValue":e[1]||(e[1]=p=>o(n).smscode=p),class:"code-input",placeholder:"请输入短信验证码",clearable:""},{prefix:a(()=>e[7]||(e[7]=[t("i",{class:"icon icon-code"},null,-1)])),_:1},8,["modelValue"])]),_:1}),s(v,{span:9},{default:a(()=>[s(U,{class:"get-sms",type:"primary",onClick:o(N),disabled:o(S).status},{default:a(()=>[w(se(o(S).text),1)]),_:1},8,["onClick","disabled"])]),_:1})]),_:1}),s(u,null,{default:a(()=>[s(U,{loading:o(k),type:"primary",onClick:j,class:"login-btn",disabled:o(c)=="0"},{default:a(()=>e[8]||(e[8]=[w("登录",-1)])),_:1,__:[8]},8,["loading","disabled"])]),_:1})]),_:1},8,["model","rules"]),t("div",ye,[t("label",{role:"radio",class:q(["ui-radio",o(c)=="1"?"is-checked":""]),onClick:ae(P,["prevent"])},[t("span",{class:q(["ui-radio__input",o(c)=="1"?"is-checked":""])},[e[9]||(e[9]=t("span",{class:"ui-radio__inner"},null,-1)),t("input",{type:"radio","aria-hidden":"true",tabindex:"-1",class:"ui-radio__original",value:o(c)},null,8,we)],2),e[10]||(e[10]=t("span",{class:"ui-radio__label"},"阅读并同意",-1))],2),s(H,{to:"/my/service",target:"_blank"},{default:a(()=>e[11]||(e[11]=[w("《用户协议及隐私政策》",-1)])),_:1,__:[11]})]),o(L)?E("",!0):(_(),x("div",Ce,[t("ul",null,[t("li",{onClick:e[2]||(e[2]=p=>f.value=!0)},e[12]||(e[12]=[t("span",null,[t("img",{src:"https://wx-img.jhrx.cn/xq_pc/ic_login_weixin.png"})],-1),t("p",null,"微信扫码登录",-1)]))])]))]),e[13]||(e[13]=t("div",{class:"line"},null,-1)),e[14]||(e[14]=t("div",{class:"login-right"},[t("img",{src:"https://wx-img.jhrx.cn/xq_pc/ic_login_bg.png",title:"",alt:"",width:"518",height:"431"})],-1))])])]),s(W,{title:"提示",modelValue:o(f),"onUpdate:modelValue":e[3]||(e[3]=p=>de(f)?f.value=p:null),width:"420px",center:"","lock-scroll":!1},{default:a(()=>[t("div",Ve,[o(f)?(_(),ne(o(re),{key:0,appid:o(g).appid,scope:o(g).scope,redirect_uri:o(g).redirect_uri},null,8,["appid","scope","redirect_uri"])):E("",!0)])]),_:1},8,["modelValue"])])),[[Y,o(D),void 0,{fullscreen:!0,lock:!0}]])}}},qe=$(De,[["__scopeId","data-v-a5d73fb4"]]);export{qe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.