brandSearch.wxml
1.18 KB
<template name="brand-list-item">
<view class='row' bindtap="brandItemTapped" data-brand-item="{{item}}">
<view class="content">
<image class="brand-icon" src="{{item.logo}}" mode="aspectFill"></image>
<view class='rowContent'>
<text class='title'>{{item.name}}</text>
<text class='location'>展位号:{{item.booth_id}}</text>
</view>
</view>
<view class='spaceLine'/>
</view>
</template>
<view class="searchContainer">
<view class="search">
<image class="serachIcon" src="../../static/images/search@3x.png"></image>
<input class="serachInput" placeholder="搜索结果" bindinput="inputChanged" bindfocus="focusChanged" bindconfirm="inputConfirmed" placeholder-class="placeholder" auto-focus/>
</view>
<text class="cancelButton" bindtap="cancelSearch">取消</text>
</view>
<view class="searchResult">
<block wx:if="{{showResult}}">
<view class='noResult' wx:if="{{!hasResult}}">无结果</view>
<block wx:for="{{result}}" wx:key="{{index}}" wx:for-item="brand">
<template is="brand-list-item" data="{{item:brand}}"/>
</block>
</block>
</view>