Explorar el Código

产权交易

newProperty
庞东旭 hace 1 año
padre
commit
cb1c026867
Se han modificado 2 ficheros con 13 adiciones y 15 borrados
  1. +1
    -3
      static/js/project/bidding/biddingList.js
  2. +12
    -12
      static/js/project/user/index.js

+ 1
- 3
static/js/project/bidding/biddingList.js Ver fichero

@@ -159,7 +159,6 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
console.log(data)
var content = data.rows;
var pageCount = (data.total/module.data.pageSize).toFixed(0);
console.log(pageCount)
if (pageCount < 1){
pageCount = 1;
}
@@ -255,7 +254,6 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
}

turnThePage = function (pageNum) {
module.data.pageNum = pageNum;
module.data.form.pageNum = pageNum ;
tools.doGet(biddingList, module.data.form, module.biddingList,true);
}
@@ -311,7 +309,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT
// module.data.form.signupStopTime= $('#signEndTimeStr').val();
// module.data.form.biddingStartTime= $('#auctionStartTimeStr').val();
// module.data.form.biddingStopTime= $('#endTimeStr').val();
module.data.form.pageNum= module.data.pageNum;
module.data.form.pageNum= '1';
module.data.form.pageSize= module.data.pageSize;

if (module.data.form.signupStartTime){


+ 12
- 12
static/js/project/user/index.js Ver fichero

@@ -669,18 +669,18 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor",
})
$('#page_s4').html('共' + pageCount + '页')
}
// content.forEach((res,index)=>{
// res.depositStatus = module.data.depositStatusOption.filter(function (e) { return e.dictValue == res.depositStatus; })[0].dictLabel;
//
// setInterval(()=>{
// res.endTime = new Date(res.biddingStopTime) - new Date();
// if (res.endTime <= 0){
// document.getElementById('endTime'+res.id).innerHTML = '已结束'
// return;
// }
// document.getElementById('endTime'+res.id).innerHTML = TimeInterval(res.endTime)
// },1000)
// })
content.forEach((res,index)=>{
res.depositStatus = module.data.depositStatusOption.filter(function (e) { return e.dictValue == res.depositStatus; })[0].dictLabel;
// setInterval(()=>{
// res.endTime = new Date(res.biddingStopTime) - new Date();
// if (res.endTime <= 0){
// document.getElementById('endTime'+res.id).innerHTML = '已结束'
// return;
// }
// document.getElementById('endTime'+res.id).innerHTML = TimeInterval(res.endTime)
// },1000)
})

module.data.applicationInformationList = content;
var applicationInformationData = template('applicationInformationData', module.data);


Cargando…
Cancelar
Guardar