fix: 上线修改

This commit is contained in:
anonymous
2025-01-04 09:31:17 +08:00
parent ae8ec19ba8
commit dbb57f07c3
8 changed files with 61 additions and 21 deletions
+3 -3
View File
@@ -33,9 +33,9 @@ onLoad((options) => {
})
const handleRegister = mergeStep(async () => {
if (!form.value.username) {
if (!/^\d{11}$/.test(form.value.username)) {
uni.showToast({
title: '请输入用户名',
title: '请输入正确手机号(11位)',
icon: 'none',
})
return
@@ -107,7 +107,7 @@ onLoad(async (options) => {
type="text"
placeholder-class="text-#889BC6"
class="text-right flex-1 text-14"
placeholder="请输入用户名"
placeholder="请输入手机号"
/>
</view>
<view class="flex items-center py-15">