|
@@ -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);
|