api接口上货
This commit is contained in:
1 parent
afaabea1fa
commit
50ae0c3ce4
24 files changed
+511
-200
No files matched your search
+8
-24
@@ -31,20 +31,12 @@
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("超级店铺管理");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("超级用户管理");
|
||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PDD产品库");
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("SKU替换图");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("选品加价管理");
|
||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("认领待上传");
|
||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("库存上传");
|
||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("商品核价");
|
||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
|
||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("厂家商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("超级权限管理", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1,
|
||||
treeNode2,
|
||||
treeNode3,
|
||||
treeNode4,
|
||||
treeNode5,
|
||||
treeNode6,
|
||||
treeNode7,
|
||||
treeNode8});
|
||||
treeNode4});
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -141,20 +133,12 @@
|
||||
treeNode2.Text = "超级用户管理";
|
||||
treeNode3.Name = "PDD产品库";
|
||||
treeNode3.Text = "PDD产品库";
|
||||
treeNode4.Name = "SKU替换图";
|
||||
treeNode4.Text = "SKU替换图";
|
||||
treeNode5.Name = "选品加价管理";
|
||||
treeNode5.Text = "选品加价管理";
|
||||
treeNode6.Name = "认领待上传";
|
||||
treeNode6.Text = "认领待上传";
|
||||
treeNode7.Name = "库存上传";
|
||||
treeNode7.Text = "库存上传";
|
||||
treeNode8.Name = "商品核价";
|
||||
treeNode8.Text = "商品核价";
|
||||
treeNode9.Name = "超级权限管理";
|
||||
treeNode9.Text = "超级权限管理";
|
||||
treeNode4.Name = "厂家商品采集";
|
||||
treeNode4.Text = "厂家商品采集";
|
||||
treeNode5.Name = "超级权限管理";
|
||||
treeNode5.Text = "超级权限管理";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode9});
|
||||
treeNode5});
|
||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||
this.tv.Size = new System.Drawing.Size(140, 446);
|
||||
this.tv.TabIndex = 1;
|
||||
|
||||
@@ -11,6 +11,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.PDDForms.ProductSelectForms;
|
||||
using TemuKJD.ToolForms;
|
||||
|
||||
namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
@@ -19,7 +20,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
public Lazy<WXAdminAccountForm> adminAccountForm = new Lazy<WXAdminAccountForm>();
|
||||
public Lazy<WXAdminShopListForm> adminShopForm = new Lazy<WXAdminShopListForm>();
|
||||
public Lazy<PDDDBProdListForm> pddDbProdListForm = new Lazy<PDDDBProdListForm>();
|
||||
//public Lazy<WXDBProdImgListForm> dbProdImgListForm = new Lazy<WXDBProdImgListForm>();
|
||||
public Lazy<GetJuShuitanProdForm> getJuShuitanProdForm = new Lazy<GetJuShuitanProdForm>();
|
||||
|
||||
public WXAdminForm()
|
||||
{
|
||||
@@ -66,24 +67,24 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
if (e.Node.Parent == null) return;
|
||||
//new Thread(() =>
|
||||
//{
|
||||
//Thread.Sleep(200);
|
||||
//Invoke(new Action(() =>
|
||||
//{
|
||||
switch (e.Node.Name)
|
||||
{
|
||||
case "超级用户管理":
|
||||
SetForm(adminAccountForm.Value);
|
||||
break;
|
||||
case "超级店铺管理":
|
||||
SetForm(adminShopForm.Value);
|
||||
break;
|
||||
case "PDD产品库":
|
||||
SetForm(pddDbProdListForm.Value);
|
||||
break;
|
||||
//case "SKU替换图":
|
||||
// SetForm(dbProdImgListForm.Value);
|
||||
// break;
|
||||
}
|
||||
//Thread.Sleep(200);
|
||||
//Invoke(new Action(() =>
|
||||
//{
|
||||
switch (e.Node.Name)
|
||||
{
|
||||
case "超级用户管理":
|
||||
SetForm(adminAccountForm.Value);
|
||||
break;
|
||||
case "超级店铺管理":
|
||||
SetForm(adminShopForm.Value);
|
||||
break;
|
||||
case "PDD产品库":
|
||||
SetForm(pddDbProdListForm.Value);
|
||||
break;
|
||||
case "厂家商品采集":
|
||||
SetForm(getJuShuitanProdForm.Value);
|
||||
break;
|
||||
}
|
||||
//}));
|
||||
//}).Start();
|
||||
}
|
||||
|
||||
+13
-1
@@ -87,6 +87,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.colShopOperate = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colRelogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colRelogin2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colBuyApi = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colMultiLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colBuyApiAuth = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
@@ -543,6 +544,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.colShopOperate,
|
||||
this.colRelogin,
|
||||
this.colRelogin2,
|
||||
this.colBuyApi,
|
||||
this.colMultiLogin,
|
||||
this.colApiAuth,
|
||||
this.colBuyApiAuth,
|
||||
@@ -743,7 +745,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
//
|
||||
// colRelogin
|
||||
//
|
||||
this.colRelogin.FillWeight = 40F;
|
||||
this.colRelogin.FillWeight = 46F;
|
||||
this.colRelogin.HeaderText = "登录";
|
||||
this.colRelogin.Name = "colRelogin";
|
||||
this.colRelogin.ReadOnly = true;
|
||||
@@ -758,6 +760,15 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.colRelogin2.ReadOnly = true;
|
||||
this.colRelogin2.Visible = false;
|
||||
//
|
||||
// colBuyApi
|
||||
//
|
||||
this.colBuyApi.FillWeight = 46F;
|
||||
this.colBuyApi.HeaderText = "API购买";
|
||||
this.colBuyApi.Name = "colBuyApi";
|
||||
this.colBuyApi.ReadOnly = true;
|
||||
this.colBuyApi.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colBuyApi.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// colMultiLogin
|
||||
//
|
||||
this.colMultiLogin.FillWeight = 52F;
|
||||
@@ -931,6 +942,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colShopOperate;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colRelogin;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRelogin2;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colBuyApi;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colMultiLogin;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colApiAuth;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colBuyApiAuth;
|
||||
|
||||
@@ -130,6 +130,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
"检测",
|
||||
string.IsNullOrWhiteSpace(shop.LoginStatus) ? "未登录" : shop.LoginStatus.Trim(),
|
||||
string.IsNullOrWhiteSpace(shop.LoginStatus2) ? "国际版未登录" : shop.LoginStatus2.Trim(),
|
||||
"购买",
|
||||
"多重登录",
|
||||
shop.ApiAuthStatus,
|
||||
shop.BuyApiAuth.ApiAuthStatus,
|
||||
@@ -232,6 +233,15 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
}
|
||||
IsOperate = false;
|
||||
break;
|
||||
case "API购买":
|
||||
{
|
||||
WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.manage;
|
||||
shopLoginForm.WindowState = FormWindowState.Maximized;
|
||||
shopLoginForm.InitUrl = "https://store.weixin.qq.com/shop/servicemarket/detail?serviceId=3984039898079707139";
|
||||
shopLoginForm.Show();
|
||||
}
|
||||
break;
|
||||
case "复制Cookie":
|
||||
List<CefSharp.Cookie> cooks = null;
|
||||
try { cooks = JsonHelper.DeserializeJsonToList<CefSharp.Cookie>(shop.Cookies); } catch (Exception ex) { }
|
||||
|
||||
@@ -177,6 +177,9 @@
|
||||
<metadata name="colRelogin2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colBuyApi.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colMultiLogin.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
+33
-13
@@ -45,9 +45,10 @@
|
||||
this.btnReload = new TemuKJD.UserControls.ButtonEx();
|
||||
this.chkCloseAfterLogin = new DevComponents.DotNetBar.Controls.CheckBoxX();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.txtAddress = new System.Windows.Forms.TextBox();
|
||||
this.btnNext = new System.Windows.Forms.Button();
|
||||
this.btnPrev = new System.Windows.Forms.Button();
|
||||
this.txtAddress = new System.Windows.Forms.TextBox();
|
||||
this.btnOpenOrder = new TemuKJD.UserControls.ButtonEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -76,6 +77,7 @@
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.BackColor = System.Drawing.Color.White;
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnOpenOrder);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnLoginAgain);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.label1);
|
||||
@@ -87,7 +89,7 @@
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnReload);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.chkCloseAfterLogin);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1438, 736);
|
||||
this.splitContainer1.SplitterDistance = 670;
|
||||
this.splitContainer1.SplitterDistance = 671;
|
||||
this.splitContainer1.SplitterWidth = 3;
|
||||
this.splitContainer1.TabIndex = 4;
|
||||
//
|
||||
@@ -325,17 +327,6 @@
|
||||
this.splitContainer2.SplitterDistance = 26;
|
||||
this.splitContainer2.TabIndex = 5;
|
||||
//
|
||||
// txtAddress
|
||||
//
|
||||
this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtAddress.Location = new System.Drawing.Point(67, 3);
|
||||
this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtAddress.Name = "txtAddress";
|
||||
this.txtAddress.Size = new System.Drawing.Size(1368, 23);
|
||||
this.txtAddress.TabIndex = 7;
|
||||
this.txtAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAddress_KeyDown);
|
||||
//
|
||||
// btnNext
|
||||
//
|
||||
this.btnNext.Location = new System.Drawing.Point(34, 2);
|
||||
@@ -356,6 +347,34 @@
|
||||
this.btnPrev.UseVisualStyleBackColor = true;
|
||||
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
|
||||
//
|
||||
// txtAddress
|
||||
//
|
||||
this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtAddress.Location = new System.Drawing.Point(67, 3);
|
||||
this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtAddress.Name = "txtAddress";
|
||||
this.txtAddress.Size = new System.Drawing.Size(1368, 23);
|
||||
this.txtAddress.TabIndex = 7;
|
||||
this.txtAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAddress_KeyDown);
|
||||
//
|
||||
// btnOpenOrder
|
||||
//
|
||||
this.btnOpenOrder.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.btnOpenOrder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOpenOrder.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOpenOrder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnOpenOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnOpenOrder.ForeColor = System.Drawing.Color.White;
|
||||
this.btnOpenOrder.Location = new System.Drawing.Point(648, 19);
|
||||
this.btnOpenOrder.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnOpenOrder.Name = "btnOpenOrder";
|
||||
this.btnOpenOrder.Size = new System.Drawing.Size(143, 25);
|
||||
this.btnOpenOrder.TabIndex = 465;
|
||||
this.btnOpenOrder.Text = "登录订单系统";
|
||||
this.btnOpenOrder.UseVisualStyleBackColor = false;
|
||||
this.btnOpenOrder.Click += new System.EventHandler(this.btnOpenOrder_Click);
|
||||
//
|
||||
// WXAdminShopLoginForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -406,5 +425,6 @@
|
||||
private DevComponents.DotNetBar.PanelEx btnDel;
|
||||
private System.Windows.Forms.Button btnNext;
|
||||
private System.Windows.Forms.Button btnPrev;
|
||||
public UserControls.ButtonEx btnOpenOrder;
|
||||
}
|
||||
}
|
||||
@@ -909,5 +909,15 @@ function getElementWithText(sText)
|
||||
{
|
||||
cefWebBrowser.Forward();
|
||||
}
|
||||
|
||||
private void btnOpenOrder_Click(object sender, EventArgs e)
|
||||
{
|
||||
WXAdminShopLoginForm shopLoginForm = new WXAdminShopLoginForm(shop);
|
||||
shopLoginForm.openType = EnumOpenType.manage;
|
||||
shopLoginForm.WindowState = FormWindowState.Maximized;
|
||||
shopLoginForm.InitUrl = "https://po.e57.cn/login?redirect=%2Findex";
|
||||
shopLoginForm.btnOpenOrder.Visible = false;
|
||||
shopLoginForm.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user