Browse Source

Merge remote-tracking branch 'origin/master'

vian 5 years ago
parent
commit
625c0ace36
2 changed files with 7 additions and 2 deletions
  1. 5 0
      modules/all_models/user.js
  2. 2 2
      web/users/views/user/index.html

+ 5 - 0
modules/all_models/user.js

@@ -25,6 +25,11 @@ let modelSchema = {
     email: String,
     // 手机号码
     mobile: String,
+    // qq号码
+    qq: {
+        type: String,
+        default: ''
+    },
     // 真实姓名
     real_name: String,
     // 公司

+ 2 - 2
web/users/views/user/index.html

@@ -93,7 +93,7 @@
             <table class="table">
                 <thead>
                 <tr>
-                    <th width="15%">注册手机/邮箱</th>
+                    <th width="15%">注册手机/QQ</th>
                     <th width="10%">姓名</th>
                     <th width="20%">企业名称</th>
                     <th width="10%">企业地区</th>
@@ -111,7 +111,7 @@
                 <tbody>
                 <% userList.forEach(function (user){ %>
                 <tr>
-                    <td><%= user.mobile %><br><%= user.email %></td>
+                    <td><%= user.mobile %><br><%= user.qq %></td>
                     <td><%= user.real_name %></td>
                     <td><%= user.company %></td>
                     <td><%= model.province[user.province] %></td>