index.wxml 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <nav-bar navbar-data='{{navbarData}}' needBack="{{false}}"></nav-bar>
  2. <view class="main" style="padding-top:{{height}}px;height:{{windowHeight-height-100}}px">
  3. <view class="one">
  4. <!-- <view class="one_1">您的绑定餐厅为:{{tenant}}</view> -->
  5. <view class="one_2">
  6. <view>请您在前一天21点前报餐</view>
  7. <view>
  8. <picker mode="date" value="{{today}}" start="{{picker.start}}" end="{{picker.end}}" bindchange="bindDateChange">
  9. <view class="picker">{{today}}</view>
  10. </picker>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="info">
  15. <scroll-view scroll-y="true" class="scroll-view">
  16. <view class="list-scroll-view">
  17. <view class="two">
  18. <view class="two_1">
  19. <view class="infoTab {{infoTab==0?'infoActive':''}}" data-current="0" bindtap="infoClickTab">早餐</view>
  20. <view class="infoTab {{infoTab==1?'infoActive':''}}" data-current="1" bindtap="infoClickTab">午餐</view>
  21. <view class="infoTab {{infoTab==2?'infoActive':''}}" data-current="2" bindtap="infoClickTab">晚餐</view>
  22. </view>
  23. <view class="two_2">
  24. <scroll-view scroll-y="true" class="scroll-view">
  25. <view class="list-scroll-view">
  26. <view wx:if="{{infoTab==0}}">
  27. <view class="list" wx:key="item" wx:for="{{breakfastList}}">
  28. <view class="image">
  29. <image src='{{item.url}}'></image>
  30. </view>
  31. <view class="other">
  32. <view class="other_1">{{item.name}}</view>
  33. <view class="other_2">
  34. <view class="other_2num">已售:<text>{{item.order}}</text></view>
  35. <view class="other_2btn">
  36. <van-stepper value="{{ item.num }}" min="0" bind:plus="onePlus" bind:minus="oneMinus" disable-input="true" bind:change="oneChange" data-data="{{item}}" data-type="breakfast" input-width="28px" button-size="20px" />
  37. </view>
  38. </view>
  39. <view class="other_3">热量:{{item.reserve}}卡</view>
  40. </view>
  41. <view>
  42. </view>
  43. </view>
  44. </view>
  45. <view wx:if="{{infoTab==1}}">
  46. <view class="list" wx:key="item" wx:for="{{lunchList}}">
  47. <view class="image">
  48. <image src='{{item.url}}'></image>
  49. </view>
  50. <view class="other">
  51. <view class="other_1">{{item.name}}</view>
  52. <view class="other_2">
  53. <view class="other_2num">已售:<text>{{item.order}}</text></view>
  54. <view class="other_2btn">
  55. <van-stepper value="{{ item.num }}" min="0" bind:plus="onePlus" bind:minus="oneMinus" disable-input="true" bind:change="oneChange" data-data="{{item}}" data-type="breakfast" input-width="28px" button-size="20px" />
  56. </view>
  57. </view>
  58. <view class="other_3">热量:{{item.reserve}}卡</view>
  59. </view>
  60. <view>
  61. </view>
  62. </view>
  63. </view>
  64. <view wx:if="{{infoTab==2}}">
  65. <view class="list" wx:key="item" wx:for="{{dinnerList}}">
  66. <view class="image">
  67. <image src='{{item.url}}'></image>
  68. </view>
  69. <view class="other">
  70. <view class="other_1">{{item.name}}</view>
  71. <view class="other_2">
  72. <view class="other_2num">已售:<text>{{item.order}}</text></view>
  73. <view class="other_2btn">
  74. <van-stepper value="{{ item.num }}" min="0" bind:plus="onePlus" bind:minus="oneMinus" disable-input="true" bind:change="oneChange" data-data="{{item}}" data-type="breakfast" input-width="28px" button-size="20px" />
  75. </view>
  76. </view>
  77. <view class="other_3">热量:{{item.reserve}}卡</view>
  78. </view>
  79. <view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </scroll-view>
  85. </view>
  86. </view>
  87. </view>
  88. </scroll-view>
  89. </view>
  90. <view class="btn">
  91. <view class="btn_1">
  92. 卡路里:{{totalReserve}}
  93. </view>
  94. <view class="btn_2">
  95. <button type="primary" bindtap="onSubmit">完成</button>
  96. </view>
  97. </view>
  98. </view>