Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
2582675e
Commit
2582675e
authored
Nov 19, 2018
by
袅袅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家小BUG修复
parent
3b5dc1fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
11 deletions
+49
-11
application/admin/controller/Project.php
+1
-1
application/admin/view/project/save.html
+48
-10
No files found.
application/admin/controller/Project.php
View file @
2582675e
...
...
@@ -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
(
'操作失败'
);
}
...
...
application/admin/view/project/save.html
View file @
2582675e
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment