فهرست منبع

增加技能证书

linwu 1 سال پیش
والد
کامیت
b6d0db8895

+ 1 - 0
app/admin/controller/User.php

@@ -797,6 +797,7 @@ class User extends BaseController
             'com_cate_type'  => input('com_cate_type/d', 1),
             'com_cate'       => array_values(input('com_cate/a', [])),
             'com_cate_other' => input('com_cate_other/s', ""),
+            'skill_cert'     => array_values(input('skill_cert/a', [])),
         ];
         $password       = input('password/s');
         if (empty($id)) {

+ 17 - 1
app/admin/view/user/userform.html

@@ -294,7 +294,7 @@
 								<!--<input type="text" name="education" value="{$user.education}" placeholder="请输入学历" autocomplete="off" class="layui-input">-->
 								<select name="education" lay-search>
 									<option value="">全部(可搜索)</option>
-									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中</option>
+									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中及以下</option>
 									<option value="2" {eq name="user.education" value="2"}selected{/eq}>高中</option>
 									<option value="3" {eq name="user.education" value="3"}selected{/eq}>中技</option>
 									<option value="4" {eq name="user.education" value="4"}selected{/eq}>中专</option>
@@ -321,6 +321,22 @@
 
 							</div>
 						</div>
+						<div class="layui-form-item">
+							<label class="layui-form-label">技能证书</label>
+							<div class="layui-input-block">
+								<div class="layui-upload">
+									<button type="button" class="layui-btn attachment-upload-images" data-input="skill_cert" data-amount="9">上传图片</button>
+									<div class="layui-upload-list echo-attachment-image-list" id="skill_cert">
+										{volist name="user.skill_cert" id="vo"}
+										<div>
+											<input type="hidden" name="skill_cert[]" value="{$vo}">
+											<img src="{$vo}"> <button type="button" class="attachmentdel layui-btn layui-btn-primary layui-btn-xs layui-btn-fluid">删除</button>
+										</div>
+										{/volist}
+									</div>
+								</div>
+							</div>
+						</div>
 						<div class="layui-form-item">
 							<label class="layui-form-label">个人描述</label>
 							<div class="layui-input-block">

+ 1 - 0
app/agent/controller/User.php

@@ -327,6 +327,7 @@ class User extends BaseController
             'eduexperience'  => input('eduexperience/s', ""),
             'followstatus'   => input('followstatus/d', 1),
             'bankcard'       => input('bankcard/a', []),
+            'skill_cert'     => array_values(input('skill_cert/a', [])),
         ];
         $password = input('password/s');
         if (empty($id)) {

+ 17 - 1
app/agent/view/user/userform.html

@@ -274,7 +274,7 @@
 								<!--<input type="text" name="education" value="{$user.education}" placeholder="请输入学历" autocomplete="off" class="layui-input">-->
 								<select name="education" lay-search>
 									<option value="">全部(可搜索)</option>
-									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中</option>
+									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中及以下</option>
 									<option value="2" {eq name="user.education" value="2"}selected{/eq}>高中</option>
 									<option value="3" {eq name="user.education" value="3"}selected{/eq}>中技</option>
 									<option value="4" {eq name="user.education" value="4"}selected{/eq}>中专</option>
@@ -301,6 +301,22 @@
 
 							</div>
 						</div>
+						<div class="layui-form-item">
+							<label class="layui-form-label">技能证书</label>
+							<div class="layui-input-block">
+								<div class="layui-upload">
+									<button type="button" class="layui-btn attachment-upload-images" data-input="skill_cert" data-amount="9">上传图片</button>
+									<div class="layui-upload-list echo-attachment-image-list" id="skill_cert">
+										{volist name="user.skill_cert" id="vo"}
+										<div>
+											<input type="hidden" name="skill_cert[]" value="{$vo}">
+											<img src="{$vo}"> <button type="button" class="attachmentdel layui-btn layui-btn-primary layui-btn-xs layui-btn-fluid">删除</button>
+										</div>
+										{/volist}
+									</div>
+								</div>
+							</div>
+						</div>
 						<div class="layui-form-item">
 							<label class="layui-form-label">个人描述</label>
 							<div class="layui-input-block">

+ 3 - 1
app/common/model/User.php

@@ -54,6 +54,7 @@ class User extends Model
         'is_auth'        => 'int',
         'balance'        => 'decimal',
         'broker_channel' => 'tinyint',
+        'skill_cert'     => 'string',
     ];
 
     // 设置字段自动转换类型
@@ -64,6 +65,7 @@ class User extends Model
         'com_cate'   => 'json',
         'work_place' => 'json',
         'user_tags'  => 'json',
+        'skill_cert' => 'json',
     ];
     protected $jsonAssoc = true;
 
@@ -94,7 +96,7 @@ class User extends Model
 
     public function getEducationTextAttr($value, $data)
     {
-        $education = ['' => '', 1 => '初中', 2 => '高中', 3 => '中技', 4 => '中专', 5 => '大专', 6 => '本科', 7 => '硕士', 8 => '博士'];
+        $education = ['' => '', 1 => '初中及以下', 2 => '高中', 3 => '中技', 4 => '中专', 5 => '大专', 6 => '本科', 7 => '硕士', 8 => '博士'];
         return $education[$data['education']];
     }
 

+ 1 - 1
app/common/model/WorkerResume.php

@@ -64,7 +64,7 @@ class WorkerResume extends Model
 
     public function getEducationTextAttr($value, $data)
     {
-        $education = ['' => '', 1 => '初中', 2 => '高中', 3 => '中技', 4 => '中专', 5 => '大专', 6 => '本科', 7 => '硕士', 8 => '博士'];
+        $education = ['' => '', 1 => '初中及以下', 2 => '高中', 3 => '中技', 4 => '中专', 5 => '大专', 6 => '本科', 7 => '硕士', 8 => '博士'];
         return $education[$data['education']];
     }
 

+ 1 - 1
app/common/service/UserService.php

@@ -16,7 +16,7 @@ class UserService extends BaseService
         $list           = importExecl($file_url, $data, 1);
         $data           = [];
         $gender         = ['男' => 1, '女' => 2];
-        $education      = ['初中' => 1, '高中' => 2, '中技' => 3, '中专' => 4, '大专' => 5, '本科' => 6, '硕士' => 7, '博士' => 8];
+        $education      = ['初中及以下' => 1, '高中' => 2, '中技' => 3, '中专' => 4, '大专' => 5, '本科' => 6, '硕士' => 7, '博士' => 8];
         $workexperience = ['无经验' => 1, '一年以下' => 2, '1-3年' => 3, '3-5年' => 4, '5-10年' => 5, '10年以上' => 6];
         $jobintention   = ['长期工' => 1, '临时工' => 3];
 

+ 1 - 0
app/mainapp/controller/Login.php

@@ -162,6 +162,7 @@ class Login
             'com_cate'       => [],
             'work_place'     => [],
             'user_tags'      => [],
+            'skill_cert'     => [],
         ];
         $resdata  = array_merge($data, $userdata);
         $user     = new UserModel;

+ 3 - 1
app/mainapp/controller/My.php

@@ -484,17 +484,19 @@ class My extends BaseController
     public function perfectUserInfo()
     {
         $userid = input('userid/d');
+        $skill_cert = input('skill_cert/a',[]);
         $user   = UserModel::findOrEmpty($userid);
         if ($user->isEmpty()) {
             page_result(1, "用户信息不存在");
         }
+        $user['skill_cert'] = $skill_cert;
         if ($user['is_perfect'] == 2) {
             $user->is_perfect = 1;
-            $user->save();
             //发放佣金
             $balanceService = new BalanceService();
             $balanceService->add($userid, BalanceService::IMPROVERESUME);
         }
+        $user->save();
         /*$integralService = new IntegralService();
         $integralService->add($userid, IntegralService::IMPROVERESUME);*/
         page_result();

+ 1 - 0
app/worker/controller/User.php

@@ -348,6 +348,7 @@ class User extends BaseController
             'com_cate_type'  => input('com_cate_type/d', 1),
             'com_cate'       => array_values(input('com_cate/a', [])),
             'com_cate_other' => input('com_cate_other/s', ""),
+            'skill_cert'     => array_values(input('skill_cert/a', [])),
         ];
         $password       = input('password/s');
         if (empty($id)) {

+ 1 - 1
app/worker/view/resume/companyform.html

@@ -224,7 +224,7 @@
 							<div class="layui-input-block">
 								<select name="education" lay-search>
 									<option value="">全部(可搜索)</option>
-									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中</option>
+									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中及以下</option>
 									<option value="2" {eq name="user.education" value="2"}selected{/eq}>高中</option>
 									<option value="3" {eq name="user.education" value="3"}selected{/eq}>中技</option>
 									<option value="4" {eq name="user.education" value="4"}selected{/eq}>中专</option>

+ 17 - 1
app/worker/view/user/userform.html

@@ -278,7 +278,7 @@
 							<div class="layui-input-block">
 								<select name="education" lay-search>
 									<option value="">全部(可搜索)</option>
-									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中</option>
+									<option value="1" {eq name="user.education" value="1"}selected{/eq}>初中及以下</option>
 									<option value="2" {eq name="user.education" value="2"}selected{/eq}>高中</option>
 									<option value="3" {eq name="user.education" value="3"}selected{/eq}>中技</option>
 									<option value="4" {eq name="user.education" value="4"}selected{/eq}>中专</option>
@@ -301,6 +301,22 @@
 								<textarea name="workexperience" placeholder="请输入工作经验" class="layui-textarea">{$user.workexperience}</textarea>
 							</div>
 						</div>
+						<div class="layui-form-item">
+							<label class="layui-form-label">技能证书</label>
+							<div class="layui-input-block">
+								<div class="layui-upload">
+									<button type="button" class="layui-btn attachment-upload-images" data-input="skill_cert" data-amount="9">上传图片</button>
+									<div class="layui-upload-list echo-attachment-image-list" id="skill_cert">
+										{volist name="user.skill_cert" id="vo"}
+										<div>
+											<input type="hidden" name="skill_cert[]" value="{$vo}">
+											<img src="{$vo}"> <button type="button" class="attachmentdel layui-btn layui-btn-primary layui-btn-xs layui-btn-fluid">删除</button>
+										</div>
+										{/volist}
+									</div>
+								</div>
+							</div>
+						</div>
 						<div class="layui-form-item">
 							<label class="layui-form-label">个人描述</label>
 							<div class="layui-input-block">