diff --git a/static/images/user_index_icon10.png b/static/images/user_index_icon10.png new file mode 100644 index 0000000..95e531c Binary files /dev/null and b/static/images/user_index_icon10.png differ diff --git a/static/images/user_index_icon9.png b/static/images/user_index_icon9.png new file mode 100644 index 0000000..e4d6e59 Binary files /dev/null and b/static/images/user_index_icon9.png differ diff --git a/static/images/user_index_icon9_red.png b/static/images/user_index_icon9_red.png new file mode 100644 index 0000000..bd814f1 Binary files /dev/null and b/static/images/user_index_icon9_red.png differ diff --git a/static/js/project/listingItems/items.js b/static/js/project/listingItems/items.js index 7ca7ffc..d1cbf91 100644 --- a/static/js/project/listingItems/items.js +++ b/static/js/project/listingItems/items.js @@ -231,6 +231,11 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function tools.initError('报名已结束!'); return; } + if (module.data.signup=='1'){ + tools.initError("已报名,请等待审核结果!"); + return; + } + tools.doGet(userData, {}, module.userData); } diff --git a/static/js/project/user/index.js b/static/js/project/user/index.js index f394d1b..e5d7901 100644 --- a/static/js/project/user/index.js +++ b/static/js/project/user/index.js @@ -652,12 +652,41 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", }) $('#page_s4').html('共' + pageCount + '页') } + + content.forEach((res,index)=>{ + setInterval(()=>{ + res.endTime = new Date(res.biddingStopTime) - new Date(); + if (res.endTime <= 0){ + document.getElementById('endTime'+index).innerHTML = '已结束' + return; + } + document.getElementById('endTime'+index).innerHTML = TimeInterval(res.endTime) + },1000) + }) + module.data.applicationInformationList = content; var applicationInformationData = template('applicationInformationData', module.data); $("#applicationInformationContent").html(applicationInformationData); } } + + TimeInterval = function(timestamp) { + //时间戳转化为天时分秒 + // 总秒数 + var second = Math.floor(timestamp/ 1000); + // 天数 + var day = Math.floor(second / 3600 / 24); + // 小时 + var hr = Math.floor(second / 3600 % 24); + // 分钟 + var min = Math.floor(second / 60 % 60); + // 秒 + var sec = Math.floor(second % 60); + return (day?day + "天":'') + (hr?hr+ "小时":'') + ( min?min + "分钟":'') + sec + "秒"; + + } + tabCheck = function(type){ document.getElementById('user').className = ''; // document.getElementById('bank').className = ''; @@ -1294,6 +1323,17 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor", } } + document.getElementById('icon-list5').onmouseout = function(){ + document.getElementById('icon5').src = '../../static/images/user_index_icon9.png' + } + document.getElementById('icon-list5').onmouseover = function(){ + if(themeColor == 'red'){ + document.getElementById('icon5').src = '../../static/images/user_index_icon9_red.png' + }else if(themeColor == 'green') { + document.getElementById('icon5').src = '../../static/images/user_index_icon10.png' + } + } + } diff --git a/view/user/user.html b/view/user/user.html index cf06bcf..0de922f 100644 --- a/view/user/user.html +++ b/view/user/user.html @@ -162,7 +162,7 @@
我的报名