Przeglądaj źródła

产权交易

RongCheng
庞东旭 1 rok temu
rodzic
commit
7de8d1fd47
6 zmienionych plików z 55 dodań i 4 usunięć
  1. BIN
      static/images/user_index_icon10.png
  2. BIN
      static/images/user_index_icon9.png
  3. BIN
      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

BIN
static/images/user_index_icon10.png Wyświetl plik

Przed Po
Szerokość: 20  |  Wysokość: 20  |  Rozmiar: 1.7 KiB

BIN
static/images/user_index_icon9.png Wyświetl plik

Przed Po
Szerokość: 20  |  Wysokość: 20  |  Rozmiar: 1.6 KiB

BIN
static/images/user_index_icon9_red.png Wyświetl plik

Przed Po
Szerokość: 20  |  Wysokość: 20  |  Rozmiar: 1.8 KiB

+ 5
- 0
static/js/project/listingItems/items.js Wyświetl plik

@@ -231,6 +231,11 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
tools.initError('报名已结束!'); tools.initError('报名已结束!');
return; return;
} }
if (module.data.signup=='1'){
tools.initError("已报名,请等待审核结果!");
return;
}

tools.doGet(userData, {}, module.userData); tools.doGet(userData, {}, module.userData);


} }


+ 40
- 0
static/js/project/user/index.js Wyświetl plik

@@ -652,12 +652,41 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor",
}) })
$('#page_s4').html('共' + pageCount + '页') $('#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; module.data.applicationInformationList = content;
var applicationInformationData = template('applicationInformationData', module.data); var applicationInformationData = template('applicationInformationData', module.data);
$("#applicationInformationContent").html(applicationInformationData); $("#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){ tabCheck = function(type){
document.getElementById('user').className = ''; document.getElementById('user').className = '';
// document.getElementById('bank').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 Wyświetl plik

@@ -162,7 +162,7 @@
<div class="clear"></div> <div class="clear"></div>
</li> </li>
<li id="icon-list5" onclick="tabLeftCheck('icon-list5')"> <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> <p class="fl">我的报名</p>
<div class="clear"></div> <div class="clear"></div>
</li> </li>
@@ -710,13 +710,19 @@
{{each applicationInformationList as value i}} {{each applicationInformationList as value i}}
<tr> <tr>
<td>{{i+1}}</td> <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.depositStatus=='1'?'成功':'失败'}}</td>
<td>{{value.biddingStartTime}}</td> <td>{{value.biddingStartTime}}</td>
<td>{{value.biddingStopTime}}</td> <td>{{value.biddingStopTime}}</td>
<td>{{value.biddingStopTime}}</td>
<td><p id="endTime{{i}}"></p></td>
<td> <td>
<input type="button" value="查看详情" onclick="goProject({{value.projectId}})" class="iWanna"/>
<input type="button" value="查看" onclick="goProject({{value.projectId}})" class="iWanna"/>
</td> </td>
</tr> </tr>
{{/each}} {{/each}}


Ładowanie…
Anuluj
Zapisz