淘宝拍单更新
This commit is contained in:
1 parent
1c005f6021
commit
d18460c83f
2 files changed
+33
-29
No files matched your search
@@ -204,7 +204,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuyGoodsNameVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="规格名称:"
|
||||
@@ -215,7 +216,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuySkuNameVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="拍单商品ID:"
|
||||
@@ -226,7 +228,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuyGoodsIdVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="拍单SKUID:"
|
||||
@@ -237,7 +240,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuySkuIdVal}" />
|
||||
</wpf:TitleContent>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -257,7 +261,8 @@
|
||||
FontSize="15"
|
||||
FontWeight="bold"
|
||||
Foreground="Red"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuyCntVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="拍单总价:"
|
||||
@@ -272,7 +277,8 @@
|
||||
FontSize="15"
|
||||
FontWeight="bold"
|
||||
Foreground="Red"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuyPriceVal}" />
|
||||
</wpf:TitleContent>
|
||||
</Grid>
|
||||
<wpf:TitleContent
|
||||
@@ -284,7 +290,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtBuyOrderIdVal}" />
|
||||
</wpf:TitleContent>
|
||||
|
||||
<wpf:TitleContent
|
||||
@@ -297,7 +304,8 @@
|
||||
Background="#DDDDDD"
|
||||
BorderBrush="#999999"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtSourceCodeVal}" />
|
||||
</wpf:TitleContent>
|
||||
|
||||
|
||||
@@ -324,7 +332,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtMapGoodsNameVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="规格名称:"
|
||||
@@ -335,7 +344,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtMapSkuNameVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="关联商品ID:"
|
||||
@@ -346,7 +356,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtMapGoodsIdVal}" />
|
||||
</wpf:TitleContent>
|
||||
<wpf:TitleContent
|
||||
Title="关联SKUID:"
|
||||
@@ -357,7 +368,8 @@
|
||||
Height="20"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtMapSkuIdVal}" />
|
||||
</wpf:TitleContent>
|
||||
|
||||
<wpf:TitleContent
|
||||
@@ -371,7 +383,8 @@
|
||||
Margin="0,0,96,0"
|
||||
BorderBrush="{StaticResource pageColorBrush}"
|
||||
BorderThickness="1"
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}" />
|
||||
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
|
||||
Text="{Binding txtSendProvinceVal}" />
|
||||
<Button
|
||||
x:Name="btnManualUpdateSendProvince"
|
||||
Grid.Column="1"
|
||||
|
||||
@@ -410,6 +410,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
|
||||
//{"appData":null,"loaderData":{"home":{"data":{"res":{"seller":{"sellerNick":"匹克世冠专卖店","shopName":"匹克世冠专卖店","evaluates":[{"score":"4.8 ","level":"1","levelText":"高","title":"宝贝描述","type":"desc"},{"score":"4.8 ","level":"1","levelText":"高","title":"卖家服务","type":"serv"},{"score":"4.8 ","level":"1","levelText":"高","title":"物流服务","type":"post"}],"startsIcon":"https://img.alicdn.com/imgextra/i4/O1CN018GrFIW1Zx7vwjt3Jg_!!6000000003260-2-tps-91-14.png","pcShopUrl":"//shop67269976.taobao.com","creditLevelIcon":"//gw.alicdn.com/imgextra/i1/O1CN01VD9Iap25oweneR31D_!!6000000007574-2-tps-120-60.png","sellerType":"B","encryptUid":"RAzN8HWKpmWFSf9AkzVpz3nhAYRZrPS63pSiDPMWyvui5ixfJBs"},"item":{"images":["https://img.alicdn.com/imgextra/i4/717513321/O1CN01cvzkE61aP4Tjeupfh_!!4611686018427380329-0-item_pic.jpg","https://img.alicdn.com/imgextra/i3/717513321/O1CN01W9mF4N1aP4OAc3Mtt_!!4611686018427380329-0-item_pic.jpg","https://img.alicdn.com/imgextra/i1/717513321/O1CN01a72PTr1aP4S55SiRs_!!4611686018427380329-0-item_pic.jpg"],"title":"匹克态极拖鞋男情侣款夏季外穿潮鞋篮球运动防滑太极沙滩凉拖鞋女","itemId":"655638393036","useWirelessDesc":"true","qrCode":"https://h5.m.taobao.com/awp/core/detail.htm?id=655638393036","spuId":"2122802472","titleIcon":"//img.alicdn.com/tfs/TB1SMG7nnvI8KJjSspjXXcgjXXa-78-36.png?getAvatar=avatar"},"feature":{"pcResistDetail":"true","tmwOverseasScene":"false","pcIdentityRisk":"true"},"plusViewVO":{"askAnswerVO":{"ext":{"skeletonImg":"https://img.alicdn.com/imgextra/i2/O1CN01MLPxBr1flZy969k5W_!!6000000004047-2-tps-1376-1216.png"},"hit":"true"},"addCartActionVO":{"ext":{"type":"dialogWithRecommond_2","frequency":"day:1;repeat:1"},"hit":"true"},"guessLikeVO":{"hit":"true"},"wangwangFlowSplitVO":{"hit":"true"},"rankVO":{"hit":"true"},"tabPlaceholderVO":{"hit":"true"},"imageSearchVO":{"ext":{"textList":["商品已经下架啦~要不要瞧瞧别的~","该区域暂不支持购买","此商品不支持在当前地区销售","商品已经卖光啦~","当前商品仅限店铺会员购买","商品已经卖光啦,非常抱歉","店铺正在打烊中,当前商品不可下单","商品已经卖光啦~","当前库存已售完","该商品有卖家设置的购买门槛,须达门槛才可购买噢~","此商品暂时不能购买"]},"spm":"aliabtest1115297_1138353","hit":"true"},"reportEntranceVO":{"spm":"aliabtest1097211_1051854","hit":"true"},"headAtmosphereBeltVO":{"valid":"false","hit":"true"},"commentListVO":{"ext":{"countShow":"\"false\""},"hit":"true"},"pcFrontSkuQuantityLimitVO":{"hit":"true"},"buyParamVO":{"ext":{"autoApplCoupSource":"pcDetailOrder","needAutoApplCoup":"true"},"hit":"true"}},"skuCore":{"skuItem":{"renderSku":"true","itemStatus":0,"unitBuy":1},"sku2info":{"0":{"moreQuantity":"true","quantity":200,"logisticsTime":"平均9小时发货","price":{"priceTitle":"优惠前","priceColorNew":"#FFFFFF","priceText":"157","priceDesc":"起","priceMoney":"15700"},"quantityDisplayValue":1,"quantityText":"有货","buyExParams":{"mi_id":"0000m5cdA3X8kO8PXBJ3r8ji8d6gjumNVDVBkp9kKySsEPW3KKjUvUifmdD1Plv0m1WF"}},"5359436967823":{"moreQuantity":"false","quantity":12,"logisticsTime":"48小时内发货","price":{"priceTitle":"优惠前","priceColorNew":"#FFFFFF","priceText":"157","priceMoney":"15700"},"cartParam":{"addCartCheck":"true"},"quantityDisplayValue":1,"quantityText":"有货","buyExParams":{"mi_id":"0000m5cdA3X8kO8PXBJ3r8ji8d6gjumNVDVBkp9kKySsEPW3KKjUvUifmdD1Plv0m1WF"}},"5769423993152":{"moreQuantity":"false","quantity":19,"logisticsTime":"48小时内发货","price":{"priceTitle":"优惠前","priceColorNew":"#FFFFFF","priceText":"157","priceMoney":"15700"},"cartParam":{"addCartCheck":"true"},"quantityDisplayValue":1,"quantityText":"有货","buyExParams":{"mi_id":"0000m5cdA3X8kO8PXBJ3r8ji8d6gjumNVDVBkp9kKySsEPW3KKjUvUifmdD1Plv0m1WF"}},"5359436967808":{"moreQuantity":"false","quantity":46,"logisticsTime":"48小时内发货","price":{"priceTitle":"优惠前","priceColorNew":"#FFFFFF","priceText":"157","priceMoney":"15700"},"cartParam":{"addCartCheck":"true"},"quantityDisplayValue":1,"quantityText":"有货","buyExParams":{"mi_id":"0000m5cdA3X8kO8PXBJ3r8ji8d6gjumNVDVBkp9kKySsEPW3KKjUvUifmdD1Plv0m1WF"}},"5359436967810":{"moreQuantity":"false","quantity":95,"logisticsTime":"48小时内发货","price":{"priceTitle":"优惠前","priceColorNew":"#FFFFFF","priceText":"157","priceMoney":"15700"},"cartParam":{"addCartCheck":"true"},"quantityDisplayValue":1,"quantityText":"有货","buyExParams":{"mi_id":"0000m5cdA3X8kO8PXBJ3r8ji8d6gjumNVDVBkp9kKySsEPW3KKjUvUifmdD1Plv0m1WF"}},"5132110197053":{"moreQuantity":"false","quantity":18,"logisticsTime":"平均9小时发货","price":{"priceTitle":"优惠前","priceColorNew":"#FFFFFF","priceText":"169","priceMoney":"16900"},"cartParam":{"addCartCheck":"true"},"quantityDisplayValue":1,"quantityText":"有货","buyExParams":{"mi_id":"0000m5cdA3X8kO8PXBJ3r8ji8d6gjumNVDVBkp9kKySsEPW3KKjUvUifmLine truncated
|
||||
if (url.Contains("https://detail.tmall.com/item.htm?id=") || (responseData.Contains("loaderData") && responseData.Contains("sku2info")))
|
||||
{
|
||||
// region 发货地
|
||||
responseData = responseData.Replace("\0", "");
|
||||
var loaderDatas = BaseRegex.GetJsonObjStrJson(ref responseData, "loaderData");
|
||||
|
||||
@@ -502,7 +503,9 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
|
||||
map_spec_name = pddFrontGoods3.skus.FirstOrDefault()?.SpecNameStr,
|
||||
map_sku_id = pddFrontGoods3.skus.FirstOrDefault()?.skuID.ParseToString(),
|
||||
};
|
||||
SetBuyMapValues(buymapSkuInfo, buyMapInfo);
|
||||
|
||||
var sendProvince = BaseRegex.GetStringJson(ref loaderData, "region");
|
||||
SetBuyMapValues(buymapSkuInfo, buyMapInfo, sendProvince);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -513,20 +516,8 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
|
||||
//}
|
||||
}
|
||||
|
||||
private void SetBuyMapValues(WXBuyMapSkusInfo skuInfo, WXBuyMapInfo info)
|
||||
private void SetBuyMapValues(WXBuyMapSkusInfo skuInfo, WXBuyMapInfo info, string sendProvince = "")
|
||||
{
|
||||
//var data = taobaoResponseData;
|
||||
//var goodsId = BaseRegex.GetLongJson(ref data, "goodsId");
|
||||
//var skuId = BaseRegex.GetLongJson(ref data, "skuId");
|
||||
//var goodsName = BaseRegex.GetStringJson(ref data, "goodsName");
|
||||
//var spec = BaseRegex.GetStringJson(ref data, "spec");
|
||||
//var oneGoodsPrice = BaseRegex.GetIntJson(ref data, "goodsPrice");
|
||||
//var buyCnt = BaseRegex.GetIntJson(ref data, "goodsNumber");
|
||||
//var buyPrice = BaseRegex.GetIntJson(ref data, "payAmount");
|
||||
//if (buyPrice.IsNullOrZero())
|
||||
// buyPrice = BaseRegex.GetIntJson(ref data, "orderAmount");
|
||||
//var orderSn = BaseRegex.GetIntJson(ref data, "orderSn");
|
||||
|
||||
if (skuInfo == null || info == null)
|
||||
return;
|
||||
var goods = JsonHelper.DeserializeJsonToObject<pddFrontGoods3Lite>(skuInfo.map_skus);
|
||||
@@ -540,7 +531,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
|
||||
var skuId = info.map_sku_id;
|
||||
var goodsName = skuInfo.map_goods_name;
|
||||
var spec = info.map_spec_name;
|
||||
var oneGoodsPrice = sku.groupPrice.ParseToInt();
|
||||
var oneGoodsPrice = sku.oldGroupPrice.ParseToInt();
|
||||
var buyCnt = orderItem.sku_cnt;
|
||||
var buyPrice = oneGoodsPrice * buyCnt;
|
||||
var orderSn = "";
|
||||
@@ -551,7 +542,7 @@ namespace _29WxOrderWpf.Ctrls.BuyerCtrls
|
||||
this.txtMapSkuIdVal = skuId.ParseToString();
|
||||
this.txtMapGoodsNameVal = goodsName;
|
||||
this.txtMapSkuNameVal = spec;
|
||||
this.txtSendProvinceVal = "";
|
||||
this.txtSendProvinceVal = sendProvince;
|
||||
this.cmbTransitWarehouseVal = "";
|
||||
|
||||
// 自动填写拍单信息界面
|
||||
|
||||
Reference in new issue
Block a user