1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-27 21:10:24 +08:00

升级layui-v2.8.1

This commit is contained in:
xiaochong0302 2023-05-03 15:52:44 +08:00
parent 14b2e1df20
commit bba2842967
8 changed files with 432 additions and 833 deletions

View File

@ -29,6 +29,33 @@ layui.use(['jquery', 'helper', 'util'], function () {
}); });
} }
var bars = [];
if (window.contact.qq) {
bars.push({
type: 'qq',
icon: 'layui-icon-login-qq',
});
}
if (window.contact.wechat) {
bars.push({
type: 'wechat',
icon: 'layui-icon-login-wechat',
});
}
util.fixbar({
bars: bars,
click: function (type) {
if (type === 'qq') {
showQQDialog();
} else if (type === 'wechat') {
showWechatCode();
}
}
});
$('.icon-wechat').on('click', function () { $('.icon-wechat').on('click', function () {
showWechatCode(); showWechatCode();
}); });
@ -37,16 +64,4 @@ layui.use(['jquery', 'helper', 'util'], function () {
showTouTiaoCode(); showTouTiaoCode();
}); });
util.fixbar({
bar1: window.contact.qq ? '' : false,
bar2: window.contact.wechat ? '' : false,
click: function (type) {
if (type === 'bar1') {
showQQDialog();
} else if (type === 'bar2') {
showWechatCode();
}
}
});
}); });

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 301 KiB

After

Width:  |  Height:  |  Size: 321 KiB

File diff suppressed because one or more lines are too long