ReedawFoodApp/unpackage/dist/dev/mp-weixin/components/foodIndex/foodHome.wxml

1 line
7.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="content-box data-v-60723f73"><view class="data data-v-60723f73"><picker mode="date" end="{{endDate}}" value="{{data?data:endDate}}" data-event-opts="{{[['change',[['changeClickDate',['$event']]]]]}}" bindchange="__e" class="data-v-60723f73"><view class="data-v-60723f73">{{''+(data?data:"请选择")+''}}<image src="/static/qie.png" class="data-v-60723f73"></image></view></picker></view><block wx:if="{{user.aud_id!=''}}"><view class="blue-tooth data-v-60723f73"><blue-tooth vue-id="a453a01a-1" btnType="{{btnType}}" class="data-v-60723f73" bind:__l="__l"></blue-tooth></view></block><view class="everyDay data-v-60723f73"><view class="title data-v-60723f73"><view class="data-v-60723f73"><text class="quan data-v-60723f73"></text>热量摄入</view><view data-event-opts="{{[['tap',[['handleSet',['$event']]]]]}}" class="icon data-v-60723f73" bindtap="__e"><uni-icons vue-id="a453a01a-2" type="gear" size="26" class="data-v-60723f73" bind:__l="__l"></uni-icons></view></view><view class="jishiqi data-v-60723f73"><view class="left data-v-60723f73"><view class="chart-wrap data-v-60723f73"><block wx:if="{{handTrue}}"><view class="charts-box data-v-60723f73"><qiun-data-charts vue-id="a453a01a-3" type="arcbar" chartData="{{chartData}}" canvas2d="{{true}}" canvasId="foodCharts01" class="data-v-60723f73" bind:__l="__l"></qiun-data-charts></view></block><view class="center data-v-60723f73">摄入<text class="data-v-60723f73">{{foodInfo.nutrients_four[0].today_intake}}</text><view class="unit data-v-60723f73">Kcal</view></view></view><view class="mubiao data-v-60723f73">目标:<text class="data-v-60723f73">{{foodInfo.nutrients_four[0].suggestion}}</text>kcal</view></view><view class="right data-v-60723f73"><block wx:for="{{$root.l0}}" wx:for-item="ite" wx:for-index="ind"><view class="item data-v-60723f73"><view class="left-icon data-v-60723f73"><image src="{{ite.icon}}" class="data-v-60723f73"></image><view class="val data-v-60723f73" style="{{'color:'+(ite.color)+';'}}">{{(ite.proportion_fp||0)+"%"}}</view></view><view class="right-info data-v-60723f73"><view class="right-info-top data-v-60723f73"><text class="name data-v-60723f73">{{ite.name}}</text><text class="data-v-60723f73">{{''+(ite.today_intake||0)+"/"+(ite.suggestion||0)+'g'}}</text></view><view class="right-info-bottom data-v-60723f73"><view class="val data-v-60723f73" style="{{'width:'+(ite.proportion+'%')+';'+('background:'+(ite.color)+';')}}"></view></view></view></view></block></view></view></view><view class="foodtools data-v-60723f73"><block wx:for="{{foodInfo.list}}" wx:for-item="item" wx:for-index="index"><view class="type data-v-60723f73"><view data-event-opts="{{[['tap',[['handledetail',[index]]]]]}}" class="title data-v-60723f73" bindtap="__e"><view class="text data-v-60723f73"><image src="{{item.icon}}" class="data-v-60723f73"></image><view class="data-v-60723f73">{{item.name}}</view><text class="data-v-60723f73">{{item.val+item.unit}}</text></view><view class="detail data-v-60723f73">餐食详情<uni-icons vue-id="{{'a453a01a-4-'+index}}" type="forward" size="20" color="#999" class="data-v-60723f73" bind:__l="__l"></uni-icons></view></view><view class="list data-v-60723f73"><uni-swipe-action vue-id="{{'a453a01a-5-'+index}}" class="data-v-60723f73" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{item.list}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><uni-swipe-action-item vue-id="{{('a453a01a-6-'+index+'-'+ind)+','+('a453a01a-5-'+index)}}" right-options="{{actionOptions}}" data-event-opts="{{[['^click',[['delAcitionItem',['$0'],[[['foodInfo.list','',index],['list','',ind]]]]]]]}}" bind:click="__e" class="data-v-60723f73" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],[[['foodInfo.list','',index],['list','',ind]]]]]]]}}" class="item data-v-60723f73" bindtap="__e"><image src="{{ite.pic_url}}" mode="aspectFill" class="data-v-60723f73"></image><view class="weight data-v-60723f73"><view class="data-v-60723f73">{{ite.name}}</view><view class="size12 c999 data-v-60723f73">{{ite.weight}}<text class="data-v-60723f73">|</text>{{ite.val+"kcal"}}</view></view></view></uni-swipe-action-item></block></uni-swipe-action><view data-event-opts="{{[['tap',[['handleAddFood',['$0'],[[['foodInfo.list','',index,'name']]]]]]]}}" class="add data-v-60723f73" bindtap="__e"><text class="data-v-60723f73">+</text>添加食物</view></view></view></block></view><view data-event-opts="{{[['tap',[['navTo',['/Food/count/everyDay?page=count']]]]]}}" class="fenxi data-v-60723f73" bindtap="__e"><image src="/static/fenxi.png" class="data-v-60723f73"></image>营养分析</view><view class="serachBox data-v-60723f73"><view class="title data-v-60723f73"><view class="quan mr-5 data-v-60723f73"></view>教你做</view><view class="searchInput data-v-60723f73"><view data-event-opts="{{[['tap',[['navTo',['/Food/search/search']]]]]}}" class="search-wrap _div data-v-60723f73" bindtap="__e"><text class="data-v-60723f73">输入食材快速搜索菜谱</text><image src="/static/28.png" class="data-v-60723f73"></image></view></view></view><block wx:if="{{drawerVisible}}"><view class="drawerVisible data-v-60723f73"><view data-event-opts="{{[['tap',[['handleDrawerClose',['$event']]]]]}}" class="bgVisible data-v-60723f73" bindtap="__e"></view><view class="infoVisible data-v-60723f73"><scroll-view style="height:100%;" scroll-y="true" class="data-v-60723f73"><view class="foodDetail data-v-60723f73"><view class="foodInfo data-v-60723f73"><image src="{{activeFoodDetail.pic_url}}" mode="aspectFill" class="data-v-60723f73"></image><view class="info data-v-60723f73"><view class="name data-v-60723f73">{{activeFoodDetail.name}}</view><view class="kcal data-v-60723f73">{{activeFoodDetail.val+"千卡"}}</view></view></view><view class="foodContent data-v-60723f73"><view class="title data-v-60723f73">热量和营养</view><view class="progress data-v-60723f73"><block wx:if="{{chartVisible}}"><view class="chart-wrap _div data-v-60723f73"><qiun-data-charts vue-id="a453a01a-7" type="ring" opts="{{opts}}" chartData="{{chartData2}}" cHeight="{{280}}" cWidth="{{280}}" canvas2d="{{true}}" canvasId="foodCharts02" class="data-v-60723f73" bind:__l="__l"></qiun-data-charts></view></block><block wx:if="{{activeFoodDetail.nutrients_four}}"><view class="info data-v-60723f73"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="info-item data-v-60723f73"><view class="color data-v-60723f73" style="{{'background-color:'+(''+item.color)+';'}}"></view><view class="data-v-60723f73">{{item.name+""+item.proportion+"%"}}</view></view></block></view></block></view><view class="tips data-v-60723f73"><text class="data-v-60723f73">营养素</text><text class="data-v-60723f73">{{activeFoodDetail.weight+"含量"}}</text></view><view class="foodDetailList data-v-60723f73"><block wx:for="{{activeFoodDetail.nutrients_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodDetailItem data-v-60723f73"><view class="name data-v-60723f73">{{item.name_ch}}</view><view class="value data-v-60723f73">{{item.value+item.unit+''}}</view></view></block></view></view></view></scroll-view></view></view></block></view>