Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
______--______
ShopXO
提交
6562ecca
ShopXO
项目概览
______--______
/
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,体验更适合开发者的 AI 搜索 >>
提交
6562ecca
编写于
2月 20, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用优化
上级
40b2e3ff
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
25 deletion
+8
-25
application/plugins/commononlineservice/Hook.php
application/plugins/commononlineservice/Hook.php
+0
-15
application/plugins/view/commononlineservice/index/content.html
...ation/plugins/view/commononlineservice/index/content.html
+4
-3
public/static/plugins/css/commononlineservice/style.css
public/static/plugins/css/commononlineservice/style.css
+0
-3
public/static/plugins/css/commonrightnavigation/style.css
public/static/plugins/css/commonrightnavigation/style.css
+4
-4
未找到文件。
application/plugins/commononlineservice/Hook.php
浏览文件 @
6562ecca
...
...
@@ -99,9 +99,6 @@ class Hook extends Controller
}
}
// li数量
$online_service_li_count
=
0
;
// 客服
$online_service
=
empty
(
$ret
[
'data'
][
'online_service'
])
?
[]
:
explode
(
"
\n
"
,
$ret
[
'data'
][
'online_service'
]);
$online_service_data
=
[];
...
...
@@ -113,23 +110,11 @@ class Hook extends Controller
if
(
count
(
$items
)
==
2
)
{
$online_service_data
[]
=
$items
;
$online_service_li_count
++
;
}
}
}
$ret
[
'data'
][
'online_service'
]
=
$online_service_data
;
// 电话
if
(
!
empty
(
$ret
[
'data'
][
'tel'
]))
{
$online_service_li_count
++
;
}
// li数量
$ret
[
'data'
][
'online_service_li_count'
]
=
$online_service_li_count
;
$this
->
assign
(
'data'
,
$ret
[
'data'
]);
return
$this
->
fetch
(
'../../../plugins/view/commononlineservice/index/content'
);
}
else
{
...
...
application/plugins/view/commononlineservice/index/content.html
浏览文件 @
6562ecca
<div
class=
"commononlineservice"
{{
if
!
empty
($
data
['
distance_top
'])}}
style=
"top:{{$data.distance_top}}%"
{{/
if
}}
>
<div
class=
"commononlineservice"
{{
if
isset
($
data
['
distance_top
'])}}
style=
"top:{{$data.distance_top}}%"
{{/
if
}}
>
<div
class=
"float-left"
style=
"{{if !empty($data['bg_color'])}}background: {{$data.bg_color}};{{/if}}"
>
<a
class=
"btn-open"
title=
"查看在线客服"
href=
"javascript:void(0);"
>
展开
</a>
<a
class=
"btn-ctn"
title=
"关闭在线客服"
href=
"javascript:void(0);"
>
收缩
</a>
</div>
<div
class=
"content"
style=
"{{if
isset($data['online_service_li_count']) and $data['online_service_li_count'] ELT 2}}border-radius: 0;{{/if}} {{if
!empty($data['bg_color'])}}background: {{$data.bg_color}};{{/if}}"
>
<div
class=
"content"
style=
"{{if !empty($data['bg_color'])}}background: {{$data.bg_color}};{{/if}}"
>
<div
class=
"cn"
>
{{if !empty($data['title'])}}
<h3
class=
"title"
>
{{$data.title}}
</h3>
...
...
@@ -24,7 +24,8 @@
{{/foreach}}
{{if !empty($data['title'])}}
<li>
<span>
电话:{{$data.tel}}
</span>
<span>
电话:
</span>
<a
href=
"tel:{{$data.tel}}"
>
{{$data.tel}}
</a>
</li>
{{/if}}
</ul>
...
...
public/static/plugins/css/commononlineservice/style.css
浏览文件 @
6562ecca
...
...
@@ -15,7 +15,6 @@
z-index
:
1
;
margin-top
:
0
;
height
:
120px
;
border-radius
:
3px
0px
0
3px
;
}
.commononlineservice
.float-left
a
{
font-size
:
0
;
...
...
@@ -27,11 +26,9 @@
overflow
:
hidden
;
width
:
140px
;
margin-right
:
-150px
;
border-radius
:
0
0px
0
3px
;
}
.commononlineservice
.content
.cn
{
background
:
#F7F7F7
;
border-radius
:
3px
;
}
.commononlineservice
.cn
.title
{
font-size
:
14px
;
...
...
public/static/plugins/css/commonrightnavigation/style.css
浏览文件 @
6562ecca
...
...
@@ -102,7 +102,7 @@
height
:
35px
;
}
.commonrightnavigation-right-nav
.cart
{
bottom
:
4
5
vh
;
bottom
:
4
0
vh
;
left
:
0
;
height
:
125px
;
border-top
:
1px
solid
#444
;
...
...
@@ -114,17 +114,17 @@
border-bottom
:
1px
solid
#d2364c
;
}
.commonrightnavigation-right-nav
.favor
{
bottom
:
calc
(
4
5vh
+
150
px
);
bottom
:
calc
(
4
0vh
+
135
px
);
left
:
0
;
height
:
35px
;
}
.commonrightnavigation-right-nav
.browse
{
bottom
:
calc
(
4
5vh
+
185
px
);
bottom
:
calc
(
4
0vh
+
170
px
);
left
:
0
;
height
:
35px
;
}
.commonrightnavigation-right-nav
.user-center
{
bottom
:
calc
(
4
5vh
+
220
px
);
bottom
:
calc
(
4
0vh
+
205
px
);
left
:
0
;
height
:
35px
;
padding
:
5px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录