尺码表信息传递到草稿箱 选品相关功能优化
This commit is contained in:
1 parent
40bf0623ca
commit
39cfc15188
34 files changed
+5562
-1581
No files matched your search
+20
-8
@@ -76,6 +76,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colMultiLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colBuyApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colImportCookie = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colUpload = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colEdit = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
@@ -400,6 +401,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colMultiLogin,
|
||||
this.colApiAuth,
|
||||
this.colBuyApiAuth,
|
||||
this.colImportCookie,
|
||||
this.colCopyCookies,
|
||||
this.colUpload,
|
||||
this.colEdit,
|
||||
@@ -461,14 +463,14 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colLoginName
|
||||
//
|
||||
this.colLoginName.FillWeight = 69.426F;
|
||||
this.colLoginName.FillWeight = 69.42599F;
|
||||
this.colLoginName.HeaderText = "店铺登录号码";
|
||||
this.colLoginName.Name = "colLoginName";
|
||||
this.colLoginName.ReadOnly = true;
|
||||
//
|
||||
// colShopId
|
||||
//
|
||||
this.colShopId.FillWeight = 69.426F;
|
||||
this.colShopId.FillWeight = 69.42599F;
|
||||
this.colShopId.HeaderText = "店铺Id";
|
||||
this.colShopId.Name = "colShopId";
|
||||
this.colShopId.ReadOnly = true;
|
||||
@@ -508,7 +510,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colGroupName
|
||||
//
|
||||
this.colGroupName.FillWeight = 69.426F;
|
||||
this.colGroupName.FillWeight = 69.42599F;
|
||||
this.colGroupName.HeaderText = "店铺分组";
|
||||
this.colGroupName.Name = "colGroupName";
|
||||
this.colGroupName.ReadOnly = true;
|
||||
@@ -516,7 +518,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colUploadAccount
|
||||
//
|
||||
this.colUploadAccount.FillWeight = 69.426F;
|
||||
this.colUploadAccount.FillWeight = 69.42599F;
|
||||
this.colUploadAccount.HeaderText = "上货账户";
|
||||
this.colUploadAccount.Name = "colUploadAccount";
|
||||
this.colUploadAccount.ReadOnly = true;
|
||||
@@ -524,7 +526,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colBuyAccount
|
||||
//
|
||||
this.colBuyAccount.FillWeight = 69.426F;
|
||||
this.colBuyAccount.FillWeight = 69.42599F;
|
||||
this.colBuyAccount.HeaderText = "采购账户";
|
||||
this.colBuyAccount.Name = "colBuyAccount";
|
||||
this.colBuyAccount.ReadOnly = true;
|
||||
@@ -532,7 +534,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colChatAccount
|
||||
//
|
||||
this.colChatAccount.FillWeight = 69.426F;
|
||||
this.colChatAccount.FillWeight = 69.42599F;
|
||||
this.colChatAccount.HeaderText = "客服账户";
|
||||
this.colChatAccount.Name = "colChatAccount";
|
||||
this.colChatAccount.ReadOnly = true;
|
||||
@@ -585,7 +587,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colApiAuth
|
||||
//
|
||||
this.colApiAuth.FillWeight = 69.426F;
|
||||
this.colApiAuth.FillWeight = 69.42599F;
|
||||
this.colApiAuth.HeaderText = "上货授权";
|
||||
this.colApiAuth.Name = "colApiAuth";
|
||||
this.colApiAuth.ReadOnly = true;
|
||||
@@ -595,7 +597,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
//
|
||||
// colBuyApiAuth
|
||||
//
|
||||
this.colBuyApiAuth.FillWeight = 69.426F;
|
||||
this.colBuyApiAuth.FillWeight = 69.42599F;
|
||||
this.colBuyApiAuth.HeaderText = "拍单授权";
|
||||
this.colBuyApiAuth.Name = "colBuyApiAuth";
|
||||
this.colBuyApiAuth.ReadOnly = true;
|
||||
@@ -603,6 +605,15 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
this.colBuyApiAuth.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colBuyApiAuth.Visible = false;
|
||||
//
|
||||
// colImportCookie
|
||||
//
|
||||
this.colImportCookie.FillWeight = 70F;
|
||||
this.colImportCookie.HeaderText = "导入Cookie";
|
||||
this.colImportCookie.Name = "colImportCookie";
|
||||
this.colImportCookie.ReadOnly = true;
|
||||
this.colImportCookie.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colImportCookie.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// colCopyCookies
|
||||
//
|
||||
this.colCopyCookies.FillWeight = 70F;
|
||||
@@ -715,6 +726,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colMultiLogin;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colApiAuth;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colBuyApiAuth;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colImportCookie;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colUpload;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colEdit;
|
||||
|
||||
@@ -99,6 +99,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
"多重登录",
|
||||
shop.ApiAuthStatus,
|
||||
shop.BuyApiAuth.ApiAuthStatus,
|
||||
"导入Cookies",
|
||||
"复制Cookies",
|
||||
"上传",
|
||||
"编辑",
|
||||
@@ -206,6 +207,11 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
Clipboard.SetDataObject(cookJs);
|
||||
BaseMsgForm.ShowInfo("复制成功");
|
||||
break;
|
||||
case "导入Cookie":
|
||||
ShopUpdateCookieForm updateCookieForm = new ShopUpdateCookieForm(shop);
|
||||
updateCookieForm.SaveComplete += UpdateCookieForm_SaveComplete;
|
||||
updateCookieForm.ShowDialog();
|
||||
break;
|
||||
case "删除":
|
||||
if (BaseMsgForm.ShowConfirm("确定删除店铺吗?删除后不可恢复!").DialogResult == DialogResult.Cancel)
|
||||
return;
|
||||
@@ -239,6 +245,16 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateCookieForm_SaveComplete(object obj)
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
//CheckShopListLogin(new string[] { (obj as DouShopLoginInfo).LoginName });
|
||||
//RefreshDataGridView(false);
|
||||
SearchShop(this.ucSplitPage1.CurrentPage);
|
||||
});
|
||||
}
|
||||
|
||||
private void EditForm_SaveCompleteWithDescribe(object obj, object isAdd)
|
||||
{
|
||||
var shopInfo = obj as ShopLoginInfo;
|
||||
@@ -437,9 +453,8 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在检测...";
|
||||
this.statusBar.pgbTaskProgress.Value = 0;
|
||||
this.statusBar.pgbTaskProgress.Maximum = shopNames.Length;
|
||||
this.statusBar.pgbTaskProgress.Text = "0" + "/" + shopNames.Length;
|
||||
this.statusBar.UpdateProgressBar(0);
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -174,6 +174,9 @@
|
||||
<metadata name="colBuyApiAuth.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colImportCookie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colCopyCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
public EnumOpenType openType = EnumOpenType.manage;
|
||||
public bool isMultiLogin = false;
|
||||
public string MultiLoginCookieName = "";
|
||||
public string InitUrl = "";
|
||||
private string shopCookieHead = "kuajingmaihuo.com";
|
||||
private string shopLoginUrl = "http://seller.kuajingmaihuo.com/login";
|
||||
private string shopMainUrl = "https://seller.kuajingmaihuo.com";
|
||||
@@ -251,7 +252,10 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
if (cefWebBrowser == null)
|
||||
{
|
||||
//cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser("about:blank", false);
|
||||
cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser(shopMainUrl, false);
|
||||
if (!string.IsNullOrEmpty(InitUrl))
|
||||
cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser(InitUrl, false);
|
||||
else
|
||||
cefWebBrowser = CEFBrowser.CreateChromiumWebBrowser(shopMainUrl, false);
|
||||
CustomResourceRequestHandlerLocal resourceRequestHandler = new CustomResourceRequestHandlerLocal();
|
||||
resourceRequestHandler.ResourceLoadCompleteEvent += RequestHandler_ResourceLoadComplete;
|
||||
cefWebBrowser.RequestHandler = new CustomRequestHandler(resourceRequestHandler);
|
||||
|
||||
@@ -103,7 +103,9 @@ namespace TemuKJD.KJDForms.AdminForms
|
||||
html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
{
|
||||
OnInfoReceived("选品商品保存失败!请检查网络连接");
|
||||
string msg = "选品商品保存失败!请检查网络连接:" +
|
||||
BaseRegex.GetStringJson(ref html, "msg").Replace("'", "\\'").Replace("\"","\\\"");
|
||||
OnInfoReceived(msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user