Greasy Fork

2-后台

后台

目前为 2023-06-29 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.cloud/scripts/469149/1212764/2-%E5%90%8E%E5%8F%B0.js

//已经显示后台后执行
function sgt_login_bg(){
	切换用户()
	$('#mainPanle').on('DOMNodeInserted',function(e) {
		text=e.target.outerHTML
		//如果检查到了订单管理
		if (text.indexOf('src="/seq/SeqOrderList.aspx"')!=-1 ) {
			var html=$('iframe[src="/seq/SeqOrderList.aspx"]').get(0)//订单管理页面
			html.onload=function(){
				订单管理(true)
			}
			//循环判断是否iframe显示完全
			// t=setInterval(function (){
			// 	var table_list=$('iframe[src="/seq/SeqOrderList.aspx"]').contents().find('#list').eq(0)
			// 	if (table_list.length!=0){
			// 		window.clearInterval(t)
			// 		订单管理(true)
			// 	}
			// },500);
		}
	});
}