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

1 line
6.6 KiB
Plaintext

<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 data-v-6328fe7b"><block wx:for="{{list}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="listbox data-v-6328fe7b"><view class="left data-v-6328fe7b"><view class="title data-v-6328fe7b">{{ite.name}}</view><view class="kcalval data-v-6328fe7b"><text class="data-v-6328fe7b">{{ite.val}}</text>{{ite.unit+''}}</view></view><view class="right data-v-6328fe7b"><uni-swipe-action vue-id="{{'ba4fd5c0-3-'+ind}}" class="data-v-6328fe7b" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{ite.list}}" wx:for-item="it" wx:for-index="id" wx:key="id"><uni-swipe-action-item vue-id="{{('ba4fd5c0-4-'+ind+'-'+id)+','+('ba4fd5c0-3-'+ind)}}" right-options="{{actionOptions}}" data-event-opts="{{[['^click',[['delAcitionItem',['$0'],[[['list','',ind],['list','',id]]]]]]]}}" bind:click="__e" class="data-v-6328fe7b" bind:__l="__l" vue-slots="{{['default']}}"><view class="item data-v-6328fe7b"><image src="{{it.pic_url}}" mode="aspectFill" class="data-v-6328fe7b"></image><text class="data-v-6328fe7b">{{it.name}}</text><text class="data-v-6328fe7b">{{it.weight}}</text><text class="data-v-6328fe7b">{{it.val}}</text></view></uni-swipe-action-item></block></uni-swipe-action></view></view></block></view></block><block wx:else><view class="nolist list data-v-6328fe7b"><icon class="iconfont icon-zanwushuju data-v-6328fe7b"></icon><text class="data-v-6328fe7b">还没有记录,点击上方按钮添加</text></view></block></view></block><block wx:else><view data-event-opts="{{[['tap',[['handleEditUser']]]]}}" 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></view></block><block wx:if="{{isShow}}"><view class="wrapper activeList data-v-6328fe7b"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="bg data-v-6328fe7b" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="addfood data-v-6328fe7b" catchtap="__e"><icon data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="iconfont icon-error data-v-6328fe7b" bindtap="__e"></icon><view class="list data-v-6328fe7b"><block wx:for="{{addfoodList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view data-event-opts="{{[['tap',[['handleAddFood',['$0','$1'],[[['addfoodList','',ind,'id']],[['addfoodList','',ind,'name']]]]]]]}}" class="item data-v-6328fe7b" bindtap="__e"><text class="name data-v-6328fe7b">{{ite.name}}</text></view></block></view></view></view></view></block></view>