拼多多界面优化 评分考核权限设置
This commit is contained in:
1 parent
ce23b0a49a
commit
05553a3ba3
46 files changed
+1269
-1170
No files matched your search
+45
-33
@@ -30,10 +30,11 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer5 = new System.Windows.Forms.SplitContainer();
|
||||
this.chkChanceProdCollect = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkShopPoints = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkWXShowProdGetFromType = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
@@ -86,7 +87,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.editColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.deleteColumn = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.btnExportShopErp = new DevComponents.DotNetBar.PanelEx();
|
||||
this.chkChanceProdCollect = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkShopOptimize = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer5)).BeginInit();
|
||||
this.splitContainer5.Panel1.SuspendLayout();
|
||||
this.splitContainer5.Panel2.SuspendLayout();
|
||||
@@ -109,6 +110,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
// splitContainer5.Panel1
|
||||
//
|
||||
this.splitContainer5.Panel1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.splitContainer5.Panel1.Controls.Add(this.chkShopOptimize);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.chkChanceProdCollect);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.chkShopPoints);
|
||||
this.splitContainer5.Panel1.Controls.Add(this.chkWXShowProdGetFromType);
|
||||
@@ -154,9 +156,18 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.splitContainer5.SplitterWidth = 1;
|
||||
this.splitContainer5.TabIndex = 3;
|
||||
//
|
||||
// chkChanceProdCollect
|
||||
//
|
||||
this.chkChanceProdCollect.Location = new System.Drawing.Point(192, 422);
|
||||
this.chkChanceProdCollect.Name = "chkChanceProdCollect";
|
||||
this.chkChanceProdCollect.Size = new System.Drawing.Size(96, 21);
|
||||
this.chkChanceProdCollect.TabIndex = 812;
|
||||
this.chkChanceProdCollect.Text = "机会商品采集";
|
||||
this.chkChanceProdCollect.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkShopPoints
|
||||
//
|
||||
this.chkShopPoints.Location = new System.Drawing.Point(59, 518);
|
||||
this.chkShopPoints.Location = new System.Drawing.Point(59, 524);
|
||||
this.chkShopPoints.Name = "chkShopPoints";
|
||||
this.chkShopPoints.Size = new System.Drawing.Size(68, 21);
|
||||
this.chkShopPoints.TabIndex = 811;
|
||||
@@ -301,7 +312,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.ForeColor = System.Drawing.SystemColors.ButtonShadow;
|
||||
this.label1.Location = new System.Drawing.Point(56, 493);
|
||||
this.label1.Location = new System.Drawing.Point(56, 498);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(212, 17);
|
||||
this.label1.TabIndex = 37;
|
||||
@@ -330,7 +341,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.btnCancel.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnCancel.ForeColor = System.Drawing.Color.White;
|
||||
this.btnCancel.Location = new System.Drawing.Point(59, 455);
|
||||
this.btnCancel.Location = new System.Drawing.Point(59, 460);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(86, 25);
|
||||
this.btnCancel.TabIndex = 35;
|
||||
@@ -346,7 +357,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.btnOpUser.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOpUser.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnOpUser.ForeColor = System.Drawing.Color.White;
|
||||
this.btnOpUser.Location = new System.Drawing.Point(174, 455);
|
||||
this.btnOpUser.Location = new System.Drawing.Point(174, 460);
|
||||
this.btnOpUser.Name = "btnOpUser";
|
||||
this.btnOpUser.Size = new System.Drawing.Size(86, 25);
|
||||
this.btnOpUser.TabIndex = 34;
|
||||
@@ -532,20 +543,20 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
//
|
||||
this.dgvUser.AllowUserToAddRows = false;
|
||||
this.dgvUser.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||
this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.dgvUser.AutoRowNumber = true;
|
||||
this.dgvUser.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvUser.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvUser.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.UserIdColumn,
|
||||
@@ -563,14 +574,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.colAddShop,
|
||||
this.editColumn,
|
||||
this.deleteColumn});
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvUser.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvUser.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvUser.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dgvUser.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
|
||||
this.dgvUser.Location = new System.Drawing.Point(0, 0);
|
||||
@@ -711,14 +722,14 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
this.btnExportShopErp.Visible = false;
|
||||
this.btnExportShopErp.Click += new System.EventHandler(this.btnExportShopErp_Click);
|
||||
//
|
||||
// chkProdCollect
|
||||
// chkShopOptimize
|
||||
//
|
||||
this.chkChanceProdCollect.Location = new System.Drawing.Point(112, 421);
|
||||
this.chkChanceProdCollect.Name = "chkProdCollect";
|
||||
this.chkChanceProdCollect.Size = new System.Drawing.Size(96, 21);
|
||||
this.chkChanceProdCollect.TabIndex = 812;
|
||||
this.chkChanceProdCollect.Text = "机会商品采集";
|
||||
this.chkChanceProdCollect.UseVisualStyleBackColor = true;
|
||||
this.chkShopOptimize.Location = new System.Drawing.Point(112, 422);
|
||||
this.chkShopOptimize.Name = "chkShopOptimize";
|
||||
this.chkShopOptimize.Size = new System.Drawing.Size(68, 21);
|
||||
this.chkShopOptimize.TabIndex = 813;
|
||||
this.chkShopOptimize.Text = "评分考核";
|
||||
this.chkShopOptimize.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// WXAdminAccountForm
|
||||
//
|
||||
@@ -801,5 +812,6 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn deleteColumn;
|
||||
private UserComponent.UcCheckBox chkShopPoints;
|
||||
private UserComponent.UcCheckBox chkChanceProdCollect;
|
||||
private UserComponent.UcCheckBox chkShopOptimize;
|
||||
}
|
||||
}
|
||||
@@ -83,6 +83,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
authority += "货源选择,";
|
||||
if (chkChanceProdCollect.Checked)
|
||||
authority += "机会商品采集,";
|
||||
if (chkShopOptimize.Checked)
|
||||
authority += "评分考核,";
|
||||
if (chkShopPoints.Checked)
|
||||
authority += "积分用户,";
|
||||
data.Append("&authority=" + authority.Trim(','));
|
||||
@@ -194,6 +196,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkWXComplateProd.Checked = false;
|
||||
chkWXShowProdGetFromType.Checked = false;
|
||||
chkChanceProdCollect.Checked = false;
|
||||
chkShopOptimize.Checked = false;
|
||||
chkShopPoints.Checked = false;
|
||||
}
|
||||
|
||||
@@ -229,6 +232,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkWXComplateProd.Checked = authority.Contains(chkWXComplateProd.Text);
|
||||
chkShopPoints.Checked = authority.Contains(chkShopPoints.Text);
|
||||
chkChanceProdCollect.Checked = authority.Contains(chkChanceProdCollect.Text);
|
||||
chkShopOptimize.Checked = authority.Contains(chkShopOptimize.Text);
|
||||
chkWXShowProdGetFromType.Checked = authority.Contains(chkWXShowProdGetFromType.Text);
|
||||
}
|
||||
if (columname == "删除")
|
||||
|
||||
+46
-46
@@ -32,13 +32,13 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.ucGroupBoxEx2 = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||
this.chkRandomCompanyProd = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
@@ -75,7 +75,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnClearDgv = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.pnlStep = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.fPnlPriceRule = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.ucAddPrice1 = new TemuKJD.PDDForms.ProductSelectForms.UcAddPrice();
|
||||
@@ -192,7 +192,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.ucGroupBoxEx2.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.pnlStep.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.fPnlPriceRule.SuspendLayout();
|
||||
this.ucGroupBoxEx4.SuspendLayout();
|
||||
@@ -278,7 +278,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucGroupBoxEx2.Controls.Add(this.btnClearDgv);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label14);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.label15);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.panel4);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.pnlStep);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.lblNewAddPrice);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtAddMorePrice);
|
||||
this.ucGroupBoxEx2.Controls.Add(this.txtAddTimes);
|
||||
@@ -717,16 +717,16 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.label15.TabIndex = 588;
|
||||
this.label15.Text = "元";
|
||||
//
|
||||
// panel4
|
||||
// pnlStep
|
||||
//
|
||||
this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
this.pnlStep.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panel4.Controls.Add(this.panel3);
|
||||
this.panel4.Location = new System.Drawing.Point(76, 17);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(350, 114);
|
||||
this.panel4.TabIndex = 577;
|
||||
this.pnlStep.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlStep.Controls.Add(this.panel3);
|
||||
this.pnlStep.Location = new System.Drawing.Point(76, 17);
|
||||
this.pnlStep.Name = "pnlStep";
|
||||
this.pnlStep.Size = new System.Drawing.Size(350, 114);
|
||||
this.pnlStep.TabIndex = 577;
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
@@ -1773,19 +1773,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.dgvShop.AutoRowNumber = true;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -2005,19 +2005,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvSelectProduct.AllowUserToAddRows = false;
|
||||
this.dgvSelectProduct.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvSelectProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.dgvSelectProduct.AutoRowNumber = true;
|
||||
this.dgvSelectProduct.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvSelectProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvSelectProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.dgvSelectProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvSelectProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colCheck,
|
||||
@@ -2078,8 +2078,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colSupplierName
|
||||
//
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colSupplierName.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.colSupplierName.Frozen = true;
|
||||
this.colSupplierName.HeaderText = "店铺名称";
|
||||
this.colSupplierName.Name = "colSupplierName";
|
||||
@@ -2157,8 +2157,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colProductName
|
||||
//
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductName.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colProductName.DefaultCellStyle = dataGridViewCellStyle13;
|
||||
this.colProductName.HeaderText = "商品标题";
|
||||
this.colProductName.Name = "colProductName";
|
||||
this.colProductName.ReadOnly = true;
|
||||
@@ -2218,8 +2218,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colAddTime
|
||||
//
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle14;
|
||||
this.colAddTime.HeaderText = "上传时间";
|
||||
this.colAddTime.Name = "colAddTime";
|
||||
this.colAddTime.ReadOnly = true;
|
||||
@@ -2341,7 +2341,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.ucGroupBoxEx2.ResumeLayout(false);
|
||||
this.ucGroupBoxEx2.PerformLayout();
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.pnlStep.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel3.PerformLayout();
|
||||
this.fPnlPriceRule.ResumeLayout(false);
|
||||
@@ -2400,7 +2400,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private DevComponents.DotNetBar.PanelEx btnClearUpload;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.Label lblNewAddPrice;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Panel pnlStep;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.TextBox txtSinglePriceAdd;
|
||||
private System.Windows.Forms.Label label14;
|
||||
|
||||
+26
-26
@@ -61,7 +61,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.chkCatBoundLessThan = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.chkCatBoundMoreThan = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pnlEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
|
||||
this.cmbCat3 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.cmbCat2 = new TemuKJD.UserComponent.UcComboBoxMutiSelect();
|
||||
@@ -279,7 +279,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkCatBoundLessThan, 4, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.chkCatBoundMoreThan, 2, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 10, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.pnlEmpty, 11, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnEmpty, 11, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cmbCat3, 7, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label17, 6, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cmbCat2, 5, 0);
|
||||
@@ -387,30 +387,30 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnSearch.Text = "搜索";
|
||||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// pnlEmpty
|
||||
// btnEmpty
|
||||
//
|
||||
this.pnlEmpty.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(1142, 5);
|
||||
this.pnlEmpty.Name = "pnlEmpty";
|
||||
this.pnlEmpty.Size = new System.Drawing.Size(46, 25);
|
||||
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.pnlEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.pnlEmpty.Style.GradientAngle = 90;
|
||||
this.pnlEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.pnlEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.pnlEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.pnlEmpty.TabIndex = 431;
|
||||
this.pnlEmpty.Text = "清空";
|
||||
this.pnlEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
|
||||
this.btnEmpty.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.btnEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnEmpty.Location = new System.Drawing.Point(1142, 5);
|
||||
this.btnEmpty.Name = "btnEmpty";
|
||||
this.btnEmpty.Size = new System.Drawing.Size(46, 25);
|
||||
this.btnEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnEmpty.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnEmpty.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.btnEmpty.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.btnEmpty.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnEmpty.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.btnEmpty.Style.GradientAngle = 90;
|
||||
this.btnEmpty.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnEmpty.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnEmpty.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnEmpty.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnEmpty.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnEmpty.TabIndex = 431;
|
||||
this.btnEmpty.Text = "清空";
|
||||
this.btnEmpty.Click += new System.EventHandler(this.pnlEmpty_Click);
|
||||
//
|
||||
// cmbCat3
|
||||
//
|
||||
@@ -1616,7 +1616,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.TextBox txtSPU;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox txtSKC;
|
||||
private DevComponents.DotNetBar.PanelEx pnlEmpty;
|
||||
private DevComponents.DotNetBar.PanelEx btnEmpty;
|
||||
private System.Windows.Forms.TextBox txtExtCode;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox txtProdName;
|
||||
|
||||
@@ -41,15 +41,19 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
|
||||
List<string> hideName = new List<string>() { "店铺地址管理", "评分考核", "子账号管理", "高级运费模板", "运费模板", "素材库管理", "订单金额统计", "工作明细统计", "店铺经营统计1" };
|
||||
|
||||
if (BaseClass.SaLevel == 1)
|
||||
{
|
||||
//hideName.Remove("店铺地址管理");
|
||||
}
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
hideName.Remove("店铺地址管理");
|
||||
hideName.Remove("子账号管理");
|
||||
hideName.Remove("评分考核");
|
||||
}
|
||||
if (BaseClass.SaLevel ==1)
|
||||
if (BaseClass.UserAuthority.Contains("评分考核"))
|
||||
{
|
||||
//hideName.Remove("店铺地址管理");
|
||||
hideName.Remove("评分考核");
|
||||
}
|
||||
|
||||
foreach (var item in hideName)
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
// 获取服务端店铺
|
||||
var serverShopList = WXShopListForm.GetServerShop();
|
||||
GlobalConfig.ShopLoginList.RemoveAll(s => serverShopList.Any(ss => ss.LoginName == s.LoginName && ss.ShopId == s.ShopId));
|
||||
GlobalConfig.ShopLoginList.RemoveAll(s => !serverShopList.Any(ss => ss.LoginName == s.LoginName && ss.ShopId == s.ShopId));
|
||||
foreach (var serverShop in serverShopList)
|
||||
{
|
||||
var localShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginName == serverShop.LoginName && s.ShopId == serverShop.ShopId);
|
||||
|
||||
@@ -522,6 +522,10 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
var shopId = BaseRegex.GetStringJson(ref data, "appid");
|
||||
var nickName = BaseRegex.GetStringJson(ref data, "nickName");
|
||||
var openId = BaseRegex.GetStringJson(ref data, "openid"); // oGu7k7HxmUyOmc1X6VM7GQwS-9cI
|
||||
|
||||
if (shopId.IsNullOrEmpty() || nickName.IsNullOrEmpty() || openId.IsNullOrEmpty())
|
||||
return;
|
||||
|
||||
if (shop != null && shop.ShopId != shopId)
|
||||
{
|
||||
BaseMsgForm.ShowError("cookie与店铺不匹配,请核对店铺!");
|
||||
|
||||
@@ -84,6 +84,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
public int LocationXY = 0;
|
||||
public int LocationSize = 200;
|
||||
|
||||
DateTime nextRefreshTime = DateTime.Now.AddMinutes(30);
|
||||
|
||||
public WxTalkForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -178,9 +180,10 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
Thread.Sleep(100);
|
||||
|
||||
SetMainBrowserUrl(GlobalConfig.ShopLoginList.FirstOrDefault());
|
||||
// 网页初始化
|
||||
LoadShop();
|
||||
RefreshCookie(true);
|
||||
InitOrderForm(); // 加载店铺确认默认店铺后再初始化订单列表读取
|
||||
InitAutoExecute();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var shopNote in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
@@ -205,6 +208,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
try
|
||||
{
|
||||
RefreshCookie(true);
|
||||
LoadShop();
|
||||
}
|
||||
catch (Exception ex) { BaseMsgForm.ShowError("刷新Cookie出错 " + ex.Message); }
|
||||
try
|
||||
@@ -421,7 +425,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
|
||||
orderListForm = new BuyerOrderListForm();
|
||||
orderListForm.TopLevel = false;
|
||||
orderListForm.FormBorderStyle = FormBorderStyle.None;
|
||||
@@ -430,7 +433,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
orderListForm.lblCurrentShop.Tag = currentShop;
|
||||
tabPage3.Controls.Add(orderListForm);
|
||||
orderListForm.Show();
|
||||
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -664,6 +666,19 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
while (shop.Chat?.IsBrowserInitialized != true)
|
||||
{
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
|
||||
if (shop != currentShop || ChatConfig.ChatSettingConfig.IsAutoReply)
|
||||
{
|
||||
if (shop.LoginStatus == "登录成功")
|
||||
shop.Chat.Load("https://store.weixin.qq.com/shop/kf");
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
@@ -1049,134 +1064,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
mainWebBrowser.Load("https://store.weixin.qq.com/shop/home");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 自动回复等
|
||||
/// </summary>
|
||||
public void InitAutoExecute()
|
||||
{
|
||||
//Task.Run(() =>
|
||||
//{
|
||||
// while (true)
|
||||
// {
|
||||
// foreach (var shop in GlobalConfig.DouShopLoginList)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// Thread.Sleep(new Random(DateTime.Now.Millisecond).Next(300, 500));
|
||||
// bool needReLogin = AutoCheckShopLoginStatus(shop);
|
||||
// if (ChatConfig.ChatSettingConfig.IsAutoReLogin && needReLogin)
|
||||
// AutoReLogin(shop);
|
||||
|
||||
// if (shop.LoginStatus != "登录成功")
|
||||
// continue;
|
||||
|
||||
// Thread.Sleep(new Random(DateTime.Now.Millisecond).Next(300, 500));
|
||||
// AutoReConnect(shop);
|
||||
|
||||
// Thread.Sleep(new Random(DateTime.Now.Millisecond).Next(300, 500));
|
||||
// AutoCloseMaskWindow(shop);
|
||||
|
||||
|
||||
// Thread.Sleep(new Random(DateTime.Now.Millisecond).Next(300, 500));
|
||||
// var isNewMessage = AutoGetNewMessage(shop);
|
||||
// while (isNewMessage && ChatConfig.ChatSettingConfig.IsAutoReply)
|
||||
// {
|
||||
// AutoReplyWithJs(shop);
|
||||
// Thread.Sleep(new Random(DateTime.Now.Millisecond).Next(300, 500));
|
||||
// isNewMessage = AutoGetNewMessage(shop);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//});
|
||||
|
||||
//Task.Run(() =>
|
||||
//{
|
||||
// var sleepTime = 1000;
|
||||
// while (true)
|
||||
// {
|
||||
// Thread.Sleep(sleepTime);
|
||||
// var jsStr = "function getVideo() {\r\n" +
|
||||
// " var videos = document.getElementsByTagName('video')\r\n" +
|
||||
// " if (videos && videos.length > 0) {\r\n" +
|
||||
// " var src = videos[0].src;\r\n" +
|
||||
// " videos[0].parentElement.parentElement.click();\r\n" +
|
||||
// " return src;\r\n" +
|
||||
// " //return '';\r\n" +
|
||||
// " }\r\n" +
|
||||
// " return '';\r\n" +
|
||||
// "}" +
|
||||
// "getVideo();\r\n";
|
||||
// if (currentShop?.Chat != null && currentShop.Chat.IsBrowserInitialized)
|
||||
// {
|
||||
// var t = currentShop.Chat.GetMainFrame().EvaluateScriptAsync(jsStr);
|
||||
// t.Wait();
|
||||
// if (!string.IsNullOrEmpty(t.Result?.Result?.ToString()))
|
||||
// {
|
||||
// Invoke(new Action(() =>
|
||||
// {
|
||||
// AllBase.GetHtml.OpenUrl(t.Result.Result.ToString());
|
||||
// }));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//});
|
||||
|
||||
//Task.Run(() =>
|
||||
//{
|
||||
// var sleepTime = 2500;
|
||||
// while (true)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// Thread.Sleep(sleepTime);
|
||||
// var jsStr1 = "function ClosePopWindow() {\r\n" +
|
||||
// " var result = 'no_pop'\r\n" +
|
||||
// " var item = document.getElementsByClassName('anticon-close-circle');\r\n" +
|
||||
// " for(i = 0; i < item.length; i++) {\r\n" +
|
||||
// " item[i].click();\r\n" +
|
||||
// " result = 'success'\r\n" +
|
||||
// " }\r\n" +
|
||||
// " return result;\r\n" +
|
||||
// "}\r\n" +
|
||||
// "ClosePopWindow();\r\n";
|
||||
// var jsStr2 = "function clickPopWindow() {\r\n"
|
||||
// + "var child = document.body.firstElementChild;\r\n"
|
||||
// + "var element1 = null;\r\n"
|
||||
// + " while (child) {\r\n"
|
||||
// + " if (child.innerHTML.indexOf('知道了') >= 0) {\r\n"
|
||||
// + " element1 = child;\r\n"
|
||||
// + " if (child.firstElementChild) {\r\n"
|
||||
// + " child = child.firstElementChild; continue;\r\n"
|
||||
// + " } else break;\r\n"
|
||||
// + " }\r\n"
|
||||
// + " child = child.nextElementSibling;\r\n"
|
||||
// + " }\r\n"
|
||||
// + " if (element1) {\r\n"
|
||||
// + " element1.click(); return 'success';\r\n"
|
||||
// + " } else return 'no_pop';\r\n"
|
||||
// + "}\r\n"
|
||||
// + "clickPopWindow();\r\n";
|
||||
// if (mainWebBrowser.IsBrowserInitialized)
|
||||
// {
|
||||
// var t1 = mainWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr1);
|
||||
// t1.Wait();
|
||||
// var t2 = mainWebBrowser.GetMainFrame().EvaluateScriptAsync(jsStr2);
|
||||
// t2.Wait();
|
||||
// if (t1.Result?.Result?.ToString() == "success" || t2.Result?.Result?.ToString() == "success")
|
||||
// sleepTime = Randomx.GetId(550, 650);
|
||||
// else
|
||||
// sleepTime = Randomx.GetId(2500, 3000);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception ex) { }
|
||||
// }
|
||||
//});
|
||||
}
|
||||
|
||||
private void chkIsAutoReLogin_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
ChatConfig.ChatSettingConfig.IsAutoReLogin = chkIsAutoReLogin.Checked;
|
||||
@@ -1314,7 +1201,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 右键点击
|
||||
private void dgvShop_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
|
||||
{
|
||||
if (e.ColumnIndex < 0 || e.RowIndex < 0)
|
||||
@@ -1371,6 +1258,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}));
|
||||
|
||||
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
|
||||
// 掉线店铺重登校验后刷新网页
|
||||
LoadShop(new List<ShopLoginInfo>() { shop });
|
||||
if (shop.LoginStatus == "登录成功")
|
||||
{
|
||||
@@ -1421,9 +1309,11 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
|
||||
currentShop = shop;
|
||||
orderListForm.lblCurrentShop.Text = currentShop.ShopAccount;
|
||||
orderListForm.lblCurrentShop.Tag = currentShop;
|
||||
|
||||
if (orderListForm != null)
|
||||
{
|
||||
orderListForm.lblCurrentShop.Text = currentShop.ShopAccount;
|
||||
orderListForm.lblCurrentShop.Tag = currentShop;
|
||||
}
|
||||
|
||||
shop.Chat.Dock = DockStyle.Fill;
|
||||
shop.Chat.BringToFront();
|
||||
@@ -1462,13 +1352,18 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
Task.Run(() =>
|
||||
{
|
||||
RefreshCookie();
|
||||
LoadShop();
|
||||
Invoke(new Action(() => { pbLoading.Visible = false; }));
|
||||
});
|
||||
}
|
||||
|
||||
DateTime nextRefreshTime = DateTime.Now;
|
||||
void RefreshCookie(bool isAuto = false)
|
||||
{
|
||||
if (ChatConfig.ChatSettingConfig.IsAutoReply)
|
||||
{
|
||||
Invoke(new Action(()=> { this.ucTabControl1.SelectedIndex = 0; }));
|
||||
}
|
||||
|
||||
if (!isAuto)
|
||||
WXShopListForm.UpdateShop();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
@@ -1486,7 +1381,6 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
r.Cells["colMessage"].Value = "";
|
||||
}));
|
||||
}
|
||||
LoadShop();
|
||||
}
|
||||
|
||||
private void btnFilterShop_Click(object sender, EventArgs e)
|
||||
@@ -1750,6 +1644,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
pbLoading.Visible = true;
|
||||
Task.Run(() =>
|
||||
{
|
||||
// 批量登录后刷新网页
|
||||
LoadShop(switchShopLst);
|
||||
foreach (var shop in needUpdateShopLst)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user