浏览代码

json update

andy 3 年之前
父节点
当前提交
876b576fb7
共有 6 个文件被更改,包括 62 次插入216 次删除
  1. 二进制
      .DS_Store
  2. 19 19
      columns.js
  3. 25 26
      goto.js
  4. 6 132
      json/Columns-1043.json
  5. 8 39
      json/cases-1043.json
  6. 4 0
      json/cases.json

二进制
.DS_Store


+ 19 - 19
columns.js

@@ -70,25 +70,25 @@ function get_data() {
         }
 
 
-        for(let i=0; i<msg[0].PopularColumns.length; i++){
-            PopularColumns+=
-            '<div class="col-12 col-md-4 ps-0"><div class="cardList__items">\
-                <a target="_blank" href="https://hhh.com.tw/columns/detail/'+msg[0].PopularColumns[i].Columnsid+'/"> <img src="'+msg[0].PopularColumns[i].ColumnsCoverImg+'" alt="">\
-            <div class="cardList__items__content">\
-                <a href="https://hhh.com.tw/columns/detail/'+msg[0].PopularColumns[i].Columnsid+'/"" target="_blank">\
-                    <div class="cardList__items--title cardList__items--ellipse">\
-                        '+msg[0].PopularColumns[i].Columnstitle+'\
-                    </div>\
-                </a>'
-                PopularColumns+='<p>'
-                for(k=0; k<msg[0].PopularColumns[i].ColumnsTag.length; k++){
-                    PopularColumns+='\
-                    <a class="likeSee__tag--item" href="https://hhh.com.tw/columns/lists/'+msg[0].PopularColumns[i].ColumnsTag[k].tag+'-keyword/all-columntypea/" arget="_blank">'+msg[0].PopularColumns[i].ColumnsTag[k].Tag+'</a>'
-                }
-                PopularColumns+='</p>'
-                PopularColumns+='</div></div></div>'
+        // for(let i=0; i<msg[0].PopularColumns.length; i++){
+        //     PopularColumns+=
+        //     '<div class="col-12 col-md-4 ps-0"><div class="cardList__items">\
+        //         <a target="_blank" href="https://hhh.com.tw/columns/detail/'+msg[0].PopularColumns[i].Columnsid+'/"> <img src="'+msg[0].PopularColumns[i].ColumnsCoverImg+'" alt="">\
+        //     <div class="cardList__items__content">\
+        //         <a href="https://hhh.com.tw/columns/detail/'+msg[0].PopularColumns[i].Columnsid+'/"" target="_blank">\
+        //             <div class="cardList__items--title cardList__items--ellipse">\
+        //                 '+msg[0].PopularColumns[i].Columnstitle+'\
+        //             </div>\
+        //         </a>'
+        //         PopularColumns+='<p>'
+        //         for(k=0; k<msg[0].PopularColumns[i].ColumnsTag.length; k++){
+        //             PopularColumns+='\
+        //             <a class="likeSee__tag--item" href="https://hhh.com.tw/columns/lists/'+msg[0].PopularColumns[i].ColumnsTag[k].tag+'-keyword/all-columntypea/" arget="_blank">'+msg[0].PopularColumns[i].ColumnsTag[k].Tag+'</a>'
+        //         }
+        //         PopularColumns+='</p>'
+        //         PopularColumns+='</div></div></div>'
             
-        }
+        // }
 
        
 
