index.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <nav-bar navbar-data='{{navbarData}}' bind:back="back"></nav-bar>
  2. <view class="main" style="padding-top:{{height}}px;height:{{windowHeight-height}}px">
  3. <view class="one">
  4. <view>日期</view>
  5. <view>餐时</view>
  6. <view>菜品</view>
  7. <view>热量</view>
  8. </view>
  9. <view class="two" style="height:{{windowHeight-height-35}}px">
  10. <view class="list" wx:key="item" wx:for="{{list}}" data-id="{{item.id}}">
  11. <view class="two_1" style="height:{{item.style.total}}px;line-height:{{item.style.total}}px;">{{item.date}}</view>
  12. <view class="two_2">
  13. <view style="height:{{item.style.one}}px;line-height:{{item.style.one}}px;">早餐</view>
  14. <view style="height:{{item.style.two}}px;line-height:{{item.style.two}}px;">午餐</view>
  15. <view style="height:{{item.style.thr}}px;line-height:{{item.style.thr}}px;">晚餐</view>
  16. </view>
  17. <view class="two_3">
  18. <view class="breakfast" style="height:{{item.style.one}}px;">
  19. <view class="breakfast_1" wx:key="break" wx:for="{{item.arrange.breakfast}}" wx:for-item="break">
  20. <text>{{break.name}}</text>
  21. <text>{{break.reserve}}(大卡)</text>
  22. </view>
  23. </view>
  24. <view class="breakfast" style="height:{{item.style.two}}px;">
  25. <view class="breakfast_1" wx:key="lun" wx:for="{{item.arrange.lunch}}" wx:for-item="lun">
  26. <text>{{lun.name}}</text>
  27. <text>{{lun.reserve}}(大卡)</text>
  28. </view>
  29. </view>
  30. <view class="breakfast" style="height:{{item.style.thr}}px;">
  31. <view class="breakfast_1" wx:key="din" wx:for="{{item.arrange.dinner}}" wx:for-item="din">
  32. <text>{{din.name}}</text>
  33. <text>{{din.reserve}}(大卡)</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>