diff --git a/src/Coldairarrow.Api/Controllers/HuiYan/itemlabelsController.cs b/src/Coldairarrow.Api/Controllers/HuiYan/itemlabelsController.cs
index e4720de..594603a 100644
--- a/src/Coldairarrow.Api/Controllers/HuiYan/itemlabelsController.cs
+++ b/src/Coldairarrow.Api/Controllers/HuiYan/itemlabelsController.cs
@@ -5,6 +5,7 @@ using Coldairarrow.Util;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
+using System.Linq;
using System.Threading.Tasks;
namespace Coldairarrow.Api.Controllers.HuiYan
@@ -110,6 +111,8 @@ namespace Coldairarrow.Api.Controllers.HuiYan
return _itemlabelsBus.SetAlbbCooperation(shopId);
}
+
+
///
/// 获取竞品相关商品列表
///
@@ -120,5 +123,14 @@ namespace Coldairarrow.Api.Controllers.HuiYan
{
return _itemlabelsBus.GetItemsByJpLabels(type);
}
+
+
+ [HttpPost,AllowAnonymous]
+ public AjaxResult SetAlbbCooperations([FromBody]dynamic item)
+ {
+ string shopIdLine = item.id;
+ var shops= shopIdLine.Split(new string[] { System.Environment.NewLine, "\r\n","\n" }, System.StringSplitOptions.RemoveEmptyEntries).ToList();
+ return _itemlabelsBus.SetAlbbCooperations(shops);
+ }
}
}
\ No newline at end of file
diff --git a/src/Coldairarrow.Business/HuiYan/itemlabelsBusiness.cs b/src/Coldairarrow.Business/HuiYan/itemlabelsBusiness.cs
index e520a1d..7445937 100644
--- a/src/Coldairarrow.Business/HuiYan/itemlabelsBusiness.cs
+++ b/src/Coldairarrow.Business/HuiYan/itemlabelsBusiness.cs
@@ -372,6 +372,36 @@ namespace Coldairarrow.Business.HuiYan
}
}
+ public AjaxResult SetAlbbCooperations(List shopIds)
+ {
+ bool isCanel = false;
+
+ int count = Db.Delete(c=>shopIds.Contains(c.ShopId));
+
+
+ var addList = new List();
+ shopIds.ForEach(shopId =>
+ {
+ addList.Add(new albbitemlabels()
+ {
+ CreateTime = DateTime.Now,
+ CreatorId = _operator.UserId,
+ Deleted = false,
+ Id = IdHelper.GetId(),
+ ShopId = "b2b-"+shopId
+ });
+ });
+
+ int row = Db.Insert(addList);
+
+ if (row > 0)
+ return Success(new { isCanel });
+ else
+ {
+ return Error();
+ }
+ }
+
public List GetItemsByJpLabels(int type)
{
Expression> select = (a, b) => new ItemlabelInfoDto
diff --git a/src/Coldairarrow.IBusiness/HuiYan/IitemlabelsBusiness.cs b/src/Coldairarrow.IBusiness/HuiYan/IitemlabelsBusiness.cs
index 0587af4..b3b826f 100644
--- a/src/Coldairarrow.IBusiness/HuiYan/IitemlabelsBusiness.cs
+++ b/src/Coldairarrow.IBusiness/HuiYan/IitemlabelsBusiness.cs
@@ -20,5 +20,7 @@ namespace Coldairarrow.Business.HuiYan
AjaxResult SetAlbbCooperation(string shopId);
List GetItemsByJpLabels(int type);
+
+ AjaxResult SetAlbbCooperations(List shopIds);
}
}
\ No newline at end of file
diff --git a/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml b/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml
index 10aa3db..7807590 100644
--- a/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml
+++ b/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml
@@ -7,7 +7,10 @@
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
-
+
+
+
+
diff --git a/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml.cs b/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml.cs
index 517791f..d81d430 100644
--- a/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml.cs
+++ b/客户端/齐越慧眼/齐越慧眼/UserControls/BrowerControl.xaml.cs
@@ -1242,10 +1242,17 @@ for(var i=0;i div > div:nth-child(2) > div > div > div:nth-child(1) > div > div:nth-child(2)").style.top="55px"
+document.querySelector("#main > div > div:nth-child(2) > div > div > div:nth-child(1) > div > div:nth-child(2)").style.top = "55px"
//在app打开
-if(document.getElementsByClassName("pdd-go-to-app")[0])
-document.getElementsByClassName("pdd-go-to-app")[0].outerHTML=''
+if (document.getElementsByClassName("pdd-go-to-app")[0])
+ document.getElementsByClassName("pdd-go-to-app")[0].outerHTML = ''
-if(document.getElementsByClassName("PTWSQMBM _1vDZKiQt")[0])
+if (document.getElementsByClassName("PTWSQMBM _1vDZKiQt")[0])
-//回顶部
-document.getElementsByClassName("PTWSQMBM _1vDZKiQt")[0].outerHTML=''
+ //回顶部
+ document.getElementsByClassName("PTWSQMBM _1vDZKiQt")[0].outerHTML = ''
//列表
for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) {
@@ -23,16 +23,14 @@ for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) {
var maindiv = document.getElementsByClassName("_3glhOBhU")[i].children[0].children[0];
- if(maindiv.outerHTML.indexOf("试试搜这些")>=0)
- {
+ if (maindiv.outerHTML.indexOf("试试搜这些") >= 0) {
document.getElementsByClassName("_3glhOBhU")[i].style = "display:none";
continue;
}
-
+
maindiv.style = "width:200px;height:300px";
- if(maindiv.children[0]==undefined)
- {
+ if (maindiv.children[0] == undefined) {
document.getElementsByClassName("_3glhOBhU")[i].style = "display:none";
continue;
}
@@ -120,60 +118,53 @@ for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) {
//修改头部
-var headDiv=document.getElementsByClassName("_1DncS32V")[0];
+var headDiv = document.getElementsByClassName("_1DncS32V")[0];
-var svgList= headDiv.getElementsByTagName("svg")
-for(var i=0;i1)
- {
- filterSpans[i].style.height="0px"
+var filterSpans = document.getElementsByClassName("_38knpqtC")[0].getElementsByTagName("span")
+for (var i = 0; i < filterSpans.length; i++) {
+ if (filterSpans[i].getElementsByTagName("span").length > 1) {
+ filterSpans[i].style.height = "0px"
}
}
-var filteris= document.querySelector("#main > div > div:nth-child(2) > div > div > div:nth-child(1) > div > div:nth-child(2)").getElementsByTagName("i")
-for(var i=0;i div > div:nth-child(2) > div > div > div:nth-child(1) > div > div:nth-child(2)").getElementsByTagName("i")
+for (var i = 0; i < filteris.length; i++) {
+ filteris[i].style = "display:none"
}
+