Jonlin 6 years ago
parent
commit
ccdbfb2e0d

+ 1 - 1
application/admin/lang/zh-cn.php

@@ -161,7 +161,7 @@ $lang['user_email'] = '用户名称';
 $lang['user_iphone'] = '用户电话';
 $lang['add_time'] = '注册时间';
 $lang['if_certification'] = '是否实名认证';
-$lang['user_type'] = '是否实名认证';
+$lang['user_type'] = '用户类型';
 
 $lang['recharge_identity'] = '订单id';
 $lang['recharge_time'] = '充值时间';

+ 1 - 1
application/admin/view/certification/enterprise.html

@@ -20,7 +20,7 @@
                     <colgroup>
                         <col width="120">
                         <col width="90">
-                        <col width="90">
+                        <!--<col width="90">-->
                         <col width="110">
                         <col width="110">
                         <col width="120">

+ 8 - 0
application/user/controller/Register.php

@@ -42,8 +42,15 @@ class Register extends Controller
             $user_phone = input('post.user_phone');
             $captcha = input('post.captcha');
             $ch_box = input('post.ch_box');
+            $user_type = input('post.user_type');
 
             // 协议 校验
+            if (empty($user_type)) {
+                //验证失败
+                $this->error('未选择用户类型');
+            }
+
+            // 用户类型
             if ($ch_box == false) {
                 //验证失败
                 $this->error('未勾选协议');
@@ -90,6 +97,7 @@ class Register extends Controller
                     'user_email' => $user_email,
                     'user_password' => md5($user_password),
                     'user_phone' => $user_phone,
+                    'user_type' => $user_type,
                     'user_addTime' => TIMESTAMP,
                     'user_loginTime' => TIMESTAMP
                 );

+ 9 - 0
application/user/view/register/index.html

@@ -99,6 +99,15 @@
                     <div id="phone"></div>
                 </div>
                 <div class="form-group">
+                    <select name="user_type" id="" style="height: 38px;line-height: 38px;width: 96%;border-color: #E6E6E6;">
+                        <option value>请选择</option>
+                        <option value="1">个人用户</option>
+                        <option value="2">企业用户</option>
+                    </select>
+                    <!--<input type="text" id="user_type" name="user_type" placeholder="{:lang('user_type')}" required class="text">-->
+                    <!--<div id="type"></div>-->
+                </div>
+                <div class="form-group" style="margin-top: 60px;">
                     <input type="text" name="captcha" placeholder="{:lang('login_captcha')}" required class="text" style="width:60%;float:left;">
                     <img src="{:captcha_src()}" style="width:30%;height:38px;" id="change_captcha"/>
                 </div>