//关闭面板
    public static void Close(string name)
    {
        BasePanel panel = panels[name];

        //没有打开
        if (panel == null)
        {
            return;
        }
        panel.CloseAnimation();
    }