kitchendDevice/unpackage/dist/build/mp-weixin/pages/count/count.wxml

1 line
6.6 KiB
Plaintext
Raw Normal View History

2025-09-04 17:33:41 +08:00
<view class="content data-v-6328fe7b"><block wx:if="{{!token}}"><view data-event-opts="{{[['tap',[['handleLogin']]]]}}" class="list2 data-v-6328fe7b" bindtap="__e"><view class="nolist data-v-6328fe7b"><icon class="iconfont icon-zanwushuju data-v-6328fe7b"></icon><text class="data-v-6328fe7b">登录后查看更多哦!</text></view><view class="btn data-v-6328fe7b">登录</view></view></block><block wx:else><view class="content_box data-v-6328fe7b"><block wx:if="{{userinfo&&userinfo.weight!=''}}"><view class="box data-v-6328fe7b"><view class="calendar data-v-6328fe7b"><ren-calendar vue-id="ba4fd5c0-1" startDay="{{startDay}}" markDays="{{markDays}}" data-ref="ren" data-event-opts="{{[['^maskClick',[['maskClick']]],['^onMonthClickPre',[['onMonthClickPre']]],['^onMonthClickNext',[['onMonthClickNext']]]]}}" bind:maskClick="__e" bind:onMonthClickPre="__e" bind:onMonthClickNext="__e" class="data-v-6328fe7b vue-ref" bind:__l="__l"></ren-calendar></view><view class="kcal data-v-6328fe7b"><view data-event-opts="{{[['tap',[['handleSet',['$event']]]]]}}" class="set data-v-6328fe7b" bindtap="__e"><icon class="iconfont icon-shezhi1 data-v-6328fe7b"></icon></view><view class="top data-v-6328fe7b"><view class="left data-v-6328fe7b"><qiun-data-charts vue-id="ba4fd5c0-2" type="arcbar" chartData="{{chartData}}" canvas2d="{{true}}" cHeight="{{300}}" cWidth="{{300}}" canvasId="arcbar008" class="data-v-6328fe7b" bind:__l="__l"></qiun-data-charts><view class="center data-v-6328fe7b">还能吃<text class="data-v-6328fe7b">{{remaining_kcal}}</text><view class="unit data-v-6328fe7b">Kcal</view></view></view><view class="right data-v-6328fe7b"><text class="data-v-6328fe7b">建议摄入</text><text class="num data-v-6328fe7b">{{suggestion.kcal}}</text><view class="unit data-v-6328fe7b">Kcal</view></view></view><view class="weight data-v-6328fe7b"><view class="item data-v-6328fe7b"><text class="name data-v-6328fe7b">碳水化合物(克)</text><view class="bold data-v-6328fe7b"><view class="val data-v-6328fe7b" style="{{'width:'+((carbohydratepercent>100?100:carbohydratepercent)+'%')+';'}}"></view><text class="data-v-6328fe7b">{{today_intake.carbohydrate+"/"+suggestion.carbohydrate}}</text></view></view><view class="item data-v-6328fe7b"><text class="name data-v-6328fe7b">蛋白质(克)</text><view class="bold data-v-6328fe7b"><view class="val data-v-6328fe7b" style="{{'width:'+((proteinpercent>100?100:proteinpercent)+'%')+';'}}"></view><text class="data-v-6328fe7b">{{today_intake.protein+"/"+suggestion.protein}}</text></view></view><view class="item data-v-6328fe7b"><text class="name data-v-6328fe7b">脂肪(克)</text><view class="bold data-v-6328fe7b"><view class="val data-v-6328fe7b" style="{{'width:'+((fatpercent>100?100:fatpercent)+'%')+';'}}"></view><text class="data-v-6328fe7b">{{today_intake.fat+"/"+suggestion.fat}}</text></view></view></view></view><view class="tabbar data-v-6328fe7b"><view data-event-opts="{{[['tap',[['handleAddFood',[0,'早餐']]]]]}}" class="type data-v-6328fe7b" bindtap="__e"><icon class="t-icon t-icon-yingyangzaocan data-v-6328fe7b"></icon><view class="text data-v-6328fe7b"><icon class="iconfont icon-add data-v-6328fe7b"></icon>早餐</view></view><view data-event-opts="{{[['tap',[['handleAddFood',[1,'午餐']]]]]}}" class="type data-v-6328fe7b" bindtap="__e"><icon class="t-icon t-icon-jiucan data-v-6328fe7b"></icon><view class="text data-v-6328fe7b"><icon class="iconfont icon-add data-v-6328fe7b"></icon>午餐</view></view><view data-event-opts="{{[['tap',[['handleAddFood',[2,'晚餐']]]]]}}" class="type data-v-6328fe7b" bindtap="__e"><icon class="t-icon t-icon-wancan1 data-v-6328fe7b"></icon><view class="text data-v-6328fe7b"><icon class="iconfont icon-add data-v-6328fe7b"></icon>晚餐</view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="type data-v-6328fe7b" bindtap="__e"><icon class="t-icon t-icon-jiacan data-v-6328fe7b"></icon><view class="text data-v-6328fe7b"><icon class="iconfont icon-add data-v-6328fe7b"></icon>加餐</view></view></view><block wx:if="{{$root.g0}}"><view class="list