order_room.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view class="content">
  3. <!-- 背景图 -->
  4. <view class="index_bg">
  5. <view class="welcome"><image class="welcome_img" src="../../static/index/welcome.png"></image></view>
  6. </view>
  7. <!-- 第一层标题 -->
  8. <view class="touming_bg">
  9. <view class="touming_title">墨轩湖姬子公寓(南昌交通学院)</view>
  10. <view class="touming_txt">尊敬的老师,您辛苦了,欢迎入住!</view>
  11. </view>
  12. <!-- 第二层表单 -->
  13. <view class="two_item">
  14. <view class="two_all">
  15. <view class="select-time" @click="openCalendar">
  16. <view class="select-time-one">
  17. <text class="select-list">周四入住</text>
  18. <text class="select-list-time">07月21日</text>
  19. </view>
  20. <view class="select-center">
  21. <view class="select-line1"></view>
  22. <view class="select-circle">1晚</view>
  23. <view class="select-line2"></view>
  24. </view>
  25. <view class="select-time-one">
  26. <text class="select-list">周五离店</text>
  27. <text class="select-list-time">07月22日</text>
  28. </view>
  29. <uni-calendar ref="calendar" class="uni-calendar--hook" :clear-date="true" :date="info.date" :insert="info.insert" :lunar="info.lunar" :startDate="info.startDate"
  30. :endDate="info.endDate" :range="info.range" @confirm="confirm" @close="close"/>
  31. </view>
  32. <view class="form_bg">
  33. <view class="form_title">01户型</view>
  34. <!-- 自定义表单 -->
  35. <view class="form-name">李希</view>
  36. <view class="form-line"></view>
  37. <view class="form-phone">13548790024</view>
  38. <view class="form-line" style="margin-top: 389rpx;"></view>
  39. <view class="uni-list-cell">
  40. <view class="uni-list-cell-left">
  41. 当前选择
  42. </view>
  43. <view class="uni-list-cell-db">
  44. <picker @change="bindPickerChange" :value="index" :range="array">
  45. <view class="uni-input">{{array[index]}}</view>
  46. </picker>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <button style="margin-bottom: 0rpx;" type="primary" @click="submit('customForm')">提交</button>
  52. </view>
  53. <!-- 第三层订房 -->
  54. <view class="room-list">
  55. <!-- 房型列表 -->
  56. <!-- <view class="room-kuang">
  57. <view class="room-xinxi" v-for="(item,index) in room" :key="index">
  58. <image class="room-image" src="../../static/index/room_image.svg"></image>
  59. <view class="room-name">{{item.name}}</view>
  60. <view class="room-mark">{{item.mark1}} {{item.mark2}} {{item.mark3}}</view>
  61. <view class="room-icon">
  62. <image src="../../static/index/index_wifi.svg" style="width: 22rpx;height: 22rpx;"></image>
  63. <image src="../../static/index/index_kongtiao.svg" style="width: 20rpx;height: 20rpx;margin-left: 10rpx;"></image>
  64. <image src="../../static/index/index_nosmoking.svg" style="width: 22rpx;height: 22rpx;margin-left: 10rpx;"></image>
  65. <image src="../../static/index/index_lock.svg" style="width: 23rpx;height: 23rpx;margin-left: 10rpx;"></image>
  66. </view>
  67. <view class="before-price"><strike>{{item.before_price}}</strike></view>
  68. <view class="room-price">{{item.price}}</view>
  69. <view class="room-button" @click="navigateToOrderRoom"><text>订</text></view>
  70. <view class="room-line" v-if="index<(room.length-1)"></view>
  71. </view>
  72. </view> -->
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. data() {
  79. return {
  80. showCalendar: false,
  81. info: {
  82. lunar: true,
  83. range: true,
  84. insert: false
  85. },
  86. array: ['18:00前到店', '19:00前到店', '20:00前到店', '21:00前到店'],
  87. index: 0,
  88. }
  89. },
  90. onLoad() {
  91. },
  92. methods: {
  93. openCalendar() {
  94. this.$refs.calendar.open()
  95. },
  96. close(){
  97. console.log('弹窗关闭');
  98. },
  99. confirm(e) {
  100. console.log('confirm 返回:', e)
  101. },
  102. //选择器
  103. bindPickerChange: function(e) {
  104. // console.log('picker发送选择改变,携带值为', e.detail.value)
  105. this.index = e.detail.value
  106. },
  107. }
  108. }
  109. </script>
  110. <style>
  111. @import url("./css/order_room.css");
  112. </style>