1 line
8.0 KiB
Plaintext
1 line
8.0 KiB
Plaintext
<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" 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="请输入..." 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-d4f38c70" bindtap="__e"></icon></block></view><view class="searchBtn data-v-d4f38c70"><view data-event-opts="{{[['tap',[['handleSerach',['$event']]]]]}}" bindtap="__e" class="data-v-d4f38c70">搜索</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>历史搜索</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>猜你想搜</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><block wx:if="{{$root.g4}}"><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">—— 到底了,看看别的吧 ——</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"><view class="left data-v-d4f38c70"><block wx:for="{{foodItem}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['handleToggle',['$0'],[[['foodItem','',index,'name']]]]]]]}}" class="{{['data-v-d4f38c70',item.name==foodName?'active':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></view><block wx:if="{{$root.g5}}"><view class="list data-v-d4f38c70"><view class="length data-v-d4f38c70">{{"共"+$root.g6+"条记录"}}</view><block wx:for="{{ActiveList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><block wx:if="{{ite.meals_type==foodName}}"><view class="item data-v-d4f38c70"><view class="item-left data-v-d4f38c70"><image src="{{ite.pic_url}}" class="data-v-d4f38c70"></image><view class="name data-v-d4f38c70"><text class="data-v-d4f38c70">{{ite.name}}</text><text class="weight data-v-d4f38c70">{{ite.weight+ite.unit+" / "+ite.kcal+"kcal"}}</text></view></view><icon class="iconfont icon-ashbin data-v-d4f38c70" color="red" size="26" data-event-opts="{{[['tap',[['handledelactive',['$0'],[[['ActiveList','',ind]]]]]]]}}" bindtap="__e"></icon></view></block></block></view></block><block wx:else><view class="nolist list data-v-d4f38c70"><icon class="iconfont icon-wancan data-v-d4f38c70"></icon><text class="data-v-d4f38c70">还没有添加食物</text></view></block></view></view></view></block><block wx:if="{{IsWeight}}"><view class="wrapper data-v-d4f38c70"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="bg data-v-d4f38c70" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-d4f38c70" catchtap="__e"><icon class="iconfont icon-error data-v-d4f38c70" size="30" data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" bindtap="__e"></icon><scroll-view style="height:100%;margin-top:20rpx;" scroll-y="true" class="data-v-d4f38c70"><view class="box-info data-v-d4f38c70"><view class="foodItem data-v-d4f38c70"><view class="left data-v-d4f38c70"><image src="{{activeType.pic_url}}" mode="aspectFill" class="data-v-d4f38c70"></image><view class="info data-v-d4f38c70"><view class="name data-v-d4f38c70">{{activeType.name}}</view><view class="kcal data-v-d4f38c70">{{activeType.kcal+"千卡/100克"}}</view></view></view></view><view class="foodInfo data-v-d4f38c70"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodInfoItem data-v-d4f38c70"><view class="name data-v-d4f38c70"><block wx:if="{{item.$orig.color!=''}}"><view class="color data-v-d4f38c70" style="{{'background-color:'+(item.$orig.color)+';'}}"></view></block><text class="data-v-d4f38c70">{{item.$orig.name+"("+item.m0+")"}}</text></view><view class="value data-v-d4f38c70">{{item.g7+''}}</view></view></block></view><block wx:if="{{isBle}}"><view class="blue-tooth data-v-d4f38c70"><blue-tooth vue-id="1b41803e-1" weightType="2" weightKcal="{{weightKcal}}" btnType="2" data-event-opts="{{[['^handleBle',[['handleBle']]],['^realTimeWeight',[['realTimeWeight']]]]}}" bind:handleBle="__e" bind:realTimeWeight="__e" class="data-v-d4f38c70" bind:__l="__l"></blue-tooth></view></block></view><view class="foodDetail data-v-d4f38c70"><view class="foodContent data-v-d4f38c70"><view class="tips data-v-d4f38c70"><text class="data-v-d4f38c70">营养素</text><text class="data-v-d4f38c70">{{$root.g8+"克含量"}}</text></view><view class="foodDetailList data-v-d4f38c70"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodDetailItem data-v-d4f38c70"><view class="name data-v-d4f38c70">{{item.$orig.name_ch}}</view><view class="value data-v-d4f38c70">{{''+item.g9+item.$orig.unit+''}}</view></view></block></view></view></view></scroll-view></view></view></view></block><view class="groupbtn data-v-d4f38c70"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="left data-v-d4f38c70" bindtap="__e"><view class="che data-v-d4f38c70"><text class="data-v-d4f38c70">{{$root.g10}}</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 data-event-opts="{{[['touchstart',[['onVoiceTouchStart',['$event']]]],['touchend',[['onVoiceTouchEnd',['$event']]]]]}}" class="mic-icon data-v-d4f38c70" bindtouchstart="__e" bindtouchend="__e"><uni-icons vue-id="1b41803e-2" type="mic-filled" size="20" color="{{mic_touch?'#777777':'#fff'}}" class="data-v-d4f38c70" bind:__l="__l"></uni-icons>语音搜索</view></view></view> |