|
|
|
@ -271,11 +271,11 @@ function initTopMarket() { |
|
|
|
|
ul.appendChild(li); |
|
|
|
|
liListener(li, markets[i].currencyPair) |
|
|
|
|
} |
|
|
|
|
var sliderItem = document.createElement('li'); |
|
|
|
|
sliderItem.className = "gain-item-list mui-table-view-cell"; |
|
|
|
|
sliderItem.innerHTML = '<div class="gain-item-list-ranking">' + (markets.length + 1) + '</div>' + |
|
|
|
|
'<div class="gain-item-list-name"><span class="name1">HFH/USDT</span><span class="name2">24H 0.1500</span></div><div class="gain-item-list-price"><span class="price1">0.1500</span><span class="price2">0.1500 USD</span></div><div class="gain-item-list-info">+0.00%</div>'; |
|
|
|
|
ul.appendChild(sliderItem); |
|
|
|
|
// var sliderItem = document.createElement('li');
|
|
|
|
|
// sliderItem.className = "gain-item-list mui-table-view-cell";
|
|
|
|
|
// sliderItem.innerHTML = '<div class="gain-item-list-ranking">' + (markets.length + 1) + '</div>' +
|
|
|
|
|
// '<div class="gain-item-list-name"><span class="name1">HFH/USDT</span><span class="name2">24H 0.1500</span></div><div class="gain-item-list-price"><span class="price1">0.1500</span><span class="price2">0.1500 USD</span></div><div class="gain-item-list-info">+0.00%</div>';
|
|
|
|
|
// ul.appendChild(sliderItem);
|
|
|
|
|
|
|
|
|
|
} else {} |
|
|
|
|
}, |
|
|
|
@ -328,6 +328,9 @@ function getNews() { |
|
|
|
|
sliderItem.className = 'mui-slider-item'; |
|
|
|
|
sliderItem.innerHTML = '<p class="mui-slider-title mui-ellipsis">' + resultData[i].title + '</p>'; |
|
|
|
|
sliderGroup.appendChild(sliderItem); |
|
|
|
|
if(resultData[i].title) { |
|
|
|
|
toSystemNotice(sliderItem, resultData[i].id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
var sliderItem = document.createElement('div'); |
|
|
|
|
sliderItem.className = 'mui-slider-item'; |
|
|
|
@ -423,4 +426,17 @@ function webJump(obj, url) { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 跳转指定公告
|
|
|
|
|
function toSystemNotice(obj, id) { |
|
|
|
|
obj.addEventListener('tap', function() { |
|
|
|
|
mui.openWindow({ |
|
|
|
|
url: '../../../mine/html/my/system_notice_value.html', |
|
|
|
|
id: '../../../mine/html/my/system_notice_value.html', |
|
|
|
|
extras: { |
|
|
|
|
_id: id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
} |