|
@@ -2,7 +2,7 @@
|
|
<view class="content">
|
|
<view class="content">
|
|
<view class="one">
|
|
<view class="one">
|
|
<view class="one_1" v-if="!focus">
|
|
<view class="one_1" v-if="!focus">
|
|
- <input type='text' placeholder='搜索商品' @focus="focusHandler"></input>
|
|
|
|
|
|
+ <input type='text' v-model="searchInfo.name" @focus="focusHandler" placeholder='搜索商品'></input>
|
|
</view>
|
|
</view>
|
|
<view class="one_2" v-if="focus">
|
|
<view class="one_2" v-if="focus">
|
|
<view class="left">
|
|
<view class="left">
|
|
@@ -78,6 +78,7 @@
|
|
},
|
|
},
|
|
async onShow() {
|
|
async onShow() {
|
|
const that = this;
|
|
const that = this;
|
|
|
|
+ that.$set(that, `searchInfo`, {})
|
|
that.clearPage();
|
|
that.clearPage();
|
|
await that.search();
|
|
await that.search();
|
|
},
|
|
},
|