抖音小店准备阶段

This commit is contained in:
wule committed 2025-12-26 09:53:29 +08:00
1 parent 9e0a3fc10c
commit 17e4dc4a3c
61 files changed
+5154 -1505

No files matched your search

+24 -9
View File
@@ -85,15 +85,29 @@ namespace TemuKJD.KJDForms.ProductForms
private void TemuAdsForm_VisibleChanged(object sender, EventArgs e)
{
if (Visible == true)
RefreshShop();
FiltShop();
}
private void btnRefreshShop_Click(object sender, EventArgs e)
{
RefreshShop();
pbShopLoading.Visible = true;
Task.Run(() =>
{
ShopListForm.UpdateShop();
Invoke(new Action(() =>
{
FiltShop();
pbShopLoading.Visible = false;
}));
});
}
private void RefreshShop()
private void btnSearchShop_Click(object sender, EventArgs e)
{
FiltShop();
}
private void FiltShop()
{
// 店铺Id
var selectIds = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
@@ -228,7 +242,7 @@ namespace TemuKJD.KJDForms.ProductForms
ShopLoginForm shopLoginForm = new ShopLoginForm(shop);
shopLoginForm.openType = EnumOpenType.login;
shopLoginForm.ShowDialog();
RefreshShop();
FiltShop();
}
}
break;
@@ -247,7 +261,7 @@ namespace TemuKJD.KJDForms.ProductForms
shopLoginForm.openType = EnumOpenType.login;
shopLoginForm.IsAdsLogin = true;
shopLoginForm.ShowDialog();
RefreshShop();
FiltShop();
}
break;
}
@@ -262,8 +276,8 @@ namespace TemuKJD.KJDForms.ProductForms
BaseMsgForm.ShowError("请选中店铺!");
return;
}
ShopListForm.Instance.CheckShopAdsLogin(shopIds, pbLoading2, statusBar);
this.RefreshShop();
ShopListForm.Instance.CheckShopAdsLogin(shopIds, pbShopLoading, statusBar);
this.FiltShop();
}
public static string getAdsGoodsList(ShopLoginInfo shop, int page = 1, int pageSize = 20)
@@ -740,7 +754,7 @@ namespace TemuKJD.KJDForms.ProductForms
if(!string.IsNullOrEmpty(error))
{
BaseMsgForm.ShowError(error);
this.RefreshShop();
this.FiltShop();
}
lstWareHouse.AddRange(wareHouses);
@@ -1067,7 +1081,7 @@ namespace TemuKJD.KJDForms.ProductForms
if (!string.IsNullOrEmpty(error))
{
BaseMsgForm.ShowError(error);
this.RefreshShop();
this.FiltShop();
}
lstWareHouse.AddRange(wareHouses);
@@ -2388,6 +2402,7 @@ namespace TemuKJD.KJDForms.ProductForms
private void btnEmpty_Click(object sender, EventArgs e)
{
txtNotes.Text = txtShopId.Text = txtShopName.Text = "";
FiltShop();
}
private void panelEx1_Click(object sender, EventArgs e)