Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 40s
feat(pay): 添加支付API基础结构 feat(miniapp): 创建支付测试小程序页面与配置 feat(wechatpay): 配置微信支付参数与证书 fix(guild): 修复成员列表查询条件 docs: 更新代码规范文档与需求文档 style: 统一前后端枚举显示与注释格式 refactor(admin): 重构用户奖励发放接口参数处理 test(title): 添加称号效果参数验证测试
2 lines
5.1 KiB
JavaScript
2 lines
5.1 KiB
JavaScript
var e=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(r,s,t)=>s in r?e(r,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[s]=t;import{d as i,v as m,a as p,w as d,r as n,c as u,e as c,p as g,h as f,y as h,m as w,z as v,u as j,B as x,l as y,D as b,J as _,O as P,C as V,E as O,f as E}from"./index-DBHnxsy6.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as $,a as L}from"./LoginLeftView-DqS6laCq.js";import{E as k,a as q}from"./index-zIv9y_XZ.js";import{E as R}from"./index-qSQlj0RO.js";import{E as T}from"./index-DKaQAdbW.js";import{E as B}from"./index-r0EsCkBw.js";import{_ as C}from"./_plugin-vue_export-helper-BCo6x5W8.js";import"./el-dropdown-item-5vxq5ITH.js";import"./index-B99ckkYy.js";import"./index-nZra831X.js";import"./index-MOpuiu9Z.js";import"./use-form-item-ByasanrX.js";import"./use-form-common-props-BOfz9xGR.js";import"./index-sqhzrW2O.js";import"./index-DZO7eApA.js";import"./refs-Cw5r5QN8.js";/* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-DUyHB5jc.js";import"./useHeaderBar-DUbpCIQq.js";import"./index-DuC2vu0m.js";import"./_initCloneObject-7oWMW-Ot.js";import"./index-DfWQjCuY.js";const M={class:"flex w-full h-screen"},U={class:"relative flex-1"},D={class:"auth-right-wrap"},z={class:"form"},A={class:"title"},I={class:"sub-title"},F={style:{"margin-top":"15px"}},H={class:"mt-5 text-sm text-g-600"},J=i((K=((e,r)=>{for(var s in r||(r={}))o.call(r,s)&&l(e,s,r[s]);if(t)for(var s of t(r))a.call(r,s)&&l(e,s,r[s]);return e})({},{name:"Register"}),r(K,s({__name:"index",setup(e){const{t:r,locale:s}=m(),t=V(),o=p(),a=p(!1),l=p(0);d(s,()=>{l.value++});const i=n({username:"",password:"",confirmPassword:"",agreement:!1}),C=(e,s,t)=>{var a;s?(i.confirmPassword&&(null==(a=o.value)||a.validateField("confirmPassword")),t()):t(new Error(r("register.placeholder.password")))},J=(e,s,t)=>{s?s===i.password?t():t(new Error(r("register.rule.passwordMismatch"))):t(new Error(r("register.rule.confirmPasswordRequired")))},K=(e,s,t)=>{s?t():t(new Error(r("register.rule.agreementRequired")))},S=u(()=>({username:[{required:!0,message:r("register.placeholder.username"),trigger:"blur"},{min:3,max:20,message:r("register.rule.usernameLength"),trigger:"blur"}],password:[{required:!0,validator:C,trigger:"blur"},{min:6,message:r("register.rule.passwordLength"),trigger:"blur"}],confirmPassword:[{required:!0,validator:J,trigger:"blur"}],agreement:[{validator:K,trigger:"change"}]})),G=()=>{return e=this,r=null,s=function*(){if(o.value)try{yield o.value.validate(),a.value=!0,setTimeout(()=>{a.value=!1,P.success("注册成功"),N()},1e3)}catch(e){a.value=!1}},new Promise((t,o)=>{var a=e=>{try{i(s.next(e))}catch(r){o(r)}},l=e=>{try{i(s.throw(e))}catch(r){o(r)}},i=e=>e.done?t(e.value):Promise.resolve(e.value).then(a,l);i((s=s.apply(e,r)).next())});var e,r,s},N=()=>{setTimeout(()=>{t.push({name:"Login"})},1e3)};return(e,r)=>{const s=$,t=L,m=R,p=q,d=b("RouterLink"),n=T,u=B,P=k,V=O("ripple");return E(),c("div",M,[g(s),f("div",U,[g(t),f("div",D,[f("div",z,[f("h3",A,w(e.$t("register.title")),1),f("p",I,w(e.$t("register.subTitle")),1),(E(),h(P,{class:"mt-7.5",ref_key:"formRef",ref:o,model:j(i),rules:j(S),"label-position":"top",key:j(l)},{default:v(()=>[g(p,{prop:"username"},{default:v(()=>[g(m,{class:"custom-height",modelValue:j(i).username,"onUpdate:modelValue":r[0]||(r[0]=e=>j(i).username=e),modelModifiers:{trim:!0},placeholder:e.$t("register.placeholder.username")},null,8,["modelValue","placeholder"])]),_:1}),g(p,{prop:"password"},{default:v(()=>[g(m,{class:"custom-height",modelValue:j(i).password,"onUpdate:modelValue":r[1]||(r[1]=e=>j(i).password=e),modelModifiers:{trim:!0},placeholder:e.$t("register.placeholder.password"),type:"password",autocomplete:"off","show-password":""},null,8,["modelValue","placeholder"])]),_:1}),g(p,{prop:"confirmPassword"},{default:v(()=>[g(m,{class:"custom-height",modelValue:j(i).confirmPassword,"onUpdate:modelValue":r[2]||(r[2]=e=>j(i).confirmPassword=e),modelModifiers:{trim:!0},placeholder:e.$t("register.placeholder.confirmPassword"),type:"password",autocomplete:"off",onKeyup:x(G,["enter"]),"show-password":""},null,8,["modelValue","placeholder"])]),_:1}),g(p,{prop:"agreement"},{default:v(()=>[g(n,{modelValue:j(i).agreement,"onUpdate:modelValue":r[3]||(r[3]=e=>j(i).agreement=e)},{default:v(()=>[y(w(e.$t("register.agreeText"))+" ",1),g(d,{style:{color:"var(--theme-color)","text-decoration":"none"},to:"/privacy-policy"},{default:v(()=>[y(w(e.$t("register.privacyPolicy")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1}),f("div",F,[_((E(),h(u,{class:"w-full custom-height",type:"primary",onClick:G,loading:j(a)},{default:v(()=>[y(w(e.$t("register.submitBtnText")),1)]),_:1},8,["loading"])),[[V]])]),f("div",H,[f("span",null,w(e.$t("register.hasAccount")),1),g(d,{class:"text-theme",to:{name:"Login"}},{default:v(()=>[y(w(e.$t("register.toLogin")),1)]),_:1})])]),_:1},8,["model","rules"]))])])])])}}}))));var K;const S=C(J,[["__scopeId","data-v-d45b160d"]]);export{S as default};
|