Commit 2582675e by 袅袅

商家小BUG修复

parent 3b5dc1fb
......@@ -578,7 +578,7 @@ class Project extends AuthBase
}
$res = $model->allowField(true)->isUpdate($isUpdate)->save($data);
if($res){
$this->success('操作成功',url('index',['page'=>input('page',1)]));
$this->success('操作成功',url('index')."?page=".input('page',1));
}else{
$this->error('操作失败');
}
......
......@@ -21,10 +21,18 @@
height: 92px;
margin: 0 10px 10px 0;
}
.click-a{
color: #428bca;
}
.click-a:hover{
color: #777;
}
</style>
<section class="wrapper">
<h3 class="">
<section class="wrapper" style="padding-top: 20px;">
<h3 class="" style="margin-bottom: 20px;">
<i class="fa fa-angle-right"></i> <a href="{:url('admin/project/index')}">活动/商家列表</a> <i
class="fa fa-angle-right"></i>
{if isset($info)}修改活动/商家 {else/} 创建活动/商家{/if}
......@@ -131,13 +139,13 @@
<div class="col-sm-10 col-md-8 col-lg-6 ">
<div class="input-group">
<span class="input-group-addon">经度</span>
<input type="number" class="form-control validate[required]" name="longitude" placeholder="经度"
<input step="0.000000000001" type="number" class="form-control validate[required]" name="longitude" placeholder="经度"
value="{$info['longitude']??'';}">
<span class="input-group-addon">纬度</span>
<input type="number" class="form-control validate[required]" name="latitude" placeholder="纬度"
<input step="0.000000000001" type="number" class="form-control validate[required]" name="latitude" placeholder="纬度"
value="{$info['latitude']??'';}">
</div>
<span class="form-group-tip"> 经纬度在地图上搜索并复制粘贴过来即可, <a href="http://www.gpsspg.com/maps.htm"
<span class="form-group-tip"> 经纬度在地图上搜索并复制粘贴过来即可, <a class="click-a" href="http://www.gpsspg.com/maps.htm"
target="_blank">立即查看地图</a></span>
</div>
</div>
......@@ -219,6 +227,14 @@
</div>
</div>
<div class="form-group" id="content">
<label for="content" class="col-sm-2 control-label text-right">详细介绍</label>
<div class="col-sm-10 col-md-8 col-lg-6">
<!-- 加载编辑器的容器 -->
<script id="post_container" name="description" style="width: 100%" type="text/plain"><?php if($info){echo htmlspecialchars_decode($info->description);} ?></script>
</div>
</div>
{if isset($info)}
<input type="hidden" name="id" value="{$info['id']}">
{/if}
......@@ -252,11 +268,7 @@
$("#myFrom").validationEngine();
// 初始化时间选择器
$("#start").datetimepicker({
language: 'zh-CN',
autoclose: true,
format: 'yyyy-mm-dd hh:ii:00'
});
$("#end").datetimepicker({
language: 'zh-CN',
autoclose: true,
......@@ -360,6 +372,32 @@
});
var ueditor = UE.getEditor('post_container', {
//编辑区域大小
'initialFrameHeight' : '350',
'elementPathEnabled':false,
'autoHeight': false,
'autoHeightEnabled':false,
'autoFloatEnabled': false,
'iframeCssUrl': '/static/qiniu_ueditor143/themes/iframe.css',// 引入css
//定制菜单
'toolbars' : [
[
'fullscreen', 'source', 'undo', 'redo', '|',
'fontsize',
'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat',
'formatmatch', 'blockquote', 'pasteplain', '|',
'forecolor', 'backcolor', '|',
'lineheight', '|',
'indent', '|', 'insertimage', '|',
'justifyleft', //居左对齐
'justifyright', //居右对齐
'justifycenter', //居中对齐
'justifyjustify', //两端对齐
],
]
});
</script>
</section>
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