Commit 5a06b86d authored by 章建武's avatar 章建武

dep

parent f5d105ed
......@@ -18,6 +18,9 @@ const URL_CLOSE_LAYER = 'url://close-layer';
/** 关闭当前弹窗并刷新父级 */
const URL_CLOSE_REFRESH = 'url://close-refresh';
//js 刷新页面
const URL_WINDOW = 'window.location.reload()';
if (!function_exists('success')) {
function success($msg = '操作成功', $url = URL_BACK, $data = '', $wait = 0, array $header = [])
......
......@@ -57,7 +57,7 @@ class BoutiqueController extends Controller
'img_title' => $param['img_title'][$k],
];
}
$model->where(['language_type'=>$param['language_type'],'type'=>$param['type']])->update(['content'=>$param['content']]);
$model->where(['language_type'=>$param['language_type'],'type'=>$param['type']])->update(['title'=>$param['title']]);
$result = $model->insertAll($data);
$url = URL_BACK;
if (isset($param['_create']) && $param['_create'] == 1) {
......@@ -96,7 +96,8 @@ class BoutiqueController extends Controller
}
}
$result = $data->save($param);
$model->where(['language_type'=>$param['language_type'],'type'=>$param['type']])->update(['content'=>$param['content']]);
$model->where(['language_type'=>$param['language_type'],'type'=>$param['type']])->update(['title'=>$param['title']]);
return $result ? success() : error();
}
......
......@@ -149,7 +149,7 @@
});
</script>
<!--施工团队-->
<!--添加图片-->
<script>
var j=-1;
$('body').delegate('.p_del','click',function(){
......
......@@ -48,6 +48,13 @@
type="tel" maxlength="110" class="form-control field-mobile">
</div>
</div>
<div class="form-group">
<label for="source" class="col-sm-2 control-label">招聘链接</label>
<div class="col-sm-10 col-md-4">
<input id="job_link" name="job_link" value="{$data.job_link|default=''}" placeholder="请输入招聘链接"
type="text" class="form-control">
</div>
</div>
<div class="form-group">
<label for="introduce" class="col-sm-2 control-label">招聘人数</label>
......
......@@ -236,6 +236,7 @@ function formSubmit(form) {
}
}
goUrl(result.url);
window.location.reload();
},
error: function (xhr, type, errorThrown) {
//异常处理;
......
......@@ -113,7 +113,7 @@
{!! $v->content !!}
</div>
<div class="panel-inner-b-btn">
<a href="http://company.zhaopin.com/%E6%B7%B1%E5%9C%B3%E6%97%B6%E5%B0%9A%E5%95%86%E4%B8%9A%E5%9C%B0%E4%BA%A7%E9%9B%86%E5%9B%A2%E8%82%A1%E4%BB%BD%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8_CC120721323.htm" target="_blank">
<a href="{{$v->job_link}}" target="_blank">
@if($language_type == 1)
I want to apply
@else
......@@ -129,7 +129,7 @@
{!! $v->content !!}
</div>
<div class="panel-inner-b-btn">
<a href="http://company.zhaopin.com/%E6%B7%B1%E5%9C%B3%E6%97%B6%E5%B0%9A%E5%95%86%E4%B8%9A%E5%9C%B0%E4%BA%A7%E9%9B%86%E5%9B%A2%E8%82%A1%E4%BB%BD%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8_CC120721323.htm" target="_blank">
<a href="{{$v->job_link}}" target="_blank">
@if($language_type == 1)
I want to apply
@else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment