order_room.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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_all">
  14. <view class="select-time" @click="openCalendar">
  15. <view class="select-time-one">
  16. <text class="select-list">周四入住</text>
  17. <text class="select-list-time">07月21日</text>
  18. </view>
  19. <view class="select-center">
  20. <view class="select-line1"></view>
  21. <view class="select-circle">1晚</view>
  22. <view class="select-line2"></view>
  23. </view>
  24. <view class="select-time-one">
  25. <text class="select-list">周五离店</text>
  26. <text class="select-list-time">07月22日</text>
  27. </view>
  28. <uni-calendar ref="calendar" class="uni-calendar--hook" :clear-date="true" :date="info.date" :insert="info.insert" :lunar="info.lunar" :startDate="info.startDate"
  29. :endDate="info.endDate" :range="info.range" @confirm="confirm" @close="close"/>
  30. </view>
  31. <view class="form_bg">
  32. <view class="form_title">01户型</view>
  33. <!-- 自定义表单 -->
  34. <view class="form-name">李希</view>
  35. <view class="form-line"></view>
  36. <view class="form-phone">13548790024</view>
  37. <view class="form-line" style="margin-top: 389rpx;"></view>
  38. <view class="uni-list-cell-db">
  39. <picker @change="bindPickerChange" :value="index" :range="array">
  40. <view class="uni-input">{{array[index]}}</view>
  41. <text class="jiantou">〉</text>
  42. </picker>
  43. </view>
  44. <view class="form-line" style="margin-top: 477rpx;"></view>
  45. <view class="uni-textarea">
  46. <textarea @blur="bindTextAreaBlur" placeholder="在此填写您的要求" maxlength="50" auto-height /><text class="textsrea-txt">{{textNum}}/50</text>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 第三层表单 -->
  51. <view class="three_all">
  52. <view class="three-title">您是【教师】</view>
  53. <view class="three-mark">本人可以免费入住,需要预交费<text style="color: rgba(255, 87, 51, 1);">20.00</text>元,即可享受权益</view>
  54. <view class="three-zhu">注:水费为0.62元/吨,电费为1.1元/度;补助吨数为3吨,补助度数
  55. 为10度,超出标准需在预付款中扣除,未超出原路返回预付款</view>
  56. </view>
  57. <!-- 注释 -->
  58. <view class="zhushi">
  59. <text class="zhushi-mark">低价保证</text> <text class="zhushi-mark">入住免房费</text> <text class="zhushi-mark">提前选好房</text>
  60. </view>
  61. <!-- 支付框 -->
  62. <view class="fukuan">
  63. <view class="fu-price"><text style="font-size: 28rpx;">总计:</text>¥20.00</view>
  64. <view class="fu-zhifu">立即支付</view>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. export default {
  70. data() {
  71. return {
  72. showCalendar: false,
  73. info: {
  74. lunar: true,
  75. range: true,
  76. insert: false
  77. },
  78. array: ['18:00前到店', '19:00前到店', '20:00前到店', '21:00前到店'],
  79. index: 0,
  80. textNum:0,//输入框当前字数
  81. }
  82. },
  83. onLoad() {
  84. },
  85. methods: {
  86. openCalendar() {
  87. this.$refs.calendar.open()
  88. },
  89. close(){
  90. console.log('弹窗关闭');
  91. },
  92. confirm(e) {
  93. console.log('confirm 返回:', e)
  94. },
  95. //选择器
  96. bindPickerChange: function(e) {
  97. // console.log('picker发送选择改变,携带值为', e.detail.value)
  98. this.index = e.detail.value
  99. },
  100. // 输入框
  101. bindTextAreaBlur: function (e) {
  102. // console.log(e.detail.cursor)
  103. // console.log(e.detail.value)
  104. this.textNum=e.detail.cursor
  105. }
  106. }
  107. }
  108. </script>
  109. <style>
  110. @import url("./css/order_room.css");
  111. </style>