diff --git a/public/static/home/js/fixbar.js b/public/static/home/js/fixbar.js
index 831f471f..df01c3e5 100644
--- a/public/static/home/js/fixbar.js
+++ b/public/static/home/js/fixbar.js
@@ -1,4 +1,4 @@
-layui.use(['jquery', 'helper', 'util'], function () {
+layui.use(['jquery', 'util'], function () {
var $ = layui.jquery;
var util = layui.util;
@@ -47,6 +47,17 @@ layui.use(['jquery', 'helper', 'util'], function () {
});
}
+ var showPhoneCode = function () {
+ var content = '
' + window.contact.phone + '
';
+ layer.open({
+ type: 1,
+ title: false,
+ closeBtn: 0,
+ shadeClose: true,
+ content: content,
+ });
+ }
+
var bars = [];
if (window.contact.wechat) {
@@ -63,6 +74,13 @@ layui.use(['jquery', 'helper', 'util'], function () {
});
}
+ if (window.contact.phone) {
+ bars.push({
+ type: 'phone',
+ content: '',
+ });
+ }
+
util.fixbar({
bars: bars,
click: function (type) {
@@ -70,24 +88,30 @@ layui.use(['jquery', 'helper', 'util'], function () {
showWechatCode();
} else if (type === 'qq') {
showQQCode();
+ } else if (type === 'phone') {
+ showPhoneCode();
}
}
});
- $('.icon-wechat').on('click', function () {
+ $('.contact > .wechat').on('click', function () {
showWechatCode();
});
- $('.icon-qq').on('click', function () {
+ $('.contact > .qq').on('click', function () {
showQQCode();
});
- $('.icon-toutiao').on('click', function () {
+ $('.contact > .toutiao').on('click', function () {
showTouTiaoCode();
});
- $('.icon-douyin').on('click', function () {
+ $('.contact > .douyin').on('click', function () {
showDouYinCode();
});
-});
\ No newline at end of file
+ $('.contact > .phone').on('click', function () {
+ showPhoneCode();
+ });
+
+});