kitchendDevice/unpackage/dist/build/mp-weixin/pageTwo/count/search.wxml

1 line
8.0 KiB
Plaintext
Raw Normal View History

2025-11-08 16:50:26 +08:00
<view class="content data-v-367ed78f"><view class="serachBox data-v-367ed78f"><view class="serach-box data-v-367ed78f"><view class="searchInput data-v-367ed78f"><input class="city-serach-input data-v-367ed78f" placeholder="请输入..." data-event-opts="{{[['input',[['__set_model',['','search_value','$event',[]]]]]]}}" value="{{search_value}}" bindinput="__e"/><block wx:if="{{search_value}}"><icon data-event-opts="{{[['tap',[['handlecolse',['$event']]]]]}}" class="iconfont icon-error data-v-367ed78f" bindtap="__e"></icon></block><block wx:if="{{!search_value}}"><view class="voice data-v-367ed78f"><uni-icons class="mic data-v-367ed78f" vue-id="1b41803e-1" type="mic-filled" size="26" data-event-opts="{{[['^click',[['onShowSearchType',[1]]]]]}}" bind:click="__e" bind:__l="__l"></uni-icons><uni-icons class="camera data-v-367ed78f" vue-id="1b41803e-2" type="camera-filled" size="26" data-event-opts="{{[['^click',[['onShowSearchType',[2]]]]]}}" bind:click="__e" bind:__l="__l"></uni-icons></view></block></view><view class="searchBtn data-v-367ed78f"><view data-event-opts="{{[['tap',[['handleSerach',['$event']]]]]}}" bindtap="__e" class="data-v-367ed78f">搜索</view></view></view></view><block wx:if="{{!$root.g0}}"><view class="content-box data-v-367ed78f"><block wx:if="{{$root.g1}}"><view class="search-history data-v-367ed78f"><view class="title data-v-367ed78f"><view class="quan data-v-367ed78f"></view>历史搜索</view><view class="history-list data-v-367ed78f"><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-367ed78f" bindtap="__e">{{''+item.keyword+''}}</view></block></view></view></block><view class="popular-container data-v-367ed78f"><view class="title data-v-367ed78f"><view class="quan data-v-367ed78f"></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-367ed78f"><view class="food-title data-v-367ed78f">{{ite.title}}</view><view class="popular-food-inner data-v-367ed78f"><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-367ed78f" bindtap="__e">{{sub_item.name+''}}</text></block></view></view></block></view></view></block><block wx:if="{{$root.g2}}"><view class="search_list data-v-367ed78f"><block wx:for="{{search_list}}" wx:for-item="ite" wx:for-index="ind"><view data-event-opts="{{[['tap',[['handleWeight',['$0'],[[['search_list','',ind]]]]]]]}}" class="search_list_item data-v-367ed78f" bindtap="__e"><image src="{{ite.pic_url}}" class="data-v-367ed78f"></image><view class="data-v-367ed78f"><text class="data-v-367ed78f">{{ite.name}}</text><text class="data-v-367ed78f">{{"100g/"+ite.kcal+"kcal"}}</text></view></view></block><block wx:if="{{!lastPage||page>=lastPage}}"><view class="endtext data-v-367ed78f">—— 到底了,看看别的吧 ——</view></block></view></block><block wx:if="{{isShop}}"><view class="wrapper activeList data-v-367ed78f"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="bg data-v-367ed78f" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-367ed78f" catchtap="__e"><view class="title data-v-367ed78f">{{"共"+$root.g3+"条记录"}}</view><block wx:if="{{$root.g4}}"><view class="list data-v-367ed78f"><block wx:for="{{ActiveList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="item data-v-367ed78f"><view class="data-v-367ed78f"><text class="name data-v-367ed78f">{{ite.name}}</text><text class="data-v-367ed78f">{{""+ite.weight+ite.unit+""}}</text></view><icon data-event-opts="{{[['tap',[['handledelactive',['$0'],[[['ActiveList','',ind]]]]]]]}}" class="iconfont icon-ashbin data-v-367ed78f" bindtap="__e"></icon></view></block></view></block><block wx:else><vi