- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
80 lines
2.5 KiB
JavaScript
Executable File
80 lines
2.5 KiB
JavaScript
Executable File
if (Config.modulename == 'admin' && Config.controllername == 'index' && Config.actionname == 'index') {
|
|
|
|
require.config({
|
|
paths: {
|
|
'kefu': '../addons/kefu/js/kefu'
|
|
},
|
|
shim: {
|
|
'kefu': {
|
|
deps: ['css!../addons/kefu/css/kefu_admin_default.css'],
|
|
exports: 'KeFu'
|
|
}
|
|
}
|
|
});
|
|
|
|
require(['kefu'], function (KeFu) {
|
|
KeFu.initialize(document.domain, 'admin');
|
|
});
|
|
|
|
} else {
|
|
|
|
try {
|
|
var parentConifg = window.parent.Config;
|
|
} catch (err) {
|
|
var parentConifg = false;
|
|
}
|
|
|
|
if (parentConifg && parentConifg.modulename == 'admin') {
|
|
// 监听后台iframe内的快捷键打开会话窗口
|
|
$(document).on('keyup', function (event) {
|
|
|
|
if (window.parent.KeFu) {
|
|
|
|
// console.log('当前按钮的code-iframe内:', event.keyCode);
|
|
|
|
// 对打开会话窗口的监听
|
|
// 打开会话窗口快捷键[ctrl + /],若需修改,请拿到对应键的keyCode替换下一行的191即可,191代表[/]键的keyCode
|
|
if (event.keyCode === 191 && event.ctrlKey) {
|
|
|
|
if (window.parent.KeFu.last_sender) {
|
|
if (parseInt(window.parent.KeFu.last_sender) === window.parent.KeFu.session_id) {
|
|
// 展开分组
|
|
if (!window.parent.KeFu.group_show.dialogue) {
|
|
$('#heading_dialogue a').click();
|
|
}
|
|
} else {
|
|
window.parent.KeFu.changeSession(window.parent.KeFu.last_sender);
|
|
window.parent.KeFu.last_sender = null;
|
|
}
|
|
} else if (window.parent.KeFu.window_is_show) {
|
|
window.parent.KeFu.toggle_window('hide');
|
|
}
|
|
|
|
if (!window.parent.KeFu.window_is_show) {
|
|
window.parent.KeFu.toggle_window('show');
|
|
}
|
|
return ;
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
require.config({
|
|
paths: {
|
|
'kefu': '../addons/kefu/js/kefu'
|
|
},
|
|
shim: {
|
|
'kefu': {
|
|
deps: ['css!../addons/kefu/css/kefu_default.css'],
|
|
exports: 'KeFu'
|
|
}
|
|
}
|
|
});
|
|
|
|
require(['kefu'], function (KeFu) {
|
|
KeFu.initialize(document.domain, 'index');
|
|
});
|
|
}
|
|
} |