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:
parent
14b2e1df20
commit
bba2842967
@ -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 () {
|
||||
showWechatCode();
|
||||
});
|
||||
@ -37,16 +64,4 @@ layui.use(['jquery', 'helper', 'util'], function () {
|
||||
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
Binary file not shown.
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 321 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user