| @@ -1,7 +1,7 @@ | |||||
| <template> | <template> | ||||
| <div class="app-container"> | <div class="app-container"> | ||||
| <van-nav-bar | <van-nav-bar | ||||
| title="项目详情4" | |||||
| title="项目详情5" | |||||
| left-arrow | left-arrow | ||||
| fixed | fixed | ||||
| placeholder | placeholder | ||||
| @@ -278,7 +278,7 @@ export default { | |||||
| btnMsg:"", | btnMsg:"", | ||||
| time:null, | time:null, | ||||
| timeMsg:"", | timeMsg:"", | ||||
| isSignup:false, | |||||
| isSignup:true, | |||||
| showBtn:false, | showBtn:false, | ||||
| price:null, | price:null, | ||||
| userAccount:"", | userAccount:"", | ||||
| @@ -440,9 +440,13 @@ export default { | |||||
| if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){ | if((response.rows.length != that.biddinglistInformationLength) && that.detail.ladderPrice){ | ||||
| if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { | if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { | ||||
| that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice) | |||||
| if(response.rows[0].money<=that.price) { | |||||
| that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice) | |||||
| } | |||||
| }else{ | }else{ | ||||
| that.price = parseInt(response.rows[0].money) + parseInt(that.detail.ladderPrice) | |||||
| if(response.rows[0].money>=that.price) { | |||||
| that.price = parseInt(response.rows[0].money) + parseInt(that.detail.ladderPrice) | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| that.biddinglistInformationLength = response.total | that.biddinglistInformationLength = response.total | ||||
| @@ -499,7 +503,7 @@ export default { | |||||
| //console.log('未开始') | //console.log('未开始') | ||||
| this.process= "报名未开始" | this.process= "报名未开始" | ||||
| this.tip=this.detail.signupStartTime+"开始报名" | this.tip=this.detail.signupStartTime+"开始报名" | ||||
| this.btnMsg="立即报名" | |||||
| this.btnMsg="报名未开始" | |||||
| this.timeMsg="距报名开始" | this.timeMsg="距报名开始" | ||||
| $('#timeData').html(this.TimeInterval(signupStartTime-nowDate)) | $('#timeData').html(this.TimeInterval(signupStartTime-nowDate)) | ||||
| // this.timeData = ; | // this.timeData = ; | ||||
| @@ -508,6 +512,7 @@ export default { | |||||
| if(signupStopTime>nowDate&&signupStopTime>signupStartTime){ | if(signupStopTime>nowDate&&signupStopTime>signupStartTime){ | ||||
| //console.log('报名中') | //console.log('报名中') | ||||
| this.process= "报名中" | this.process= "报名中" | ||||
| this.isSignup=false | |||||
| this.tip=this.detail.signupStopTime+"报名截止" | this.tip=this.detail.signupStopTime+"报名截止" | ||||
| this.btnMsg="立即报名" | this.btnMsg="立即报名" | ||||
| this.timeMsg="距报名截止" | this.timeMsg="距报名截止" | ||||
| @@ -530,7 +535,7 @@ export default { | |||||
| // this.timeData = this.TimeInterval(biddingStartTime-nowDate); | // this.timeData = this.TimeInterval(biddingStartTime-nowDate); | ||||
| this.isSignup=true; | this.isSignup=true; | ||||
| if(this.getSignupData=="1"){ | if(this.getSignupData=="1"){ | ||||
| this.btnMsg="立即竞价" | |||||
| this.btnMsg="已报名" | |||||
| // this.price=this.detail.ladderPrice?this.biddinglistInformation[0].money+this.detail.ladderPrice:this.biddinglistInformation[0].money+1 | // this.price=this.detail.ladderPrice?this.biddinglistInformation[0].money+this.detail.ladderPrice:this.biddinglistInformation[0].money+1 | ||||
| }else{ | }else{ | ||||
| this.btnMsg="未报名" | this.btnMsg="未报名" | ||||
| @@ -627,15 +632,19 @@ export default { | |||||
| if (response.rows.length>0&&that.detail.ladderPrice){ | if (response.rows.length>0&&that.detail.ladderPrice){ | ||||
| if (that.price == 0){return;} | if (that.price == 0){return;} | ||||
| if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { | if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { | ||||
| that.price = parseFloat(response.rows[0].money - that.detail.ladderPrice).toFixed(2) | |||||
| if(response.rows[0].money<=that.price){ | |||||
| that.price = parseFloat(response.rows[0].money - that.detail.ladderPrice).toFixed(2) | |||||
| } | |||||
| }else{ | }else{ | ||||
| that.price = parseFloat(response.rows[0].money + that.detail.ladderPrice).toFixed(2) | |||||
| console.log(response.rows[0].money>=that.price) | |||||
| if(response.rows[0].money>=that.price){ | |||||
| that.price = parseFloat(response.rows[0].money + that.detail.ladderPrice).toFixed(2) | |||||
| } | |||||
| } | } | ||||
| }else if (response.rows.length>0&&!that.detail.ladderPrice){ | }else if (response.rows.length>0&&!that.detail.ladderPrice){ | ||||
| if (that.price == 0){return;} | if (that.price == 0){return;} | ||||
| that.price = response.rows[0].money | that.price = response.rows[0].money | ||||
| } | |||||
| else{ | |||||
| }else{ | |||||
| if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { | if (that.detail.biddingDirect == 2 ||that.detail.biddingDirect == '反向竞价') { | ||||
| that.price = parseFloat(that.detail.price).toFixed(2) | that.price = parseFloat(that.detail.price).toFixed(2) | ||||
| }else{ | }else{ | ||||