修改bug
This commit is contained in:
@@ -7,18 +7,14 @@
|
||||
<u-icon name="arrow-left" color="#fff;" />
|
||||
</view>
|
||||
<view class="search-input">
|
||||
<u-input v-if="!readOnly"
|
||||
v-model="queryParamF"
|
||||
:focus="true"
|
||||
placeholder="搜索优质产品"
|
||||
prefixIcon="search"
|
||||
:border="false"
|
||||
style="background-color: #fff;border: none;"
|
||||
confirm-type="go"
|
||||
@confirm="goSearch(queryParamF)"/>
|
||||
<view v-else style="width: 360rpx;padding: 10rpx 20rpx;display: flex;align-items: center;" @click="goSearch">
|
||||
<u-input v-if="!readOnly" v-model="queryParamF" :focus="true" placeholder="搜索优质产品"
|
||||
prefixIcon="search" :border="false" style="background-color: #fff;border: none;"
|
||||
confirm-type="go" @confirm="goSearch(queryParamF)" />
|
||||
<view v-else style="width: 360rpx;padding: 10rpx 20rpx;display: flex;align-items: center;"
|
||||
@click="goSearch">
|
||||
<u-icon name="search" color="#969696" size="22"></u-icon>
|
||||
<text style="margin-left:10rpx;font-size: 30rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #969696;line-height: 37rpx;">搜索优质商品</text>
|
||||
<text
|
||||
style="margin-left:10rpx;font-size: 30rpx;font-family: PingFangSC-Regular, PingFang SC;font-weight: 400;color: #969696;line-height: 37rpx;">搜索优质商品</text>
|
||||
</view>
|
||||
<view class="search-btn" @click="goSearch">搜索</view>
|
||||
</view>
|
||||
@@ -65,10 +61,10 @@
|
||||
},
|
||||
methods: {
|
||||
goSearch(value) {
|
||||
if(!this.queryParamF && value) {
|
||||
if (!this.queryParamF && value) {
|
||||
this.queryParamF = value
|
||||
}
|
||||
if(this.readOnly) {
|
||||
if (this.readOnly) {
|
||||
this.$emit('navigate')
|
||||
return
|
||||
}
|
||||
@@ -94,12 +90,14 @@
|
||||
margin: 10rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.top-left {
|
||||
width: calc(100% - 200rpx);
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
|
||||
.search-input {
|
||||
display: flex;
|
||||
border: 2rpx solid #fff;
|
||||
@@ -107,6 +105,7 @@
|
||||
border-radius: 50rpx;
|
||||
height: 100%;
|
||||
margin-left: 10rpx;
|
||||
|
||||
.search-btn {
|
||||
font-size: 32rpx;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
|
||||
Reference in New Issue
Block a user