瀏覽代碼

产权交易

RongCheng
庞东旭 1 年之前
父節點
當前提交
7de8d1fd47
共有 6 個文件被更改,包括 55 次插入4 次删除
  1. 二進制
      static/images/user_index_icon10.png
  2. 二進制
      static/images/user_index_icon9.png
  3. 二進制
      static/images/user_index_icon9_red.png
  4. +5
    -0
      static/js/project/listingItems/items.js
  5. +40
    -0
      static/js/project/user/index.js
  6. +10
    -4
      view/user/user.html

二進制
static/images/user_index_icon10.png 查看文件

Before After
Width: 20  |  Height: 20  |  Size: 1.7 KiB

二進制
static/images/user_index_icon9.png 查看文件

Before After
Width: 20  |  Height: 20  |  Size: 1.6 KiB

二進制
static/images/user_index_icon9_red.png 查看文件

Before After
Width: 20  |  Height: 20  |  Size: 1.8 KiB

+ 5
- 0
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);

}


+ 40
- 0
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'
}
}


}



+ 10
- 4
view/user/user.html 查看文件

@@ -162,7 +162,7 @@
<div class="clear"></div>
</li>
<li id="icon-list5" onclick="tabLeftCheck('icon-list5')">
<img src="../../static/images/user_index_icon4.png" id="icon5" alt="" class="fl"/>
<img src="../../static/images/user_index_icon9.png" id="icon5" alt="" class="fl"/>
<p class="fl">我的报名</p>
<div class="clear"></div>
</li>
@@ -710,13 +710,19 @@
{{each applicationInformationList as value i}}
<tr>
<td>{{i+1}}</td>
<td>{{value.projectName}}</td>
<td style="width: 20%;"><p
style="display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
word-break: break-all;
overflow: hidden;"
>{{value.projectName}}</p></td>
<td>{{value.depositStatus=='1'?'成功':'失败'}}</td>
<td>{{value.biddingStartTime}}</td>
<td>{{value.biddingStopTime}}</td>
<td>{{value.biddingStopTime}}</td>
<td><p id="endTime{{i}}"></p></td>
<td>
<input type="button" value="查看详情" onclick="goProject({{value.projectId}})" class="iWanna"/>
<input type="button" value="查看" onclick="goProject({{value.projectId}})" class="iWanna"/>
</td>
</tr>
{{/each}}


Loading…
取消
儲存