c# 通過讀取Json文件生成HTML頁並在瀏覽器顯示

這裏主要是記錄一下代碼,以防以後有此類似的需求,可以複用,就不講解了,很簡單。

0.引用。

using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

1.讀取Json文件,得到string類型的json串。

/// <summary>
/// 讀取json文件
/// </summary>
public static void GetJsonFile(string jsonfile)
{
    string jsonstr = "";
    using (System.IO.StreamReader file = System.IO.File.OpenText(jsonfile))
    {
        using (JsonTextReader reader = new JsonTextReader(file))
        {
            JObject o = (JObject)JToken.ReadFrom(reader);
            jsonstr = o.ToString();
        }
    }
    ShowProductsPage(jsonstr);
}

2.通過Json串生成Html並在瀏覽器打開。

/// <summary>
/// 生成商品頁面
/// </summary>
/// <param name="json"></param>
public static void ShowProductsPage(string json)
{
    try
    {
        JObject objectJson = (JObject)JsonConvert.DeserializeObject(json);
        if (objectJson["result"] != null)
        {
            objectJson = (JObject)objectJson["result"];
            if (objectJson["dataValue"] != null)
            {
                string logAddress = "C:/HTML/Build/BuildHTML.html";
                string filePath = System.IO.Path.GetDirectoryName(logAddress);
                if (!Directory.Exists(filePath))
                {
                    Directory.CreateDirectory(filePath);
                }
                if (File.Exists(logAddress))
                {
                    File.Delete(logAddress);
                }
                StreamWriter fs = new StreamWriter(logAddress, true);
                string style = "<style type=\"text/css\">.body{background-color:#3e3e3e;color:azure}.table{margin: auto}.td{border: 2px;padding:6px;}.div{border: 2px solid #969793;}.div:hover {border: #00ff21 solid 2px;}.a{cursor: pointer;}.img{height:150px;width:150px;}</style>";
                string content = "<td class =\"td\"><div class =\"div\"><a class=\"a\" href=\"detailUrl\"><img class=\"img\" title = \"skuName\" src = \"imageUrl\"></a><br/><label>價格:skuPrice</label><br/><label>店鋪:wareLabel</label><br/></div></td>";
                fs.WriteLine("<!DOCTYPE html><html><head><meta charset=\"utf-8\"/><title>ProductsPage</title>" + style + "</head><body class=\"body\"><table class=\"table\">");
                int i = 0;
                foreach (var item1 in objectJson["dataValue"])
                {
                    foreach (var item2 in item1["sims"])
                    {
                        string tableCon = (i == 0) ? "<tr>" + content : content;
                        if (!string.IsNullOrEmpty(item2["imageUrl"].ToString()))
                        {
                            tableCon = tableCon.Replace("imageUrl", item2["imageUrl"].ToString());
                        }
                        if (!string.IsNullOrEmpty(item2["skuPrice"].ToString()))
                        {
                            tableCon = tableCon.Replace("skuPrice", item2["skuPrice"].ToString());
                        }
                        if (!string.IsNullOrEmpty(item2["wareLabel"].ToString()))
                        {
                            tableCon = tableCon.Replace("wareLabel", item2["wareLabel"].ToString());
                        }
                        if (!string.IsNullOrEmpty(item2["skuName"].ToString()))
                        {
                            tableCon = tableCon.Replace("skuName", item2["skuName"].ToString());
                        }
                        if (!string.IsNullOrEmpty(item2["detailUrl"].ToString()))
                        {
                            tableCon = tableCon.Replace("detailUrl", item2["detailUrl"].ToString());
                        }
                        i = (i == 9) ? 0 : i + 1;
                        tableCon = (i == 0) ? tableCon + "</tr>" : tableCon;
                        fs.WriteLine(tableCon);
                    }
                }
                fs.WriteLine("</table></body></html>");
                fs.Close();
                fs.Dispose();
                System.Diagnostics.Process.Start(logAddress);
            }
        }
    }
    catch (Exception e)
    {
        ShowErrorPage(e.ToString());
    }
}

3.對接口異常進行進行處理,異常頁。

