|
|
@ -459,15 +459,18 @@ namespace 齐越慧眼.UserControls |
|
|
|
List<string> reports = Newtonsoft.Json.JsonConvert.DeserializeObject<List<string>>(Newtonsoft.Json.JsonConvert.SerializeObject(res.result)); |
|
|
|
|
|
|
|
List<string> itemIds = new List<string>(); |
|
|
|
List<string> shopIds = new List<string>(); |
|
|
|
if (reports != null) |
|
|
|
{ |
|
|
|
reports.ForEach(c => |
|
|
|
{ |
|
|
|
string objid = Regex.Match(c, "object_id\\@(.*?)\\^").Groups[1].Value; |
|
|
|
string shopId= Regex.Match(c, "object_id\\@(.*?)\\^").Groups[1].Value; |
|
|
|
string shopId= Regex.Match(c, "object_member_id\\@(.*?)\\^").Groups[1].Value; |
|
|
|
DoJavaScript(@$"$(""ul#sm-offer-list"").find('div[data-aplus-report=""{c}""]').attr(""data-sku"",""{objid}"")"); |
|
|
|
DoJavaScript(@$"$(""ul#sm-offer-list"").find('div[data-aplus-report=""{c}""]').attr(""data-shopId"",""{shopId}"")"); |
|
|
|
itemIds.Add(objid); |
|
|
|
if(!shopIds.Contains(shopId)) |
|
|
|
shopIds.Add(shopId); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@ -517,7 +520,7 @@ namespace 齐越慧眼.UserControls |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var alResult = ApiHelper.GetAlbbLabelByShopIds(itemIds); |
|
|
|
var alResult = ApiHelper.GetAlbbLabelByShopIds(shopIds); |
|
|
|
if (alResult.isOk) |
|
|
|
{ |
|
|
|
alResult.datas.ForEach(item => { |
|
|
@ -547,12 +550,12 @@ namespace 齐越慧眼.UserControls |
|
|
|
var infoDiv=$($(ele).parent().parent().parent().parent().parent().parent()); |
|
|
|
var itemid= infoDiv.attr(""data-sku""); |
|
|
|
|
|
|
|
debugger; |
|
|
|
var price=infoDiv.find("".showPricec"").text(); |
|
|
|
var sales=infoDiv.find("".sale"").text(); |
|
|
|
var title=infoDiv.find("".mojar-element-title"").text(); |
|
|
|
var img=$(ele).parent().parent().find(""div.img"").css(""background-image""); |
|
|
|
hyCoreModel.set1688ItemData({itemid:itemid,price:price,sales:sales,title:title,img:img,type:type}); |
|
|
|
var shopId=infoDiv.attr(""data-shopId""); |
|
|
|
hyCoreModel.set1688ItemData({itemid:itemid,price:price,sales:sales,title:title,img:img,type:type,shopId:shopId}); |
|
|
|
}; |
|
|
|
");
|
|
|
|
|
|
|
|