Browse Source

优化搜索提示框

master
Enzo 5 years ago
parent
commit
2843f81896
  1. 14
      supplier/pages/offer/index.vue

14
supplier/pages/offer/index.vue

@ -46,7 +46,7 @@
<view class="lf-m-b-20 lf-row-between">
<view class="lf-font-32 lf-color-black lf-font-bold">报价明细</view>
<view class="flex lf-row-between">
<u-icon name="search" style="position: relative;left: 50rpx;" v-if="show_icon"></u-icon>
<u-icon name="search" class="search-icon" v-if="show_icon"></u-icon>
<input placeholder="搜索物资" confirm-type="search" @focus="hideIcon()" class="search-self" :value="searchValue" @input="inputChange" @confirm="inputConfirm" />
</view>
@ -192,9 +192,10 @@
timer = setTimeout(() => {
this.searchValue = event.detail.value;
}, 1000);
this.show_icon = false;
if(event.detail.value == '') {
this.show_icon = true;
}else {
this.show_icon = false;
}
},
//
@ -469,14 +470,21 @@
}
</style>
<style lang="scss" scoped="scoped">
.search-icon {
position: relative;
left: 50rpx;
color: #777;
}
.search-self {
background: rgb(228,228,228);
padding: 10rpx 0 10rpx 20rpx;
border-radius: 40rpx;
font-size: 28rpx;
}
.search-self .uni-input-placeholder {
margin-left: 40rpx;
color: #333;
color: #777;
font-size: 28rpx;
}
.lf-m-t-5{
margin-top: 5rpx;

Loading…
Cancel
Save