order_mark.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="content">
  3. <!-- 第一层模块 -->
  4. <view class="one-order">
  5. <view class="one-order-title">预定成功 / 等待您入住<text class="all-price">¥0</text></view>
  6. <view class="one-order-menshi">门市价<text class="menshi-price">¥160</text></view>
  7. <view class="one-order-fuli">教师福利<text class="fuli-price">¥150</text></view>
  8. <view class="one-order-yufukuan">预付款<text class="menshi-price">¥20</text></view>
  9. <view class="one-order-zhu">
  10. 注:水费为0.62元/吨,电费为1.1元/度;补助吨数为3吨,补助度
  11. 数为10度,超出标准需在预付款中扣除,未超出原路返回预
  12. 付款
  13. </view>
  14. <view class="room-button">
  15. <!-- <text v-if="item.type === '已取消'">再次预定</text>
  16. <text v-if="item.type === '待支付'">支付</text>
  17. <text v-if="item.type === '已完成'">再次预定</text> -->
  18. <text>办理入住</text>
  19. <!-- <text v-if="item.type === '已入住'">退房</text> -->
  20. </view>
  21. <view class="room-button2">
  22. <!-- <text v-if="item.type === '已取消'">删除</text>
  23. <text v-if="item.type === '待支付'">取消订单</text>
  24. <text v-if="item.type === '已完成'">删除</text> -->
  25. <text>取消订单</text>
  26. <!-- <text v-if="item.type === '已入住'">删除</text> -->
  27. </view>
  28. </view>
  29. <!-- 第二层模块 -->
  30. <view class="two-order">
  31. <view class="two-order-title">订单信息</view>
  32. <view class="two-order-name">预定信息:<text class="two-order-txt">李老师</text></view>
  33. <view class="two-order-phone">手机号码:<text class="two-order-txt">13569855689</text></view>
  34. <view class="two-order-count">订 单 号:<text class="two-order-txt">165404161161631</text></view>
  35. <view class="two-order-time">下单时间:<text class="two-order-txt">2022.07.21 15:15:15</text></view>
  36. <view class="two-order-xing">户 型:<text class="two-order-txt">01户型</text></view>
  37. <view class="two-order-zhuTime">入住时间:<text class="two-order-txt">入住日14:00后 离店日12:00前</text></view>
  38. </view>
  39. <view class="order-mark">您的满意是我们最大的追求</view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data(){
  45. return {
  46. orderList:[
  47. {id:1,orderTitle:'预定成功 / 等待您的支付',allPrice:'¥20.00',orderMenshi:'门市价',menshiPrice:'¥160',orderFuli:'教师福利',fuliPrice:'¥160',orderYufukuan:'预付款',yufukuanPrice:'¥20',types:1},
  48. {id:4,orderTitle:'预定成功 / 等待您的入住',allPrice:'¥20.00',orderMenshi:'门市价',menshiPrice:'¥160',orderFuli:'教师福利',fuliPrice:'¥160',orderYufukuan:'预付款',yufukuanPrice:'¥20',types:2},
  49. {id:2,orderTitle:'订单已取消 / 期待您再次光临',allPrice:'¥20.00',orderMenshi:'门市价',menshiPrice:'¥160',orderFuli:'教师福利',fuliPrice:'¥160',orderYufukuan:'预付款',yufukuanPrice:'¥20',types:4},
  50. {id:3,orderTitle:'订单已完成 / 期待您再次光临',allPrice:'¥10.00',orderMenshi:'门市价',shuidianPrice:'¥10',orderShuidian:'水电扣除',types:6}
  51. ],
  52. }
  53. },
  54. // onShow() {
  55. // // 模拟从后台拿到的数据
  56. // var orderList = [
  57. // {id:1,orderTitle:'预定成功 / 等待您的支付',allPrice:'¥20.00',orderMenshi:'门市价',menshiPrice:'¥160',orderFuli:'教师福利',fuliPrice:'¥160',orderYufukuan:'预付款',yufukuanPrice:'¥20',types:1},
  58. // {id:4,orderTitle:'预定成功 / 等待您的入住',allPrice:'¥20.00',orderMenshi:'门市价',menshiPrice:'¥160',orderFuli:'教师福利',fuliPrice:'¥160',orderYufukuan:'预付款',yufukuanPrice:'¥20',types:2},
  59. // {id:2,orderTitle:'订单已取消 / 期待您再次光临',allPrice:'¥20.00',orderMenshi:'门市价',menshiPrice:'¥160',orderFuli:'教师福利',fuliPrice:'¥160',orderYufukuan:'预付款',yufukuanPrice:'¥20',types:4},
  60. // {id:3,orderTitle:'订单已完成 / 期待您再次光临',allPrice:'¥10.00',orderMenshi:'门市价',shuidianPrice:'¥10',orderShuidian:'水电扣除',types:6}
  61. // ]
  62. // },
  63. onload(option){
  64. // console.log('返回')
  65. console.log(option.ids)
  66. console.log(this.orderList)
  67. // var arr =[]
  68. // that.room.map(item => {
  69. // if(option.id==this.orderList[i].id) {
  70. // arr.push(item);
  71. // }
  72. // })
  73. // this.orderList=arr
  74. },
  75. mounted() {
  76. },
  77. methods:{
  78. }
  79. }
  80. </script>
  81. <style>
  82. @import url(./css/order_mark.css);
  83. </style>