Ver código fonte

添加号码

seimin 3 anos atrás
pai
commit
a872e5ae6d
1 arquivos alterados com 12 adições e 2 exclusões
  1. 12 2
      src/views/AppIndex.vue

+ 12 - 2
src/views/AppIndex.vue

@@ -110,7 +110,12 @@
110 110
               <div class="main-box-item-header">
111 111
                 <h2>{{ item.deptName }}</h2>
112 112
                 <strong>{{ item.num }}</strong>
113
-                <strong v-if="item.userName">{{ item.userName }}</strong>
113
+                <strong v-if="item.userName"
114
+                  >{{ item.userName
115
+                  }}<span v-if="item.phone" class="ksbb_phone"
116
+                    >({{ item.phone }})</span
117
+                  >
118
+                </strong>
114 119
               </div>
115 120
               <div class="main-box-item-content">
116 121
                 <div
@@ -233,7 +238,9 @@
233 238
             <div class="cot_all" v-for="(online, i) in onlines" :key="i">
234 239
               <div class="cot sevenCol" v-for="data in online" :key="data.id">
235 240
                 <div class="header_on">
236
-                  <span style="font-weight: bold">{{ data.name }}</span>
241
+                  <span style="font-weight: bold">
242
+                    {{data.name}}<span v-if="data.phone">({{ data.phone }})</span>
243
+                  </span>
237 244
                   <span :style="{ color: data.online ? 'green' : 'red' }"
238 245
                     ><button
239 246
                       v-if="data.online"
@@ -1966,6 +1973,9 @@ export default {
1966 1973
               color: #666;
1967 1974
               margin-right: 8px;
1968 1975
             }
1976
+            .ksbb_phone {
1977
+              font-size: 14px;
1978
+            }
1969 1979
           }
1970 1980
           .main-box-item-content {
1971 1981
             height: calc(100% * 0.6);