修改程序逻辑,准备批量打包

This commit is contained in:
wule committed 2026-05-28 17:28:08 +08:00
1 parent aab73b978f
commit 55528e5109
30 files changed
+297 -150

No files matched your search

+22 -26
View File
@@ -57,7 +57,7 @@ namespace TemuKJD
public static int ProcessCount = 0;
public static MainForm instance;
public string LoginType;
//public string LoginType;
private Point mouseOffset;//记录鼠标指针的坐标
private bool isMouseDown;//记录鼠标左键是否按下
public delegate void delegateShow(Form nf);
@@ -146,30 +146,26 @@ namespace TemuKJD
//SetFormRoundRectRgn(this, 7);
}
public MainForm(string loginType = "Temu")
public MainForm()
{
InitializeComponent();
LoginType = loginType;
if (loginType == "Pdd")
{
BaseClass.MainPath = "binxixi";
if (BaseClass.MainPath == "29pdd")
{
GlobalConfig.MainColor = GlobalConfig.PddMainColor;
GlobalConfig.MainColorLight = GlobalConfig.PddMainColorLight;
GlobalConfig.BorderColor = GlobalConfig.PddBorderColor;
this.pnlJit.Visible = false;
}
else if (loginType == "Wx")
else if (BaseClass.MainPath == "29wx")
{
BaseClass.MainPath = "weixin";
GlobalConfig.MainColor = GlobalConfig.WeiXinMainColor;
GlobalConfig.MainColorLight = GlobalConfig.WeiXinMainColorLight;
GlobalConfig.BorderColor = GlobalConfig.WeiXinBorderColor;
this.pnlJit.Visible = false;
}
else if (loginType == "Dy")
else if (BaseClass.MainPath == "29dy")
{
BaseClass.MainPath = "douyin";
this.pnlJit.Visible = false;
}
@@ -230,7 +226,7 @@ namespace TemuKJD
private void MainForm_Load(object sender, EventArgs e)
{
if (BaseClass.MainPath == "binxixi")
if (BaseClass.MainPath == "29pdd")
{
BaseClass.Ico = Icon.FromHandle(Properties.Resources.pdd_icon.GetHicon());
BaseClass.LogoImage = Properties.Resources.pdd_logo;
@@ -240,7 +236,7 @@ namespace TemuKJD
BaseClass.ToolName = "29供应链 - 多多管理工具";
}
if (BaseClass.MainPath == "weixin")
if (BaseClass.MainPath == "29wx")
{
BaseClass.Ico = Icon.FromHandle(Properties.Resources.weixin_icon.GetHicon());
BaseClass.LogoImage = Properties.Resources.weixin_logo;
@@ -862,7 +858,7 @@ namespace TemuKJD
}
ShowMainPanel(shopForm as ShopForm, sender as Panel);
}
else if (BaseClass.MainPath == "binxixi")
else if (BaseClass.MainPath == "29pdd")
{
if (shopForm == null)
{
@@ -870,7 +866,7 @@ namespace TemuKJD
}
ShowMainPanel(shopForm as A_PddShopForm, sender as Panel);
}
else if (BaseClass.MainPath == "weixin")
else if (BaseClass.MainPath == "29wx")
{
if (shopForm == null)
{
@@ -891,15 +887,7 @@ namespace TemuKJD
}
ShowMainPanel(adminForm as AdminForm, sender as Panel);
}
else if (BaseClass.MainPath == "binxixi")
{
if (adminForm == null)
{
adminForm = new PDDAdminForm();
}
ShowMainPanel(adminForm as PDDAdminForm, sender as Panel);
}
else if (BaseClass.MainPath == "douyin")
else if (BaseClass.MainPath == "29dy")
{
//if (adminForm == null)
//{
@@ -907,7 +895,15 @@ namespace TemuKJD
//}
//ShowMainPanel(adminForm as PDDAdminForm, sender as Panel);
}
else if (BaseClass.MainPath == "weixin")
else if (BaseClass.MainPath == "29pdd")
{
if (adminForm == null)
{
adminForm = new PDDAdminForm();
}
ShowMainPanel(adminForm as PDDAdminForm, sender as Panel);
}
else if (BaseClass.MainPath == "29wx")
{
if (adminForm == null)
{
@@ -928,7 +924,7 @@ namespace TemuKJD
}
ShowMainPanel(uploadForm as ProductForm, sender as Panel);
}
else if (BaseClass.MainPath == "binxixi")
else if (BaseClass.MainPath == "29pdd")
{
if (uploadForm == null)
{
@@ -936,7 +932,7 @@ namespace TemuKJD
}
ShowMainPanel(uploadForm as PDDProductForm, sender as Panel);
}
else if (BaseClass.MainPath == "weixin")
else if (BaseClass.MainPath == "29wx")
{
if (uploadForm == null)
{