kitchendDevice/unpackage/dist/build/mp-weixin/pages/search/search.wxml

1 line
3.3 KiB
Plaintext

<view class="content data-v-4758b23e"><view class="search data-v-4758b23e"><input type="text" placeholder="输入关键字匹配食谱" data-event-opts="{{[['input',[['__set_model',['','search_value','$event',[]]]]]]}}" value="{{search_value}}" bindinput="__e" class="data-v-4758b23e"/><image src="/static/28.png" data-event-opts="{{[['tap',[['handleSearchHistory',['$0'],['search_value']]]]]}}" bindtap="__e" class="data-v-4758b23e"></image></view><view class="content-box data-v-4758b23e"><block wx:if="{{$root.g0}}"><view class="search-history data-v-4758b23e"><view class="title data-v-4758b23e"><view class="quan data-v-4758b23e"></view>历史搜索</view><view class="history-list data-v-4758b23e"><block wx:for="{{history_food}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['handleSearchHistory',['$0'],[[['history_food','',index,'keyword']]]]]]]}}" class="history-list-item data-v-4758b23e" bindtap="__e">{{''+item.keyword+''}}</view></block></view></view></block><view class="popular-container data-v-4758b23e"><view class="title data-v-4758b23e"><view class="quan data-v-4758b23e"></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-4758b23e"><view class="food-title data-v-4758b23e">{{ite.title}}</view><view class="popular-food-inner data-v-4758b23e"><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-4758b23e" bindtap="__e">{{sub_item.name+''}}</text></block></view></view></block></view></view><block wx:if="{{showAutoSearchDlg}}"><view class="auto-search-dialog data-v-4758b23e"><view class="auto-search-inner data-v-4758b23e"><text class="data-v-4758b23e">{{autoSearchContent!=''?'识别到你描述的菜谱为“'+autoSearchContent+'”,是否查找菜谱“'+autoSearchContent+'”':"长安麦克风图标开始说话,松开后结束"}}</text><block wx:if="{{autoSearchContent==''}}"><view data-event-opts="{{[['touchstart',[['onVoiceTouchStart',['$event']]]],['touchend',[['onVoiceTouchEnd',['$event']]]]]}}" class="mic-icon data-v-4758b23e" style="{{'border-color:'+(mic_touch?'#18bc37':'#777777')+';'}}" bindtouchstart="__e" bindtouchend="__e"><uni-icons vue-id="50cad900-1" type="mic-filled" size="80" color="{{mic_touch?'#18bc37':'#777777'}}" class="data-v-4758b23e" bind:__l="__l"></uni-icons></view></block><block wx:else><view class="btn-wrap data-v-4758b23e"><view data-event-opts="{{[['tap',[['retrySearch',['$event']]]]]}}" class="retry data-v-4758b23e" bindtap="__e">重试</view><view data-event-opts="{{[['tap',[['handleSearchHistory',['$0'],['autoSearchContent']]]]]}}" class="confirm data-v-4758b23e" bindtap="__e">确定</view></view></block><uni-icons class="close data-v-4758b23e" vue-id="50cad900-2" type="close" color="#ffffff" size="45" data-event-opts="{{[['^click',[['e0']]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></view></view></block><view class="footBtn data-v-4758b23e"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e" class="data-v-4758b23e"><uni-icons vue-id="50cad900-3" type="mic-filled" size="22" color="#fff" class="data-v-4758b23e" bind:__l="__l"></uni-icons>语音搜索</view></view></view>