Browse Source

会员姓名备注添加

赵启卫 2 years ago
parent
commit
100be2f890

+ 1 - 1
application/admin/model/questions/ExaminationRecord.php

xqd
@@ -48,7 +48,7 @@ class ExaminationRecord extends ModelBasic
      */
     public static function getExaminationRecord($where)
     {
-        $model = self::setWhere($where)->field('r.id,r.test_id,r.type,r.uid,r.score,r.accuracy,t.title,u.nickname,r.add_time');
+        $model = self::setWhere($where)->field('r.id,r.test_id,r.type,r.uid,r.score,r.accuracy,t.title,u.nickname,u.realname,u.comment,r.add_time');
         if (isset($where['excel']) && $where['excel'] == 1) {
             $data = ($data = $model->select()) && count($data) ? $data->toArray() : [];
         } else {

+ 2 - 0
application/admin/view/questions/test_paper/record.php

xqd
@@ -92,6 +92,8 @@
                     {field: 'id', title: '答题编号', width: '8%', align: 'center'},
                     {field: 'uid', title: 'UID', align: 'center', width: '8%'},
                     {field: 'nickname', title: '昵称', align: 'center', width: '10%'},
+                    {field: 'realname', title: '姓名', align: 'center', width: '10%'},
+                    {field: 'comment', title: '备注', align: 'center', width: '10%'},
                     {field: 'title', title: '考试标题', align: 'center'},
                     {field: 'score', title: '分数', align: 'center', width: '10%'},
                     {field: 'accuracy', title: '正确率%', align: 'center', width: '10%'},

+ 3 - 1
application/admin/view/user/user/index.php

xqd
@@ -293,7 +293,9 @@
             {type:'checkbox'},
             {field: 'uid', title: 'UID', align: 'center',width:70},
             {field: 'avatar', title: '头像', event:'open_image', align: 'center', templet: '#avatar'},
-            {field: 'nickname', title: '姓名',templet:"#nickname",align: 'center'},
+            {field: 'nickname', title: '昵称',templet:"#nickname",align: 'center'},
+            {field: 'realname', title: '姓名',align: 'center'},
+            {field: 'comment', title: '备注',align: 'center'},
             // {field: 'levelType', title: '身份',align: 'center',width:'6%'},
             // {field: 'user_type', title: '用户类型',width:'6%',align:'center'},
             {field: 'phone', title: '手机号',align: 'center'},

+ 2 - 0
application/wap/controller/My.php

xqd
@@ -177,6 +177,8 @@ class My extends AuthController
         $data = UtilService::postMore([
             ['avatar', ''],
             ['nickname', ''],
+            ['realname', ''],
+            ['comment', ''],
             ['grade_id', 0]
         ], $this->request);
         if ($data['nickname'] != strip_tags($data['nickname'])) {

+ 11 - 1
application/wap/view/first/my/user_info.html

xqd xqd xqd
@@ -266,6 +266,10 @@
                 <span class="name">昵称</span>
                 <input v-model="userInfo.nickname" class="value input" type="text">
             </label>
+            <label class="item">
+                <span class="name">姓名</span>
+                <input v-model="userInfo.realname" class="value input" type="text">
+            </label>
             <a v-if="userInfo.phone" class="item" href="{:Url('save_phone')}">
                 <span class="name">手机号</span>
                 <span class="value">{{ userInfo.phone }}</span>
@@ -275,6 +279,10 @@
                 <div>密码</div>
                 <div>******</div>
             </div>
+            <label class="item">
+                <span class="name">备注</span>
+                <input v-model="userInfo.comment" class="value input" type="text">
+            </label>
         </div>
         <div class="btn-group">
             <button class="btn" type="button" @click="save_user_info">保存修改</button>
@@ -358,7 +366,9 @@
                     var that = this;
                     app.basePost($h.U({ c: 'my', a: 'save_user_info' }), {
                         avatar: that.userInfo.avatar,
-                        nickname: that.userInfo.nickname
+                        nickname: that.userInfo.nickname,
+                        realname: that.userInfo.realname,
+                        comment: that.userInfo.comment,
                     }, function (res) {
                         $h.pushMsgOnce(res.data.msg)
                     })