ReedawFoodApp/unpackage/dist/dev/mp-weixin/Food/search/search.wxml

1 line
3.1 KiB
Plaintext

<view class="content data-v-d6d0f1a8"><view class="search data-v-d6d0f1a8"><input type="text" placeholder="输入关键字匹配食谱" data-event-opts="{{[['input',[['__set_model',['','search_value','$event',[]]]]]]}}" value="{{search_value}}" bindinput="__e" class="data-v-d6d0f1a8"/><block wx:if="{{search_value}}"><icon data-event-opts="{{[['tap',[['handlecolse',['$event']]]]]}}" class="iconfont icon-error data-v-d6d0f1a8" bindtap="__e"></icon></block><image src="/static/28.png" data-event-opts="{{[['tap',[['handleSearchHistory',['$0'],['search_value']]]]]}}" bindtap="__e" class="data-v-d6d0f1a8"></image></view><view class="content-box data-v-d6d0f1a8"><block wx:if="{{$root.g0}}"><view class="search-history data-v-d6d0f1a8"><view class="title data-v-d6d0f1a8"><view class="quan mr-5 data-v-d6d0f1a8"></view>历史搜索</view><block wx:if="{{$root.g1>8}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="button-container data-v-d6d0f1a8" bindtap="__e"><image src="{{showAll?'/static/arrow-up.png':'/static/arrow-down.png'}}" class="data-v-d6d0f1a8"></image></view></block><view class="history-list data-v-d6d0f1a8"><block wx:for="{{showAll?history_food:$root.g2}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({item})}}" class="history-list-item data-v-d6d0f1a8" bindtap="__e">{{''+item.keyword+''}}</view></block></view></view></block><view class="popular-container data-v-d6d0f1a8"><view class="title data-v-d6d0f1a8"><view class="quan mr-5 data-v-d6d0f1a8"></view>猜你想搜</view><block wx:for="{{popular_food}}" wx:for-item="ite" wx:for-index="index" wx:key="index"><view class="popular-food-item data-v-d6d0f1a8"><view class="food-title data-v-d6d0f1a8">{{ite.title}}</view><view class="popular-food-inner data-v-d6d0f1a8"><block wx:for="{{ite.list}}" wx:for-item="sub_item" wx:for-index="sub_index" wx:key="sub_index"><text data-event-opts="{{[['tap',[['handleSearchHistory',['$0'],[[['popular_food','',index],['list','',sub_index,'name']]]]]]]}}" class="popular-food-subitem data-v-d6d0f1a8" bindtap="__e">{{sub_item.name+''}}</text></block></view></view></block></view></view><view class="footBtn data-v-d6d0f1a8"><view data-event-opts="{{[['touchstart',[['onVoiceTouchStart',['$event']]]],['touchend',[['onVoiceTouchEnd',['$event']]]],['touchcancel',[['cancelRecording',['$event']]]]]}}" class="mic-icon data-v-d6d0f1a8" bindtouchstart="__e" bindtouchend="__e" bindtouchcancel="__e"><uni-icons vue-id="034c414c-1" type="mic-filled" size="20" color="#fff" class="data-v-d6d0f1a8" bind:__l="__l"></uni-icons>语音搜索</view></view><block wx:if="{{showAutoSearchDlg}}"><view class="wrapper data-v-d6d0f1a8"><view class="auto-search-dialog data-v-d6d0f1a8"><view class="auto-search-inner data-v-d6d0f1a8"><view class="voice-wave data-v-d6d0f1a8"><view class="wave-bar data-v-d6d0f1a8"></view><view class="wave-bar data-v-d6d0f1a8"></view><view class="wave-bar data-v-d6d0f1a8"></view><view class="wave-bar data-v-d6d0f1a8"></view><view class="wave-bar data-v-d6d0f1a8"></view><view class="wave-bar data-v-d6d0f1a8"></view></view></view></view></view></block></view>