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

1 line
10 KiB
Plaintext

<view class="content data-v-3f42cc7b"><view class="serachBox data-v-3f42cc7b"><view class="type data-v-3f42cc7b"><picker mode="selector" range="{{foodItem}}" range-key="name" data-event-opts="{{[['change',[['changeClickType',['$event']]]]]}}" bindchange="__e" class="data-v-3f42cc7b"><view class="data-v-3f42cc7b">{{''+foodName+''}}<image src="/static/arrow-down.png" class="data-v-3f42cc7b"></image></view></picker></view><view class="serach-box data-v-3f42cc7b"><view class="searchInput data-v-3f42cc7b"><input class="city-serach-input data-v-3f42cc7b" placeholder="请输入..." 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-3f42cc7b" size="30" data-event-opts="{{[['tap',[['handlecolse',['$event']]]]]}}" bindtap="__e"></icon></block></view><view class="searchBtn data-v-3f42cc7b"><view data-event-opts="{{[['tap',[['handleSerach',['$event']]]]]}}" bindtap="__e" class="data-v-3f42cc7b">搜索</view></view></view></view><block wx:if="{{!$root.g0}}"><view class="content-box data-v-3f42cc7b"><block wx:if="{{$root.g1}}"><view class="search-history data-v-3f42cc7b"><view class="title data-v-3f42cc7b"><view class="quan mr-5 data-v-3f42cc7b"></view>历史搜索</view><block wx:if="{{$root.g2>10}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="button-container data-v-3f42cc7b" bindtap="__e"><image src="{{showAll?'/static/arrow-up.png':'/static/arrow-down.png'}}" class="data-v-3f42cc7b"></image></view></block><view class="history-list data-v-3f42cc7b"><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-3f42cc7b" bindtap="__e">{{''+item.keyword+''}}</view></block></view></view></block><view class="popular-container data-v-3f42cc7b"><view class="title data-v-3f42cc7b"><view class="quan mr-5 data-v-3f42cc7b"></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-3f42cc7b"><view class="food-title data-v-3f42cc7b">{{ite.title}}</view><view class="popular-food-inner data-v-3f42cc7b"><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-3f42cc7b" bindtap="__e">{{sub_item.name+''}}</text></block></view></view></block></view></view></block><view class="groupbtn data-v-3f42cc7b"><view data-event-opts="{{[['tap',[['handleisShop',['$event']]]]]}}" class="left data-v-3f42cc7b" bindtap="__e"><view class="che data-v-3f42cc7b"><text class="data-v-3f42cc7b">{{$root.g4}}</text><image src="/static/pan.png" class="data-v-3f42cc7b"></image></view><view class="type data-v-3f42cc7b">{{''+foodName+''}}<image src="/static/arrow-down.png" class="data-v-3f42cc7b"></image></view></view><view data-event-opts="{{[['touchstart',[['onVoiceTouchStart',['$event']]]],['touchend',[['onVoiceTouchEnd',['$event']]]],['touchcancel',[['cancelRecording',['$event']]]]]}}" class="mic-icon data-v-3f42cc7b" bindtouchstart="__e" bindtouchend="__e" bindtouchcancel="__e"><uni-icons vue-id="add1782a-1" type="mic-filled" size="20" color="#fff" class="data-v-3f42cc7b" bind:__l="__l"></uni-icons>语音搜索</view></view><block wx:if="{{$root.g5}}"><view class="search_list data-v-3f42cc7b"><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-3f42cc7b" bindtap="__e"><image src="{{ite.pic_url}}" class="data-v-3f42cc7b"></image><view class="data-v-3f42cc7b"><text class="data-v-3f42cc7b">{{ite.name}}</text><text class="data-v-3f42cc7b">{{"100g/"+ite.kcal+"kcal"}}</text></view></view></block><block wx:if="{{!lastPage||page>=lastPage}}"><view class="endtext data-v-3f42cc7b">—— 到底了,看看别的吧 ——</view></block></view></block><block wx:if="{{isShop}}"><view class="wrapper activeList data-v-3f42cc7b"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="bg data-v-3f42cc7b" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box2 data-v-3f42cc7b" catchtap="__e"><icon data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="iconfont icon-error data-v-3f42cc7b" bindtap="__e"></icon><view class="jishiqi data-v-3f42cc7b"><view class="left data-v-3f42cc7b"><view class="chart-wrap data-v-3f42cc7b"><view class="charts-box data-v-3f42cc7b"><qiun-data-charts vue-id="add1782a-2" type="arcbar" chartData="{{chartData}}" canvas2d="{{true}}" canvasId="search02" class="data-v-3f42cc7b" bind:__l="__l"></qiun-data-charts></view><view class="center data-v-3f42cc7b">摄入<text class="data-v-3f42cc7b">{{foodInfo[0].today_intake}}</text><view class="unit data-v-3f42cc7b">Kcal</view></view></view><view class="mubiao data-v-3f42cc7b">目标:<text class="data-v-3f42cc7b">{{foodInfo[0].suggestion}}</text>kcal</view></view><view class="right data-v-3f42cc7b"><block wx:for="{{$root.l0}}" wx:for-item="ite" wx:for-index="ind"><view class="item data-v-3f42cc7b"><view class="left-icon data-v-3f42cc7b"><image src="{{ite.icon}}" class="data-v-3f42cc7b"></image><view class="val data-v-3f42cc7b" style="{{'color:'+(ite.color)+';'}}">{{(ite.proportion_fp||0)+"%"}}</view></view><view class="right-info data-v-3f42cc7b"><view class="right-info-top data-v-3f42cc7b"><text class="name data-v-3f42cc7b">{{ite.name}}</text><text class="data-v-3f42cc7b">{{''+(ite.today_intake||0)+"/"+(ite.suggestion||0)+'g'}}</text></view><view class="right-info-bottom data-v-3f42cc7b"><view class="val data-v-3f42cc7b" style="{{'width:'+(ite.proportion+'%')+';'+('background:'+(ite.color)+';')}}"></view></view></view></view></block></view></view><view class="box_list data-v-3f42cc7b"><view class="left data-v-3f42cc7b"><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-3f42cc7b',item.name==foodName?'active':'']}}" bindtap="__e">{{''+item.name+''}}</view></block></view><block wx:if="{{$root.g6}}"><view class="box_list_item data-v-3f42cc7b"><view class="length data-v-3f42cc7b">共<text class="red data-v-3f42cc7b">{{$root.g7}}</text>条记录</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-3f42cc7b"><view class="item-left data-v-3f42cc7b"><image src="{{ite.pic_url}}" class="data-v-3f42cc7b"></image><view class="name data-v-3f42cc7b"><text class="data-v-3f42cc7b">{{ite.name}}</text><text class="weight data-v-3f42cc7b">{{ite.weight+ite.unit+" / "+ite.kcal+"kcal"}}</text></view></view><icon class="iconfont icon-ashbin data-v-3f42cc7b" 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-3f42cc7b"><icon class="iconfont icon-wancan data-v-3f42cc7b"></icon><text class="data-v-3f42cc7b">还没有添加食物</text></view></block></view></view></view></view></block><block wx:if="{{IsWeight}}"><view class="wrapper data-v-3f42cc7b"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="bg data-v-3f42cc7b" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="box data-v-3f42cc7b" catchtap="__e"><icon data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" class="iconfont icon-error data-v-3f42cc7b" bindtap="__e"></icon><scroll-view style="height:100%;margin-top:20rpx;" scroll-y="true" class="data-v-3f42cc7b"><view class="box-info data-v-3f42cc7b"><view class="foodItem data-v-3f42cc7b"><view class="left data-v-3f42cc7b"><image src="{{activeType.pic_url}}" mode="aspectFill" class="data-v-3f42cc7b"></image><view class="info data-v-3f42cc7b"><view class="name data-v-3f42cc7b">{{activeType.name}}</view><view class="kcal data-v-3f42cc7b">{{activeType.kcal+"千卡/100克"}}</view></view></view></view><view class="foodInfo data-v-3f42cc7b"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodInfoItem data-v-3f42cc7b"><view class="name data-v-3f42cc7b"><block wx:if="{{item.$orig.color!=''}}"><view class="color data-v-3f42cc7b" style="{{'background-color:'+(item.$orig.color)+';'}}"></view></block><text class="data-v-3f42cc7b">{{item.$orig.name+"("+item.m0+")"}}</text></view><view class="value data-v-3f42cc7b">{{''+item.g8+''}}</view></view></block></view><block wx:if="{{isBle}}"><view class="blue-tooth data-v-3f42cc7b"><blue-tooth vue-id="add1782a-3" weightKcal="{{weightKcal}}" btnType="{{btnType}}" data-event-opts="{{[['^handleBle',[['handleBle']]],['^realTimeWeight',[['realTimeWeight']]]]}}" bind:handleBle="__e" bind:realTimeWeight="__e" class="data-v-3f42cc7b" bind:__l="__l"></blue-tooth></view></block></view><view class="foodDetail data-v-3f42cc7b"><view class="foodContent data-v-3f42cc7b"><view class="tips data-v-3f42cc7b"><text class="data-v-3f42cc7b">营养素</text><text class="data-v-3f42cc7b">{{$root.g9+"克含量"}}</text></view><view class="foodDetailList data-v-3f42cc7b"><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodDetailItem data-v-3f42cc7b"><view class="name data-v-3f42cc7b">{{item.$orig.name_ch}}</view><view class="value data-v-3f42cc7b">{{''+item.g10+item.$orig.unit+''}}</view></view></block></view></view></view></scroll-view></view></view></view></block><block wx:if="{{showAutoSearchDlg}}"><view class="wrapper data-v-3f42cc7b"><view class="auto-search-dialog data-v-3f42cc7b"><view class="auto-search-inner data-v-3f42cc7b"><view class="voice-wave data-v-3f42cc7b"><view class="wave-bar data-v-3f42cc7b"></view><view class="wave-bar data-v-3f42cc7b"></view><view class="wave-bar data-v-3f42cc7b"></view><view class="wave-bar data-v-3f42cc7b"></view><view class="wave-bar data-v-3f42cc7b"></view><view class="wave-bar data-v-3f42cc7b"></view></view></view></view></view></block><block wx:if="{{showScanCodeDlg}}"><view class="wrapper wrapperScan data-v-3f42cc7b"><view data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" class="auto-search-dialog data-v-3f42cc7b" bindtap="__e"><view class="auto-search-inner data-v-3f42cc7b"><text class="data-v-3f42cc7b">提示</text>{{''+ScanCodeMsg+''}}</view></view></view></block></view>