Browse Source

产权交易出价优化

rongxin_prod
庞东旭 1 year ago
parent
commit
864dcfe856
2 changed files with 24 additions and 15 deletions
  1. +21
    -15
      src/views/biddingHall/index.vue
  2. +3
    -0
      src/views/project/projectDetail.vue

+ 21
- 15
src/views/biddingHall/index.vue View File

@@ -112,28 +112,33 @@
<p :style="{ <p :style="{
color: { color: {
'未开始': '#007E72', '未开始': '#007E72',
'已结束': '#c4c4c4',
'已结束': '#848484',
'进行中': '#c21F3a', '进行中': '#c21F3a',
}[item.timeType]}">{{item.timeType}}</p> }[item.timeType]}">{{item.timeType}}</p>
</div> </div>
<div class="list_li_time"> <div class="list_li_time">
<van-count-down :time="item.deadline"> <van-count-down :time="item.deadline">
<template #default="timeData"> <template #default="timeData">
<span style="color: #c4c4c4">距竞价结束</span>
<span :style="{
<span style="color: #848484;font-size: 14PX;">距结束</span>
<span :style="{'font-size':'14px',
color: { color: {
'未开始': '#007E72', '未开始': '#007E72',
'已结束': '#c4c4c4',
'已结束': '#848484',
'进行中': '#c21F3a', '进行中': '#c21F3a',
}[item.timeType]}">{{timeData.days}}天{{timeData.hours}}时{{timeData.minutes}}分{{timeData.seconds}}秒</span>
}[item.timeType]}">
<span style="font-size: 18PX;">{{timeData.days}}</span>天
<span style="font-size: 18PX;">{{timeData.hours}}</span>时
<span style="font-size: 18PX;">{{timeData.minutes}}</span>分
<span style="font-size: 18PX;">{{timeData.seconds}}</span>秒
</span>
</template> </template>
</van-count-down> </van-count-down>
<p> <p>
<span style="color: #c4c4c4">当前价 </span>
<span style="color: #848484">当前价 </span>
<span :style="{'font-size':'14px', <span :style="{'font-size':'14px',
color: { color: {
'未开始': '#007E72', '未开始': '#007E72',
'已结束': '#c4c4c4',
'已结束': '#848484',
'进行中': '#c21F3a', '进行中': '#c21F3a',
}[item.timeType]}" v-if="item.biddingType=='自由竞价'&&item.deadline>0"> }[item.timeType]}" v-if="item.biddingType=='自由竞价'&&item.deadline>0">
* *
@@ -141,7 +146,7 @@
<span :style="{'font-size':'14px', <span :style="{'font-size':'14px',
color: { color: {
'未开始': '#007E72', '未开始': '#007E72',
'已结束': '#c4c4c4',
'已结束': '#848484',
'进行中': '#c21F3a', '进行中': '#c21F3a',
}[item.timeType]}" v-else> }[item.timeType]}" v-else>
{{item.money}} {{item.money}}
@@ -149,13 +154,13 @@
<span v-if="item.money" :style="{ <span v-if="item.money" :style="{
color: { color: {
'未开始': '#007E72', '未开始': '#007E72',
'已结束': '#c4c4c4',
'已结束': '#848484',
'进行中': '#c21F3a', '进行中': '#c21F3a',
}[item.timeType]}">{{item.priceUnit}}</span> }[item.timeType]}">{{item.priceUnit}}</span>
<span v-else :style="{ <span v-else :style="{
color: { color: {
'未开始': '#007E72', '未开始': '#007E72',
'已结束': '#c4c4c4',
'已结束': '#848484',
'进行中': '#c21F3a', '进行中': '#c21F3a',
}[item.timeType]}">暂无出价</span> }[item.timeType]}">暂无出价</span>
</p> </p>
@@ -372,7 +377,7 @@ export default {
width: 94%; width: 94%;
background: #ffffff; background: #ffffff;
border-radius: 8PX; border-radius: 8PX;
margin: 15PX auto 0;
margin: 10PX auto 0;
padding: 3vw 5%; padding: 3vw 5%;
.list_li_tt{ .list_li_tt{
display: flex; display: flex;
@@ -381,7 +386,7 @@ export default {
border-bottom: 1PX solid rgb(239,239,239); border-bottom: 1PX solid rgb(239,239,239);
align-items: center; align-items: center;
p{ p{
line-height: 1;
line-height: 22PX;
&:nth-child(1){ &:nth-child(1){
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
@@ -394,6 +399,7 @@ export default {
} }
&:nth-child(2){ &:nth-child(2){
flex-shrink: 0; flex-shrink: 0;
margin-left: 15PX;
} }
} }
} }
@@ -420,13 +426,13 @@ export default {
justify-content: right; justify-content: right;
div{ div{
width: calc(50% - 4PX); width: calc(50% - 4PX);
border-top: 1PX solid rgb(196,196,196);
border-top: 1PX solid #c4c4c4;
} }
i{ i{
width: 8PX; width: 8PX;
height: 8PX; height: 8PX;
display: block; display: block;
background: rgb(196,196,196);
background: #c4c4c4;
border-radius: 50%; border-radius: 50%;
} }
} }
@@ -452,7 +458,7 @@ export default {
.biddingProcess_text{ .biddingProcess_text{
/*font-size: 1vh;*/ /*font-size: 1vh;*/
margin-top: 10PX; margin-top: 10PX;
color: rgb(196,196,196);
color: #848484;
} }
.biddingProcessContent{ .biddingProcessContent{
padding:0.4rem 0; padding:0.4rem 0;


+ 3
- 0
src/views/project/projectDetail.vue View File

@@ -520,6 +520,9 @@ export default {
setInterval(function () { setInterval(function () {
getBiddingList(that.id).then(response =>{ getBiddingList(that.id).then(response =>{
that.biddinglistInformation = response.rows that.biddinglistInformation = response.rows
if(response.rows.length != that.biddinglistInformationLength){
that.price = parseInt(response.rows[0].money) - parseInt(that.detail.ladderPrice)
}
that.biddinglistInformationLength = response.total that.biddinglistInformationLength = response.total
}); });
},1000) },1000)


Loading…
Cancel
Save