在线客服应用优化
parent
5c830c9411
commit
51f26f6b7e
|
|
@ -10,7 +10,7 @@
|
||||||
<span>plugins_view_common_bottom</span>
|
<span>plugins_view_common_bottom</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if !empty($plugins_view_common_bottom_data) and is_array($plugins_view_common_bottom_data)}}
|
{{if !empty($plugins_view_common_bottom_data) and is_array($plugins_view_common_bottom_data) and (!isset($is_footer) or $is_footer eq 1)}}
|
||||||
{{foreach $plugins_view_common_bottom_data as $hook}}
|
{{foreach $plugins_view_common_bottom_data as $hook}}
|
||||||
{{if is_string($hook) or is_int($hook)}}
|
{{if is_string($hook) or is_int($hook)}}
|
||||||
{{$hook|raw}}
|
{{$hook|raw}}
|
||||||
|
|
|
||||||
|
|
@ -144,12 +144,19 @@ class Hook
|
||||||
// 背景色
|
// 背景色
|
||||||
$bg_color = empty($ret['data']['bg_color']) ? '' : 'background:'.$ret['data']['bg_color'].';';
|
$bg_color = empty($ret['data']['bg_color']) ? '' : 'background:'.$ret['data']['bg_color'].';';
|
||||||
|
|
||||||
|
// 内容css
|
||||||
|
$content_css = $bg_color;
|
||||||
|
if($online_service_li_count <= 2)
|
||||||
|
{
|
||||||
|
$content_css .= 'border-radius:0;';
|
||||||
|
}
|
||||||
|
|
||||||
// 组装
|
// 组装
|
||||||
$content = '<div class="float-left" style="'.$bg_color.'">
|
$content = '<div class="float-left" style="'.$bg_color.'">
|
||||||
<a class="btn-open" title="查看在线客服" href="javascript:void(0);">展开</a>
|
<a class="btn-open" title="查看在线客服" href="javascript:void(0);">展开</a>
|
||||||
<a class="btn-ctn" title="关闭在线客服" href="javascript:void(0);">收缩</a>
|
<a class="btn-ctn" title="关闭在线客服" href="javascript:void(0);">收缩</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" style="'.(($online_service_li_count <= 2) ? 'border-radius:0;'.$bg_color : $bg_color).'">
|
<div class="content" style="'.$content_css.'">
|
||||||
<div class="cn">
|
<div class="cn">
|
||||||
<h3 class="title">'.$ret['data']['title'].'</h3>
|
<h3 class="title">'.$ret['data']['title'].'</h3>
|
||||||
<ul>'.$online_service_html.$tel_html.'
|
<ul>'.$online_service_html.$tel_html.'
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<div class="am-form-group">
|
<div class="am-form-group">
|
||||||
<label>标题</label>
|
<label>标题</label>
|
||||||
<input type="text" name="title" placeholder="标题" minlength="2" maxlength="16" data-validation-message="标题格式 2~16 个字符之间" class="am-radius" value="{{if !empty($data)}}{{$data.title}}{{/if}}" required />
|
<input type="text" name="title" placeholder="标题" minlength="2" maxlength="16" data-validation-message="标题格式 2~16 个字符之间" class="am-radius" value="{{if !empty($data)}}{{$data.title}}{{/if}}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="am-form-group am-form-file">
|
<div class="am-form-group am-form-file">
|
||||||
|
|
|
||||||
|
|
@ -48,14 +48,17 @@ return array (
|
||||||
'plugins_css' =>
|
'plugins_css' =>
|
||||||
array (
|
array (
|
||||||
0 => 'app\\plugins\\commonrightnavigation\\Hook',
|
0 => 'app\\plugins\\commonrightnavigation\\Hook',
|
||||||
|
1 => 'app\\plugins\\commononlineservice\\Hook',
|
||||||
),
|
),
|
||||||
'plugins_js' =>
|
'plugins_js' =>
|
||||||
array (
|
array (
|
||||||
0 => 'app\\plugins\\commonrightnavigation\\Hook',
|
0 => 'app\\plugins\\commonrightnavigation\\Hook',
|
||||||
|
1 => 'app\\plugins\\commononlineservice\\Hook',
|
||||||
),
|
),
|
||||||
'plugins_view_common_bottom' =>
|
'plugins_view_common_bottom' =>
|
||||||
array (
|
array (
|
||||||
0 => 'app\\plugins\\commonrightnavigation\\Hook',
|
0 => 'app\\plugins\\commonrightnavigation\\Hook',
|
||||||
|
1 => 'app\\plugins\\commononlineservice\\Hook',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -6,16 +6,16 @@
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 30%;
|
top: 30%;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
z-index: 1000;
|
z-index: 1001;
|
||||||
}
|
}
|
||||||
.commononlineservice .float-left {
|
.commononlineservice .float-left {
|
||||||
width: 36px;
|
width: 35px;
|
||||||
float:left;
|
float:left;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index:1;
|
z-index:1;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
border-radius: 6px 0px 0 6px;
|
border-radius: 3px 0px 0 3px;
|
||||||
}
|
}
|
||||||
.commononlineservice .float-left a {
|
.commononlineservice .float-left a {
|
||||||
font-size:0;
|
font-size:0;
|
||||||
|
|
@ -27,11 +27,11 @@
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
width: 140px;
|
width: 140px;
|
||||||
margin-right:-150px;
|
margin-right:-150px;
|
||||||
border-radius: 0 0px 0 6px;
|
border-radius: 0 0px 0 3px;
|
||||||
}
|
}
|
||||||
.commononlineservice .content .cn {
|
.commononlineservice .content .cn {
|
||||||
background:#F7F7F7;
|
background:#F7F7F7;
|
||||||
border-radius:6px;
|
border-radius:3px;
|
||||||
}
|
}
|
||||||
.commononlineservice .cn .title {
|
.commononlineservice .cn .title {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.commontopmaxpicture-content .items .bg-color-tag {
|
.commontopmaxpicture-content .items .bg-color-tag {
|
||||||
width: 100%;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue