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

1 line
7.0 KiB
Plaintext
Raw Normal View History

2026-03-23 16:23:40 +08:00
<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="1" 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}}"><qiun-data-charts vue-id="a453a01a-3" type="arcbar" chartData="{{chartData}}" cHeight="{{280}}" cWidth="{{280}}" canvas2d="{{true}}" canvasId="countCharts" class="data-v-60723f73" bind:__l="__l"></qiun-data-charts></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-60723