问题修复
This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
:focus="true"
|
||||
placeholder="搜索优质产品"
|
||||
prefixIcon="search"
|
||||
:border="false" style="background-color: #fff;border: none;"/>
|
||||
: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>
|
||||
@@ -49,19 +52,25 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
queryParamF: null
|
||||
queryParamF: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
queryParam: {
|
||||
handler(val) {
|
||||
this.queryParamF = this.queryParam
|
||||
this.queryParamF = this.queryParam || ''
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goSearch() {
|
||||
goSearch(value) {
|
||||
console.log('---enter')
|
||||
console.log(value)
|
||||
console.log(this.queryParamF)
|
||||
if(!this.queryParamF && value) {
|
||||
this.queryParamF = value
|
||||
}
|
||||
if(this.readOnly) {
|
||||
this.$emit('navigate')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user