|
|
@@ -1,7 +1,7 @@ |
|
|
|
/** |
|
|
|
* Created by Administrator on 2021/4/5. |
|
|
|
*/ |
|
|
|
define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function ($, template, Tools, swiper) { |
|
|
|
define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function ($, template, Tools ,Swiper) { |
|
|
|
//数据存储 |
|
|
|
var module = { |
|
|
|
data: { |
|
|
@@ -39,7 +39,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
//焦点图 |
|
|
|
setTimeout(function () { |
|
|
|
module.swiperBanner(); |
|
|
|
},2000) |
|
|
|
},5000) |
|
|
|
|
|
|
|
setTimeout(function(){//项目基本信息 |
|
|
|
tools.doGet(showImg + '/'+getQueryVariable('id'), {}, module.showImgInformation,true); |
|
|
@@ -146,8 +146,11 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
if(Date.parse(biddingStartTime)<nowTime&&nowTime<Date.parse(biddingStopTime)){ |
|
|
|
//正在竞价 |
|
|
|
module.data.biddingTimeType = 1; |
|
|
|
|
|
|
|
document.getElementById('biddingTitle').innerHTML = '竞价进行中...'; |
|
|
|
if(module.data.outProjectInformationDetail.biddingType == '自由竞价'){ |
|
|
|
document.getElementById('biddingTable').style.display = 'none'; |
|
|
|
document.getElementById('biddingTitle').style.display = 'block'; |
|
|
|
document.getElementById('biddingTitle').innerHTML = '竞价进行中...'; |
|
|
|
} |
|
|
|
document.getElementById('swiperType').style.display = 'block'; |
|
|
|
d = Math.floor(leftTime/1000/60/60/24); |
|
|
|
h = Math.floor(leftTime/1000/60/60%24); |
|
|
@@ -451,6 +454,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
}) |
|
|
|
|
|
|
|
$('.view .arrow-left,.preview .arrow-left').on('click', function(e) { |
|
|
|
console.log('abc') |
|
|
|
e.preventDefault() |
|
|
|
if (viewSwiper.activeIndex == 0) { |
|
|
|
viewSwiper.swipeTo(viewSwiper.slides.length - 1, 1000); |
|
|
@@ -458,7 +462,9 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
} |
|
|
|
viewSwiper.swipePrev() |
|
|
|
}) |
|
|
|
|
|
|
|
$('.view .arrow-right,.preview .arrow-right').on('click', function(e) { |
|
|
|
console.log('abc') |
|
|
|
e.preventDefault() |
|
|
|
if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) { |
|
|
|
viewSwiper.swipeTo(0, 1000); |
|
|
@@ -554,7 +560,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
//判断当前是否有人出价 |
|
|
|
if (data.data){ |
|
|
|
//判断用户出价不能低于当前出价最高价格 |
|
|
|
if(newMoney > $('#money').val()){ |
|
|
|
if(newMoney >= $('#money').val()){ |
|
|
|
tools.initError('出价不能低于当前出价最高价格'); |
|
|
|
return; |
|
|
|
} |
|
|
@@ -730,7 +736,6 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
tools.doGet(projectNewBidMoney+getQueryVariable('id'), {}, module.biddingSubmitMethodFirst); |
|
|
|
} |
|
|
|
|
|
|
|
//系统是否 |
|
|
|
module.biddingSubmitMethodFirst = function (data) { |
|
|
|
if (data.code == 200) { |
|
|
|
let newMoney; |
|
|
@@ -747,7 +752,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function |
|
|
|
var userId = tools.getCookie('userId'); |
|
|
|
var userAccount = tools.getCookie('phone'); |
|
|
|
var userName = tools.getCookie('userName'); |
|
|
|
var money = parseInt(newMoney).toFixed(2); |
|
|
|
var money = parseFloat(newMoney); |
|
|
|
// var loginTime = tools.getNowFormatDate(); |
|
|
|
data['projectId'] = projectId; |
|
|
|
data['memberId'] = memberId; |
|
|
|