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

1 line
4.8 KiB
Plaintext
Raw Normal View History

2025-11-25 14:21:22 +08:00
<view class="content data-v-1c5f368e"><view class="content_box data-v-1c5f368e"><view class="box data-v-1c5f368e"><view class="top data-v-1c5f368e"><image src="{{bgimage}}" mode="aspectFill" class="data-v-1c5f368e"></image><view class="name data-v-1c5f368e">{{info.name}}</view><view class="time data-v-1c5f368e">{{time}}</view></view><view class="everyDay data-v-1c5f368e"><view class="title data-v-1c5f368e"><view class="data-v-1c5f368e"><text class="quan data-v-1c5f368e"></text>成分统计</view></view><view class="progress data-v-1c5f368e"><view class="chart-wrap _div data-v-1c5f368e"><qiun-data-charts vue-id="6f881c38-1" type="ring" opts="{{opts}}" canvasId="foodCharts" chartData="{{chartData}}" cHeight="{{280}}" cWidth="{{280}}" class="data-v-1c5f368e" bind:__l="__l"></qiun-data-charts></view><block wx:if="{{info.nutrients_four}}"><view class="info data-v-1c5f368e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="info-item data-v-1c5f368e"><view class="data-v-1c5f368e"><view class="color data-v-1c5f368e" style="{{'background-color:'+(''+item.color)+';'}}"></view><view class="data-v-1c5f368e">{{item.name}}</view></view><view class="data-v-1c5f368e"><view class="data-v-1c5f368e">{{item.value+item.unit}}<text class="data-v-1c5f368e">|</text>{{item.proportion+"%"}}</view></view></view></block></view></block></view></view><view class="foodtools data-v-1c5f368e"><view class="type data-v-1c5f368e"><view class="title data-v-1c5f368e"><view class="data-v-1c5f368e"><text class="quan data-v-1c5f368e"></text>食物类型</view></view><block wx:if="{{$root.g0}}"><view class="list data-v-1c5f368e"><uni-swipe-action vue-id="6f881c38-2" class="data-v-1c5f368e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{info.list}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><uni-swipe-action-item vue-id="{{('6f881c38-3-'+ind)+','+('6f881c38-2')}}" right-options="{{actionOptions}}" data-event-opts="{{[['^click',[['delAcitionItem',['$0'],[[['info.list','',ind]]]]]]]}}" bind:click="__e" class="data-v-1c5f368e" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],[[['info.list','',ind]]]]]]]}}" class="item data-v-1c5f368e" bindtap="__e"><image src="{{ite.pic_url}}" mode="aspectFill" class="data-v-1c5f368e"></image><view class="weight data-v-1c5f368e"><view class="data-v-1c5f368e">{{ite.name}}</view><view class="size12 c999 data-v-1c5f368e">{{ite.weight}}<text class="data-v-1c5f368e">|</text>{{ite.val+"kcal"}}</view></view></view></uni-swipe-action-item></block></uni-swipe-action></view></block><block wx:else><view class="nolist data-v-1c5f368e"><image src="/static/none.png" class="data-v-1c5f368e"></image><view class="data-v-1c5f368e">暂无食物</view></view></block></view></view><view data-event-opts="{{[['tap',[['handleAddFood']]]]}}" class="add data-v-1c5f368e" bindtap="__e"><text class="data-v-1c5f368e">+</text>添加食物</view></view></view><uni-drawer vue-id="6f881c38-4" mode="right" width="300" data-ref="showRight" class="data-v-1c5f368e vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view style="height:100%;" scroll-y="true" class="data-v-1c5f368e"><view class="foodDetail data-v-1c5f368e"><view class="foodInfo data-v-1c5f368e"><image src="{{activeFoodDetail.pic_url}}" mode="aspectFill" class="data-v-1c5f368e"></image><view class="info data-v-1c5f368e"><view class="name data-v-1c5f368e">{{activeFoodDetail.name}}</view><view class="kcal data-v-1c5f368e">{{activeFoodDetail.val+"千卡"}}</view></view></view><view class="foodContent data-v-1c5f368e"><view class="title data-v-1c5f368e">热量和营养</view><view class="progress data-v-1c5f368e"><view class="chart-wrap _div data-v-1c5f368e"><qiun-data-charts vue-id="{{('6f881c38-5')+','+('6f881c38-4')}}" type="ring" opts="{{opts2}}" chartData="{{chartData2}}" cHeight="{{280}}" cWidth="{{280}}" class="data-v-1c5f368e" bind:__l="__l"></qiun-data-charts></view><block wx:if="{{activeFoodDetail.nutrients_four}}"><view class="info data-v-1c5f368e"><block wx:for="{{$root.l