wangjun 15 ore fa
parent
commit
66b9b03aed

+ 77 - 0
app/portal/controller/CompanyinfoController.php

@@ -0,0 +1,77 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: 老猫 <thinkcmf@126.com>
+// +----------------------------------------------------------------------
+namespace app\portal\controller;
+
+use app\portal\model\EnterpriseApplyJoinPlatformModel;
+use app\portal\model\WcCompayApplyModel;
+use cmf\controller\HomeBaseController;
+use app\user\model\UserModel;
+
+class CompanyinfoController extends HomeBaseController {
+    public function index() {
+        $user = cmf_get_current_user();
+        $this->assign($user);
+        $userId = cmf_get_current_user_id();
+
+        $userModel = new UserModel();
+        $user = $userModel->where('id', $userId)->find();
+        $this->assign('user', $user);
+        $m_wcca = new WcCompayApplyModel();
+        $wccainfo = $m_wcca->find(['userid' => $userId]);
+        if ($wccainfo) {
+            $m_ea = new EnterpriseApplyJoinPlatformModel();
+            $edinfo = $m_ea->find(['id' => $wccainfo['wc_compay_apply_id']]);
+            $edinfo = $edinfo->toArray();
+        } else {
+            $edinfo = [
+                'companyname' => '',
+                'contactname' => '',
+                'telno' => '',
+                'licensephoto' => '',
+            ];
+        }
+        $this->assign($edinfo);
+        return $this->fetch(':company/index');
+    }
+    /**
+     * 增加企业申请信息
+     *
+     * @return void
+     * @author wj
+     * @date 2025-09-08
+     */
+    public function addenterpriseapplyjoinplatform() {
+        if ($this->request->isPost()) {
+            $postData = $this->request->post();
+            $userid = $postData['userid'];
+            $m_wcca = new WcCompayApplyModel();
+            $wccainfo = $m_wcca->find(['userid' => $userid]);
+            $m_ea = new EnterpriseApplyJoinPlatformModel();
+            if ($wccainfo) {
+                //修改
+                $postData['id'] = $wccainfo['wc_compay_apply_id'];
+                $m_ea->updateinfo($postData);
+            } else {
+                //新增
+                unset($postData['userid']);
+                $id = $m_ea->addinfo($postData);
+                $data = [
+                    'wc_compay_apply_id' => $id,
+                    'userid' => $userid,
+                ];
+                $id = $m_wcca->insertGetId($data);
+            }
+            $this->success('保存成功!');
+        }
+
+    }
+
+}

+ 19 - 4
app/portal/controller/IndexController.php

@@ -10,12 +10,27 @@
 // +----------------------------------------------------------------------
 namespace app\portal\controller;
 
+use app\portal\model\UserinfoModel;
 use cmf\controller\HomeBaseController;
 
