|
@@ -10,16 +10,18 @@
|
|
</view>
|
|
</view>
|
|
<view class="search-from name">
|
|
<view class="search-from name">
|
|
<text class="iconfont icon-iconfonticonfontsousuo1"></text>
|
|
<text class="iconfont icon-iconfonticonfontsousuo1"></text>
|
|
- <input class="input"
|
|
|
|
- type="text"
|
|
|
|
- focus
|
|
|
|
- confirm-type="search"
|
|
|
|
- v-model="searchInputVal"
|
|
|
|
- placeholder="请输入商品关键词"
|
|
|
|
- @input="onShowClose"
|
|
|
|
- @confirm="searchOpertor"
|
|
|
|
- bindconfirm='goSearch'
|
|
|
|
- maxlength="20"/>
|
|
|
|
|
|
+ <form class="search-block" action="javascript:void 0">
|
|
|
|
+ <input class="input"
|
|
|
|
+ type="text"
|
|
|
|
+ focus
|
|
|
|
+ confirm-type="search"
|
|
|
|
+ v-model="searchInputVal"
|
|
|
|
+ placeholder="请输入商品关键词"
|
|
|
|
+ @input="onShowClose"
|
|
|
|
+ @confirm="searchOpertor"
|
|
|
|
+ @keyup.13="goSearch"
|
|
|
|
+ maxlength="20"/>
|
|
|
|
+ </form>
|
|
<text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
|
|
<text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
|
|
</view>
|
|
</view>
|
|
<view class="search-btn" :class="tabIndex">
|
|
<view class="search-btn" :class="tabIndex">
|
|
@@ -177,7 +179,6 @@
|
|
{name:'组合商品',id:'zuhe'}
|
|
{name:'组合商品',id:'zuhe'}
|
|
],
|
|
],
|
|
isShow: false,
|
|
isShow: false,
|
|
- keyWord: '',
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -272,7 +273,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
goSearch(event){
|
|
goSearch(event){
|
|
- if (this.keyWord) {
|
|
|
|
|
|
+ if (event.keyCode == 13) {
|
|
this.getcombinationProduct();
|
|
this.getcombinationProduct();
|
|
}
|
|
}
|
|
},
|
|
},
|