|
@@ -36,9 +36,9 @@
|
|
|
<ul>
|
|
<ul>
|
|
|
<li v-for="purchaseMan in purchaseManList.content" :class="{'active': purchaseMan.active}">
|
|
<li v-for="purchaseMan in purchaseManList.content" :class="{'active': purchaseMan.active}">
|
|
|
<span>{{purchaseMan.releaseDate | date}}</span>
|
|
<span>{{purchaseMan.releaseDate | date}}</span>
|
|
|
- <span>{{purchaseMan.userName}}</span>
|
|
|
|
|
- <span>{{purchaseMan.code}}</span>
|
|
|
|
|
- <span>{{purchaseMan.brand}}</span>
|
|
|
|
|
|
|
+ <span :title="getPurchaseManName(purchaseMan)">{{getPurchaseManName(purchaseMan)}}</span>
|
|
|
|
|
+ <span :title="purchaseMan.code">{{purchaseMan.code}}</span>
|
|
|
|
|
+ <span :title="purchaseMan.brand">{{purchaseMan.brand}}</span>
|
|
|
<span class="date-content"><span>剩余 </span><span v-text="getDay(purchaseMan.remainingTime)"></span> 天 <span v-text="getHours(purchaseMan.remainingTime)"></span> 小时</span>
|
|
<span class="date-content"><span>剩余 </span><span v-text="getDay(purchaseMan.remainingTime)"></span> 天 <span v-text="getHours(purchaseMan.remainingTime)"></span> 小时</span>
|
|
|
<span class="number-content"><img src="/images/applyPurchase/hot-fire.png" alt="" v-if="purchaseMan.offerAmount > 10"><span :style="purchaseMan.offerAmount > 10 ? 'color: #ff9a00': ''">{{purchaseMan.offerAmount || 0}}</span> 条</span>
|
|
<span class="number-content"><img src="/images/applyPurchase/hot-fire.png" alt="" v-if="purchaseMan.offerAmount > 10"><span :style="purchaseMan.offerAmount > 10 ? 'color: #ff9a00': ''">{{purchaseMan.offerAmount || 0}}</span> 条</span>
|
|
|
<span class="btn-content">
|
|
<span class="btn-content">
|
|
@@ -144,11 +144,18 @@
|
|
|
getHours: function (timeStamp) {
|
|
getHours: function (timeStamp) {
|
|
|
return Math.floor((timeStamp / (1000 * 60 * 60)) % 24)
|
|
return Math.floor((timeStamp / (1000 * 60 * 60)) % 24)
|
|
|
},
|
|
},
|
|
|
|
|
+ getPurchaseManName: function (purchaseMan) {
|
|
|
|
|
+ return purchaseMan.enUu ? purchaseMan.userName : purchaseMan.userName.charAt(0) + '**'
|
|
|
|
|
+ },
|
|
|
listenPage: function (page) {
|
|
listenPage: function (page) {
|
|
|
this.nowPage = page
|
|
this.nowPage = page
|
|
|
this.resetList()
|
|
this.resetList()
|
|
|
},
|
|
},
|
|
|
sayPrice: function (purchaseMan) {
|
|
sayPrice: function (purchaseMan) {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ for (let i = 0; i < this.purchaseManList.content.length; i++) {
|
|
|
|
|
+ _this.purchaseManList.content[i].active = false
|
|
|
|
|
+ }
|
|
|
purchaseMan.active = true
|
|
purchaseMan.active = true
|
|
|
},
|
|
},
|
|
|
cancelSayPrice: function (purchaseMan) {
|
|
cancelSayPrice: function (purchaseMan) {
|
|
@@ -161,7 +168,7 @@
|
|
|
this.sayPriceObj.spId = purchaseMan.id
|
|
this.sayPriceObj.spId = purchaseMan.id
|
|
|
this.sayPriceObj.currency = purchaseMan.currency
|
|
this.sayPriceObj.currency = purchaseMan.currency
|
|
|
this.$http.post('/seek/offer/saveOffer', this.sayPriceObj).then(response => {
|
|
this.$http.post('/seek/offer/saveOffer', this.sayPriceObj).then(response => {
|
|
|
- this.$message.success('发布成功')
|
|
|
|
|
|
|
+ this.$message.success('报价成功')
|
|
|
this.nowPage = 1
|
|
this.nowPage = 1
|
|
|
this.resetSayPrice()
|
|
this.resetSayPrice()
|
|
|
this.resetList()
|
|
this.resetList()
|
|
@@ -311,13 +318,13 @@
|
|
|
width: 186px;
|
|
width: 186px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(2) {
|
|
&:nth-child(2) {
|
|
|
- width: 160px;
|
|
|
|
|
|
|
+ width: 106px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(3) {
|
|
&:nth-child(3) {
|
|
|
- width: 173px;
|
|
|
|
|
|
|
+ width: 200px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(4) {
|
|
&:nth-child(4) {
|
|
|
- width: 147px;
|
|
|
|
|
|
|
+ width: 174px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(5) {
|
|
&:nth-child(5) {
|
|
|
width: 152px;
|
|
width: 152px;
|
|
@@ -348,13 +355,13 @@
|
|
|
width: 186px;
|
|
width: 186px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(2) {
|
|
&:nth-child(2) {
|
|
|
- width: 160px;
|
|
|
|
|
|
|
+ width: 106px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(3) {
|
|
&:nth-child(3) {
|
|
|
- width: 173px;
|
|
|
|
|
|
|
+ width: 200px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(4) {
|
|
&:nth-child(4) {
|
|
|
- width: 147px;
|
|
|
|
|
|
|
+ width: 174px;
|
|
|
}
|
|
}
|
|
|
&:nth-child(5) {
|
|
&:nth-child(5) {
|
|
|
width: 152px;
|
|
width: 152px;
|
|
@@ -408,7 +415,9 @@
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
padding: 0 236px 0 36px;
|
|
padding: 0 236px 0 36px;
|
|
|
background: #fffbf0;
|
|
background: #fffbf0;
|
|
|
- box-shadow: 1.5px 3px 7px 0 rgb( 178, 178, 179 );
|
|
|
|
|
|
|
+ height: 45px;
|
|
|
|
|
+ line-height: 45px;
|
|
|
|
|
+ color: #020202;
|
|
|
div {
|
|
div {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
span {
|
|
span {
|
|
@@ -417,6 +426,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
&:hover {
|
|
&:hover {
|
|
|
|
|
+ box-shadow: 1.5px 3px 7px 0 rgb( 178, 178, 179 );
|
|
|
.expand-content {
|
|
.expand-content {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
}
|
|
}
|
|
@@ -429,6 +439,9 @@
|
|
|
position: relative;
|
|
position: relative;
|
|
|
height: 64px;
|
|
height: 64px;
|
|
|
line-height: 64px;
|
|
line-height: 64px;
|
|
|
|
|
+ input {
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+ }
|
|
|
&:nth-child(1) {
|
|
&:nth-child(1) {
|
|
|
width: 282px;
|
|
width: 282px;
|
|
|
background: url('/images/applyPurchase/say-price.png')no-repeat;
|
|
background: url('/images/applyPurchase/say-price.png')no-repeat;
|
|
@@ -530,6 +543,7 @@
|
|
|
}
|
|
}
|
|
|
&.active {
|
|
&.active {
|
|
|
border-color: #f71026;
|
|
border-color: #f71026;
|
|
|
|
|
+ box-shadow: none;
|
|
|
.expand-content {
|
|
.expand-content {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
-webkit-box-shadow: none;
|
|
-webkit-box-shadow: none;
|