/// <summary>
/// 顯示錯誤頁面
/// </summary>
/// <param name="error"></param>
public static void ShowErrorPage(string error)
{
    string logAddress = "C:/HTML/Build/ErrorPage.html";
    string filePath = System.IO.Path.GetDirectoryName(logAddress);
    if (!Directory.Exists(filePath))
    {
        Directory.CreateDirectory(filePath);
    }
    if (File.Exists(logAddress))
    {
        File.Delete(logAddress);
    }
    else
    {
        StreamWriter fs = new StreamWriter(logAddress, true);
        string style = "<style type=\"text/css\">.body {background-color: #3e3e3e;}.h {color:#8ebf56;}.p1 {font-weight:100;color:#909661;}.p2 {color:#f23535;}.p3{color:#8b8787;}</style>";
        fs.WriteLine("<!DOCTYPE html><html><head><meta charset=\"utf-8\"/><title>ErrorPage</title>" + style + "</head><body class=\"body\">");
        fs.WriteLine("<div class=\"div1\"><h1 class=\"h\">Oh Snap! 404!</h1>");
        fs.WriteLine("<p class=\"p1\">We're sorry, the page you are looking for has been disconnected or is no longer in service. Please try again later. </p>");
        fs.WriteLine("<p class=\"p2\">" + error + "</p>");
        fs.WriteLine("<p class=\"p3\">If you're seeing this page, it's because we can't find the one you want.");
        fs.WriteLine("Or, it doesnt exist-could have been a bad link, maybe you mis-typed it");
        fs.WriteLine("into your browser? This is not necessarily your fault(sometimes we get a");
        fs.WriteLine("little sloppy). If you think it's our mistake, please do let un know.");
        fs.WriteLine("otherwise, you have a few options: try using our navigation bar at the");
        fs.WriteLine("top of this poge, visit our home page, or browse the links below.</p>");
        fs.WriteLine("<p class=\"p3\">Thank you for choosing Onwired! This message will self-destruct in 30 seconds. </p></div>");
        fs.WriteLine("</body></html>");
        fs.Close();
        fs.Dispose();
        System.Diagnostics.Process.Start(logAddress);
    }
}

4.Json

