diff --git a/AllBase/AllBase.csproj b/AllBase/AllBase.csproj
index 769990f..703da7f 100644
--- a/AllBase/AllBase.csproj
+++ b/AllBase/AllBase.csproj
@@ -193,6 +193,7 @@
+
diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index 80f75b7..c9d4be3 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,8 +27,8 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 397;
- //public static int VersionCount = 397;
+ public static int VersionCount = 398;
+ //public static int VersionCount = 398;
///
/// 版本号
diff --git a/AllBase/Model/Result/TemuActivityInfo.cs b/AllBase/Model/Result/TemuActivityInfo.cs
new file mode 100644
index 0000000..7b5f748
--- /dev/null
+++ b/AllBase/Model/Result/TemuActivityInfo.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AllBase.Model.Result
+{
+ public class TemuActivityInfo
+ {
+ public string activityLabelDesc { get; set; }
+ public string activityContent { get; set; }
+ public long? sessionEndTime { get; set; }
+ public string activityLabelTag { get; set; }
+ public long? sessionStartTime { get; set; }
+ public string activityName { get; set; } //大促进阶-限时活动
+ public List thematicList { get; set; }
+ public long? autoAssignEndTime { get; set; }
+ public long? autoAssignStartTime { get; set; }
+ public List benefitLabelName { get; set; }
+ public object sessionList { get; set; }
+ public int? sessionAssignType { get; set; }
+ public object sessionAggList { get; set; }
+ public int activityType { get; set; }
+ }
+
+ public class TemuActivityThematicInfo
+ {
+ public object canEnrollTotal { get; set; }
+ public string activityLabelDesc { get; set; }
+ public long? enrollDeadLine { get; set; }
+ public string activityLabelTag { get; set; }
+ public List sites { get; set; }
+ public string activityThematicContent { get; set; }
+ public long? activityThematicId { get; set; }
+ public int? durationDays { get; set; }
+ public List benefitLabelName { get; set; }
+ public int? enrollSource { get; set; }
+ public string salePromotionLabel { get; set; }
+ public int? enrolledCount { get; set; }
+ public long? enrollStartAt { get; set; }
+ public long? startTime { get; set; }
+ public long? endTime { get; set; }
+ public List activityLabelList { get; set; }
+ public string activityThematicName { get; set; }
+ public string discount { get; set; } = "-";
+ }
+
+ public class TemuActivitySiteInfo
+ {
+ public string siteName { get; set; }
+ public int? siteId { get; set; }
+ }
+
+ public class TemuActivityLabelInfo
+ {
+ public string value { get; set; }
+ public int? key { get; set; }
+ }
+}
diff --git a/KJDService/KJD_WebService/BLL/ShopManage.cs b/KJDService/KJD_WebService/BLL/ShopManage.cs
index dd2b782..ac73b6d 100644
--- a/KJDService/KJD_WebService/BLL/ShopManage.cs
+++ b/KJDService/KJD_WebService/BLL/ShopManage.cs
@@ -50,7 +50,7 @@ namespace KJD_Web.BLL
if (isAdmin)
where += " and (cookie='' or shop_id!='')";
if (!isAdmin)
- where += " and (user_name='" + user_name + "' or sub_user_name='" + user_name + "')";
+ where += " and (user_name='" + user_name + "' or sub_user_name like '%" + user_name + "%')";
if (!string.IsNullOrWhiteSpace(operate_sub_sa_name))
where += " and operate_sub_sa_name='" + operate_sub_sa_name + "'";
if (!string.IsNullOrWhiteSpace(search_user_name))
@@ -309,7 +309,7 @@ namespace KJD_Web.BLL
user_name = RegexUtils.GetStringQuery(ref inputData, "shop_user_name");
string login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
string login_pass = RegexUtils.GetStringQuery(ref inputData, "login_pass");
- string sub_user_name = RegexUtils.GetStringQuery(ref inputData, "sub_user_name");
+ string sub_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sub_user_name"));
string cookie = RegexUtils.GetStringQuery(ref inputData, "cookie");
string cookie2 = RegexUtils.GetStringQuery(ref inputData, "cookie2");
string new_shop_id = RegexUtils.GetStringQuery(ref inputData, "new_shop_id");
@@ -353,7 +353,7 @@ namespace KJD_Web.BLL
if (login_status != null)
sql += " login_status='" + login_status + "',";
sql = sql.TrimEnd(',');
- sql += " where login_name='" + login_name + "' and (user_name='" + user_name + "' or sub_user_name='" + user_name + "')";
+ sql += " where login_name='" + login_name + "' and (user_name='" + user_name + "' or sub_user_name like '%" + user_name + "%')";
if (!string.IsNullOrEmpty(old_shop_id))
sql += " and shop_id='" + old_shop_id + "'";
diff --git a/TEMUKJD/Extension/DataGridViewExtension.cs b/TEMUKJD/Extension/DataGridViewExtension.cs
index db62b6b..9dd12ee 100644
--- a/TEMUKJD/Extension/DataGridViewExtension.cs
+++ b/TEMUKJD/Extension/DataGridViewExtension.cs
@@ -51,7 +51,8 @@ namespace TemuKJD.Extension
public static CheckBox AddHeaderCheckBox(this DataGridViewColumn column, HorizontalAlignment align = HorizontalAlignment.Center, int leftBorderOffset = 0, int rightBorderOffset = 0, Func
private void InitializeComponent()
{
- 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("满减");
- System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("拼团");
- System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("拼团监控");
- System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("营销中心", new System.Windows.Forms.TreeNode[] {
+ 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("限时限量购");
+ System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("满减");
+ 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("营销中心", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
treeNode4,
- treeNode5});
+ treeNode5,
+ treeNode6});
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.tv = new TemuKJD.UserComponent.UcTreeView();
this.panel1 = new System.Windows.Forms.Panel();
@@ -91,20 +93,22 @@
this.tv.Location = new System.Drawing.Point(0, 0);
this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tv.Name = "tv";
- treeNode1.Name = "新人券";
- treeNode1.Text = "新人券";
- treeNode2.Name = "限时限量购";
- treeNode2.Text = "限时限量购";
- treeNode3.Name = "满减";
- treeNode3.Text = "满减";
- treeNode4.Name = "拼团";
- treeNode4.Text = "拼团";
- treeNode5.Name = "拼团监控";
- treeNode5.Text = "拼团监控";
- treeNode6.Name = "营销中心";
- treeNode6.Text = "营销中心";
+ treeNode1.Name = "店铺优化";
+ treeNode1.Text = "店铺优化";
+ treeNode2.Name = "新人券";
+ treeNode2.Text = "新人券";
+ treeNode3.Name = "限时限量购";
+ treeNode3.Text = "限时限量购";
+ treeNode4.Name = "满减";
+ treeNode4.Text = "满减";
+ treeNode5.Name = "拼团";
+ treeNode5.Text = "拼团";
+ treeNode6.Name = "拼团监控";
+ treeNode6.Text = "拼团监控";
+ treeNode7.Name = "营销中心";
+ treeNode7.Text = "营销中心";
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
- treeNode6});
+ treeNode7});
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
this.tv.Size = new System.Drawing.Size(140, 450);
this.tv.TabIndex = 4;
diff --git a/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs b/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs
index b9376df..8d167af 100644
--- a/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs
+++ b/TEMUKJD/KJDForms/SalesCenterForms/SalesCenterForm.cs
@@ -18,6 +18,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
public Lazy fullMinusForm = new Lazy();
public Lazy groupBuyFrom = new Lazy();
public Lazy couponForm = new Lazy();
+ public Lazy marketingActivityForm = new Lazy();
public SalesCenterForm()
{
@@ -38,7 +39,7 @@ namespace TemuKJD.KJDForms.SalesCenterForms
tv.SelectedNode = tv.Nodes[0].Nodes[0];
tv.ExpandGroup(tv.Nodes[0].Name);
- List hideName = new List() { "拼团监控"/*, "清理无流量"*/ };
+ List hideName = new List() { "拼团监控", "新人券", "限时限量购", "满减", "拼团"/*, "清理无流量"*/ };
foreach (var item in hideName)
{
@@ -111,6 +112,9 @@ namespace TemuKJD.KJDForms.SalesCenterForms
{
switch (e.Node.Name)
{
+ case "店铺优化":
+ SetForm(marketingActivityForm.Value);
+ break;
case "新人券":
SetForm(couponForm.Value);
break;
diff --git a/TEMUKJD/KJDForms/ShopForms/ShopAddEditForm.cs b/TEMUKJD/KJDForms/ShopForms/ShopAddEditForm.cs
index 86b1789..e46a16f 100644
--- a/TEMUKJD/KJDForms/ShopForms/ShopAddEditForm.cs
+++ b/TEMUKJD/KJDForms/ShopForms/ShopAddEditForm.cs
@@ -83,7 +83,8 @@ namespace TemuKJD.KJDForms.ShopForms
this.btnOk.Text = "更新";
this.TitleText = "编辑店铺 - " + shopLoginInfo.ShopAccount;
this.txtBuyAccount.Text = shopLoginInfo.BuyAccount;
- this.txtChatAccount.Text = shopLoginInfo.ChatAccount;
+ //this.txtChatAccount.Text = shopLoginInfo.ChatAccount;
+ this.txtChatAccount.Text = shopLoginInfo.SubUserName;
this.txtUploadAccount.Text = shopLoginInfo.UploadAccount;
this.label7.Visible = true;
this.txtLoginName.Enabled = false;
diff --git a/TEMUKJD/KJDForms/ShopForms/ShopListForm.cs b/TEMUKJD/KJDForms/ShopForms/ShopListForm.cs
index 9b6b535..757b168 100644
--- a/TEMUKJD/KJDForms/ShopForms/ShopListForm.cs
+++ b/TEMUKJD/KJDForms/ShopForms/ShopListForm.cs
@@ -69,7 +69,7 @@ namespace TemuKJD.KJDForms.ShopForms
+ "&login_name=" + _shop.LoginName
+ "&login_pass=" + GetHtml.UrlEncodeUtf8(_shop.Password)
+ "&shop_group=" + GetHtml.UrlEncodeUtf8(_shop.GroupName)
- + "&sub_user_name=" + GetHtml.UrlEncodeUtf8(_shop.SubUserName)
+ + "&sub_user_name=" + _shop.SubUserName
+ "¬es=" + GetHtml.UrlEncodeUtf8(_shop.Notes);
var result = GetHtml.PostUtf8(url, data);
@@ -656,6 +656,7 @@ namespace TemuKJD.KJDForms.ShopForms
foreach (var sc in campanys)
{
sc.LoginStatus2 = "国际版在线";
+ sc.LastRefreshDate = DateTime.Now.ToString("yyyyMMdd");
}
}
//if (!string.IsNullOrEmpty(loginResult))
diff --git a/TEMUKJD/KJDForms/ShopForms/SubAccountShopEditForm.cs b/TEMUKJD/KJDForms/ShopForms/SubAccountShopEditForm.cs
index 2ec8596..1cb3d31 100644
--- a/TEMUKJD/KJDForms/ShopForms/SubAccountShopEditForm.cs
+++ b/TEMUKJD/KJDForms/ShopForms/SubAccountShopEditForm.cs
@@ -65,7 +65,7 @@ namespace TemuKJD.KJDForms.ShopForms
if (shop != null)
{
ShopSubAccountList.Clear();
- ShopSubAccountList.AddRange(AllSubAccountList.Where(u=>shop.SubUserName==u.sub_user_name));
+ ShopSubAccountList.AddRange(AllSubAccountList.Where(u=>shop.SubUserName.Contains(u.sub_user_name)));
shop.ShopSubAccountList.Clear();
shop.ShopSubAccountList.AddRange(ShopSubAccountList);
NotShopSubAccountList.AddRange(AllSubAccountList.Where(u => !ShopSubAccountList.Any(bu => bu.id == u.id)));
@@ -94,9 +94,9 @@ namespace TemuKJD.KJDForms.ShopForms
{
if (this.flpShopSubAccount.Controls.Count > 0)
{
- BaseMsgForm.ShowInfo("只能有一个子账户!");
- s.lblRight_Click(null, null);
- return;
+ //BaseMsgForm.ShowInfo("只能有一个子账户!");
+ //s.lblRight_Click(null, null);
+ //return;
}
this.flpNotSubAccount.Controls.Remove(s);
@@ -178,6 +178,7 @@ namespace TemuKJD.KJDForms.ShopForms
}
shop.SubUserName = shop.ShopSubAccountList.FirstOrDefault()?.sub_user_name;
+ shop.SubUserName = string.Join(",", shop.ShopSubAccountList.Select(s => s.sub_user_name));
var shopLst = AllBase.Helper.GlobalConfig.ShopLoginList.Where(s => s.LoginName == shop.LoginName && s.ShopId!= shop.ShopId);
foreach(var s in shopLst)
{
diff --git a/TEMUKJD/MainForm.designer.cs b/TEMUKJD/MainForm.designer.cs
index 6bd5ed8..bd45fc5 100644
--- a/TEMUKJD/MainForm.designer.cs
+++ b/TEMUKJD/MainForm.designer.cs
@@ -247,7 +247,6 @@ namespace TemuKJD
this.pnlMarket.StyleMouseOver.MarginTop = 63;
this.pnlMarket.TabIndex = 3;
this.pnlMarket.Text = "营销中心";
- this.pnlMarket.Visible = false;
this.pnlMarket.Click += new System.EventHandler(this.pnlMarket_Click);
//
// pnlCollect