|
@@ -263,18 +263,18 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
|
|
|
biddingSubmit, |
|
|
|
|
|
getBiddingList, getBiddingStopTime, |
|
|
|
|
|
getMember, |
|
|
|
|
|
getOutProjectDetail, |
|
|
|
|
|
getSignup, |
|
|
|
|
|
getWebConfig, |
|
|
|
|
|
projectNewBidMoney |
|
|
|
|
|
} from "../../api/project"; |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
biddingSubmit, |
|
|
|
|
|
getBiddingList, getBiddingStopTime, |
|
|
|
|
|
getMember, |
|
|
|
|
|
getOutProjectDetail, |
|
|
|
|
|
getSignup, |
|
|
|
|
|
getWebConfig, |
|
|
|
|
|
projectNewBidMoney |
|
|
|
|
|
} from "../../api/project"; |
|
|
import {getInfo} from "../../api/login"; |
|
|
import {getInfo} from "../../api/login"; |
|
|
import $ from "jquery"; |
|
|
import $ from "jquery"; |
|
|
import navBar from "@/components/common/nav_bar.vue"; |
|
|
|
|
|
|
|
|
import navBar from "@/components/common/nav_bar.vue"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "projectDetail", |
|
|
name: "projectDetail", |
|
@@ -426,9 +426,9 @@ export default { |
|
|
this.getDicts("project_type").then(res => { |
|
|
this.getDicts("project_type").then(res => { |
|
|
this.detail.projectNumber = this.selectDictLabel(res.data,response.data.projectNumber); |
|
|
this.detail.projectNumber = this.selectDictLabel(res.data,response.data.projectNumber); |
|
|
}); |
|
|
}); |
|
|
this.getDicts("sub_object_type").then(res => { |
|
|
|
|
|
// this.detail.projectType = this.selectDictLabel(res.data,response.data.projectType); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// this.getDicts("sub_object_type").then(res => { |
|
|
|
|
|
// // this.detail.projectType = this.selectDictLabel(res.data,response.data.projectType); |
|
|
|
|
|
// }); |
|
|
this.getDicts("economic_type").then(res => { |
|
|
this.getDicts("economic_type").then(res => { |
|
|
this.detail.economicType = this.selectDictLabel(res.data,response.data.economicType); |
|
|
this.detail.economicType = this.selectDictLabel(res.data,response.data.economicType); |
|
|
}); |
|
|
}); |
|
@@ -477,7 +477,7 @@ export default { |
|
|
},3000) |
|
|
},3000) |
|
|
|
|
|
|
|
|
getInfo().then(response => { |
|
|
getInfo().then(response => { |
|
|
this.userId=response.user.userId |
|
|
|
|
|
|
|
|
this.userId = response.user.userId; |
|
|
getMember(response.user.userId).then(res => { |
|
|
getMember(response.user.userId).then(res => { |
|
|
this.userAccount=res.data.phone |
|
|
this.userAccount=res.data.phone |
|
|
this.userName=res.data.realname |
|
|
this.userName=res.data.realname |
|
@@ -511,13 +511,36 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getTime(){ |
|
|
getTime(){ |
|
|
this.bottomBtn = true; |
|
|
this.bottomBtn = true; |
|
|
let biddingStartTime = Date.parse(this.detail.biddingStartTime)+0 |
|
|
|
|
|
let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0 |
|
|
|
|
|
let biddingStopSetime = Date.parse(this.detail.biddingStopSetime)+0 |
|
|
|
|
|
let signupStartTime = Date.parse(this.detail.signupStartTime)+0 |
|
|
|
|
|
let signupStopTime = Date.parse(this.detail.signupStopTime)+0 |
|
|
|
|
|
|
|
|
|
|
|
let nowDate = Date.parse(this.format($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
|
|
|
|
|
// let biddingStartTime = Date.parse(this.detail.biddingStartTime)+0 |
|
|
|
|
|
// let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0 |
|
|
|
|
|
// let biddingStopSetime = Date.parse(this.detail.biddingStopSetime)+0 |
|
|
|
|
|
// let signupStartTime = Date.parse(this.detail.signupStartTime)+0 |
|
|
|
|
|
// let signupStopTime = Date.parse(this.detail.signupStopTime)+0 |
|
|
|
|
|
let biddingStartTime = new Date(this.detail.biddingStartTime.replace(/-/g,'/')).getTime(); |
|
|
|
|
|
let biddingStopTime = new Date(this.detail.biddingStopTime.replace(/-/g,'/')).getTime(); |
|
|
|
|
|
let biddingStopSetime = new Date(this.detail.biddingStopSetime.replace(/-/g,'/')).getTime(); |
|
|
|
|
|
let signupStartTime = new Date(this.detail.signupStartTime.replace(/-/g,'/')).getTime(); |
|
|
|
|
|
let signupStopTime = new Date(this.detail.signupStopTime.replace(/-/g,'/')).getTime(); |
|
|
|
|
|
// console.log(this.detail.biddingStartTime.replace(/-/g,'/')); |
|
|
|
|
|
// console.log(this.detail.biddingStopTime.replace(/-/g,'/')); |
|
|
|
|
|
// console.log(this.detail.biddingStopSetime.replace(/-/g,'/')); |
|
|
|
|
|
// console.log(this.detail.signupStartTime.replace(/-/g,'/')); |
|
|
|
|
|
// console.log(this.detail.signupStopTime.replace(/-/g,'/')); |
|
|
|
|
|
// alert(this.detail.biddingStartTime.replace(/-/g,'/')+' & '+biddingStartTime); |
|
|
|
|
|
// alert(this.detail.biddingStopTime.replace(/-/g,'/')+' & '+biddingStopTime); |
|
|
|
|
|
// alert(this.detail.biddingStopSetime.replace(/-/g,'/')+' & '+biddingStopSetime); |
|
|
|
|
|
// alert(this.detail.signupStartTime.replace(/-/g,'/')+' & '+signupStartTime); |
|
|
|
|
|
// alert(this.detail.signupStopTime.replace(/-/g,'/')+' & '+signupStopTime); |
|
|
|
|
|
// console.log('1111111111111111111111111') |
|
|
|
|
|
// console.log(biddingStartTime); |
|
|
|
|
|
// console.log(biddingStopTime); |
|
|
|
|
|
// console.log(biddingStopSetime); |
|
|
|
|
|
// console.log(signupStartTime); |
|
|
|
|
|
// console.log(signupStopTime); |
|
|
|
|
|
// console.log('-------------------------') |
|
|
|
|
|
// let nowDate = Date.parse(this.format($.ajax({async:false,data:{·i: Date.parse(new Date())}}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
|
|
// console.log($.ajax({async:false,data:{i: new Date().getTime()}})) |
|
|
|
|
|
let nowDate = new Date($.ajax({async:false,data:{i: new Date().getTime()}}).getResponseHeader("Date")).getTime(); |
|
|
let time = this.detail.delayPeriod * 1000; |
|
|
let time = this.detail.delayPeriod * 1000; |
|
|
var difference = biddingStopTime-nowDate;//延时后时间差 |
|
|
var difference = biddingStopTime-nowDate;//延时后时间差 |
|
|
var differenceSetime = biddingStopSetime-nowDate;//延时后时间差 |
|
|
var differenceSetime = biddingStopSetime-nowDate;//延时后时间差 |
|
@@ -586,7 +609,15 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
dataCompare(signupStartTime,signupStopTime,biddingStartTime,biddingStopTime){ |
|
|
dataCompare(signupStartTime,signupStopTime,biddingStartTime,biddingStopTime){ |
|
|
let nowDate = Date.parse(this.format($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss")); |
|
|
|
|
|
|
|
|
// alert(new Date($.ajax({async:false,data:{i: Date.parse(new Date())}}).getResponseHeader("Date")).getTime()); |
|
|
|
|
|
// let nowDate = Date.parse( |
|
|
|
|
|
// this.format( |
|
|
|
|
|
// $.ajax({ |
|
|
|
|
|
// async:false, |
|
|
|
|
|
// data:{i: Date.parse(new Date())} |
|
|
|
|
|
// }).getResponseHeader("Date"), "yyyy-MM-dd HH:mm:ss") |
|
|
|
|
|
// ); |
|
|
|
|
|
let nowDate = new Date($.ajax({async:false,data:{i: new Date().getTime()}}).getResponseHeader("Date")).getTime(); |
|
|
if(signupStartTime>nowDate){ |
|
|
if(signupStartTime>nowDate){ |
|
|
//console.log('未开始') |
|
|
//console.log('未开始') |
|
|
this.process= "报名未开始" |
|
|
this.process= "报名未开始" |
|
|