order_room.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. <!-- <uni-forms ref="customForm" :rules="customRules" :modelValue="customFormData">
  36. <uni-forms-item label="姓名" required name="name">
  37. <uni-easyinput v-model="customFormData.name" placeholder="请输入姓名" />
  38. </uni-forms-item>
  39. <uni-forms-item label="年龄" required name="age">
  40. <uni-easyinput v-model="customFormData.age" placeholder="请输入年龄" />
  41. </uni-forms-item>
  42. <uni-forms-item label="兴趣爱好" required name="hobby">
  43. <uni-data-checkbox v-model="customFormData.hobby" multiple :localdata="hobbys" />
  44. </uni-forms-item>
  45. </uni-forms> -->
  46. </view>
  47. </view>
  48. <button style="margin-bottom: 0rpx;" type="primary" @click="submit('customForm')">提交</button>
  49. </view>
  50. <!-- 第三层订房 -->
  51. <view class="room-list">
  52. <!-- 房型列表 -->
  53. <view class="room-kuang">
  54. <view class="room-xinxi" v-for="(item,index) in room" :key="index">
  55. <image class="room-image" src="../../static/index/room_image.svg"></image>
  56. <view class="room-name">{{item.name}}</view>
  57. <view class="room-mark">{{item.mark1}} {{item.mark2}} {{item.mark3}}</view>
  58. <view class="room-icon">
  59. <image src="../../static/index/index_wifi.svg" style="width: 22rpx;height: 22rpx;"></image>
  60. <image src="../../static/index/index_kongtiao.svg" style="width: 20rpx;height: 20rpx;margin-left: 10rpx;"></image>
  61. <image src="../../static/index/index_nosmoking.svg" style="width: 22rpx;height: 22rpx;margin-left: 10rpx;"></image>
  62. <image src="../../static/index/index_lock.svg" style="width: 23rpx;height: 23rpx;margin-left: 10rpx;"></image>
  63. </view>
  64. <view class="before-price"><strike>{{item.before_price}}</strike></view>
  65. <view class="room-price">{{item.price}}</view>
  66. <view class="room-button" @click="navigateToOrderRoom"><text>订</text></view>
  67. <view class="room-line" v-if="index<(room.length-1)"></view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. export default {
  75. data() {
  76. return {
  77. showCalendar: false,
  78. info: {
  79. lunar: true,
  80. range: true,
  81. insert: false
  82. },
  83. }
  84. },
  85. onLoad() {
  86. },
  87. methods: {
  88. openCalendar() {
  89. this.$refs.calendar.open()
  90. },
  91. close(){
  92. console.log('弹窗关闭');
  93. },
  94. confirm(e) {
  95. console.log('confirm 返回:', e)
  96. },
  97. }
  98. }
  99. </script>
  100. <style>
  101. @import url("./css/order_room.css");
  102. </style>