|
|
@@ -13,11 +13,17 @@
|
|
|
<li :class="{active: activeType == 'comp'}" @click="activeType = 'comp'">器件收藏</li>
|
|
|
<li :class="{active: activeType == 'store'}" @click="activeType = 'store'">店铺关注</li>
|
|
|
</ul>
|
|
|
- <div class="seek" v-if="activeType == 'seek'">
|
|
|
- <ul class="seek-type">
|
|
|
+ <div v-if="activeType == 'seek'">
|
|
|
+ <div class="seek" v-if="userType !== 'saler'">
|
|
|
+ <ul class="seek-type">
|
|
|
+ <li :class="{active: seekType == 'wait'}" @click="switchSeek('wait')"><div>待报价</div></li>
|
|
|
+ <li :class="{active: seekType == 'done'}" @click="switchSeek('done')"><div>已报价</div></li>
|
|
|
+ <!--<li :class="{active: seekType == 'accept'}" @click="switchSeek('accept')"><div>已采纳</div></li>-->
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <ul class="switch-list vendor-switch" v-if="userType === 'saler'">
|
|
|
<li :class="{active: seekType == 'wait'}" @click="switchSeek('wait')"><div>待报价</div></li>
|
|
|
<li :class="{active: seekType == 'done'}" @click="switchSeek('done')"><div>已报价</div></li>
|
|
|
- <!--<li :class="{active: seekType == 'accept'}" @click="switchSeek('accept')"><div>已采纳</div></li>-->
|
|
|
</ul>
|
|
|
<div class="search-content">
|
|
|
<input type="text" placeholder="请输入您要查找的型号或品牌" v-model="seekKeyword" @keyup.13="searchSeek">
|
|
|
@@ -183,6 +189,7 @@
|
|
|
this.reloadData()
|
|
|
},
|
|
|
switchType: function () {
|
|
|
+ this.activeType = 'seek'
|
|
|
this.seekType = 'wait'
|
|
|
this.seekKeyword = ''
|
|
|
this.$router.push('/mobile/user' + (this.userType === 'saler' ? '?type=buyer' : '?type=saler'))
|
|
|
@@ -281,6 +288,7 @@
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
.user-content{
|
|
|
+ font-family: "PingFang SC Medium";
|
|
|
margin-bottom: .98rem;
|
|
|
.none-state{
|
|
|
text-align: center;
|
|
|
@@ -311,15 +319,16 @@
|
|
|
}
|
|
|
}
|
|
|
.user-name{
|
|
|
- padding:.14rem 0 .2rem .34rem;
|
|
|
- background:#fff;
|
|
|
- width:100%;
|
|
|
- position:relative;
|
|
|
+ height: 1.8rem;
|
|
|
+ padding: .28rem 0 .28rem .34rem;
|
|
|
+ background: #fff;
|
|
|
+ width: 100%;
|
|
|
+ position: relative;
|
|
|
img{
|
|
|
display: inline-block;
|
|
|
- width:1.25rem;
|
|
|
- height:1.25rem;
|
|
|
- border:.04rem solid #c5dbfc;
|
|
|
+ width: 1.25rem;
|
|
|
+ height: 1.25rem;
|
|
|
+ border: .02rem solid #c5dbfc;
|
|
|
border-radius: .05rem;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
@@ -330,15 +339,13 @@
|
|
|
p{
|
|
|
font-size:.3rem;
|
|
|
margin:0;
|
|
|
- font-weight: bold;
|
|
|
display: block;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
width: 3.92rem;
|
|
|
&:nth-child(2) {
|
|
|
- font-weight: normal;
|
|
|
- margin-top: .3rem;
|
|
|
+ margin-top: .2rem;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -486,11 +493,11 @@
|
|
|
font-size: .28rem;
|
|
|
color: #666;
|
|
|
background: #fff;
|
|
|
- border: .02rem solid #b4b4b4;
|
|
|
+ border: .01rem solid #b4b4b4;
|
|
|
border-right: none;
|
|
|
&.active {
|
|
|
background: #0067e7;
|
|
|
- border: .02rem solid #0067e7;
|
|
|
+ border: .01rem solid #0067e7;
|
|
|
color: #fff;
|
|
|
}
|
|
|
&:first-child {
|
|
|
@@ -500,10 +507,15 @@
|
|
|
border-right: none;
|
|
|
}
|
|
|
}
|
|
|
+ &.vendor-switch {
|
|
|
+ li {
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.seek {
|
|
|
- ul.seek-type {
|
|
|
- margin-top: .06rem;
|
|
|
+ .seek-type {
|
|
|
+ margin-top: .15rem;
|
|
|
li {
|
|
|
font-size: .28rem;
|
|
|
color: #666;
|
|
|
@@ -511,11 +523,10 @@
|
|
|
width: 50%;
|
|
|
text-align: center;
|
|
|
div {
|
|
|
- width: 2rem;
|
|
|
- border-bottom: .02rem solid #c1c4c9;
|
|
|
+ border-bottom: .03rem solid #c1c4c9;
|
|
|
margin: 0 auto;
|
|
|
- height: .6rem;
|
|
|
- line-height: .6rem;
|
|
|
+ height: .46rem;
|
|
|
+ line-height: .46rem;
|
|
|
}
|
|
|
&.active {
|
|
|
color: #3f84f6;
|
|
|
@@ -525,12 +536,16 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .search-content {
|
|
|
- text-align: center;
|
|
|
- padding: .25rem 0 0 0;
|
|
|
- input {
|
|
|
- border: .02rem solid #376ff3;
|
|
|
- }
|
|
|
+ }
|
|
|
+ .search-content {
|
|
|
+ text-align: center;
|
|
|
+ padding: .25rem 0 0 0;
|
|
|
+ input {
|
|
|
+ border: .02rem solid #376ff3;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ height: .46rem;
|
|
|
+ line-height: .46rem;
|
|
|
}
|
|
|
}
|
|
|
}
|