-class IndexController extends HomeBaseController
-{
-    public function index()
-    {
+class IndexController extends HomeBaseController {
+    public function index() {
+        $this->getList();
         return $this->fetch(':index');
     }
+    private function getList() {
+        $m_u = new UserinfoModel();
+        $list = $m_u->getlist();
+        $list = $list->toArray();
+        foreach ($list as $key => $value) {
+            $userid = $value['id'];
+            $worktype = $m_u->getworktype($userid);
+            if (empty($worktype)) {
+                $worktype = [['workertypedisstr' => '普工']];
+            }
+            $list[$key]['worktype'] = $worktype;
+        }
+        // var_dump($list);
+        $this->assign('list', $list);
+    }
 }

+ 14 - 8
app/portal/controller/PageController.php

@@ -13,8 +13,7 @@ namespace app\portal\controller;
 use app\portal\service\PostService;
 use cmf\controller\HomeBaseController;
 
-class PageController extends HomeBaseController
-{
+class PageController extends HomeBaseController {
     /**
      * 页面管理
      * @return mixed
@@ -22,8 +21,7 @@ class PageController extends HomeBaseController
      * @throws \think\db\exception\ModelNotFoundException
      * @throws \think\exception\DbException
      */
-    public function index()
-    {
+    public function index() {
         $postService = new PostService();
         $pageId = $this->request->param('id', 0, 'intval');
         $page = $postService->publishedPage($pageId);
@@ -41,13 +39,21 @@ class PageController extends HomeBaseController
         return $this->fetch("/$tplName");
     }
 
-    public function contact()
-    {
+    public function contact() {
         return $this->fetch("/contact");
     }
-    public function app()
-    {
+    public function app() {
         //轮播图
         return $this->fetch("/watercatapppage");
     }
+    /**
+     * 工人列表
+     *
+     * @return void
+     * @author wj
+     * @date 2025-09-08
+     */
+    public function workerlist() {
+        return $this->fetch("/workerlist");
+    }
 }

+ 26 - 0
app/portal/controller/WorkListController.php

@@ -0,0 +1,26 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: 老猫 <thinkcmf@126.com>
+// +----------------------------------------------------------------------
+namespace app\portal\controller;
+
+use app\portal\model\EnterpriseApplyJoinPlatformModel;
+use app\portal\model\UserinfoModel;
+use app\portal\model\WcCompayApplyModel;
+use cmf\controller\HomeBaseController;
+use app\user\model\UserModel;
+
+class WorkListController extends HomeBaseController {
+    public function getList() {
+        $m_u = new UserinfoModel();
+        $list = $m_u->getlist();
+        $list = $list->toArray();
+        $this->assign('list', $list);
+    }
+}

+ 51 - 0
app/portal/model/EnterpriseApplyJoinPlatformModel.php

@@ -0,0 +1,51 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: 老猫 <thinkcmf@126.com>
+// +----------------------------------------------------------------------
+namespace app\portal\model;
+
+use app\admin\model\RouteModel;
+use think\Model;
+use tree\Tree;
+use think\db\Query;
+
+class EnterpriseApplyJoinPlatformModel extends Model {
+    /**
+     * 模型名称
+     * @var string
+     */
+    protected $name = 't_enterprise_apply_join_platform';
+    protected $connection = 'watercat';
+
+    protected $type = [
+        'more' => 'array',
+    ];
+
+    public function addinfo($data) {
+        $id = $this->insertGetId($data);
+        return $id;
+    }
+    public function updateinfo($data) {
+        $id = $data['id'];
+        unset($data['id']);
+        $info = $this->find(['id' => $id]);
+        $fields = ['contactname', 'companyname', 'licensephoto'];
+        $updateData = [];
+        foreach ($fields as $key => $value) {
+            if (!empty($data[$value]) && $data[$value] != $info[$info]) {
+                $updateData[$value] = $data[$value];
+            }
+        }
+        if (!empty($updateData)) {
+            $where = ['id', $data['id']];
+            $this->update($updateData, $where);
+        }
+    }
+
+}

+ 60 - 0
app/portal/model/UserinfoModel.php

@@ -0,0 +1,60 @@
+<?php
+// +----------------------------------------------------------------------
+// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
+// +----------------------------------------------------------------------
+// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
+// +----------------------------------------------------------------------
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
+// +----------------------------------------------------------------------
+// | Author: 老猫 <thinkcmf@126.com>
+// +----------------------------------------------------------------------
+namespace app\portal\model;
+
+use app\admin\model\RouteModel;
+use think\Model;
+use tree\Tree;
+use think\db\Query;
+use think\facade\Db;
+
+class UserinfoModel extends Model {
+    /**
+     * 模型名称
+     * @var string
+     */
+    protected $name = 't_userinfo';
+    protected $connection = 'watercat';
+
+    protected $type = [
+        'more' => 'array',
+    ];
+
+    public function getlist() {
+        // $where = ['isactive' => 1, 'sfzid' => ['NOT NULL', ''], 'wname' => ['NOTNULL', ''], 'photourl' => ['NOTNULL', '']];
+        // $where = ['isactive' => 1, 'sfzid' => ['LIKE', '%1%']];
+        $field = ['id', 'wname', 'photourl'];
+        $order = "last_unonline_time deac";
+        $list = $this->field($field)
+            ->where('isactive', 1)
+            ->where('sfzid', 'not null')
+            ->where('wname', 'not null')
+            ->where('photourl', 'not null')
+            ->where('photourl', '<>', "")
+            ->order($order)->page(1, 6)->select();
+        return $list;
+    }
+    /**
+     * 获取工种
+     *
+     * @return void
+     * @author wj
+     * @date 2025-09-10
+     */
+    public function getworktype($userid) {
+        $sql = "select workertypedisstr,sum(skillscore)  skillscore
+        from t_workertech where uid='" . $userid . "' and workertype is not null
+        group by workertypedisstr order by sum(skillscore) desc";
+        $list = Db::connect($this->connection)->query($sql);
+        return $list;
+    }
+
+}

+ 1 - 1
public/themes/admin_simpleboot3/admin/login.html

@@ -2,7 +2,7 @@
 <html>
 <head>
     <meta charset="UTF-8"/>
-    <title>水猫工匠</title>
+    <title>{$site_info.site_name|default=''}</title>
     <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
     <meta name="renderer" content="webkit|ie-comp|ie-stand">
     <meta name="robots" content="noindex,nofollow">

+ 269 - 0
public/themes/simpleboot3/portal/company/index.html

@@ -0,0 +1,269 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>{$user_login}  - 企业信息</title>
+<meta name="keywords" content=""/>
+<meta name="description" content="">
+<include file="public@head"/>
+</head>
+<body class="body-white" id="top">
+	<include file="public@nav" />
+
+		<div class="container tc-main">
+                <div class="row">
+                    <div class="col-md-3">
+						<include file="public@usernav" />
+                    </div>
+                    <div class="col-md-9">
+                           <div class="tabs">
+                               <ul class="nav nav-tabs">
+                                   <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-edit"></i> 企业信息</a></li>
+                               </ul>
+                               <div class="tab-content">
+                                   <div class="tab-pane active" id="one">
+                                   		<br>
+                                   		<form class="js-ajax-form" action="{:url('user/profile/editPost')}" method="post">
+                                   			<div class="form-group">
+                                   				<label for="input-user_nickname">企业名称</label>
+                                   				<input type="text" class="form-control" id="input-companyname" placeholder="企业名称" name="companyname" value="{$companyname}">
+                                   			</div>
+                                   			<!-- <div class="form-group">
+                                   				<label for="input-sex">性别</label>
+                               					<php>
+                                 					$sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");
+                                 				</php>
+                               					<select class="form-control" id="input-sex" name="sex">
+                               						<foreach name="sexs" item="vo">
+                               						<php>$sexselected=$key==$sex?"selected":"";</php>
+                               							<option value="{$key}" {$sexselected}>{$vo}</option>
+                               						</foreach>
+                               					</select>
+                                   			</div>
+                                   			<div class="form-group">
+                                   				<label for="input-birthday">生日</label>
+                                   				<input class="form-control js-bootstrap-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="{:date('Y-m-d',$birthday)}">
+                                   			</div>
+                                   			<div class="form-group">
+                                   				<label for="input-user_url">个人网址</label>
+                                   				<input class="form-control" type="text" id="input-user_url" placeholder="http://thinkcmf.com" name="user_url" value="{$user_url}">
+                                   			</div>
+                                   			<div class="form-group">
+                                   				<label for="input-signature">个性签名</label>
+                                   				<textarea class="form-control" id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>
+                                   			</div> -->
+											<div class="form-group">
+                                   				<label for="input-user_nickname">联系人姓名</label>
+                                   				<input type="text" class="form-control" id="input-contactname" placeholder="联系人姓名" name="contactname" value="{$contactname}">
+                                   			</div>
+											<div class="form-group">
+                                   				<label for="input-user_nickname">联系人电话</label>
+                                   				<input type="text" class="form-control" id="input-telno" placeholder="联系人电话" name="telno" value="{$telno}">
+                                   			</div>
+											<div class="form-group">
+                                   				<label for="input-user_nickname" >营业执照</label>
+												<div class="img_div">
+													<div id="jqueryCropper" class="avatar-cropper">
+														<img id="userAvatarImage" src="{$licensephoto}">
+													</div>
+													<div class="btn-group">
+														<label class="btn btn-primary eventBtn" for="inputImage" title="打开图片">
+															<input type="file" class="sr-only" id="inputImage" name="file" accept=".jpg,.jpeg,.png">
+															<span class="fa fa-upload"></span> 上传
+														</label>
+														<button type="button" class="btn btn-primary eventBtn" role="group" data-method="reset" title="重置图片"><span class="fa fa-refresh"></span> 重置</button>
+														<button type="button" class="btn btn-primary eventBtn btnsave" role="group" title="保存图片" id="saveavatar"></span> 保存图片</button>
+													</div>
+												</div>
+												
+                                   			</div>
+                                   			<div class="form-group">
+												<button id="saveinfo" type="button" class="btn btn-success btn-lg btn-block btnsave1 eventBtn"><i class="fa fa-save"></i> 确认保存</button>
+                                   			</div>
+                                   		</form>
+                                   </div>
+                               </div>							
+                           </div>
+                    </div>
+                </div>
+			<include file="public@footer" />
+		</div>
+	<!-- /container -->
+	<include file="public@scripts" />
+	<style>
+		.img_div{
+			display: flex;
+			flex-direction: row;
+			align-items: flex-end;
+		}
+		.img_div .btn-group{
+			padding-left: 1em;
+		}
+		#jqueryCropper{
+			width: 50%;
+			border: 1px solid #333;
+			min-height: 200px;
+		}
+		#jqueryCropper img{
+			object-fit: cover;
+			width: 100%;
+		}
+	</style>
+	<script type="text/javascript">
+		<php>
+			$uploadedImageName = empty($avatar) ? '' : 'temp_image.jpg'; 
+			$licensephoto = empty($licensephoto) ? '' :$avatar;
+			$userid = $user['id'];
+		</php>
+		
+		var nzi = $('#userAvatarImage');
+		var n2i = $('#inputImage');
+		var originalImageURL = n2i.attr('src');
+		var uploadedImageName = '{$uploadedImageName}';
+		var uploadedImageType = 'image/jpeg';
+    	var uploadedImageURL = '';
+		var uploadFile = '';
+		var licensephoto='{$licensephoto}'
+		let userid = '{$userid}'
+	 	
+		n2i.change(function () {
+            
+            var files = this.files;
+            var file;
+            
+            if (files && files.length) {
+                file = files[0];
+                if (/^image\/\w+$/.test(file.type)) {
+                    uploadedImageName = file.name;
+                    uploadedImageType = file.type;
+                    if (uploadedImageURL) {
+                        URL.revokeObjectURL(uploadedImageURL);
+                    }
+                    uploadedImageURL = URL.createObjectURL(file);
+                    nzi.attr('src', uploadedImageURL);
+                    n2i.val('');
+					uploadFile = file;
+                } else {
+                    window.alert('Please choose an image file.');
+                }
+            }
+        })
+		$('#saveinfo').on('click',function(){
+			let url ="{:cmf_url('portal/Companyinfo/addenterpriseapplyjoinplatform')}";
+			var companyname = $('#input-companyname').val();
+			var contactname = $('#input-contactname').val();
+			var telno = $('#input-telno').val();
+			let data= {
+				userid:userid,
+				licensephoto:licensephoto,
+				companyname:companyname,
+				contactname:contactname,
+				telno:telno
+			}
+			console.log(data)
+			$.ajax(url, {
+				method: "POST",
+				data: data,
+				success: function (e) {
+					console.log(e);
+					console.log(e.code)
+					if(1==e.code){
+						noty({text: e.msg,type: 'success',layout: 'center'})
+					}else{
+						noty({text: e.msg,type: 'error',layout: 'center'})
+					}
+				},
+				error: function (e) {
+					console.log(e);
+				}
+			})
+		})
+		$('#saveavatar').on('click',function (){
+
+            // 禁用所有控件
+            $('.eventBtn').prop('disabled', true);
+            $('.btnsave').html('<i class="fa fa-spinner fa-pulse fa-fw"></i> 上传中');
+
+            // 判断是否有数据
+            // let tmp_img = nzi.cropper('getCroppedCanvas',{width: 512,height: 512})
+            if(!uploadFile) alert('请上传图片。');
+			var formData = new FormData();
+            formData.append('file',uploadFile);
+			$url="https://app.tjzhxx.cn:5443/api/Cos/savephoto";
+			$.ajax($url, {
+				method: "POST",
+				data: formData,
+				processData: false,
+				contentType: false,
+				success: function (e) {
+					console.log(e)
+					let data = JSON.parse(e);
+					console.log(data)
+					if(1==data.status){
+						let path = data.data.path
+						licensephoto = path
+						console.log(licensephoto)
+					}else{
+						noty({text: data.msg,type: 'error',layout: 'center'})
+					}
+
+					// delay_url = e.url
+					// noty({text: e.msg,type: ((e.code == 0) ? 'error' : 'success'),layout: 'center'})
+
+					$('.eventBtn').prop('disabled', false);
+					$('.btnsave').html('<i class="fa fa-save"></i> 确认保存');
+					// if(e.url != '') {
+					// 	setTimeout(function(){ window.location.href = e.url }, (e.wait-1)*1000)
+					// }
+					console.log(e)
+				},
+				error: function (e) {
+					noty({text: '网络连接失败。',type: 'error',layout: 'center'})
+					$('.eventBtn').prop('disabled', false);
+					$('.btnsave').html('<i class="fa fa-save"></i> 确认保存');
+					nzi.cropper('enable')
+				}
+			})
+            
+            // 转blob上传
+            // uploadedImageURL.toBlob(function (blob){
+
+            //     // 创建form
+            //     var formData = new FormData();
+            //     formData.append('file', blob, uploadedImageName);
+
+            //     // 禁用cropper
+            //     // nzi.cropper('disable')
+
+            //     // ajax 上传
+            //     Wind.use("noty", function () {
+			// 		$url="https://app.tjzhxx.cn:5443/api/Cos/savephoto";
+            //         $.ajax($url, {
+            //             method: "POST",
+            //             data: formData,
+            //             processData: false,
+            //             contentType: false,
+            //             success: function (e) {
+            //                 delay_url = e.url
+            //                 noty({text: e.msg,type: ((e.code == 0) ? 'error' : 'success'),layout: 'center'})
+            //                 $('.eventBtn').prop('disabled', false);
+            //                 $('.btnsave').html('<i class="fa fa-save"></i> 确认保存');
+            //                 if(e.url != '') {
+            //                     setTimeout(function(){ window.location.href = e.url }, (e.wait-1)*1000)
+            //                 }
+            //                 console.log(e)
+            //             },
+            //             error: function (e) {
+            //                 noty({text: '网络连接失败。',type: 'error',layout: 'center'})
+            //                 $('.eventBtn').prop('disabled', false);
+            //                 $('.btnsave').html('<i class="fa fa-save"></i> 确认保存');
+            //                 nzi.cropper('enable')
+            //             }
+            //         })
+            //     })
+
+            // }, "image/jpeg", 0.85);
+
+        });
+	</script>
+</body>
+</html>

+ 80 - 1
public/themes/simpleboot3/portal/index.html

@@ -114,7 +114,27 @@
         </for>
 
     </widget>
-
+    <div>
+        <div class="grid-container workerlist">
+            <foreach name="list" item="item" key="filterName">
+                    <div class="item">
+                        <div class="info2">
+                            <div class="div1">正在等活……</div>
+                            <div  class="div2">面议</div>
+                        </div>  
+                        <div class="worktype">
+                            <foreach name="item.worktype" item="wt" key="wtName">
+                                <label for="">{$wt.workertypedisstr}</label>
+                            </foreach>
+                        </div>
+                         <hr>
+                        <div class="info">
+                           <img src="{$item.photourl}" alt="" class="photourl">  {$item.wname}
+                        </div>
+                    </div>    
+            </foreach>
+        </div>
+    </div>
     <widget name="last_news">
         <div>
             <h1 class="text-center">{$widget.title}</h1>
@@ -183,6 +203,65 @@
         $("#home-slider").show();
     });
 </script>
+<style>
+    hr{
+        margin-top: 5px;
+        margin-bottom: 5px;
+    }
+    .grid-container {
+    display: grid;
+    grid-template-columns: 1fr 1fr; /* 定义两列,每列占据相等空间 */
+    gap: 40px; /* 可选:设置网格项之间的间隙 */
+    }
+    
+    .grid-item {
+    background-color: #f0f0f0; /* 可选:为网格项添加背景色以便于查看布局 */
+    padding: 20px; /* 可选:添加内边距 */
+    }
+    .workerlist{
+        margin-top: 100px;
+        margin-bottom: 100px;
+    }
+    .workerlist .item{
+        background: #FFFFFF;
+        box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
+        border-radius: 15px;
+    }
+    .item .info{
+        padding: 1em;
+        display: flex;
+        flex-direction: row;
+        align-items: center;
+        gap: 20px;
+    }
+    .item .info .photourl{
+        width: 50px;
+        height: 50px;
+        border-radius: 100px;
+    }
+    .item .info2{
+          padding: 1em;
+        display: flex;
+        flex-direction: row;
+        justify-content: space-between;
+    }
+    .item .info2 .div1{
+        font-size: larger;
+        font-weight: bold;
+    }
+    .item .info2 .div2{
+        font-size: larger;
+        color: chocolate;
+    }
+    .item .worktype{
+        padding: 1em;
+    }
+    .item .worktype label{
+        background-color: #F5F5F5 ;
+        padding: 1em;
+        border-radius: 10px;
+    }
+</style>
 <hook name="before_body_end"/>
 </body>
 </html>

+ 11 - 0
public/themes/simpleboot3/portal/workerlist.html

@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Test1</title>
+</head>
+<body>
+    <h1>Test</h1>
+</body>
+</html>

+ 3 - 0
public/themes/simpleboot3/public/footer.html

@@ -3,6 +3,9 @@
 <hr>
 <div id="footer">
     <hook name="footer_start"/>
+    <div class="msg">
+        举报电话:022-60277770
+    </div>
     <div class="links">
         <links>
             <a href="{$vo.url|default=''}" target="{$vo.target|default=''}">{$vo.name|default=''}</a>&nbsp;

+ 4 - 4
public/themes/simpleboot3/user/profile/center.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 <head>
-<title>{$user_login} - 个人中心</title>
+<title>{$user_nickname|default='用户昵称'} - 个人中心</title>
 <meta name="keywords" content=""/>
 <meta name="description" content="">
 <include file="public@head"/>
@@ -23,7 +23,7 @@
 			<div class="col-md-9">
 				<div class="tabs">
 					<ul class="nav nav-tabs">
-						<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-home"></i> 个人中心</a></li>
+						<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-home"></i>个人中心</a></li>
 					</ul>
 					<div class="tab-content">
 						<div class="tab-pane active" id="one">
@@ -47,7 +47,7 @@
 									<label class="control-label" for="input-user_nicename">昵称</label>
 									<div>{$user_nickname|default='未填写'}</div>
 								</div>
-								<div class="form-group">
+								<!-- <div class="form-group">
 									<label class="control-label" for="input-sex">性别</label>
 									<div>
 										<php> $sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");echo $sexs[$sex]; </php>
@@ -67,7 +67,7 @@
 								</div>
 								<div class="form-group">
 									<a href="{:url('user/profile/edit')}" class="btn btn-primary">编辑</a>
-								</div>
+								</div> -->
 							</div>
 							</div>
 						</div>

+ 2 - 2
public/themes/simpleboot3/user/profile/edit.html

@@ -27,7 +27,7 @@
                                    				<label for="input-user_nickname">昵称</label>
                                    				<input type="text" class="form-control" id="input-user_nickname" placeholder="昵称" name="user_nickname" value="{$user_nickname}">
                                    			</div>
-                                   			<div class="form-group">
+                                   			<!-- <div class="form-group">
                                    				<label for="input-sex">性别</label>
                                					<php>
                                  					$sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");
@@ -50,7 +50,7 @@
                                    			<div class="form-group">
                                    				<label for="input-signature">个性签名</label>
                                    				<textarea class="form-control" id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>
-                                   			</div>
+                                   			</div> -->
                                    			<div class="form-group">
                                    				<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
                                    			</div>