Ver a proveniência

产权交易问题修改

rongxin_prod
庞东旭 há 1 ano
ascendente
cometimento
ba717ea2d8
2 ficheiros alterados com 44 adições e 13 eliminações
  1. +7
    -0
      src/api/project/index.js
  2. +37
    -13
      src/views/project/projectDetail.vue

+ 7
- 0
src/api/project/index.js Ver ficheiro

@@ -45,6 +45,13 @@ export function getBiddingList(id){
method:'get',
})
}
//竞价记录列表
export function getBiddingStopTime(id){
return request({
url:'/transaction/website/outproject/getBiddingStopTime/id/'+id,
method:'get',
})
}
export function uploadPic (params) {
return request({
url:'/common/base64Attach',// 替换成您需要上传的接口


+ 37
- 13
src/views/project/projectDetail.vue Ver ficheiro

@@ -76,10 +76,10 @@
<van-col span="24"><span>阶梯价(增减幅度):</span>¥{{ detail.ladderPrice }}</van-col>
</van-row>
<van-row>
<van-col span="24"><span>延时周期:</span>{{timeConfig}}分钟</van-col>
<van-col span="24"><span>延时周期:</span>{{detail.delayPeriod}}秒</van-col>
</van-row>
<van-row>
<van-col span="24"><span>延时周期说明:</span>竞价的最后{{timeConfig}}分钟内,任意方出价,距结束时间将延长{{timeConfig}}分钟,直至无人出价为止</van-col>
<van-col span="24"><span>延时周期说明:</span>竞价的最后{{detail.delayPeriod}}秒内,任意方出价,距结束时间将延长{{detail.delayPeriod}}秒,直至无人出价为止</van-col>
</van-row>
</div>
</van-tab>
@@ -247,15 +247,15 @@
</template>

<script>
import {
biddingSubmit,
getBiddingList,
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";

export default {
@@ -876,7 +876,13 @@ export default {
let m = value.minutes;
let s = value.seconds;

if (d==0 && h==0 && m<2){
let biddingStopTime = Date.parse(this.detail.biddingStopTime)+0
let nowDate = Date.parse(new Date());
let time = this.detail.delayPeriod * 1000;

console.log((biddingStopTime-nowDate))
console.log(time)
if ((biddingStopTime-nowDate)<=time){
console.log("竞价剩余两分钟"+"m:"+m+"s:"+s)

if (m == 0 && s==0){
@@ -888,7 +894,10 @@ export default {
if (response.rows.length>this.biddinglistInformationLength){
console.log("有人出价")
this.biddinglistInformationLength = response.rows.length;
this.time = 120000;
getBiddingStopTime(this.id).then(response =>{
this.detail.biddingStopTime = response.data
this.time = time;
});
}

});
@@ -896,6 +905,21 @@ export default {
}
}
},
timeInterval(timestamp) {
//时间戳转化为天时分秒
// 总秒数
var second = Math.floor(timestamp / 1000);
// 天数
var day = Math.floor(second / 3600 / 24);
// 小时
var hr = Math.floor(second / 3600 % 24);
// 分钟
var min = Math.floor(second / 60 % 60);
// 秒
var sec = Math.floor(second % 60);
return (day?day + "天":'') + (hr?hr+ "小时":'') + ( min?min + "分钟":'') + sec + "秒";

},
destroyed () {
console.log('bbbbbbbbbb')
clearInterval(this.timer);


Carregando…
Cancelar
Guardar