@@ -103,7 +103,7 @@ function get_data() {
 
         $('.OtherColumns').html(OtherColumns);
 
-        $('.PopularColumns').html(PopularColumns);
+        // $('.PopularColumns').html(PopularColumns);
 
         
 

+ 25 - 26
goto.js

@@ -244,48 +244,47 @@ function get_data() {
                             </div>
                         </div>`
 
-                for (var k = 0; k < msg[i].ProfileRecently.length; k++) {
+                for (var k = 0; k < msg[i].DesignerProfile.length; k++) {
                     CaseNews +=
                         '<div class="col-6 col-md-4 ps-0"\
                             <div class="vue-waterfall-slot">\
                              <div class="card CaseNews-Card">\
-                                 <a href="'+ msg[i].ProfileRecently[k].ProfileLink + '">\
+                                 <a href="'+ msg[i].DesignerProfile[k].ProfileLink + '">\
                                     <img class="img-fluid"\
-                                    src="'+ msg[i].ProfileRecently[k].ProfileImg + '"\
+                                    src="'+ msg[i].DesignerProfile[k].ProfileImg + '"\
                                     alt="幸福空間個案圖" class="card-img-top">\
                                 </a>\
                             </div>'
                     CaseNews += '<div class="card-body">'
-                    for (var z = 0; z < msg[i].ProfileRecently[k].ProfileTag.length; z++) {
+                    for (var z = 0; z < msg[i].DesignerProfile[k].ProfileTag.length; z++) {
                         // console.log(msg[i].ProfileRecently[k].ProfileTag.length)
                         CaseNews += '\
-                                <a target="_blank" href="https://hhh.com.tw/cases/lists/' + msg[i].ProfileRecently[k].ProfileTag[z].Tag + '-keyword/">\
-                                '+ msg[i].ProfileRecently[k].ProfileTag[z].Tag + '\
+                                <a target="_blank" href="https://hhh.com.tw/cases/lists/' + msg[i].DesignerProfile[k].ProfileTag[z].Tag + '-keyword/">\
+                                '+ msg[i].DesignerProfile[k].ProfileTag[z].Tag + '\
                                 </a>\
                                 ';
                     }
                     CaseNews += '</div></div></div></div>'
                 };
 
-                for (var x = 0; x < msg[i].ProfilePopularity.length; x++) {
-                    CasePopular +=
-                        '<div class="likeSee__rule"\
-                            <a href="'+ msg[i].ProfilePopularity[x].ProfileLink + '">\
-                                <div class="likeSee__bgImg">\
-                                    <img class="img-fluid" src="'+ msg[i].ProfilePopularity[x].ProfileImg + '" alt="幸福空間個案圖" class="card-img-top">\
-                                </div>\
-                            </a>'
-                    CasePopular += '<div class="likeSee__tag">'
-                    for (var y = 0; y < msg[i].ProfilePopularity[x].ProfileTag.length; y++) {
-                        // console.log(msg[i].ProfileRecently[k].ProfileTag.length)
-                        CasePopular += '\
-                                <a target="_blank" href="https://hhh.com.tw/cases/lists/' + msg[i].ProfilePopularity[x].ProfileTag[y].Tag + '-keyword/" class="likeSee__tag--item">\
-                                '+ msg[i].ProfilePopularity[x].ProfileTag[y].Tag + '\
-                                </a>\
-                                ';
-                    }
-                    CasePopular += '</div></div>'
-                };
+                // for (var x = 0; x < msg[i].ProfilePopularity.length; x++) {
+                //     CasePopular +=
+                //         '<div class="likeSee__rule"\
+                //             <a href="'+ msg[i].ProfilePopularity[x].ProfileLink + '">\
+                //                 <div class="likeSee__bgImg">\
+                //                     <img class="img-fluid" src="'+ msg[i].ProfilePopularity[x].ProfileImg + '" alt="幸福空間個案圖" class="card-img-top">\
+                //                 </div>\
+                //             </a>'
+                //     CasePopular += '<div class="likeSee__tag">'
+                //     for (var y = 0; y < msg[i].ProfilePopularity[x].ProfileTag.length; y++) {
+                //         CasePopular += '\
+                //                 <a target="_blank" href="https://hhh.com.tw/cases/lists/' + msg[i].ProfilePopularity[x].ProfileTag[y].Tag + '-keyword/" class="likeSee__tag--item">\
+                //                 '+ msg[i].ProfilePopularity[x].ProfileTag[y].Tag + '\
+                //                 </a>\
+                //                 ';
+                //     }
+                //     CasePopular += '</div></div>'
+                // };
                 // 個案細節
                 CaseDetail += '<div class="row px-0 mx-0">'
                 CaseDetail += '<div class="col-md-8 case-slick-box" style="overflow-y: hidden;"><button type="button" class="btn-close close-window d-block d-md-none mt-3 btn-close-white" style="margin-left:auto"></button><div class="img-wrapper-desktopp"><div class="CaseDetail-slick">'
@@ -508,7 +507,7 @@ function get_data() {
             $('.caseData-PC-left').html(CaseData);
             $('.caseData-PC-right').html(CaseData2);
             $('.CaseNews-Card').html(CaseNews);
-            $('.Case-popular').html(CasePopular);
+            // $('.Case-popular').html(CasePopular);
             $('.CaseModel').html(CaseDetail);
             $('#case-page-title').html(CasePageTitle);
             $('.case-img-quantity').html(CaseImgQuantity);

+ 6 - 132
json/Columns-1043.json

@@ -49,6 +49,7 @@
         "OtherColumns":[
             {
                 "Columnsid":"6392",
+                "Views":"1000",
                 "ColumnsCoverImg": "https://cloud.hhh.com.tw/upload/_hcolumn/content_20220113101218_0.jpg",
                 "Columnstitle":"擁擠小宅變身會呼吸的家!頂級日系廚具、珊瑚塗料演繹機能美學",
                 "ColumnsTag":[
@@ -71,6 +72,7 @@
             },
             {
                 "Columnsid":"6384",
+                "Views":"1000",
                 "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_99_02-1.jpg",
                 "Columnstitle":" 石英磚、文化石磚、馬賽克磚.....等磁磚是怎麼製作的?裝修前簡單了解它們的身世吧!",
                 "ColumnsTag":[
@@ -93,6 +95,7 @@
             },
             {
                 "Columnsid":"6368",
+                "Views":"1000",
                 "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_98_03.jpg",
                 "Columnstitle":"十分鐘快速了解磁磚種類、尺寸、機能、挑選方法!",
                 "ColumnsTag":[
@@ -115,6 +118,7 @@
             },   
             {
                 "Columnsid":"6325",
+                "Views":"1000",
                 "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_92_01.jpg",
                 "Columnstitle":"【跟動物一起住】有毛小孩的家,空間建材這樣挑",
                 "ColumnsTag":[
@@ -134,6 +138,7 @@
             },
             {
                 "Columnsid":"6298",
+                "Views":"1000",
                 "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_88_06.jpg",
                 "Columnstitle":"【建材知識】超耐磨木地板、PVC塑膠地板、SPC石塑地板?優缺一次看!",
                 "ColumnsTag":[
@@ -156,6 +161,7 @@
             },   
             {
                 "Columnsid":"6294",
+                "Views":"1000",
                 "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_86_01.jpg",
                 "Columnstitle":"想自己做木工DIY?那你一定要認識實木、集成材與三合板!",
                 "ColumnsTag":[
@@ -176,138 +182,6 @@
                     }
                 ]
             }
-        ],
-        "PopularColumns":[
-            
-            {
-                "Columnsid":"6384",
-                "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_99_02-1.jpg",
-                "Columnstitle":" 石英磚、文化石磚、馬賽克磚.....等磁磚是怎麼製作的?裝修前簡單了解它們的身世吧!",
-                "ColumnsTag":[
-                    {
-                        "Tag":"建材"
-                    },
-                    {
-                        "Tag":"磁磚"
-                    },
-                    {
-                        "Tag":"馬賽克磚"
-                    },
-                    {
-                        "Tag":"玻化磚"
-                    },
-                    {
-                        "Tag":"文化石"
-                    }
-                ]
-            },
-            {
-                "Columnsid":"6368",
-                "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_98_03.jpg",
-                "Columnstitle":"十分鐘快速了解磁磚種類、尺寸、機能、挑選方法!",
-                "ColumnsTag":[
-                    {
-                        "Tag":"磁磚"
-                    },
-                    {
-                        "Tag":"挑選"
-                    },
-                    {
-                        "Tag":"現代風"
-                    },
-                    {
-                        "Tag":"北歐風"
-                    },
-                    {
-                        "Tag":"鄉村風"
-                    }
-                ]
-            },   
-            {
-                "Columnsid":"6325",
-                "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_92_01.jpg",
-                "Columnstitle":"【跟動物一起住】有毛小孩的家,空間建材這樣挑",
-                "ColumnsTag":[
-                    {
-                        "Tag":"建材"
-                    },
-                    {
-                        "Tag":"寵物"
-                    },
-                    {
-                        "Tag":"地板"
-                    },
-                    {
-                        "Tag":"家具"
-                    }
-                ]
-            },
-            {
-                "Columnsid":"6298",
-                "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_88_06.jpg",
-                "Columnstitle":"【建材知識】超耐磨木地板、PVC塑膠地板、SPC石塑地板?優缺一次看!",
-                "ColumnsTag":[
-                    {
-                        "Tag":"建材知識"
-                    },
-                    {
-                        "Tag":"超耐磨木地板"
-                    },
-                    {
-                        "Tag":"PVC塑膠地板"
-                    },
-                    {
-                        "Tag":"SPC石塑地板"
-                    },
-                    {
-                        "Tag":"木地板"
-                    }
-                ]
-            },   
-            {
-                "Columnsid":"6294",
-                "ColumnsCoverImg": "https://images.hhh.com.tw/uploads/_hcolumn_orig/point03_86_01.jpg",
-                "Columnstitle":"想自己做木工DIY?那你一定要認識實木、集成材與三合板!",
-                "ColumnsTag":[
-                    {
-                        "Tag":"木工"
-                    },
-                    {
-                        "Tag":"diy"
-                    },
-                    {
-                        "Tag":"實木"
-                    },
-                    {
-                        "Tag":"集成材"
-                    },
-                    {
-                        "Tag":"三合板"
-                    }
-                ]
-            },
-            {
-                "Columnsid":"6392",
-                "ColumnsCoverImg": "https://cloud.hhh.com.tw/upload/_hcolumn/content_20220113101218_0.jpg",
-                "Columnstitle":"擁擠小宅變身會呼吸的家!頂級日系廚具、珊瑚塗料演繹機能美學",
-                "ColumnsTag":[
-                    {
-                        "Tag":"伸達"
-                    },
-                    {
-                        "Tag":"廚具"
-                    },
-                    {
-                        "Tag":"無毒"
-                    },
-                    {
-                        "Tag":"竹桓"
-                    },
-                    {
-                        "Tag":"塗料"
-                    }
-                ]
-            }
         ]
     }
 ]

+ 8 - 39
json/cases-1043.json

@@ -44,8 +44,11 @@
                 "TagLink":""
             }
         ],
-        "ProfileRecently":[
+        "DesignerProfile":[
             {
+                "designerid":"",
+                "casesid":"",
+                "Views":"1000",
                 "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14155_20211230151618.jpg",
                 "ProfileTag":[
                     {
@@ -64,6 +67,9 @@
                 "ProfileLink":""
             },
             {
+                "designerid":"",
+                "casesid":"",
+                "Views":"1000",
                 "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14154_20211230151111.jpg",
                 "ProfileTag":[
                     {
@@ -82,44 +88,7 @@
                 "ProfileLink":""
             }
         ],
-        "ProfilePopularity":[
-            {
-                "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14154_20211230151113.jpg",
-                "ProfileTag":[
-                    {
-                        "Tag":"北歐風",
-                        "TagLink":""
-                    },
-                    {
-                        "Tag":"新成屋",
-                        "TagLink":""
-                    },
-                    {
-                        "Tag":"大坪數",
-                        "TagLink":""
-                    }
-                ],
-                "ProfileLink":""
-            },
-            {
-                "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14155_20211230151625.jpg",
-                "ProfileTag":[
-                    {
-                        "Tag":"工業風",
-                        "TagLink":""
-                    },
-                    {
-                        "Tag":"新成屋",
-                        "TagLink":""
-                    },
-                    {
-                        "Tag":"大坪數",
-                        "TagLink":""
-                    }
-                ],
-                "ProfileLink":""
-            }
-        ],
+    
         "CaseDetail":[
             {
                 "CaseDetailImg":"https://cloud.hhh.com.tw/upload/_hcase_img/name_14151_20211230150533.jpg"

+ 4 - 0
json/cases.json

@@ -46,6 +46,7 @@
         "ProfileRecently":[
             {
                 "designerid":"",
+                "casesid":"",
                 "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14155_20211230151618.jpg",
                 "ProfileTag":[
                     {
@@ -65,6 +66,7 @@
             },
             {
                 "designerid":"",
+                "casesid":"",
                 "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14154_20211230151111.jpg",
                 "ProfileTag":[
                     {
@@ -86,6 +88,7 @@
         "ProfilePopularity":[
             {
                 "designerid":"",
+                "casesid":"",
                 "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14154_20211230151113.jpg",
                 "ProfileTag":[
                     {
@@ -105,6 +108,7 @@
             },
             {
                 "designerid":"",
+                "casesid":"",
                 "ProfileImg": "https://cloud.hhh.com.tw/upload/_hcase_img_orig/name_14155_20211230151625.jpg",
                 "ProfileTag":[
                     {