瀏覽代碼

用户所属部门优化

chenlei 1 月之前
父節點
當前提交
364fdeefc1
共有 3 個文件被更改,包括 18 次插入9 次删除
  1. 1 1
      src/lang/cn.js
  2. 1 1
      src/lang/en.js
  3. 16 7
      src/views/tabbar/User.vue

+ 1 - 1
src/lang/cn.js

@@ -7,7 +7,7 @@ export default {
   // 我的
   my: {
     company_name: '公司名称',
-    department: '所属部门',
+    department: '部门/分组',
     role: '角色',
     log_out: '退出登录',
   },

+ 1 - 1
src/lang/en.js

@@ -6,7 +6,7 @@ export default {
   // 我的
   my: {
     company_name: 'Company Name',
-    department: 'Department',
+    department: 'Department/Group',
     role: 'Role',
     log_out: 'Log out',
   },

+ 16 - 7
src/views/tabbar/User.vue

@@ -36,16 +36,16 @@ getSetTitle()
         </div>
         <div class="info-list">
             <div class="item">
-                <span>{{ $t('my.company_name') }}:</span>
-                <span>{{ CompanyName }}</span>
+                <div class="label">{{ $t('my.company_name') }}:</div>
+                <div class="content">{{ CompanyName }}</div>
             </div>
             <div class="item">
-                <span>{{ $t('my.department') }}:</span>
-                <span>{{userInfo.GroupName || userInfo.DepartmentName}}</span>
+                <div class="label">{{ $t('my.department') }}:</div>
+                <div class="content">{{ userInfo.DepartmentName + '/' + userInfo.GroupName}}</div>
             </div>
             <div class="item">
-                <span>{{ $t('my.role') }}:</span>
-                <span>{{userInfo.RoleName}}</span>
+                <div class="label">{{ $t('my.role') }}:</div>
+                <div class="content">{{userInfo.RoleName}}</div>
             </div>
         </div>
         <van-button 
@@ -82,9 +82,18 @@ getSetTitle()
 .info-list{
     padding: 40px;
     .item{
-        padding: 30px 0;
+        line-height: 60px;
+        padding: 15px 0;
         border-bottom: 1px solid $border-color;
         color: $font-grey;
+        .label {
+            font-size: 24px;
+            color: $font-grey_999;
+        }
+        .content {
+            font-size: 28px;
+            color: #333333;
+        }
     }
 }
 .login_out_btn{