Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
ffd81783
ShopXO
项目概览
jamesyang1999
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ffd81783
编写于
4月 16, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用开发
上级
fa409ffe
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
6 deletion
+18
-6
application/index/view/default/public/header.html
application/index/view/default/public/header.html
+1
-0
application/plugins/petscms/Pets.php
application/plugins/petscms/Pets.php
+10
-1
application/plugins/view/petscms/pets/helpmap.html
application/plugins/view/petscms/pets/helpmap.html
+2
-2
public/static/plugins/css/petscms/pets.css
public/static/plugins/css/petscms/pets.css
+3
-2
public/static/plugins/js/petscms/pets.js
public/static/plugins/js/petscms/pets.js
+2
-1
未找到文件。
application/index/view/default/public/header.html
浏览文件 @
ffd81783
...
...
@@ -50,6 +50,7 @@
var
__default_theme__
=
'
{{$default_theme}}
'
;
var
__modal_login_url__
=
'
{{:Url("index/user/modallogininfo")}}
'
;
var
__attachment_host__
=
'
{{$attachment_host}}
'
;
var
__seo_url_suffix__
=
'
{{:MyC("home_seo_url_html_suffix", "html", true)}}
'
;
var
__user_id__
=
{{
if
empty
(
$user
[
'
id
'
])}}
0
{{
else
/}}{{$user.id}}{{/i
f
}};
</script>
...
...
application/plugins/petscms/Pets.php
浏览文件 @
ffd81783
...
...
@@ -265,7 +265,16 @@ class Pets extends Controller
$this
->
assign
(
'is_footer'
,
0
);
// 参数
$this
->
assign
(
'params'
,
input
());
$params
=
input
();
if
(
!
empty
(
$params
[
'lng'
]))
{
$params
[
'lng'
]
=
base64_decode
(
$params
[
'lng'
]);
}
if
(
!
empty
(
$params
[
'lat'
]))
{
$params
[
'lat'
]
=
base64_decode
(
$params
[
'lat'
]);
}
$this
->
assign
(
'params'
,
$params
);
return
$this
->
fetch
(
'../../../plugins/view/petscms/pets/helpmap'
);
}
}
...
...
application/plugins/view/petscms/pets/helpmap.html
浏览文件 @
ffd81783
{{include file="public/header" /}}
{{if !empty($params['lng']) and !empty($params['lat']) and $params['lng'] gt 0 and $params['lat'] gt 0}}
<div
id=
"help-map"
style=
"width: 100%; height: 100vh;"
></div>
<div
id=
"help-map"
></div>
{{else /}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
参数有误
</div>
{{/if}}
...
...
@@ -17,7 +17,7 @@
{
// 丢失地址-地图展示
var
map
=
new
BMap
.
Map
(
"
help-map
"
,
{
enableMapClick
:
false
});
var
level
=
$
(
'
#help-map
'
).
data
(
'
level
'
)
||
16
;
var
level
=
17
;
var
point
=
new
BMap
.
Point
({{
$params
[
'
lng
'
]}},
{{
$params
[
'
lat
'
]}});
map
.
centerAndZoom
(
point
,
level
);
...
...
public/static/plugins/css/petscms/pets.css
浏览文件 @
ffd81783
...
...
@@ -73,6 +73,7 @@ form.form-validation #map {
/**
* 帮助页面
*/
.pets-help
#help-map
{
height
:
80vh
;
#help-map
{
width
:
100%
;
height
:
100vh
;
}
\ No newline at end of file
public/static/plugins/js/petscms/pets.js
浏览文件 @
ffd81783
...
...
@@ -7,7 +7,8 @@ $(function()
var
lat
=
parseFloat
(
$
(
this
).
data
(
'
lat
'
));
if
(
lng
>
0
&&
lat
>
0
)
{
var
url
=
UrlFieldReplace
(
'
lat
'
,
lat
,
UrlFieldReplace
(
'
lng
'
,
lng
,
$
(
'
.pets-help
'
).
data
(
'
url
'
)));
// 数据base64避免特殊字符
var
url
=
UrlFieldReplace
(
'
lat
'
,
window
.
btoa
(
lat
),
UrlFieldReplace
(
'
lng
'
,
window
.
btoa
(
lng
),
$
(
'
.pets-help
'
).
data
(
'
url
'
)));
ModalLoad
(
url
,
'
地图
'
,
'
plugins-petscms-popup-modal-help
'
);
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录