refactor(frontend): 统一使用wd-text组件替换原生text标签,优化页面配置

1.  全局替换普通text标签为wd-text组件,统一文本样式与功能
2.  调整页面全局配置与tabBar配置,按平台动态裁剪无效配置
3.  修复微信小程序端表单item样式兼容问题,添加自定义样式隐藏空left区域
4.  移除登录页冗余的微信一键登录相关代码
This commit is contained in:
zhangtao
2026-08-11 00:49:00 +08:00
parent 50eac1872b
commit 7bbc489c59
21 changed files with 475 additions and 277 deletions
+9 -8
View File
@@ -9,6 +9,11 @@
*/
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
// 按构建平台动态裁剪配置(vite-plugin-uni-pages 不处理条件编译注释,用 JS 逻辑)
const UNI_PLATFORM = process.env.UNI_PLATFORM || ''
const isWeixin = UNI_PLATFORM === 'mp-weixin'
const isAlipay = UNI_PLATFORM === 'mp-alipay'
export default defineUniPages({
pages: [],
globalStyle: {
@@ -27,17 +32,13 @@ export default defineUniPages({
enablePullDownRefresh: false,
onReachBottomDistance: 50,
// 动画配置
animationType: 'pop-in',
animationDuration: 300,
// 页面切换动画(微信小程序 window 不支持 animationType/animationDuration,构建时排除)
...(isWeixin ? {} : { animationType: 'pop-in', animationDuration: 300 }),
},
tabBar: {
custom: true,
// #ifdef MP-ALIPAY
customize: true,
// 暂时不生效。4.71.2025061206-alpha已修复:https://uniapp.dcloud.net.cn/release-note-alpha.html#_4-71-2025061206-alpha,我们等正式版发布后更新。
overlay: true,
// #endif
// customize/overlay 为支付宝小程序 tabBar 配置(微信端编译进 app.json 会告警,按平台裁剪)
...(isAlipay ? { customize: true, overlay: true } : {}),
height: '0',
color: '@tabColor',
selectedColor: '@tabSelectedColor',