{
	"code": "10000",
	"charge": false,
	"remain": 0,
	"remainTimes": -1,
	"remainSeconds": -1,
	"msg": "查詢成功",
	"result": {
		"channel_id": "test",
		"dataValue": [{
			"rectangle": {
				"bottom": "304.126343",
				"cls": 300,
				"clsName": "全部",
				"isUserRectangle": 0,
				"left": "83.5205917",
				"right": "657.973267",
				"top": "42.4321022"
			},
			"sims": [{
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/14772228977.html",
				"detailUrl": "https://item.jd.com/14772228977.html",
				"dis": 1.2075078372540693,
				"imageUrl": "https://img14.360buyimg.com/img/jfs/t1/19026/34/6977/123907/5c666528E5dccacfe/ffa31047dbad9be8.jpg",
				"similarity": 0.000002593194221415368,
				"skuId": 14772228977,
				"skuName": "拉維斯(Nightwish) 米維斯S/1  單板民謠吉他 初學36/41寸 缺角木吉他 【商家發】米維斯S 41寸 雲杉 原木",
				"skuPrice": "699.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/15228461654.html",
				"detailUrl": "https://item.jd.com/15228461654.html",
				"dis": 1.2131465434686775,
				"imageUrl": "https://img1.360buyimg.com/img/jfs/t5815/85/1564611986/477455/a5e9f4a9/5927d08bN7346521f.jpg",
				"similarity": 0.0000023828804358178683,
				"skuId": 15228461654,
				"skuName": "梵巢 FLOLAIR 麻金 中音 薩克斯 降E調 FAS-866 樂器 銅 電泳漆手工雕花 成人演奏 FAS-866",
				"skuPrice": "6650.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/11031833365.html",
				"detailUrl": "https://item.jd.com/11031833365.html",
				"dis": 1.2144378871683805,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/2570/1/13660/165320/5bd87474E475baece/4449b8affd87cb4f.jpg",
				"similarity": 0.0000023371679375047485,
				"skuId": 11031833365,
				"skuName": "Guitarist民謠木吉他新手入門初學者38寸旅行樂器男女學生款練習jita琴 缺角款原木(只送琴包+教學)",
				"skuPrice": "178.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/10441678297.html",
				"detailUrl": "https://item.jd.com/10441678297.html",
				"dis": 1.230133387828328,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t19189/285/2522357979/481333/71c2b81c/5af8ebe3Nec1774a5.jpg",
				"similarity": 0.0000018468987731770364,
				"skuId": 10441678297,
				"skuName": "Guitarist 民謠吉他初學者缺角木吉他新手學生練習旅行男女38寸jita 原木-(送禮包)",
				"skuPrice": "230.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/29091614725.html",
				"detailUrl": "https://item.jd.com/29091614725.html",
				"dis": 1.2405029821124978,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/6648/32/4373/239247/5bd92557Ea77d494b/80ce5257a0868ec2.jpg",
				"similarity": 0.0000015808524793393606,
				"skuId": 29091614725,
				"skuName": "爸爸媽媽(babamama)恐龍玩具大恐龍兒童玩具恐龍模型霸王龍動物模型男孩 棕色迷惑龍",
				"skuPrice": "49.00",
				"wareLabel": "京東物流"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/49381289216.html",
				"detailUrl": "https://item.jd.com/49381289216.html",
				"dis": 1.2420806850845076,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t1/83675/7/1254/234295/5cf73d64E2f16c07b/a3e2ab3fb50cbd58.jpg",
				"similarity": 0.0000015438800145749908,
				"skuId": 49381289216,
				"skuName": "世音琴行泰勒Taylor GS Mini Koa/BT1E/2/36寸旅行民謠電箱木吉他 A10(無電箱)新款 40寸",
				"skuPrice": "4390.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/45013418729.html",
				"detailUrl": "https://item.jd.com/45013418729.html",
				"dis": 1.243681636372428,
				"imageUrl": "https://img14.360buyimg.com/img/jfs/t1/68483/20/789/255518/5cf0cab5Ebba08d95/129733fed158be36.jpg",
				"similarity": 0.0000015072465434920452,
				"skuId": 45013418729,
				"skuName": "【世音琴行】吉普森Gibson ES335/175D/1959/58/63爵士空心電吉他 ES-335 亮光原木色 2017",
				"skuPrice": "22500.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/47073611128.html",
				"detailUrl": "https://item.jd.com/47073611128.html",
				"dis": 1.2470655881949433,
				"imageUrl": "https://img20.360buyimg.com/img/jfs/t1/37328/24/9547/92716/5cd0567bE8ae753f2/2aa63fa00ea4f1e8.jpg",
				"similarity": 0.0000014326491779789044,
				"skuId": 47073611128,
				"skuName": "2019新款 德國Schleich S思樂 侏羅紀仿真恐龍玩具模型 南方巨獸龍 15010 15010-南方巨獸龍",
				"skuPrice": "185",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/10026583677.html",
				"detailUrl": "https://item.jd.com/10026583677.html",
				"dis": 1.247644839295222,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t1/29900/22/14248/69595/5ca59ba6E3a62874b/77672d9eda5d2627.jpg",
				"similarity": 0.000001420255163789378,
				"skuId": 10026583677,
				"skuName": "安德魯(ANDREW) 民謠吉他單板41寸初學者新手入門木吉它jita樂器 41寸 透黑擦色+全套配件",
				"skuPrice": "238.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/50010213641.html",
				"detailUrl": "https://item.jd.com/50010213641.html",
				"dis": 1.248560746043219,
				"imageUrl": "https://img30.360buyimg.com/img/jfs/t1/33345/22/12160/199580/5d01f519E8a5dcfcb/387c2247eb2c1356.jpg",
				"similarity": 0.0000014008762958781352,
				"skuId": 50010213641,
				"skuName": "38寸木吉他初學者入門練習新手民謠男女學生琴原木色黑色6絃樂器 水曲柳木",
				"skuPrice": "222.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/41274413104.html",
				"detailUrl": "https://item.jd.com/41274413104.html",
				"dis": 1.2514903279250702,
				"imageUrl": "https://img10.360buyimg.com/img/jfs/t20551/168/653769678/112892/cbeb5be9/5b13c19dN2d0adfeb.jpg",
				"similarity": 0.0000013406496346175126,
				"skuId": 41274413104,
				"skuName": "仿真動物恐龍模型霸王龍暴龍玩具野生 兒童塑膠 羽王龍",
				"skuPrice": "150.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/49742749883.html",
				"detailUrl": "https://item.jd.com/49742749883.html",
				"dis": 1.2537508181732127,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/68333/2/3221/195535/5d17275cE07d48a1c/16071a3941bd7263.jpg",
				"similarity": 0.00000129595385218141,
				"skuId": 49742749883,
				"skuName": "【新品】玩模樂仿真馬模型 蒙氏玩具馬套裝野生動物玩偶兒童過家家玩具 新款大克萊茲代爾馬",
				"skuPrice": "122",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/48317766598.html",
				"detailUrl": "https://item.jd.com/48317766598.html",
				"dis": 1.255253792155196,
				"imageUrl": "https://img20.360buyimg.com/img/jfs/t30631/300/1599325786/137951/88c454bd/5ce520acNbdbf90ee.jpg",
				"similarity": 0.0000012670639942796945,
				"skuId": 48317766598,
				"skuName": "萌羽活化系列戰鬥兵馬俑土偶版動漫周邊二次元玩偶潮流擺件 超活化系列戰鬥兵馬俑-土偶版(不可用券,否則訂單無 整套(拆盒不退不換)",
				"skuPrice": "562",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/10085025107.html",
				"detailUrl": "https://item.jd.com/10085025107.html",
				"dis": 1.2557621792919231,
				"imageUrl": "https://img1.360buyimg.com/img/jfs/t931/209/1492569923/206961/523db90d/56dd1192N8a021e84.jpg",
				"similarity": 0.0000012574383691146298,
				"skuId": 10085025107,
				"skuName": "3D卡片塗塗樂認知有聲掛圖AR立體卡片兒童寶寶早教樂識字玩具塗書口袋 3D摩法卡片",
				"skuPrice": "35.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/51391021729.html",
				"detailUrl": "https://item.jd.com/51391021729.html",
				"dis": 1.2561098492926484,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/35656/24/13676/205114/5d19f46eE4cea49a5/f90f36baa7e72e45.jpg",
				"similarity": 0.0000012508978427464588,
				"skuId": 51391021729,
				"skuName": "Fender芬達Squier 電吉他Jazzmaster J Mascis簽名款 SQ復古 聯繫客服獲取優惠(單拍無效)",
				"skuPrice": "10.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/32520165249.html",
				"detailUrl": "https://item.jd.com/32520165249.html",
				"dis": 1.258266721514163,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t24853/311/1294681926/109792/d0e0880b/5b90d30dN37f0ab2d.jpg",
				"similarity": 0.0000012110751565137041,
				"skuId": 32520165249,
				"skuName": "玩模樂動物模型仿真海洋生物玩具鱷魚大白鯊海豚企鵝海馬章魚模型 鱟",
				"skuPrice": "18.90",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/11846828024.html",
				"detailUrl": "https://item.jd.com/11846828024.html",
				"dis": 1.258266721514163,
				"imageUrl": "https://img11.360buyimg.com/img/jfs/t13162/341/2390980248/109792/d0e0880b/5a3b1d4cNfca72568.jpg",
				"similarity": 0.0000012110751565137041,
				"skuId": 11846828024,
				"skuName": "海洋動物模型海底世界 實心環保生物鯊魚海豚海獅鯨海龜螃蟹海豚企鵝 鱟",
				"skuPrice": "28.80",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/47361085943.html",
				"detailUrl": "https://item.jd.com/47361085943.html",
				"dis": 1.2604756151270837,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/41667/8/4594/51325/5cd50fbfEa27974eb/ab8b7fd28c288fc0.jpg",
				"similarity": 0.0000011716056512030768,
				"skuId": 47361085943,
				"skuName": "臥推器臥推凳推胸器材神器家用啞鈴槓鈴椅彈力帶鍛鍊胸肌健身器材 火焰迷彩 36kg拉力器",
				"skuPrice": "210.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/8271329.html",
				"detailUrl": "https://item.jd.com/8271329.html",
				"dis": 1.262704723666622,
				"imageUrl": "https://img10.360buyimg.com/img/jfs/t24676/60/529320342/405139/d91b24d7/5b7291f4Nf8f94e51.jpg",
				"similarity": 0.0000011330788457655725,
				"skuId": 8271329,
				"skuName": "樂締可發聲軟膠款73CM斜長大恐龍玩具仿真動物玩具兒童霸王龍恐龍模型",
				"skuPrice": "125",
				"wareLabel": "自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/49665186244.html",
				"detailUrl": "https://item.jd.com/49665186244.html",
				"dis": 1.2639342934345914,
				"imageUrl": "https://img30.360buyimg.com/img/jfs/t1/64498/4/2047/166262/5d05bdf0E30892d57/ed336596b0b728ac.jpg",
				"similarity": 0.000001112372413594845,
				"skuId": 49665186244,
				"skuName": "男生日禮物雷神托爾全金屬道具復仇者聯盟周邊雷神之錘子1:1 1:1樹脂內襯鋼筋風暴戰斧",
				"skuPrice": "1356.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/49119808569.html",
				"detailUrl": "https://item.jd.com/49119808569.html",
				"dis": 1.1494053240306485,
				"imageUrl": "https://img10.360buyimg.com/img/jfs/t1/71037/16/941/203953/5cf323f2E2aa6b570/369e7b15d6d2993b.jpg",
				"similarity": 0.000006199226326765146,
				"skuId": 49119808569,
				"skuName": "大號菸灰缸個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品SN9194 聚寶盆(銀",
				"skuPrice": "28.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/49119808570.html",
				"detailUrl": "https://item.jd.com/49119808570.html",
				"dis": 1.1494053240306485,
				"imageUrl": "https://img20.360buyimg.com/img/jfs/t1/80840/35/934/211795/5cf323f4E2284a85f/10ccfd655e3095b4.jpg",
				"similarity": 0.000006199226326765146,
				"skuId": 49119808570,
				"skuName": "大號菸灰缸個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品SN9194 吉象(金)",
				"skuPrice": "28.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/49119808568.html",
				"detailUrl": "https://item.jd.com/49119808568.html",
				"dis": 1.1494053240306485,
				"imageUrl": "https://img10.360buyimg.com/img/jfs/t1/33141/39/12703/225620/5cf323f2Ef3cb13a4/c953edc33c29fccb.jpg",
				"similarity": 0.000006199226326765146,
				"skuId": 49119808568,
				"skuName": "大號菸灰缸個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品SN9194 聚寶盆(金)",
				"skuPrice": "28.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/50514064492.html",
				"detailUrl": "https://item.jd.com/50514064492.html",
				"dis": 1.1694625285617322,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/56109/29/2846/267677/5d0a3dffE83024cd2/1aa60d8531817b97.jpg",
				"similarity": 0.00000458856822086881,
				"skuId": 50514064492,
				"skuName": "電視櫃酒櫃家居擺設銅製風水大象擺件風水象一對吸水象客廳裝飾品房間門口桌子擺件 光面大號一對",
				"skuPrice": "1110.88",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/30605199633.html",
				"detailUrl": "https://item.jd.com/30605199633.html",
				"dis": 1.1701757795006698,
				"imageUrl": "https://img14.360buyimg.com/img/jfs/t23119/286/1167055283/163807/53d4d5f4/5b541af4Ne1ecfaf2.jpg",
				"similarity": 0.000004539738111536363,
				"skuId": 30605199633,
				"skuName": "菸灰缸創意個性 大號創意中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品QY 吉象(銀)",
				"skuPrice": "158.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/30605199632.html",
				"detailUrl": "https://item.jd.com/30605199632.html",
				"dis": 1.1701757795006698,
				"imageUrl": "https://img1.360buyimg.com/img/jfs/t22348/252/2380435149/156756/a5a722c9/5b541af4N8fd39a31.jpg",
				"similarity": 0.000004539738111536363,
				"skuId": 30605199632,
				"skuName": "菸灰缸創意個性 大號創意中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品QY 吉象(金)",
				"skuPrice": "158.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/30605199631.html",
				"detailUrl": "https://item.jd.com/30605199631.html",
				"dis": 1.1701757795006698,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t24475/308/1173575486/151459/ccd42ce7/5b541af4N332d98cf.jpg",
				"similarity": 0.000004539738111536363,
				"skuId": 30605199631,
				"skuName": "菸灰缸創意個性 大號創意中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品QY 聚寶盆(銀",
				"skuPrice": "158.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/30605199634.html",
				"detailUrl": "https://item.jd.com/30605199634.html",
				"dis": 1.1701757795006698,
				"imageUrl": "https://img20.360buyimg.com/img/jfs/t24109/310/1166885736/163358/1d67a1d1/5b541af4N7eb16e1d.jpg",
				"similarity": 0.000004539738111536363,
				"skuId": 30605199634,
				"skuName": "菸灰缸創意個性 大號創意中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品QY 雙龍(金)",
				"skuPrice": "158.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/30605199630.html",
				"detailUrl": "https://item.jd.com/30605199630.html",
				"dis": 1.1701757795006698,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t21274/275/2378635666/163132/c2eb12b9/5b541af4Nfebe9554.jpg",
				"similarity": 0.000004539738111536363,
				"skuId": 30605199630,
				"skuName": "菸灰缸創意個性 大號創意中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品QY 聚寶盆(金)",
				"skuPrice": "158.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/34823152225.html",
				"detailUrl": "https://item.jd.com/34823152225.html",
				"dis": 1.181748542021525,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t1/2242/24/14316/194891/5bdae75fE61cd4d81/d2e820f709af2cf5.jpg",
				"similarity": 0.000003816289484186462,
				"skuId": 34823152225,
				"skuName": "菸灰缸飯店家用辦公室菸缸酒吧仿古復古個性客廳迷你用品成人男士 吉象(金)",
				"skuPrice": "48.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/45849720591.html",
				"detailUrl": "https://item.jd.com/45849720591.html",
				"dis": 1.1819238311879492,
				"imageUrl": "https://img11.360buyimg.com/img/jfs/t1/33125/4/5470/198199/5cba988cE7c3ed0a0/fbcc8cccd32bf9f9.jpg",
				"similarity": 0.000003806268389535292,
				"skuId": 45849720591,
				"skuName": "創意和尚小擺件家居裝飾小和尚禪意結婚慶禮品酒櫃電視櫃客廳辦公室送老外領導長輩泥人張新年元旦禮品 慧能和尚5A",
				"skuPrice": "29.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/47275608967.html",
				"detailUrl": "https://item.jd.com/47275608967.html",
				"dis": 1.183624433686632,
				"imageUrl": "https://img14.360buyimg.com/img/jfs/t1/36887/16/10029/176835/5cd3b5fdE26c43ae7/60240a05ae130b79.jpg",
				"similarity": 0.0000037104024293345538,
				"skuId": 47275608967,
				"skuName": "創意家居裝飾小和尚禪意樹脂擺件結婚慶禮品酒櫃電視櫃客廳辦公室 W1034-慧能和尚1A 慧能和尚系列",
				"skuPrice": "46.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/50514064498.html",
				"detailUrl": "https://item.jd.com/50514064498.html",
				"dis": 1.1861382027276586,
				"imageUrl": "https://img11.360buyimg.com/img/jfs/t1/34483/4/12745/287680/5d0a3e0cE6a16c0c2/0eba1f72b058e7a9.jpg",
				"similarity": 0.0000035731013492264664,
				"skuId": 50514064498,
				"skuName": "電視櫃酒櫃家居擺設銅製風水大象擺件風水象一對吸水象客廳裝飾品房間門口桌子擺件 光面小號直鼻子",
				"skuPrice": "139.710007",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/47236893890.html",
				"detailUrl": "https://item.jd.com/47236893890.html",
				"dis": 1.1880105808367196,
				"imageUrl": "https://img30.360buyimg.com/img/jfs/t1/47394/23/150/200764/5cd2df0eEb3249d82/30433419a91b5bc8.jpg",
				"similarity": 0.0000034741448807842353,
				"skuId": 47236893890,
				"skuName": "【放心購】旗艦店品牌特賣大號菸灰缸創意個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品 吉象(金)",
				"skuPrice": "56.87",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/10743484568.html",
				"detailUrl": "https://item.jd.com/10743484568.html",
				"dis": 1.1943262761867044,
				"imageUrl": "https://img30.360buyimg.com/img/jfs/t3280/278/3110306065/217392/a0ecac3f/57ed0e6cN69c0b458.jpg",
				"similarity": 0.0000031601302813631396,
				"skuId": 10743484568,
				"skuName": "大號菸灰缸創意個性可愛中式復古擺件男朋友酒吧家居客廳禮品 聚寶盆金色",
				"skuPrice": "29.90",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/51249866615.html",
				"detailUrl": "https://item.jd.com/51249866615.html",
				"dis": 1.194383463536732,
				"imageUrl": "https://img20.360buyimg.com/img/jfs/t1/40632/33/8024/200602/5d176a4fE6b06bfe1/3ad7cdec0fecdacc.jpg",
				"similarity": 0.0000031574206601108436,
				"skuId": 51249866615,
				"skuName": "大號菸灰缸創意個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品 聚寶盆(銀",
				"skuPrice": "47",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/46565580236.html",
				"detailUrl": "https://item.jd.com/46565580236.html",
				"dis": 1.1943849273873144,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/61710/23/3154/267121/5d156d67E6cf68de9/29ca688a42ab3987.jpg",
				"similarity": 0.0000031573513312098255,
				"skuId": 46565580236,
				"skuName": "ぎあぎ2019新品上市大號菸灰缸創意個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品 聚寶盆(銀",
				"skuPrice": "48.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/32415321500.html",
				"detailUrl": "https://item.jd.com/32415321500.html",
				"dis": 1.1970354433098462,
				"imageUrl": "https://img11.360buyimg.com/img/jfs/t21157/28/2265732432/110333/efc08ee0/5b8e4c78Nb22f69cc.jpg",
				"similarity": 0.0000030342851884694214,
				"skuId": 32415321500,
				"skuName": "亞禾寵物狗狗零食磨牙潔齒棒狗咬膠除口臭耐磨耐咬潔齒骨牙刷骨中型犬160克一根裝 三根裝 雞肉味",
				"skuPrice": "39.90",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/50514064493.html",
				"detailUrl": "https://item.jd.com/50514064493.html",
				"dis": 1.1981706748539624,
				"imageUrl": "https://img11.360buyimg.com/img/jfs/t1/55120/13/2839/289491/5d0a3e00Ea188ccad/01791fcd3146d36c.jpg",
				"similarity": 0.000002983053535081516,
				"skuId": 50514064493,
				"skuName": "電視櫃酒櫃家居擺設銅製風水大象擺件風水象一對吸水象客廳裝飾品房間門口桌子擺件 光面大號卷鼻子",
				"skuPrice": "554.95",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/43329959824.html",
				"detailUrl": "https://item.jd.com/43329959824.html",
				"dis": 1.2029402057459049,
				"imageUrl": "https://img13.360buyimg.com/img/jfs/t1/30338/22/5942/212999/5c8b0b83E00420cae/4bd9af49ae04bdc8.jpg",
				"similarity": 0.0000027770929931625727,
				"skuId": 43329959824,
				"skuName": "京東優選  菸灰缸大號 辦公室大號菸灰缸創意個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品 聚寶盆(銀",
				"skuPrice": "45.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/44746861447.html",
				"detailUrl": "https://item.jd.com/44746861447.html",
				"dis": 1.2047647378554869,
				"imageUrl": "https://img12.360buyimg.com/img/jfs/t1/36251/3/8553/121935/5cccaa0aE69fd67df/a68b176d2a368406.jpg",
				"similarity": 0.000002702120372646965,
				"skuId": 44746861447,
				"skuName": "賜帛 釣魚競技竿掛天然手工製作魚竿架炮臺無後掛 100cm左右牛頭支架",
				"skuPrice": "191.00",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/50514064495.html",
				"detailUrl": "https://item.jd.com/50514064495.html",
				"dis": 1.2117695742714454,
				"imageUrl": "https://img1.360buyimg.com/img/jfs/t1/69987/1/2391/286701/5d0a3e07E8ad09bfc/84802b65ab75f303.jpg",
				"similarity": 0.0000024326094070722,
				"skuId": 50514064495,
				"skuName": "電視櫃酒櫃家居擺設銅製風水大象擺件風水象一對吸水象客廳裝飾品房間門口桌子擺件 光面大號直鼻子",
				"skuPrice": "554.950012",
				"wareLabel": "非自營"
			}, {
				"cls": 300,
				"clsName": "全部",
				"detailAppUrl": "https://item.m.jd.com/product/25979119704.html",
				"detailUrl": "https://item.jd.com/25979119704.html",
				"dis": 1.213176995949066,
				"imageUrl": "https://img10.360buyimg.com/img/jfs/t16036/107/1407780976/216148/b9ff2a7c/5a50c00aN97bc19e6.jpg",
				"similarity": 0.0000023817922176752668,
				"skuId": 25979119704,
				"skuName": "大號菸灰缸創意個性中式復古擺件男朋友爸爸酒吧家居客廳ktv禮品 吉象(銀)",
				"skuPrice": "40.00",
				"wareLabel": "非自營"
			}]
		}],
		"img_height": 322,
		"img_width": 674,
		"main_category_list": "300|7|1|14|6|5|4|0|10|2|8|9|3|13|11|12",
		"main_category_names": "全部|玩具樂器|上衣|其他|食品飲料|數碼家電|箱包|裙裝|家居家裝|下衣|配飾|個護洗化|鞋靴|綠植|手機|圖書影音",
		"message": "Interface Succeed!",
		"query_id": "c4610c37224b21ccfbf60b349fed06bc",
		"status": "0"
	}
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章