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

1 line
9.7 KiB
Plaintext
Raw Normal View History

2025-12-27 15:47:56 +08:00
<view class="content data-v-d4f38c70"><view class="serachBox data-v-d4f38c70"><view class="type data-v-d4f38c70"><picker mode="selector" range="{{foodItem}}" range-key="name" value="{{index}}" data-event-opts="{{[['change',[['changeClickType',['$event']]]]]}}" bindchange="__e" class="data-v-d4f38c70"><view class="data-v-d4f38c70">{{''+foodName+''}}<image src="/static/arrow-down.png" class="data-v-d4f38c70"></image></view></picker></view><view class="serach-box data-v-d4f38c70"><view class="searchInput data-v-d4f38c70"><input class="city-serach-input data-v-d4f38c70" placeholder="{{$root.m0}}" data-event-opts="{{[['input',[['__set_model',['','search_value','$event',[]]]]]]}}" value="{{search_value}}" bindinput="__e"/><block wx:if="{{search_value}}"><icon class="iconfont icon-error data-v-d4f38c70" size="30" data-event-opts="{{[['tap',[['handlecolse',['$event']]]]]}}" bindtap="__e"></icon></block></view><view class="searchBtn data-v-d4f38c70"><view data-event-opts="{{[['tap',[['handleSerach',['$event']]]]]}}" bindtap="__e" class="data-v-d4f38c70">{{$root.m1}}</view></view></view></view><block wx:if="{{!$root.g0}}"><view class="content-box data-v-d4f38c70"><block wx:if="{{$root.g1}}"><view class="search-history data-v-d4f38c70"><view class="title data-v-d4f38c70"><view class="quan mr-5 data-v-d4f38c70"></view>{{$root.m2+''}}</view><block wx:if="{{$root.g2>10}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="button-container data-v-d4f38c70" bindtap="__e"><image src="{{showAll?'/static/arrow-up.png':'/static/arrow-down.png'}}" class="data-v-d4f38c70"></image></view></block><view class="history-list data-v-d4f38c70"><block wx:for="{{showAll?history_food:$root.g3}}" 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-d4f38c70" bindtap="__e">{{''+item.keyword+''}}</view></block></view></view></block><view class="popular-container data-v-d4f38c70"><view class="title data-v-d4f38c70"><view class="quan mr-5 data-v-d4f38c70"></view>{{$root.m3+''}}</view><block wx:for="{{popular_food}}" wx:for-item="ite" wx:for-index="index" wx:key="index"><view class="popular-food-item data-v-d4f38c70"><view class="food-title data-v-d4f38c70">{{ite.title}}</view><view class="popular-food-inner data-v-d4f38c70"><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-d4f38c70" bindtap="__e">{{sub_item.name+''}}</text></block></view></view></block></view></view></block><view class="groupbtn data-v-d4f38c70"><view data-event-opts="{{[['tap',[['handleisShop',['$event']]]]]}}" class="left data-v-d4f38c70" bindtap="__e"><view class="che data-v-d4f38c70"><text class="data-v-d4f38c70">{{$root.g4}}</text><icon class="t-icon t-icon-canpan data-v-d4f38c70"></icon></view><view class="type data-v-d4f38c70">{{''+foodName+''}}<image src="/static/arrow-down.png" class="data-v-d4f38c70"></image></view></view></view><block wx:if="{{$root.g5}}"><view class="search_list data-v-d4f38c70"><block wx:for="{{search_list}}" wx:for-item="ite" wx:for-index="ind"><view data-event-opts="{{[['tap',[['handleDetail',['$0'],[[['search_list','',ind]]]]]]]}}" class="search_list_item data-v-d4f38c70" bindtap="__e"><image src="{{ite.pic_url}}" class="data-v-d4f38c70"></image><view class="data-v-d4f38c70"><text class="data-v-d4f38c70">{{ite.name}}</text><text class="data-v-d4f38c70">{{"100g/"+ite.kcal+"kcal"}}</text></view></view></block><block wx:if="{{!lastPage||page>=lastPage}}"><view class="endtext data-v-d4f38c70">{{"—— "+$root.m4+" ——"}}</view></block></view></block><block wx:if="{{isShop}}"><view class="wrapper activeList data-v-d4f38c70"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bg data-v-d4f38c70" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box2 data-v-d4f38c70" catchtap="__e"><icon data