From d086ea096dbc2e5bc29a20a9e9280f5ccc5868b7 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 15 Jan 2026 09:04:11 +0800
Subject: [PATCH] feat:更新小程序
---
uniapps/work-wx/src/pages/register/index.vue | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/uniapps/work-wx/src/pages/register/index.vue b/uniapps/work-wx/src/pages/register/index.vue
index 19679db..ffb2067 100644
--- a/uniapps/work-wx/src/pages/register/index.vue
+++ b/uniapps/work-wx/src/pages/register/index.vue
@@ -4,7 +4,7 @@
<view class="pageBg"></view>
<view class="content">
<view class="row">
- <view class="label"><span>*</span>手机号码</view>
+ <view class="label"><span class="required">*</span>手机号码</view>
<view class="input">
<u-input input-align="right" border="bottom" v-model="formParams.userName" placeholder="请输入手机号码"></u-input>
</view>
@@ -16,23 +16,23 @@
</view>
</view>
<view class="row">
- <view class="label"><span>*</span>密码</view>
+ <view class="label"><span class="required">*</span>密码</view>
<view class="input">
<u-input type="password" input-align="right" border="bottom" v-model="formParams.password" placeholder="请输入密码"></u-input>
</view>
</view>
<view class="row">
- <view class="label"><span>*</span>确认密码</view>
+ <view class="label"><span class="required">*</span>确认密码</view>
<view class="input">
<u-input type="password" input-align="right" border="bottom" v-model="formParams.password2" placeholder="请确认密码"></u-input>
</view>
</view>
<view class="row">
- <view class="label"><span>*</span>验证码</view>
+ <view class="label"><span class="required">*</span>验证码</view>
<view class="input">
<u-input input-align="right" border="bottom" v-model="formParams.code" placeholder="请输入验证码"></u-input>
</view>
- <u-button class="getCode" :disabled="countDown > 0" @click="sendVerificationCode" type="primary" color="#007AFF">
+ <u-button :disabled="countDown > 0" @click="sendVerificationCode" type="primary" color="#007AFF">
{{ countDown > 0 ? `${countDown}s后重发` : '获取验证码' }}
</u-button>
</view>
@@ -214,7 +214,7 @@
left: 0;
width: 100%;
height: 100%;
- background: url("@/static/images/user/userbg.svg") no-repeat ;
+ background-image: url("../../static/images/user/userbg.svg") no-repeat ;
background-size: 100%;
}
.content {
@@ -238,7 +238,7 @@
font-weight: 400;
font-size: 15px;
color: #222324;
- span {
+ .required {
color: #FF4444;
}
}
@@ -251,15 +251,19 @@
:deep(.u-icon--right) {
display: none;
}
- .getCode {
+ :deep(.u-button) {
width: 180rpx;
}
}
.register {
- position: fixed;
- left: 24rpx;
- right: 24rpx;
- bottom: 126rpx;
+ :deep(.u-button) {
+ position: fixed;
+ left: 24rpx;
+ right: 24rpx;
+ bottom: 126rpx;
+ width: 80% !important;
+ height: 100rpx !important;
+ }
}
}
</style>
--
Gitblit v1.9.3