ltx d17f43135d feat: 完善多角色赛事服务功能
- 新增参赛者、裁判、检录员角色识别及角色化首页与个人中心
- 新增裁判注册、身份认证提示、赛事执裁报名及报名记录查询
- 新增检录工作台,支持检录任务、轮次状态与运动员检录操作
- 新增赛事成绩查询页面及成绩详情展示
- 封装成绩、检录和裁判报名接口,补充请求参数清理逻辑
- 新增检录 Tab 图标、页面路由及本地开发配置
- 新增 Git 忽略规则,排除依赖、构建缓存、日志和本地工具文件
2026-08-07 11:28:38 +08:00

86 lines
3.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="register-page">
<!-- 顶部蓝色头部 -->
<view class="header">
<image class="header-bg" src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_miniapp/bg.png" mode="aspectFill" />
<view class="header-mask"></view>
<!-- 导航栏 -->
<mp-navigation-bar title="{{isReset ? '忘记密码' : '注册'}}" background-color="transparent" color="#fff" bind:click-left="onBack" left-arrow></mp-navigation-bar>
<!-- 欢迎文字 + logo -->
<view class="header-content">
<text class="welcome-text">欢迎使用跃享跳</text>
<image class="logo-img" src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/event_miniapp/logo.png" mode="aspectFit" />
</view>
</view>
<!-- 白色内容区 -->
<view class="content-card">
<!-- 标题 -->
<view class="card-title-row">
<text class="card-title">{{isReset ? '重置密码' : '账号注册'}}</text>
</view>
<view wx:if="{{!isReset}}" class="role-field">
<text class="field-label">注册角色</text>
<view class="role-switch">
<view wx:for="{{roleOptions}}" wx:key="value" class="role-option {{selectedRole === item.value ? 'active' : ''}}" data-role="{{item.value}}" bindtap="onRoleTap">
<text class="role-name">{{item.label}}</text>
<text class="role-check" wx:if="{{selectedRole === item.value}}">✓</text>
</view>
</view>
<text class="role-desc">{{selectedRoleDescription}}</text>
</view>
<!-- 手机号 -->
<view class="field">
<text class="field-label">手机号</text>
<view class="field-input-box">
<input class="field-input" type="number" maxlength="11" placeholder="请输入手机号" placeholder-class="placeholder" value="{{mobile}}" bindinput="onMobileInput" />
</view>
</view>
<!-- 验证码 -->
<view class="field">
<text class="field-label">验证码</text>
<view class="field-input-box">
<input class="field-input" type="number" maxlength="8" placeholder="请输入短信验证码" placeholder-class="placeholder" value="{{verificationCode}}" bindinput="onCodeInput" />
<view class="send-code-link {{(codeSending || countdown > 0) ? 'disabled' : ''}}" bindtap="onSendCodeTap">
{{countdown > 0 ? countdown + 's 后重发' : '获取验证码'}}
</view>
</view>
</view>
<!-- 密码 -->
<view class="field">
<text class="field-label">{{isReset ? '新密码(6–32 位)' : '密码(6–32 位)'}}</text>
<view class="field-input-box">
<input class="field-input" password placeholder="{{isReset ? '请设置新密码' : '设置登录密码'}}" placeholder-class="placeholder" value="{{password}}" bindinput="onPasswordInput" />
</view>
</view>
<!-- 确认密码 -->
<view class="field">
<text class="field-label">确认{{isReset ? '新' : ''}}密码</text>
<view class="field-input-box">
<input class="field-input" password placeholder="再次输入密码" placeholder-class="placeholder" value="{{password2}}" bindinput="onPassword2Input" />
</view>
</view>
<!-- 昵称 -->
<!-- <view class="field">
<text class="field-label">昵称(选填)</text>
<view class="field-input-box">
<input
class="field-input"
maxlength="64"
placeholder="请输入昵称"
placeholder-class="placeholder"
value="{{nickName}}"
bindinput="onNickInput"
/>
</view>
</view> -->
<!-- 按钮区域 -->
<view class="btn-area">
<button class="btn-submit" bindtap="onSubmitTap" loading="{{submitting}}">
{{isReset ? '确认重置' : '注册'}}
</button>
<navigator wx:if="{{!isReset}}" class="btn-to-login" url="/subpackages/mine/login/login" open-type="redirect" hover-class="btn-to-login-hover">
已有账号去登录
</navigator>
</view>
</view>
</view>