@@ -2,7 +2,7 @@
<view class="content">
<view class="one">
<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 class="one_2" v-if="focus">
<view class="left">
@@ -78,6 +78,7 @@
},
async onShow() {
const that = this;
+ that.$set(that, `searchInfo`, {})
that.clearPage();
await that.search();