浏览代码

注册修改

lizhen_gitee 11 月之前
父节点
当前提交
6ec985c0d9

+ 3 - 0
application/admin/lang/zh-cn/user/user.php

@@ -41,6 +41,9 @@ return [
     'Notice_whatsapp'   => 'whatsapp通知',
     'Notice_whatsapp 1' => '开',
     'Notice_whatsapp 0' => '关',
+    'Notice_phonecall'   => '电话通知',
+    'Notice_phonecall 1' => '开',
+    'Notice_phonecall 0' => '关',
     'Whatsapp'          => 'whatsapp账号',
     'Knowus'            => '如何知道我们',
     'Health'            => '健康状况声明',

+ 10 - 6
application/api/controller/User.php

@@ -164,18 +164,22 @@ class User extends Api
             'firstname'    => $firstname,
             'lastname'     => $lastname,
             'simplemobile' => $mobile,
-            'height'       => input('height',''),
-            'age'          => input('age',''),
+
             'birthday'     => strtotime(input('birthday','')),
+            'height'       => input('height',''),
             'weight'       => input('weight',''),
-            'address'      => input('address',''),
-            'knowus'       => input('knowus',''),
-
+            'age'          => input('age',''),
+            'residential'     => input('residential',''),
             'health'       => input('health',''),
             'emergency'    => input('emergency',''),
             'emergency_phone'    => input('emergency_phone',''),
+            'knowus'       => input('knowus',''),
             'is_first'     => input('is_first',''),
-            'residential'     => input('residential',''),
+
+            'notice_email'     => input('notice_email',0),
+            'notice_whatsapp'  => input('notice_whatsapp',0),
+            'notice_phonecall' => input('notice_phonecall',0),
+
         ];
         $ret = $this->auth->register('', $password, $email, $fullmobile, $extend);
         if ($ret) {

+ 4 - 2
public/assets/js/backend/user/user.js

@@ -41,9 +41,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'height', title: __('Height'), operate: 'LIKE'},
                         {field: 'age', title: __('Age'), operate: 'LIKE'},
                         {field: 'weight', title: __('Weight'), operate: 'LIKE'},
-                        {field: 'address', title: __('Address'), operate: 'LIKE'},
+//                        {field: 'address', title: __('Address'), operate: 'LIKE'},
+                        {field: 'residential', title: __('Residential')},
                         {field: 'notice_email', title: __('Notice_email'), searchList: {"1":__('Notice_email 1'),"0":__('Notice_email 0')}, formatter: Table.api.formatter.normal},
                         {field: 'notice_whatsapp', title: __('Notice_whatsapp'), searchList: {"1":__('Notice_whatsapp 1'),"0":__('Notice_whatsapp 0')}, formatter: Table.api.formatter.normal},
+                        {field: 'notice_phonecall', title: __('Notice_phonecall'), searchList: {"1":__('Notice_phonecall 1'),"0":__('Notice_phonecall 0')}, formatter: Table.api.formatter.normal},
                         {field: 'whatsapp', title: __('Whatsapp'), operate: 'LIKE'},
 
 //                        {field: 'level', title: __('Level')},
@@ -69,7 +71,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'emergency', title: __('Emergency'), operate: 'LIKE'},
                         {field: 'emergency_phone', title: __('Emergency_phone'), operate: 'LIKE'},
                         {field: 'is_first', title: __('Is_first'), searchList: {"0":__('Is_first 0'),"1":__('Is_first 1')}, formatter: Table.api.formatter.normal},
-                        {field: 'residential', title: __('Residential')},
+
 
                         {field: 'operate', title: __('Operate'), table: table,
                             buttons:[