wxml
<view wx:if="{{page === 'seas'}}">
<mp-searchbar bindcancel="searchCancel" bindselectresult="selectResult" search="{{search}}" placeholder="搜索公海客户"></mp-searchbar>
<view class="publicSea-content" wx:if="{{!searchStatus}}">
<view wx:for="{{publicSeaCustomerList}}" wx:key="_id" data-index="{{item._id}}" bindtap="selectSalesOrder">
<a class="publicSea-item">
<view class="customer-name">{{item.name}}</view>
<view class="right-arrow">
<mp-icon icon="arrow" color="#999" size="{{14}}"></mp-icon>
</view>
</a>
</view>
</view>
</view>
js
search(value) {
console.log(value);
},
search方法完全没有触发是怎么回事
this.setData({ search: this.search.bind(this) })
是我菜了