hotel.wxml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!--pages/hotel/hotel.wxml-->
  2. <swiper indicator-dots="{{true}}" indicator-active-color='#ffffff'>
  3. <block wx:for="{{info.imgs}}" wx:key="*this">
  4. <swiper-item>
  5. <image style="width:100%;height:100%;" src="{{item}}"></image>
  6. </swiper-item>
  7. </block>
  8. </swiper>
  9. <view class="top">
  10. <view class="tt">{{info.name}}</view>
  11. <text>地址:{{info.address}}</text>
  12. <text>联系电话:{{info.telephone}}</text>
  13. </view>
  14. <view class="content">
  15. <view class="list" wx:for='{{info.rooms}}'>
  16. <image src="{{item.img}}"></image>
  17. <view>
  18. <view class="title">{{item.name}}</view>
  19. <text style="color:#999;">{{item.room_area}}m² {{item.food_condition}} {{item.floor}}层 {{item.enable_number}}人入住 </text>
  20. <text>{{item.unit_price}}元</text>
  21. <text>剩余数量:{{item.room_number}}</text>
  22. <view wx:if='{{item.room_number>0}}' bindtap="show_order" data-id='{{index}}' class="btn">预定</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="bg" wx:if='{{show}}'>
  27. <view class="room">
  28. <icon bindtap="close" class="icon-small" type="cancel" size="23"></icon>
  29. <text class="room_title">{{data.name}}</text>
  30. <!-- <image src="{{data.img}}"></image> -->
  31. <swiper indicator-dots="{{true}}" indicator-active-color='#ffffff'>
  32. <block wx:for="{{data.imgs}}" wx:key="*this">
  33. <swiper-item>
  34. <image style="width:100%;height:100%;" src="{{item}}"></image>
  35. </swiper-item>
  36. </block>
  37. </swiper>
  38. <view class="room_item">
  39. 房型信息
  40. <view><text>房型:{{data.room_type}}</text><text>面积:{{data.room_area}}m²</text></view>
  41. <view><text>可住:{{data.enable_number}}人</text><text>楼层:{{data.floor}}层</text></view>
  42. <view><text>床型:{{data.name}}</text><text>窗户:{{data.window_condition}}</text></view>
  43. <view><text>餐食:{{data.food_condition}}</text><text>房价:{{data.unit_price}}元</text></view>
  44. </view>
  45. <view class="room_item" style="padding:20rpx 10rpx;">
  46. <label>入住人数: </label>
  47. <radio-group class='rs' bindchange="bindinputChange">
  48. <label class="radio" wx:for='{{data.nums}}'>
  49. <radio value="{{item}}" />{{item}}人
  50. </label>
  51. </radio-group>
  52. <!-- <input type="number" bindinput="bindinputChange"></input> -->
  53. </view>
  54. <view class="room_item">
  55. <view><label>入住时间: </label>
  56. <picker mode="date" value="{{s_time}}" start="{{start}}" end='{{end}}' bindchange="bindDateChange">
  57. <view class="picker">
  58. <text wx:if='{{!s_time}}'>请选择</text>
  59. {{s_time}}
  60. </view>
  61. </picker>
  62. </view>
  63. <view>
  64. <label>离开时间: </label>
  65. <picker mode="date" value="{{e_time}}" start="{{start1}}"
  66. end='{{end}}' bindchange="bindDateChange1">
  67. <view class="picker">
  68. <text wx:if='{{!e_time}}'>请选择</text>
  69. {{e_time}}
  70. </view>
  71. </picker>
  72. </view>
  73. </view>
  74. <view bindtap="order" data-id='{{data.id}}' class="order">预定</view>
  75. </view>
  76. </view>
  77. <view wx:if='{{success}}' class="bg end">
  78. <icon type="success" size='72'></icon>
  79. <view>恭喜您报名成功</view>
  80. <view class="form_info">请您准时参加会议,到达会议地点届时将会有我方工作人员安排您的入住</view>
  81. <button bindtap="home" class="post">确认</button>
  82. </view>