data_center/public/admin/assets/login_register.305d6a02.js

2 lines
6.3 KiB
JavaScript

import{_ as w}from"./index.403e8c99.js";import{F as y,Z as V,C as k,t as x,I as q,w as U,D as R}from"./element-plus.9c2fdfa8.js";import{g as S,s as W}from"./user.325a2025.js";import{d as C,r as L,$ as f,af as N,o as g,c as P,U as t,L as l,u as a,M as I,K as j,a as u,R as r,S as d}from"./@vue.53f8d7c3.js";import"./index.5be037e5.js";import"./@vueuse.038954e7.js";import"./lodash.47b8af7d.js";import"./@amap.8a62addd.js";import"./axios.96be3cef.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.efc99072.js";import"./color.e83714e9.js";import"./clone.fb54e01d.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.b4b577c6.js";import"./ms.a9ae1d6d.js";import"./@element-plus.37f92579.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";const G={class:"login-register"},K=u("div",{class:"font-medium mb-7"},"\u901A\u7528\u8BBE\u7F6E",-1),M=u("div",{class:"form-tips"},"\u7CFB\u7EDF\u901A\u7528\u767B\u5F55\u65B9\u5F0F\uFF0C\u81F3\u5C11\u9009\u62E9\u4E00\u9879",-1),T={class:"mt-1 ml-2"},Z=u("div",{class:"form-tips"},[r(" 1\u3001\u5982\u679C\u5F00\u542F\uFF0C\u5219\u65B0\u7528\u6237\u5728\u6CE8\u518C\u5B8C\u6210\u4E4B\u540E\u8981\u5F3A\u5236\u7ED1\u5B9A\u624B\u673A\u53F7"),u("br"),r(" 2\u3001\u8001\u7528\u6237\u767B\u5F55\u65F6\u5982\u679C\u68C0\u6D4B\u5230\u6CA1\u6709\u7ED1\u5B9A\u624B\u673A\uFF0C\u5219\u8981\u91CD\u65B0\u7ED1\u5B9A\u624B\u673A\u53F7 ")],-1),$={class:"mt-1 ml-2"},z=u("div",{class:"form-tips"},"\u767B\u5F55/\u6CE8\u518C\u4F1A\u5458\u65F6\uFF0C\u662F\u5426\u663E\u793A\u670D\u52A1\u534F\u8BAE\u548C\u9690\u79C1\u653F\u7B56",-1),H=u("div",{class:"font-medium mb-7"},"\u7B2C\u4E09\u65B9\u8BBE\u7F6E",-1),J={class:"mt-1 ml-2"},O=u("div",{class:"form-tips"},"\u767B\u5F55\u65F6\u652F\u6301\u7B2C\u4E09\u65B9\u767B\u5F55\uFF0C\u65B0\u7528\u6237\u6388\u6743\u5373\u81EA\u52A8\u6CE8\u518C\u8D26\u53F7",-1),Q={href:"https://open.weixin.qq.com/",target:"_blank"},X=u("div",{class:"form-tips"},[r(" 1\u3001\u5728\u5404\u6E20\u9053\u4F7F\u7528\u5FAE\u4FE1\u6388\u6743\u767B\u5F55\u65F6\uFF0C\u5F3A\u70C8\u5EFA\u8BAE\u914D\u7F6E\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0"),u("br"),r(" 2\u3001\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\u5173\u8054\u516C\u4F17\u53F7\u3001\u5C0F\u7A0B\u5E8F\u548CAPP\u540E\uFF0C\u53EF\u5B9E\u73B0\u5404\u7AEF\u7528\u6237\u8D26\u53F7\u7EDF\u4E00\uFF0C\u8BC6\u522B\u4E70\u5BB6\u552F\u4E00\u5FAE\u4FE1\u8EAB\u4EFD"),u("br"),r(" 3\u3001\u6CA1\u6709\u914D\u7F6E\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\uFF0C\u540C\u4E00\u5FAE\u4FE1\u53F7\u4F1A\u751F\u6210\u591A\u4E2A\u7528\u6237\uFF0C\u914D\u7F6E\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0\u540E\u5DF2\u751F\u6210\u7684\u7528\u6237\u8D26\u53F7\u65E0\u6CD5\u5408\u5E76 ")],-1),Y=C({name:"loginRegister"}),Pu=C({...Y,setup(uu){const m=L(),e=f({login_way:[],coerce_mobile:0,login_agreement:0,third_auth:0,wechat_auth:0,qq_auth:0}),A=f({loginWay:[{required:!0,validator:(n,o,s)=>{if(e.login_way.join("").length===0)s(new Error("\u767B\u5F55\u65B9\u5F0F\u81F3\u5C11\u9009\u62E9\u4E00\u9879\uFF01"));else{if(e.login_way!==""){if(!m.value)return;m.value.validateField("checkPass",()=>null)}s()}},trigger:"change"}],coerce_mobile:[{required:!0,trigger:"blur"}],login_agreement:[{required:!0,trigger:"blur"}],third_auth:[{required:!0,trigger:"blur"}]}),c=async()=>{try{const n=await S();for(const o in e)e[o]=n[o]}catch(n){console.log("\u83B7\u53D6=>",n)}},h=async()=>{var n;await((n=m.value)==null?void 0:n.validate());try{await W(e),c()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return c(),(n,o)=>{const s=y,E=V,F=k,_=x,p=q,B=U,v=R,D=w,b=N("perms");return g(),P("div",G,[t(v,{ref_key:"formRef",ref:m,rules:a(A),model:a(e),"label-width":"120px"},{default:l(()=>[t(p,{shadow:"never",class:"!border-none"},{default:l(()=>[K,t(F,{label:"\u767B\u5F55\u65B9\u5F0F",prop:"loginWay"},{default:l(()=>[u("div",null,[t(E,{modelValue:a(e).login_way,"onUpdate:modelValue":o[0]||(o[0]=i=>a(e).login_way=i)},{default:l(()=>[t(s,{label:"1"},{default:l(()=>[r("\u8D26\u53F7\u5BC6\u7801\u767B\u5F55")]),_:1}),t(s,{label:"2"},{default:l(()=>[r("\u624B\u673A\u9A8C\u8BC1\u7801\u767B\u5F55")]),_:1})]),_:1},8,["modelValue"]),M])]),_:1}),t(F,{label:"\u5F3A\u5236\u7ED1\u5B9A\u624B\u673A",prop:"coerce_mobile"},{default:l(()=>[u("div",null,[t(_,{modelValue:a(e).coerce_mobile,"onUpdate:modelValue":o[1]||(o[1]=i=>a(e).coerce_mobile=i),"active-value":1,"inactive-value":0},null,8,["modelValue"]),u("span",T,d(a(e).coerce_mobile?"\u5F00\u542F":"\u5173\u95ED"),1),Z])]),_:1}),t(F,{label:"\u653F\u7B56\u534F\u8BAE",prop:"login_agreement"},{default:l(()=>[u("div",null,[t(_,{modelValue:a(e).login_agreement,"onUpdate:modelValue":o[2]||(o[2]=i=>a(e).login_agreement=i),"active-value":1,"inactive-value":0},null,8,["modelValue"]),u("span",$,d(a(e).login_agreement?"\u5F00\u542F":"\u5173\u95ED"),1),z])]),_:1})]),_:1}),t(p,{shadow:"never",class:"!border-none mt-4"},{default:l(()=>[H,t(F,{label:"\u7B2C\u4E09\u65B9\u767B\u5F55",prop:"third_auth"},{default:l(()=>[u("div",null,[t(_,{modelValue:a(e).third_auth,"onUpdate:modelValue":o[3]||(o[3]=i=>a(e).third_auth=i),"active-value":1,"inactive-value":0},null,8,["modelValue"]),u("span",J,d(a(e).third_auth?"\u5F00\u542F":"\u5173\u95ED"),1),O,u("div",null,[t(s,{modelValue:a(e).wechat_auth,"onUpdate:modelValue":o[4]||(o[4]=i=>a(e).wechat_auth=i),"true-label":1,"false-label":0},{default:l(()=>[r(" \u5FAE\u4FE1\u767B\u5F55 ")]),_:1},8,["modelValue"])])])]),_:1}),t(F,{label:"\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0"},{default:l(()=>[u("div",null,[u("a",Q,[t(B,{type:"primary",link:"",class:"underline"},{default:l(()=>[r(" \u524D\u5F80\u5FAE\u4FE1\u5F00\u653E\u5E73\u53F0 ")]),_:1})]),X])]),_:1})]),_:1})]),_:1},8,["rules","model"]),I((g(),j(D,null,{default:l(()=>[t(B,{type:"primary",onClick:h},{default:l(()=>[r("\u4FDD\u5B58")]),_:1})]),_:1})),[[b,["setting.user.user/setRegisterConfig"]]])])}}});export{Pu as default};