| @@ -285,7 +285,7 @@ export default { | |||||
| userId:"", | userId:"", | ||||
| timeConfig:'', | timeConfig:'', | ||||
| biddinglistInformationLength:0, | biddinglistInformationLength:0, | ||||
| biddingTimeType:0, | |||||
| biddingTimeType:2, | |||||
| isFirst:'', | isFirst:'', | ||||
| timer:null | timer:null | ||||
| }; | }; | ||||
| @@ -22,6 +22,11 @@ | |||||
| <template #label> | <template #label> | ||||
| <p>开始时间:{{item.biddingStartTime}}</p> | <p>开始时间:{{item.biddingStartTime}}</p> | ||||
| <p>结束时间:{{item.biddingStopTime}}</p> | <p>结束时间:{{item.biddingStopTime}}</p> | ||||
| <p>距<span style="margin: 0 0.5em">结</span>束: | |||||
| <van-count-down :time="item.endTime"> | |||||
| <template #default="timeData">{{timeData.days}}天{{timeData.hours}}时{{timeData.minutes}}分{{timeData.seconds}}秒</template> | |||||
| </van-count-down> | |||||
| </p> | |||||
| </template> | </template> | ||||
| </van-cell> | </van-cell> | ||||
| </van-list> | </van-list> | ||||
| @@ -76,6 +81,7 @@ export default { | |||||
| getSignupByMemberId(this.queryParams).then(response => { | getSignupByMemberId(this.queryParams).then(response => { | ||||
| console.log(response) | console.log(response) | ||||
| for (var i = 0; i < response.rows.length; i++) { | for (var i = 0; i < response.rows.length; i++) { | ||||
| response.rows[i].endTime = new Date(response.rows[i].biddingStopTime) - new Date(); | |||||
| this.supplyList.push(response.rows[i]); | this.supplyList.push(response.rows[i]); | ||||
| } | } | ||||
| this.finished = true; | this.finished = true; | ||||
| @@ -105,3 +111,12 @@ export default { | |||||
| }, | }, | ||||
| }; | }; | ||||
| </script> | </script> | ||||
| <style scoped lang="scss"> | |||||
| .van-count-down{ | |||||
| color: #969799; | |||||
| font-size: 0.32rem; | |||||
| line-height: 0.48rem; | |||||
| display: inline-block; | |||||
| } | |||||
| </style> | |||||
| @@ -22,10 +22,10 @@ | |||||
| </van-row> | </van-row> | ||||
| </div> | </div> | ||||
| <div style="width: 96%;transform: translateY(-18%);margin: 0 auto;border-radius: 0.4rem;overflow: hidden;"> | <div style="width: 96%;transform: translateY(-18%);margin: 0 auto;border-radius: 0.4rem;overflow: hidden;"> | ||||
| <van-cell title="我的报名" is-link icon="balance-list-o" to="application" /> | |||||
| <van-cell title="我的竞价" is-link icon="bar-chart-o" to="bidding" /> | <van-cell title="我的竞价" is-link icon="bar-chart-o" to="bidding" /> | ||||
| <van-cell title="我的咨询" is-link icon="service-o" to="userInteraction" /> | <van-cell title="我的咨询" is-link icon="service-o" to="userInteraction" /> | ||||
| <van-cell title="我的供求" is-link icon="bag-o" to="userSupply" /> | <van-cell title="我的供求" is-link icon="bag-o" to="userSupply" /> | ||||
| <van-cell title="我的报名" is-link icon="balance-list-o" to="application" /> | |||||
| <van-cell title="合同网签" is-link icon="orders-o" to="/user/signature/signatureList" /> | <van-cell title="合同网签" is-link icon="orders-o" to="/user/signature/signatureList" /> | ||||
| </div> | </div> | ||||
| <van-button class="loginOut" round color="#007E72" @click="loginOut"> | <van-button class="loginOut" round color="#007E72" @click="loginOut"> | ||||