index.wxml 3.9 KB

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