refactor(login): 使用 wd-form 官方表单校验替换手动校验,优化错误提示展示方式

- 使用 wd-form + wd-form-item 配合 formSchema 实现表单校验
- 校验错误改为内联提示(error-type=message),不再弹窗
- 修复 wd-form-item 水平布局导致错误提示与输入框挤在一起的样式问题
- 为 wd-form-item 添加 layout=vertical 并将错误提示强制显示在输入框下方
- 移除 manifest.json 中不兼容小程序编译的 darkMode/themeLocation 配置
- 移除 pages.json 中小程序不支持的 animationType/animationDuration/customize/overlay 字段
This commit is contained in:
Ray.Hao
2026-05-19 18:14:51 +08:00
parent 1c9e6f0054
commit 3fe8d018fc
3 changed files with 142 additions and 88 deletions

View File

@@ -7,13 +7,10 @@
"backgroundTextStyle": "@bgTxtStyle",
"backgroundColorTop": "@bgColorTop",
"backgroundColorBottom": "@bgColorBottom",
"enablePullDownRefresh": false,
"onReachBottomDistance": 50,
"animationType": "pop-in",
"animationDuration": 300
"enablePullDownRefresh": false
},
"pages": [
// GENERATED BY UNI-PAGES, PLATFORM: H5
// GENERATED BY UNI-PAGES, PLATFORM: H5 || MP-WEIXIN
{
"path": "pages/index/index",
"type": "home",
@@ -215,15 +212,13 @@
"subPackages": [],
"tabBar": {
"custom": true,
"customize": true,
"overlay": true,
"height": "0",
"color": "@tabColor",
"selectedColor": "@tabSelectedColor",
"backgroundColor": "@tabBgColor",
"borderStyle": "@tabBorderStyle",
"list": [
// GENERATED BY UNI-PAGES, PLATFORM: H5
// GENERATED BY UNI-PAGES, PLATFORM: H5 || MP-WEIXIN
{
"pagePath": "pages/index/index"
},