Jonlin пре 6 година
родитељ
комит
9a78800afd

+ 33 - 0
application/user/controller/Accountsafe.php

@@ -0,0 +1,33 @@
+<?php
+
+namespace app\user\controller;
+
+use think\Controller;
+use think\Lang;
+use think\Validate;
+
+class Accountsafe extends UserControl
+{
+
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/login.lang.php');
+    }
+
+    /**
+     * 账户安全
+     * @return mixed
+     */
+    public function index()
+    {
+        $user_info = $this->getAdminInfo();
+        $user = db('user')->where('user_id',$user_info['user_id'])->find();
+        $this->assign('user', $user);
+        return $this->fetch();
+    }
+
+}
+
+
+?>

+ 1 - 1
application/user/controller/Admin.php

@@ -5,7 +5,7 @@ namespace app\user\controller;
 use think\Lang;
 
 
-class Admin extends AdminControl
+class Admin extends UserControl
 {
     public function _initialize()
     {

+ 1 - 1
application/user/controller/Member.php

@@ -51,7 +51,7 @@ class Member extends UserControl
                 $user['user_type_cn'] = '个人用户';
             }
             if($user['user_type'] ==2){
-                $user['user_type_cn'] = '公司用户';
+                $user['user_type_cn'] = '企业用户';
             }
             $this->assign('user', $user);
             return $this->fetch();

+ 1 - 1
application/user/controller/UserControl.php

@@ -134,7 +134,7 @@ class UserControl extends Controller
                     ),
                     'personnel_security' => array(
                         'text' => lang('ds_personnel_security'),
-                        'url' => url('Admin/index'),
+                        'url' => url('Accountsafe/index'),
                     ),
                     'real_name_authentication' => array(
                         'text' => lang('ds_real_name_authentication'),

+ 70 - 0
application/user/view/accountsafe/index.html

@@ -0,0 +1,70 @@
+{extend name="layout:home" /}
+{block name="container"}
+<style>
+    table{
+        margin:20px 50px;
+        font-size: 13px;
+    }
+    /*.accountinfo_title table{*/
+    /*margin-left: 150px;*/
+    /*}*/
+    table td{
+        height: 50px;
+        line-height: 50px;
+    }
+    .td_name{
+        width: 120px;
+    }
+    .td_info{
+        width: 450px;
+    }
+    .td_update{
+        width: 100px;
+    }
+
+</style>
+<div class="layui-tab layui-tab-card">
+    <div class="updatepwd">
+        <form method="post">
+            <div>
+                <table>
+                    <tr>
+                        <td class="td_name">登陆邮箱</td>
+                        <td class="td_info">您的登陆邮箱:{$Think.session.user_email}</td>
+                        <td class="td_update"><a href="">更改</a></td>
+                    </tr>
+                    <tr>
+                        <td class="td_name">登陆密码</td>
+                        <td class="td_info">互联网账户存在被盗风险,建议您定期更改密码,以确保账户安全。</td>
+                        <td class="td_update"><a href="">更改</a></td>
+                    </tr>
+                    <tr>
+                        <td class="td_name">电话号码</td>
+                        <td class="td_info">您已绑定手机:+ (86)&nbsp&nbsp{$user['user_phone']}</td>
+                        <td class="td_update"><a href="">更改</a></td>
+                    </tr>
+                </table>
+
+            </div>
+        </form>
+    </div>
+</div>
+<script type="text/javascript">
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+
+        //执行一个laydate实例
+        laydate.render({
+            elem: '#creatTime' //指定元素
+        });
+        laydate.render({
+            elem:'#timeRang',
+            range:true,
+            format: 'yyyy/MM/dd',
+            done: function(value, date){
+                /* 时间选择完成后的回调 */
+            }
+        })
+    });
+</script>
+{/block}

+ 1 - 1
application/user/view/member/index.html

@@ -35,7 +35,7 @@
         line-height: 60px;
     }
     .td_user_info{
-        width: 280px;
+        width: 220px;
         height: 60px;
         line-height: 60px;
     }

+ 1 - 1
application/user/view/updatepwd/phone.html

@@ -71,7 +71,7 @@
                     </li>
                     <li>
                         <div class="num">2</div>
-                        <div class="tishi">新d电话号码验证</div>
+                        <div class="tishi">新电话号码验证</div>
                     </li>
                     <li>
                         <div class="num">3</div>