Kaynağa Gözat

荣成产交

RongCheng
庞东旭 1 yıl önce
ebeveyn
işleme
4a3f5638f4
2 değiştirilmiş dosya ile 120 ekleme ve 77 silme
  1. +107
    -64
      static/js/project/listingItems/items2.js
  2. +13
    -13
      static/js/project/user/index.js

+ 107
- 64
static/js/project/listingItems/items2.js Dosyayı Görüntüle

@@ -22,7 +22,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function


module.init = function (page) { module.init = function (page) {
//获取焦点图信息 //获取焦点图信息
//tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true);
tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true);
//底部友情链接 //底部友情链接
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);


@@ -99,7 +99,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.webConfigInformation = function (data) { module.webConfigInformation = function (data) {
if (data.code == 200) { if (data.code == 200) {
var content = data.data; var content = data.data;
console.log(content)
//console.log(content)
//document.getElementById('time').innerHTML = '延时周期:'+content[8].configValue+content[8].remark+'<i class="wh">?</i>' //document.getElementById('time').innerHTML = '延时周期:'+content[8].configValue+content[8].remark+'<i class="wh">?</i>'
module.data.timeConfig = parseFloat(content[8].configValue); module.data.timeConfig = parseFloat(content[8].configValue);
module.data.titleConfig = content[9].configValue; module.data.titleConfig = content[9].configValue;
@@ -113,14 +113,16 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.bottomFriendsLinks = function (data) { module.bottomFriendsLinks = function (data) {
if (data.code == 200) { if (data.code == 200) {
var content = data.data; var content = data.data;
console.log(content)
//console.log(content)
module.data.friendsLinksList = content; module.data.friendsLinksList = content;
var friendsLinksData = template('friendsLinksData', module.data); var friendsLinksData = template('friendsLinksData', module.data);
$("#friendsLinksContent").html(friendsLinksData); $("#friendsLinksContent").html(friendsLinksData);
} }
} }

var t = 3;
module.dataCompare = function(signupStartTime,signupStopTime,biddingStartTime,biddingStopTime){ module.dataCompare = function(signupStartTime,signupStopTime,biddingStartTime,biddingStopTime){
// console.log('aaaaaaaaaaa')
//console.log('aaaaaaaaaaa')
var signupStartTime = signupStartTime; var signupStartTime = signupStartTime;
var signupStopTime = signupStopTime; var signupStopTime = signupStopTime;
var biddingStartTime = biddingStartTime; var biddingStartTime = biddingStartTime;
@@ -165,6 +167,20 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
// console.log('<span>距竞价结束还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') // console.log('<span>距竞价结束还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒')
$('#countType').html('竞价中') $('#countType').html('竞价中')
$('#countDown').html('<span>距竞价结束还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') $('#countDown').html('<span>距竞价结束还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒')
if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){
document.getElementById('showNowMoney').style.display = 'table-row';
var timName = document.getElementById('timeDown');
if(timName) {
document.getElementById('timeDown').style.display = 'inline-block';
timName.innerHTML = t + '<b style="color: #666666">秒后自动刷新</b>';
}
t--;
if (t < 0) {
t = 3;
tools.doGet(biddinglist, {projectId: getQueryVariable('id')}, module.biddinglistInformation, true);
}
}

}else if (nowTime>Date.parse(biddingStopTime)){ }else if (nowTime>Date.parse(biddingStopTime)){
//竞价结束 //竞价结束
$('#countType').html('') $('#countType').html('')
@@ -347,33 +363,33 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
setTimeout(function(){ setTimeout(function(){
var outProjectInformationData = template('outProjectInformationData', module.data); var outProjectInformationData = template('outProjectInformationData', module.data);
$("#outProjectInformationContent").html(outProjectInformationData); $("#outProjectInformationContent").html(outProjectInformationData);
var timName = document.getElementById('timeDown');
if(timName){
var t = 3;
module.data.timeDown = setInterval(function(){
// console.log($('#countType').html())
// if ($('#countType').html()!='竞价中'){
// clearInterval(module.data.timeDown)
// document.getElementById('timeDown').style.display = 'none';
// return;
// }
timName.innerHTML = t+'<b style="color: #666666">秒后自动刷新</b>';
t--;
document.getElementById('timeDown').style.display = 'inline-block';
if(t<0){
t = 3;
let biddingStartTime = content.biddingStartTime;
let biddingStopTime = content.biddingStopTime;
var nowTime = Date.parse(new Date());
if(Date.parse(biddingStartTime)<nowTime&&nowTime<Date.parse(biddingStopTime)){
//正在竞价
//交易项目竞价记录
tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true);
}
}
}, 1000)
}
// var timName = document.getElementById('timeDown');
// if(timName){
// var t = 3;
//
// module.data.timeDown = setInterval(function(){
// // console.log($('#countType').html())
// // if ($('#countType').html()!='竞价中'){
// // clearInterval(module.data.timeDown)
// // document.getElementById('timeDown').style.display = 'none';
// // return;
// // }
// timName.innerHTML = t+'<b style="color: #666666">秒后自动刷新</b>';
// t--;
// document.getElementById('timeDown').style.display = 'inline-block';
// if(t<0){
// t = 3;
// let biddingStartTime = content.biddingStartTime;
// let biddingStopTime = content.biddingStopTime;
// var nowTime = Date.parse(new Date());
// if(Date.parse(biddingStartTime)<nowTime&&nowTime<Date.parse(biddingStopTime)){
// //正在竞价
// //交易项目竞价记录
// tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true);
// }
// }
// }, 1000)
// }
},2000) },2000)


$("#know").html(module.data.know); $("#know").html(module.data.know);
@@ -425,18 +441,25 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
let signupStartTime = module.data.outProjectInformationDetail.signupStartTime; let signupStartTime = module.data.outProjectInformationDetail.signupStartTime;
let signupStopTime = module.data.outProjectInformationDetail.signupStopTime; let signupStopTime = module.data.outProjectInformationDetail.signupStopTime;
let biddingStartTime = module.data.outProjectInformationDetail.biddingStartTime; let biddingStartTime = module.data.outProjectInformationDetail.biddingStartTime;
let biddingStopTime = module.data.outProjectInformationDetail.biddingStopTime;
let biddingStopTime = module.data.outProjectInformationDetail.biddingStopTime;//延时后结束时间
let biddingStopSetime = module.data.outProjectInformationDetail.biddingStopSetime;//原始结束时间


var nowTime = Date.parse(new Date($.ajax({type:'HEAD',async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"))); var nowTime = Date.parse(new Date($.ajax({type:'HEAD',async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date")));
var difference = Date.parse(biddingStopTime)-nowTime;
var difference = Date.parse(biddingStopTime)-nowTime;//延时后时间差
var differenceSetime = Date.parse(biddingStopSetime)-nowTime;//原始时间差
// var centerTime = module.data.timeConfig * 60 * 1000 // var centerTime = module.data.timeConfig * 60 * 1000
var centerTime = content.delayPeriod * 1000
var centerTime = content.delayPeriod * 1000//延时周期

var m,s;
m = Math.floor(difference/1000/60%60);
s = Math.floor(difference/1000%60);
if(s%2 == 0&&centerTime!=0){
tools.doGet(getBiddingStopTime+getQueryVariable('id'), {}, module.getBiddingStopTime,true);
}


if ( 0 <= difference&&difference <= centerTime){
// console.log("竞价最后两分钟")
if ( differenceSetime <= 0 && difference >= 0 && difference <= centerTime){
console.log("竞价最后两分钟")
//正在竞价 //正在竞价
var m,s;
if(module.data.outProjectInformationDetail.biddingType == '自由竞价'){ if(module.data.outProjectInformationDetail.biddingType == '自由竞价'){
document.getElementById('biddingTable').style.display = 'none'; document.getElementById('biddingTable').style.display = 'none';
document.getElementById('biddingTitle').style.display = 'block'; document.getElementById('biddingTitle').style.display = 'block';
@@ -444,10 +467,21 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
} }
// document.getElementById('swiperType').style.display = 'block'; // document.getElementById('swiperType').style.display = 'block';
module.data.biddingTimeType = 1; module.data.biddingTimeType = 1;
m = Math.floor(difference/1000/60%60);
s = Math.floor(difference/1000%60);
$('#countType').html('竞价中') $('#countType').html('竞价中')
$('#countDown').html('<span>距竞价结束还有:0</span>天<span>0</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') $('#countDown').html('<span>距竞价结束还有:0</span>天<span>0</span>时<span>'+m+'</span>分<span>'+s+'</span>秒')
if(module.data.outProjectInformationDetail.biddingType != '自由竞价' && module.data.biddingTimeType != 2){
document.getElementById('showNowMoney').style.display = 'table-row';
var timName = document.getElementById('timeDown');
if(timName) {
document.getElementById('timeDown').style.display = 'inline-block';
timName.innerHTML = t + '<b style="color: #666666">秒后自动刷新</b>';
}
t--;
if (t < 0) {
t = 3;
tools.doGet(biddinglist, {projectId: getQueryVariable('id')}, module.biddinglistInformation, true);
}
}
if(module.data.loginNow){ //判断是否登录(已登录) if(module.data.loginNow){ //判断是否登录(已登录)
if(module.data.signup == 1){ //判断是否报名(已报名) if(module.data.signup == 1){ //判断是否报名(已报名)
if( module.data.biddingTimeType == 1 ){ //判断当前竞价状态(竞价中) if( module.data.biddingTimeType == 1 ){ //判断当前竞价状态(竞价中)
@@ -459,6 +493,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function


document.getElementById('moneyText').style.display = 'table-row'; document.getElementById('moneyText').style.display = 'table-row';
document.getElementById('moneyBtn').style.display = 'flex'; document.getElementById('moneyBtn').style.display = 'flex';
$('.swiperInput').css('display','block')
}else if( module.data.biddingTimeType == 3 ){ //判断当前竞价状态(竞价未开始) }else if( module.data.biddingTimeType == 3 ){ //判断当前竞价状态(竞价未开始)
document.getElementById('moneyText').style.display = 'none'; document.getElementById('moneyText').style.display = 'none';
document.getElementById('moneyBtn').style.display = 'none'; document.getElementById('moneyBtn').style.display = 'none';
@@ -510,7 +545,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
document.getElementById('signBtn2').style.display = 'block'; document.getElementById('signBtn2').style.display = 'block';
} }
} }
console.log(s+'-------------'+m)
//console.log(s+'-------------'+m)
if (s < 1 && m < 1){ if (s < 1 && m < 1){
console.log("竞价结束22222222222") console.log("竞价结束22222222222")
tools.doGet(getBiddingStopTime+getQueryVariable('id'), {}, function(data){ tools.doGet(getBiddingStopTime+getQueryVariable('id'), {}, function(data){
@@ -521,10 +556,13 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
let timeNew = Date.parse(data.data) + 0 - nowDate; let timeNew = Date.parse(data.data) + 0 - nowDate;
if (timeNew > 0) { if (timeNew > 0) {
module.data.outProjectInformationDetail.biddingStopTime = data.data; module.data.outProjectInformationDetail.biddingStopTime = data.data;
// module.dataCompare(signupStartTime,signupStopTime,biddingStartTime,data.data);
$('.swiperInput').css('display','block')
// module.data.biddingTimeType = 1;
}else{ }else{
$('#countType').html('') $('#countType').html('')
$('#countDown').html('竞价结束') $('#countDown').html('竞价结束')
$('#timeDown').css('display','none');
$('.swiperInput').css('display','none');
// document.getElementById('swiperType').style.display = 'none'; // document.getElementById('swiperType').style.display = 'none';
document.getElementById('biddingTable').style.display = 'table'; document.getElementById('biddingTable').style.display = 'table';
document.getElementById('biddingTitle').style.display = 'none'; document.getElementById('biddingTitle').style.display = 'none';
@@ -542,7 +580,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
if (!signupStopTime){console.log('缺失报名结束时间');return;} if (!signupStopTime){console.log('缺失报名结束时间');return;}
if (!biddingStartTime){console.log('缺失竞价开始时间');return;} if (!biddingStartTime){console.log('缺失竞价开始时间');return;}
if (!biddingStopTime){console.log('缺失竞价结束时间');return;} if (!biddingStopTime){console.log('缺失竞价结束时间');return;}
module.dataCompare(signupStartTime,signupStopTime,biddingStartTime,biddingStopTime);
module.dataCompare(signupStartTime,signupStopTime,biddingStartTime,biddingStopSetime);
} }
if(module.data.outProjectInformationDetail.biddingType == '自由竞价' && module.data.biddingTimeType != 2){ if(module.data.outProjectInformationDetail.biddingType == '自由竞价' && module.data.biddingTimeType != 2){
document.getElementById('biddingTable').style.display = 'none'; document.getElementById('biddingTable').style.display = 'none';
@@ -568,7 +606,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function


module.getBiddingStopTime = function(data){ module.getBiddingStopTime = function(data){
if (data.code == 200) { if (data.code == 200) {
$('#stopTime').html(data.data)
// $('#stopTime').html(data.data)
module.data.outProjectInformationDetail.biddingStopTime = data.data module.data.outProjectInformationDetail.biddingStopTime = data.data
} }
} }
@@ -599,11 +637,17 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.biddinglistInformation = function (data) { module.biddinglistInformation = function (data) {
if (data.code == 200) { if (data.code == 200) {
var content = data.rows; var content = data.rows;
if (content.length>0){
//console.log('abccba')
$("#nowMoneyBlock").html('<span id="nowMoney">'+content[0].money+'</span> 元');
}else{
$("#nowMoneyBlock").html('暂无出价');
}
if(module.data.biddinglistInformationDetailLength == content.length){ if(module.data.biddinglistInformationDetailLength == content.length){
return; return;
} }
console.log(module.data.outProjectInformationDetail.biddingDirect)
console.log(module.data.outProjectInformationDetail.biddingType)
//console.log(module.data.outProjectInformationDetail.biddingDirect)
//console.log(module.data.outProjectInformationDetail.biddingType)
setTimeout(function(){ setTimeout(function(){


if(module.data.outProjectInformationDetail.biddingType == '阶梯竞价'||module.data.outProjectInformationDetail.biddingType == '2'){ if(module.data.outProjectInformationDetail.biddingType == '阶梯竞价'||module.data.outProjectInformationDetail.biddingType == '2'){
@@ -637,10 +681,9 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.data.biddinglistInformationDetailLength = content.length; module.data.biddinglistInformationDetailLength = content.length;
var biddinglistInformationData = template('biddinglistInformationData', module.data); var biddinglistInformationData = template('biddinglistInformationData', module.data);
$("#tabDetail4").html(biddinglistInformationData); $("#tabDetail4").html(biddinglistInformationData);
if (content.length>0){$("#nowMoney").html(content[0].money);}



if (content.length>0){
//console.log('abccba')
$("#nowMoneyBlock").html('<span id="nowMoney">'+content[0].money+'</span> 元');}
} }
} }


@@ -648,7 +691,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.biddinglistInformationNew = function (data) { module.biddinglistInformationNew = function (data) {
if (data.code == 200) { if (data.code == 200) {
var content = data.rows; var content = data.rows;
console.log(module.data.biddinglistInformationDetail.length+'----------------------'+content.length)
//console.log(module.data.biddinglistInformationDetail.length+'----------------------'+content.length)
if (module.data.biddinglistInformationDetailLength<content.length){ if (module.data.biddinglistInformationDetailLength<content.length){
let time = new Date(Date.parse(new Date())+(2 * 60 * 1000)); let time = new Date(Date.parse(new Date())+(2 * 60 * 1000));
const Y = time.getFullYear() const Y = time.getFullYear()
@@ -666,7 +709,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function


//焦点图滚动 //焦点图滚动
module.swiperBanner = function (type) { module.swiperBanner = function (type) {
console.log('aaaa')
//console.log('aaaa')
var viewSwiper = new Swiper('.view .swiper-container', { var viewSwiper = new Swiper('.view .swiper-container', {
onSlideChangeStart: function() { onSlideChangeStart: function() {
updateNavPosition() updateNavPosition()
@@ -674,7 +717,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
}) })


$('.view .arrow-left,.preview .arrow-left').on('click', function(e) { $('.view .arrow-left,.preview .arrow-left').on('click', function(e) {
console.log('abc')
//console.log('abc')
e.preventDefault() e.preventDefault()
if (viewSwiper.activeIndex == 0) { if (viewSwiper.activeIndex == 0) {
viewSwiper.swipeTo(viewSwiper.slides.length - 1, 1000); viewSwiper.swipeTo(viewSwiper.slides.length - 1, 1000);
@@ -684,7 +727,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
}) })


$('.view .arrow-right,.preview .arrow-right').on('click', function(e) { $('.view .arrow-right,.preview .arrow-right').on('click', function(e) {
console.log('abc')
//console.log('abc')
e.preventDefault() e.preventDefault()
if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) { if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) {
viewSwiper.swipeTo(0, 1000); viewSwiper.swipeTo(0, 1000);
@@ -742,7 +785,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.biddingSubmitMethod = function (data2) { module.biddingSubmitMethod = function (data2) {
let newMoney; let newMoney;
if (data2.data&&data2.code==200){ if (data2.data&&data2.code==200){
console.log(data2)
//console.log(data2)
newMoney = data2.data; newMoney = data2.data;
}else{ }else{
newMoney = module.data.outProjectInformationDetail.price; newMoney = module.data.outProjectInformationDetail.price;
@@ -814,10 +857,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
let timeNew = Date.parse(data.data) + 0 - nowDate; let timeNew = Date.parse(data.data) + 0 - nowDate;
if (timeNew > 0) { if (timeNew > 0) {
module.data.outProjectInformationDetail.biddingStopTime = data.data; module.data.outProjectInformationDetail.biddingStopTime = data.data;
module.dataCompare(
module.data.outProjectInformationDetail.signupStartTime,
module.data.outProjectInformationDetail.signupStopTime,
module.data.outProjectInformationDetail.biddingStartTime,data.data);
// module.dataCompare(
// module.data.outProjectInformationDetail.signupStartTime,
// module.data.outProjectInformationDetail.signupStopTime,
// module.data.outProjectInformationDetail.biddingStartTime,data.data);
}else{ }else{
$('#countType').html('') $('#countType').html('')
$('#countDown').html('竞价结束') $('#countDown').html('竞价结束')
@@ -827,9 +870,9 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.data.biddingTimeType = 2; module.data.biddingTimeType = 2;
return; return;
} }
tools.initError('出价成功');
} }
},true); },true);
tools.initError('出价成功');
// $('#money').val(0) // $('#money').val(0)
} }


@@ -861,8 +904,8 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
module.projectTypeDictionaries = function (data) { module.projectTypeDictionaries = function (data) {
if (data.code == 200 && module.data.outProjectInformationDetail.projectType!='') { if (data.code == 200 && module.data.outProjectInformationDetail.projectType!='') {
var content = data.data; var content = data.data;
console.log(content)
console.log((module.data.outProjectInformationDetail.projectType-1))
//console.log(content)
//console.log((module.data.outProjectInformationDetail.projectType-1))
var projectType = content[(module.data.outProjectInformationDetail.projectType-1)].dictLabel; var projectType = content[(module.data.outProjectInformationDetail.projectType-1)].dictLabel;
module.data.outProjectInformationDetail.projectType = projectType; module.data.outProjectInformationDetail.projectType = projectType;
var outProjectInformationData = template('outProjectInformationData', module.data); var outProjectInformationData = template('outProjectInformationData', module.data);
@@ -987,7 +1030,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function
newMoney = module.data.outProjectInformationDetail.price; newMoney = module.data.outProjectInformationDetail.price;
} }


console.log(newMoney);
//console.log(newMoney);
var data = {}; var data = {};
var projectId = getQueryVariable('id'); var projectId = getQueryVariable('id');
var memberId = tools.getCookie('memberId'); var memberId = tools.getCookie('memberId');
@@ -1039,7 +1082,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function


$('#money').val() == null||$('#money').val() == ''?$('#money').val(0):''; $('#money').val() == null||$('#money').val() == ''?$('#money').val(0):'';


console.log($('#money').val())
//console.log($('#money').val())


module.data.outProjectInformationDetail.ladderPrice?$('#money').val((parseFloat($('#money').val())+parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2)):document.getElementById('money').value += 1 module.data.outProjectInformationDetail.ladderPrice?$('#money').val((parseFloat($('#money').val())+parseFloat(module.data.outProjectInformationDetail.ladderPrice)).toFixed(2)):document.getElementById('money').value += 1




+ 13
- 13
static/js/project/user/index.js Dosyayı Görüntüle

@@ -46,7 +46,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor",
var tools = new Tools(); var tools = new Tools();
module.init = function (page) { module.init = function (page) {
//获取焦点图信息 //获取焦点图信息
//tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true);
tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true);
//底部友情链接 //底部友情链接
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);
//用户资料 //用户资料
@@ -669,18 +669,18 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor",
}) })
$('#page_s4').html('共' + pageCount + '页') $('#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; module.data.applicationInformationList = content;
var applicationInformationData = template('applicationInformationData', module.data); var applicationInformationData = template('applicationInformationData', module.data);


Yükleniyor…
İptal
Kaydet