优化类目替换sku自动识别
This commit is contained in:
1 parent
8501d39f7f
commit
5030a874ea
3 files changed
+14
-1
No files matched your search
@@ -42,7 +42,7 @@ namespace TemuKJD.BaseForms
|
||||
}
|
||||
}
|
||||
|
||||
void SetFont(Control control, float dpi)
|
||||
public void SetFont(Control control, float dpi)
|
||||
{
|
||||
foreach (Control c in control.Controls)
|
||||
{
|
||||
|
||||
@@ -1924,11 +1924,21 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
//cat_name
|
||||
string[] catName = new string[] { "洞洞鞋", "其他凉鞋", "包头拖", "人字拖", "一字拖", "居家鞋", "棉拖鞋", "网面鞋", "居家凉拖",
|
||||
"沙滩凉鞋", "休闲凉鞋", "凉鞋", "运动拖鞋", "时装凉鞋", "男凉拖", "擦地拖鞋", "亚麻拖鞋", "休闲皮鞋", "T恤", "高帮棉鞋" };
|
||||
string[] catName2 = new string[] { "运动休闲鞋", "布鞋", "帆布鞋", "单鞋", "板鞋/休闲鞋", "广场舞鞋", "板鞋", "乐福鞋", "健步鞋",
|
||||
"跑步鞋", "棉鞋", "高帮休闲鞋", "网面鞋", "勃肯鞋/软木鞋", "包头拖", "足部磨砂", "老爹鞋", "工装鞋", "豆豆鞋", "汉服鞋" };
|
||||
string img_type = "鞋(不含拖鞋)";
|
||||
if (catName.Contains(dbProd.cat_name))
|
||||
{
|
||||
img_type = "拖鞋";
|
||||
}
|
||||
else if (catName2.Contains(dbProd.cat_name))
|
||||
{
|
||||
img_type = "鞋(不含拖鞋)";
|
||||
}
|
||||
else
|
||||
{
|
||||
img_type = "包";
|
||||
}
|
||||
{
|
||||
var url = BaseClass.BuildObjString("product/get_sku_replace_img_list_random");
|
||||
var data = "";
|
||||
|
||||
@@ -1468,10 +1468,13 @@ function getElementWithText(sText)
|
||||
{
|
||||
prodUserSelectForm.lblWaitToUp.Text = "待上传商品 " + prodUserSelectForm.lstTemuDBProductSelect.Count + " 件";
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("pdd_db_prod_upload_list", prodUserSelectForm.lstTemuDBProductSelect);
|
||||
|
||||
BaseMsgForm.ShowInfo("添加" + txtSendCount.Text.ParseToInt() + "件商品到待上传");
|
||||
}));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
BaseMsgForm.ShowError(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user