diff --git a/html/home/js/home.js b/html/home/js/home.js
index bc577b8..92154c8 100644
--- a/html/home/js/home.js
+++ b/html/home/js/home.js
@@ -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 = '
' + (markets.length + 1) + '
' +
- 'HFH/USDT24H 0.1500
0.15000.1500 USD
+0.00%
';
- ul.appendChild(sliderItem);
+ // var sliderItem = document.createElement('li');
+ // sliderItem.className = "gain-item-list mui-table-view-cell";
+ // sliderItem.innerHTML = '' + (markets.length + 1) + '
' +
+ // 'HFH/USDT24H 0.1500
0.15000.1500 USD
+0.00%
';
+ // ul.appendChild(sliderItem);
} else {}
},
@@ -328,6 +328,9 @@ function getNews() {
sliderItem.className = 'mui-slider-item';
sliderItem.innerHTML = '' + resultData[i].title + '
';
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
+ }
+ })
+ });
}
\ No newline at end of file
diff --git a/mine/html/wallet_my.html b/mine/html/wallet_my.html
index 025f608..a06d75e 100644
--- a/mine/html/wallet_my.html
+++ b/mine/html/wallet_my.html
@@ -496,14 +496,14 @@
}
})
//取消市商申请
- document.getElementById("cancel-M").addEventListener("tap", function() {
- mui.confirm(dataInfo.langue.marketMsg, dataInfo.langue.marketNote, [dataInfo.langue.no, dataInfo.langue.yes],
- function(e) {
- if (e.index == 1) {
- cancelMarket();
- }
- });
- });
+ // document.getElementById("cancel-M").addEventListener("tap", function() {
+ // mui.confirm(dataInfo.langue.marketMsg, dataInfo.langue.marketNote, [dataInfo.langue.no, dataInfo.langue.yes],
+ // function(e) {
+ // if (e.index == 1) {
+ // cancelMarket();
+ // }
+ // });
+ // });
//登录
document.getElementById("login").addEventListener("tap", function() {
app.openWin("wallet_login.html", "my/wallet_login.html");