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