Przeglądaj źródła

feat:增加 .page-container 全局样式,并替换相关的 vue 界面

YunaiV 4 miesięcy temu
rodzic
commit
7235595361
38 zmienionych plików z 45 dodań i 39 usunięć
  1. 1 1
      src/pages-bpm/processInstance/create/index.vue
  2. 1 1
      src/pages-bpm/processInstance/detail/audit/index.vue
  3. 1 1
      src/pages-bpm/processInstance/detail/index.vue
  4. 1 1
      src/pages-infra/apiAccessLog/detail/index.vue
  5. 1 1
      src/pages-infra/apiAccessLog/index.vue
  6. 1 1
      src/pages-infra/apiErrorLog/detail/index.vue
  7. 1 1
      src/pages-infra/apiErrorLog/index.vue
  8. 1 1
      src/pages-infra/webSocket/index.vue
  9. 1 1
      src/pages-system/dept/detail/index.vue
  10. 1 1
      src/pages-system/dept/form/index.vue
  11. 1 1
      src/pages-system/dept/index.vue
  12. 1 1
      src/pages-system/menu/detail/index.vue
  13. 1 1
      src/pages-system/menu/form/index.vue
  14. 1 1
      src/pages-system/menu/index.vue
  15. 1 1
      src/pages-system/post/detail/index.vue
  16. 1 1
      src/pages-system/post/form/index.vue
  17. 1 1
      src/pages-system/post/index.vue
  18. 1 1
      src/pages-system/role/detail/index.vue
  19. 1 1
      src/pages-system/role/form/index.vue
  20. 1 2
      src/pages-system/role/index.vue
  21. 1 1
      src/pages-system/user/detail/index.vue
  22. 1 1
      src/pages-system/user/form/index.vue
  23. 1 2
      src/pages-system/user/index.vue
  24. 1 1
      src/pages/bpm/index.vue
  25. 1 1
      src/pages/contact/index.vue
  26. 1 1
      src/pages/index/index.vue
  27. 1 1
      src/pages/index/settings/index.vue
  28. 1 1
      src/pages/message/index.vue
  29. 1 1
      src/pages/user/contact/index.vue
  30. 1 1
      src/pages/user/faq/index.vue
  31. 1 1
      src/pages/user/feedback/index.vue
  32. 1 1
      src/pages/user/index.vue
  33. 1 1
      src/pages/user/profile/index.vue
  34. 1 1
      src/pages/user/security/index.vue
  35. 1 1
      src/pages/user/settings/agreement/index.vue
  36. 1 1
      src/pages/user/settings/index.vue
  37. 1 1
      src/pages/user/settings/privacy/index.vue
  38. 8 0
      src/style/index.scss

+ 1 - 1
src/pages-bpm/processInstance/create/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="发起申请"

+ 1 - 1
src/pages-bpm/processInstance/detail/audit/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- TODO @芋艿:还有一些细节,在审批通过没搞完! -->
     <!-- 顶部导航栏 -->
     <wd-navbar

+ 1 - 1
src/pages-bpm/processInstance/detail/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- TODO @芋艿:功能待 review;先从老版本迁移过来! -->
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="审批详情"

+ 1 - 1
src/pages-infra/apiAccessLog/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="访问日志详情"

+ 1 - 1
src/pages-infra/apiAccessLog/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- TODO @芋艿:【优化:全局样式】后续要全局样式么 -->
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="API 访问日志"

+ 1 - 1
src/pages-infra/apiErrorLog/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="错误日志详情"

+ 1 - 1
src/pages-infra/apiErrorLog/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- TODO @芋艿:【优化:全局样式】后续要全局样式么 -->
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="API 错误日志"

+ 1 - 1
src/pages-infra/webSocket/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="WebSocket 测试"

+ 1 - 1
src/pages-system/dept/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="部门详情"

+ 1 - 1
src/pages-system/dept/form/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       :title="getTitle"

+ 1 - 1
src/pages-system/dept/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="部门管理"

+ 1 - 1
src/pages-system/menu/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="菜单详情"

+ 1 - 1
src/pages-system/menu/form/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       :title="getTitle"

+ 1 - 1
src/pages-system/menu/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="菜单管理"

+ 1 - 1
src/pages-system/post/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="岗位详情"

+ 1 - 1
src/pages-system/post/form/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       :title="getTitle"

+ 1 - 1
src/pages-system/post/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="岗位管理"

+ 1 - 1
src/pages-system/role/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="角色详情"

+ 1 - 1
src/pages-system/role/form/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       :title="getTitle"

+ 1 - 2
src/pages-system/role/index.vue

@@ -1,6 +1,5 @@
 <template>
-  <!-- TODO @芋艿:【优化:全局样式】后续要全局样式么 -->
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="角色管理"

+ 1 - 1
src/pages-system/user/detail/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="用户详情"

+ 1 - 1
src/pages-system/user/form/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       :title="getTitle"

+ 1 - 2
src/pages-system/user/index.vue

@@ -1,6 +1,5 @@
 <template>
-  <!-- TODO @芋艿:【优化:全局样式】后续要全局样式么 -->
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="用户管理"

+ 1 - 1
src/pages/bpm/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="审批"

+ 1 - 1
src/pages/contact/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="通讯录"

+ 1 - 1
src/pages/index/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-#f5f5f5">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="工作台"

+ 1 - 1
src/pages/index/settings/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-#f5f5f5">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="编辑工作台"

+ 1 - 1
src/pages/message/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <!-- TODO @AI:待修复 -->
     <wd-navbar

+ 1 - 1
src/pages/user/contact/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-gray-100">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="联系客服"

+ 1 - 1
src/pages/user/faq/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen flex flex-col bg-white">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="常见问题"

+ 1 - 1
src/pages/user/feedback/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="意见反馈"

+ 1 - 1
src/pages/user/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部背景区域 -->
     <view class="header-bg h-120rpx w-full flex items-center justify-center" />
 

+ 1 - 1
src/pages/user/profile/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="个人资料"

+ 1 - 1
src/pages/user/security/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="账号安全"

+ 1 - 1
src/pages/user/settings/agreement/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-white">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="用户协议"

+ 1 - 1
src/pages/user/settings/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-[#f5f5f5]">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="应用设置"

+ 1 - 1
src/pages/user/settings/privacy/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="min-h-screen bg-white">
+  <view class="page-container">
     <!-- 顶部导航栏 -->
     <wd-navbar
       title="隐私协议"

+ 8 - 0
src/style/index.scss

@@ -9,6 +9,14 @@
   color: red;
 }
 
+// ==================== 全局公共样式 ====================
+
+// 页面容器:灰色背景 + 最小全屏高度
+.page-container {
+  @apply min-h-screen;
+  background-color: #f5f5f5;
+}
+
 :root,
 page {
   // 修改按主题色