index.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <nav type="back" background-color="{{activeColor}}" title="用餐人数" frontColor="#ffffff" />
  2. <view class="allpage">
  3. <view class="all-top">
  4. <image class="img" src="{{store.cover}}" />
  5. <view class="h3">欢迎来到{{store.storeName}}</view>
  6. </view>
  7. <view class="content">
  8. <view class="content-text">
  9. <view>请选择就餐人数</view>
  10. <view class="text">
  11. <text class="txt" style="color: {{activeColor}};">{{active}}人</text>
  12. 就餐
  13. </view>
  14. </view>
  15. <view class="content-num">
  16. <block wx:for="{{list}}" wx:key="index">
  17. <view class="li">
  18. <view style="background: {{item.childe ? activeColor : 'wthie'}}!important;border: 1rpx solid {{activeColor}};color: {{item.childe ? '#000000' : activeColor}};" class="btn {{item.childe ? 'active' : ''}}" data-value="{{index}}" bind:tap="onChang">
  19. {{item.value}}
  20. </view>
  21. </view>
  22. </block>
  23. </view>
  24. </view>
  25. <view class="h4">
  26. <picker bindchange="bindPickerChange" value="{{currentIndex}}" range="{{tableList}}" range-key="name">
  27. <view class="picker">
  28. 当前桌号:{{table.name}} - {{table.number}}
  29. </view>
  30. </picker>
  31. </view>
  32. <view class="remarks">
  33. <van-cell-group>
  34. <van-field value="{{ desc }}" label="备注" placeholder="口味要求、忌口等(可不填)" />
  35. </van-cell-group>
  36. </view>
  37. <view class="sbmit" bind:tap="startOrder" style="background-color: {{activeColor}};">开始点餐</view>
  38. </view>
  39. <van-dialog use-slot title="请输入就餐人数" show="{{ show }}" bind:confirm="onClose">
  40. <input class="penple" model:value="{{ active }}" type="number" maxlength="2" />
  41. </van-dialog>