index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <nav-bar navbar-data='{{navbarData}}' needBack="{{false}}"></nav-bar>
  2. <view class="main" style="padding-top:{{height}}px;height:{{windowHeight-height}}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="two">
  15. <view class="swiper-tab">
  16. <view class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab">点餐</view>
  17. <view class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">评价</view>
  18. </view>
  19. <swiper current="{{currentTab}}" style="height:{{windowHeight-height-138}}px">
  20. <swiper-item catchtouchmove="stopTab">
  21. <view class="two_1" style="height:{{windowHeight-height-138}}px">
  22. <view class="info" style="height:{{windowHeight-height-188}}px">
  23. <view class="info_left" style="height:{{windowHeight-height-188}}px">
  24. <view class="infoTab {{infoTab==0?'infoActive':''}}" data-current="0" bindtap="infoClickTab">早餐</view>
  25. <view class="infoTab {{infoTab==1?'infoActive':''}}" data-current="1" bindtap="infoClickTab">午餐</view>
  26. <view class="infoTab {{infoTab==2?'infoActive':''}}" data-current="2" bindtap="infoClickTab">晚餐</view>
  27. </view>
  28. <view class="info_right">
  29. <swiper current="{{infoTab}}" style="height:{{windowHeight-height-188}}px">
  30. <swiper-item catchtouchmove="stopTab">
  31. <view class="info_right1" style="height:{{windowHeight-height-188}}px">
  32. <view class="list" wx:key="item" wx:for="{{breakfastList}}">
  33. <view class="image">
  34. <image src='{{item.url}}'></image>
  35. </view>
  36. <view class="other">
  37. <view class="other_1">{{item.name}}</view>
  38. <view class="other_2">
  39. <view class="other_2num">已售:<text>{{item.order}}</text></view>
  40. <view class="other_2btn">
  41. <van-stepper value="{{ item.num }}" min="0" bind:plus="onePlus" bind:minus="oneMinus"
  42. disable-input="true" bind:change="oneChange" data-data="{{item}}" data-type="breakfast"
  43. input-width="28px" button-size="20px" />
  44. </view>
  45. </view>
  46. <view class="other_3">热量:{{item.reserve}}卡</view>
  47. </view>
  48. <view>
  49. </view>
  50. </view>
  51. </view>
  52. </swiper-item>
  53. <swiper-item catchtouchmove="stopTab">
  54. <view class="info_right1" style="height:{{windowHeight-height-188}}px">
  55. <view class="list" wx:key="item" wx:for="{{lunchList}}">
  56. <view class="image">
  57. <image src='{{item.url}}'></image>
  58. </view>
  59. <view class="other">
  60. <view class="other_1">{{item.name}}</view>
  61. <view class="other_2">
  62. <view class="other_2num">已售:<text>{{item.order}}</text></view>
  63. <view class="other_2btn">
  64. <van-stepper value="{{ item.num }}" min="0" bind:plus="onePlus" bind:minus="oneMinus"
  65. disable-input="true" bind:change="oneChange" data-data="{{item}}" data-type="lunch"
  66. input-width="28px" button-size="20px" />
  67. </view>
  68. </view>
  69. <view class="other_3">热量:{{item.reserve}}卡</view>
  70. </view>
  71. <view>
  72. </view>
  73. </view>
  74. </view>
  75. </swiper-item>
  76. <swiper-item catchtouchmove="stopTab">
  77. <view class="info_right1" style="height:{{windowHeight-height-188}}px">
  78. <view class="list" wx:key="item" wx:for="{{dinnerList}}">
  79. <view class="image">
  80. <image src='{{item.url}}'></image>
  81. </view>
  82. <view class="other">
  83. <view class="other_1">{{item.name}}</view>
  84. <view class="other_2">
  85. <view class="other_2num">已售:<text>{{item.order}}</text></view>
  86. <view class="other_2btn">
  87. <van-stepper value="{{ item.num }}" min="0" bind:plus="onePlus" bind:minus="oneMinus"
  88. disable-input="true" bind:change="oneChange" data-data="{{item}}" data-type="dinner"
  89. input-width="28px" button-size="20px" />
  90. </view>
  91. </view>
  92. <view class="other_3">热量:{{item.reserve}}卡</view>
  93. </view>
  94. <view>
  95. </view>
  96. </view>
  97. </view>
  98. </swiper-item>
  99. </swiper>
  100. </view>
  101. </view>
  102. <view class="btn">
  103. <view class="btn_1">
  104. 卡路里:{{form.breakfast.reserve+form.lunch.reserve+form.dinner.reserve}}
  105. </view>
  106. <view class="btn_2">
  107. <button type="primary" bindtap="onSubmit">完成</button>
  108. </view>
  109. </view>
  110. </view>
  111. </swiper-item>
  112. <swiper-item catchtouchmove="stopTab">
  113. <view>评价</view>
  114. </swiper-item>
  115. </swiper>
  116. </view>
  117. </view>