@@ -146,6 +146,11 @@ Component({
content.where.condition = detail;
this.getList(true)
},
+ onChange({
+ detail
+ }) {
+ content.where.condition = detail;
+ },
/* 获取领域 */
getTradefie() {
_Http.basic({
@@ -1,4 +1,4 @@
-<van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:search="onSearch" bind:clear="onSearch">
+<van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:change='onChange' bind:search="onSearch" bind:clear="onSearch">
<view style="padding: 0 10rpx;" slot="action" bind:tap="openPopup">筛选</view>
</van-search>
<Tabs active='0' id="tradefieList" list="{{tradefieList}}" wx:if="{{tradefieList.length>1}}" box-class='brand-box' tab-class='brand-tab-class' active-class='brand-active-class' name='tradefield' bind:onChange="tradefieChange" />