修改首页及去掉我的页面的市商点击事件

master
joeyoyo 5 years ago
parent 606dba1e0d
commit 10320ed7d6
  1. 26
      html/home/js/home.js
  2. 16
      mine/html/wallet_my.html

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

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

Loading…
Cancel
Save