index.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <nav type="back" background-color="#46a9a4" title="提交订单" frontColor="#ffffff" />
  2. <view class="page-section">
  3. <!-- 房间详情 -->
  4. <cell-list detail="{{room}}" arrowText="房间详情" bind:arrowtap="navigate" data-type="room"></cell-list>
  5. <van-divider customStyle="margin: 0;" />
  6. <!-- 订房必读 -->
  7. <cell-list detail="{{note}}" icon="warning" iconColor="#f01740" bind:arrowtap="showNotePop" bind:tap="showNotePop">
  8. </cell-list>
  9. </view>
  10. <!-- <nova-calendar show="{{ true }}" title="请选择日期" color="#FFE300"></nova-calendar> -->
  11. <view class="page-section">
  12. <view class="card-list page-section-spacing">
  13. <view class="text spacing-small">入住信息</view>
  14. <van-divider customStyle="margin: 8rpx;" />
  15. <list-item label="入住时长" content="{{date}}" arrow="arrow" bind:tap="checkDate"></list-item>
  16. <van-divider customStyle="margin: 8rpx;" />
  17. <list-item label="入住人数" content="{{peopleNum}}" arrow="arrow-down" bind:tap="checkNum"></list-item>
  18. <van-divider customStyle="margin: 8rpx;" />
  19. <list-item label="住客信息" arrow="arrow" arrowText="添加/编辑" data-type="customer" bind:arrowtap="navigate">
  20. <view slot="content">
  21. <view wx:if="{{customers.length > 0}}">
  22. <view wx:for="{{customers}}" wx:key="index" wx:for-item="customer"><text
  23. class="text">{{customer['realname']}}\t</text></view>
  24. </view>
  25. <block wx:else>
  26. <text class="text-small grey">请添加信息</text>
  27. </block>
  28. </view>
  29. </list-item>
  30. </view>
  31. </view>
  32. <view class="page-section page-section-spacing">
  33. <list-item label="在线支付" content="{{count}}晚">
  34. <view slot="end"><text class="text-small">共</text><text class="text red">¥{{count*room.price}}</text></view>
  35. </list-item>
  36. <van-divider customStyle="margin: 8rpx;" />
  37. <list-item label="房费" arrow arrowText="¥{{count*room.price}}"></list-item>
  38. <list-item label="{{info}}" labelClass="text-small" arrow arrowText="¥{{room.price}}" arrowTextClass="grey"
  39. wx:for="{{priceInfoArr}}" wx:key="index" wx:for-item="info">
  40. </list-item>
  41. </view>
  42. <view class="page-section-spacing" style="padding-bottom: 180rpx;">
  43. <!-- <view class="text spacing-small">退款规则</view>
  44. <view class="text-small spacing-small grey "><text>入住前1天12:00前退订,可获100%退款。之后退定将不 予退款。</text></view> -->
  45. <view class="text spacing-small">预订说明</view>
  46. <view class="text-small spacing-small grey"><text>订单需等酒店或供应商确认后才生效,订单确认结果以短信或邮件通知为准;请在订单生效后再至酒店前台办理入住。</text></view>
  47. </view>
  48. <!-- 底部栏 -->
  49. <view class="footer-bar">
  50. <view class="price">¥{{count*room.price}}</view>
  51. <van-button color="#46a9a4" round size="normal" class="btn" bind:tap="submit"><text style="color:#ffffff;">立即预订</text>
  52. </van-button>
  53. </view>
  54. <!-- 支付组件 -->
  55. <payment style="z-index: 99999;" id='payMent' show="{{showPayment}}" tradeNo="{{tradeNo}}" price="{{count*room.price}}"
  56. bind:payResult='acceptResult' showType="all" />
  57. <!-- 订房须知 -->
  58. <modal show="{{showNote}}" closeable title="订房须知" bind:close="closeModal" bind:enter="closeModal">
  59. <rich-text slot="content" nodes="{{note.detail}}" style="width: 100%;height: 100%; margin: 0 auto;"></rich-text>
  60. </modal>
  61. <!-- 日期选择 default-date="{{date}}"-->
  62. <van-calendar show="{{ showDate }}" bind:close="closeDate" type="range" bind:unselect="unselectDate"
  63. bind:confirm="enterDate" color="#46a9a4" formatter="{{ checkedFormatter }}" bind:select="selectDate" title="请选择日期"
  64. default-date="{{null}}" max-range="{{ 28 }}" />
  65. <!-- default-date="{{defaultDate}}" -->
  66. <!-- 人数选择 -->
  67. <van-picker wx:if="{{ showNumPicker }}" show-toolbar title="入住人数" columns="{{columns}}" bind:change="numPickerChange"
  68. bind:cancel="numPickerCancel" bind:confirm="numPickerEnter" class="num-picker" default-index="{{ room.merber }}" />