邹方成 642b3cf7dd
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 50s
build: 更新前端构建产物和资源文件
更新了前端构建产物包括JavaScript、CSS和HTML文件,主要涉及以下变更:

1. 新增了多个组件和工具函数,包括异常页面组件、iframe组件等
2. 更新了活动管理、产品管理、优惠券管理等业务模块
3. 优化了构建配置和依赖管理
4. 修复了一些样式和功能问题
5. 更新了测试相关文件

同时更新了部分后端服务接口和测试用例。这些变更主要是为了支持新功能和改进现有功能的用户体验。
2025-11-21 01:24:13 +08:00

2 lines
5.0 KiB
JavaScript

var e=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=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,x as d,A as n,r as p,y as m,e as u,c,D as g,F as f,a as h,o as w,b as v,j,G as y,q as x,w as b,J as _,i as P,P as V,p as O,M as $,N as L,T as E}from"./index-BeZn6wgH.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as k,a as q}from"./LoginLeftView-CSOU4vG6.js";import{E as R,a as T}from"./index-Dn4yxdMr.js";import{E as M}from"./index-BtwYQklV.js";import{_ as A}from"./_plugin-vue_export-helper-BCo6x5W8.js";import"./el-dropdown-item-D3gOKOyu.js";import"./index-CnhjG_Ys.js";import"./index-A3hG-0VQ.js";import"./index-DC47MImW.js";import"./index-s8Fl0Qzt.js";import"./castArray-BakW2F2h.js";import"./refs-Cw5r5QN8.js";/* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-BQI7d56A.js";import"./useHeaderBar-_gW4JOkk.js";import"./index-ClC46U48.js";import"./_initCloneObject-BHiCRTfC.js";const U={class:"flex w-full h-screen"},I={class:"relative flex-1"},B={class:"auth-right-wrap"},C={class:"form"},D={class:"title"},F={class:"sub-title"},H={style:{"margin-top":"15px"}},J={class:"mt-5 text-sm text-g-600"},G=i((K=((e,r)=>{for(var s in r||(r={}))a.call(r,s)&&l(e,s,r[s]);if(t)for(var s of t(r))o.call(r,s)&&l(e,s,r[s]);return e})({},{name:"Register"}),r(K,s({__name:"index",setup(e){const{t:r,locale:s}=d(),t=n(),a=p(),o=p(!1),l=p(0);m(s,()=>{l.value++});const i=u({username:"",password:"",confirmPassword:"",agreement:!1}),A=(e,s,t)=>{var o;s?(i.confirmPassword&&(null==(o=a.value)||o.validateField("confirmPassword")),t()):t(new Error(r("register.placeholder.password")))},G=(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")))},N=c(()=>({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:A,trigger:"blur"},{min:6,message:r("register.rule.passwordLength"),trigger:"blur"}],confirmPassword:[{required:!0,validator:G,trigger:"blur"}],agreement:[{validator:K,trigger:"change"}]})),S=()=>{return e=this,r=null,s=function*(){if(a.value)try{yield a.value.validate(),o.value=!0,setTimeout(()=>{o.value=!1,E.success("注册成功"),X()},1e3)}catch(e){o.value=!1}},new Promise((t,a)=>{var o=e=>{try{i(s.next(e))}catch(r){a(r)}},l=e=>{try{i(s.throw(e))}catch(r){a(r)}},i=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,l);i((s=s.apply(e,r)).next())});var e,r,s},X=()=>{setTimeout(()=>{t.push({name:"Login"})},1e3)};return(e,r)=>{const s=k,t=q,d=_,n=R,p=g("RouterLink"),m=M,u=L,c=T,E=f("ripple");return w(),h("div",U,[v(s),j("div",I,[v(t),j("div",B,[j("div",C,[j("h3",D,x(e.$t("register.title")),1),j("p",F,x(e.$t("register.subTitle")),1),(w(),y(c,{class:"mt-7.5",ref_key:"formRef",ref:a,model:P(i),rules:P(N),"label-position":"top",key:P(l)},{default:b(()=>[v(n,{prop:"username"},{default:b(()=>[v(d,{class:"custom-height",modelValue:P(i).username,"onUpdate:modelValue":r[0]||(r[0]=e=>P(i).username=e),modelModifiers:{trim:!0},placeholder:e.$t("register.placeholder.username")},null,8,["modelValue","placeholder"])]),_:1}),v(n,{prop:"password"},{default:b(()=>[v(d,{class:"custom-height",modelValue:P(i).password,"onUpdate:modelValue":r[1]||(r[1]=e=>P(i).password=e),modelModifiers:{trim:!0},placeholder:e.$t("register.placeholder.password"),type:"password",autocomplete:"off","show-password":""},null,8,["modelValue","placeholder"])]),_:1}),v(n,{prop:"confirmPassword"},{default:b(()=>[v(d,{class:"custom-height",modelValue:P(i).confirmPassword,"onUpdate:modelValue":r[2]||(r[2]=e=>P(i).confirmPassword=e),modelModifiers:{trim:!0},placeholder:e.$t("register.placeholder.confirmPassword"),type:"password",autocomplete:"off",onKeyup:V(S,["enter"]),"show-password":""},null,8,["modelValue","placeholder"])]),_:1}),v(n,{prop:"agreement"},{default:b(()=>[v(m,{modelValue:P(i).agreement,"onUpdate:modelValue":r[3]||(r[3]=e=>P(i).agreement=e)},{default:b(()=>[O(x(e.$t("register.agreeText"))+" ",1),v(p,{style:{color:"var(--theme-color)","text-decoration":"none"},to:"/privacy-policy"},{default:b(()=>[O(x(e.$t("register.privacyPolicy")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1}),j("div",H,[$((w(),y(u,{class:"w-full custom-height",type:"primary",onClick:S,loading:P(o)},{default:b(()=>[O(x(e.$t("register.submitBtnText")),1)]),_:1},8,["loading"])),[[E]])]),j("div",J,[j("span",null,x(e.$t("register.hasAccount")),1),v(p,{class:"text-theme",to:{name:"Login"}},{default:b(()=>[O(x(e.$t("register.toLogin")),1)]),_:1})])]),_:1},8,["model","rules"]))])])])])}}}))));var K;const N=A(G,[["__scopeId","data-v-d45b160d"]]);export{N as default};