selectCheckinType.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <image src="/static/arrow-left.svg" class="back-arrow" @click="navigateBack"></image>
  3. <advVue />
  4. <hotelSelectorVue class="hotel-selector" />
  5. <view class="checkin-type-btns">
  6. <button v-for="(btn,index) in btnList" :key=index v-text="btn.text"
  7. @click="navigateTo(btn.url)">btn.text</button>
  8. </view>
  9. </template>
  10. <script setup>
  11. import advVue from '../../components/adv/adv.vue';
  12. import hotelSelectorVue from '../../components/hotelSelector/hotelSelector.vue';
  13. const btnList = [{
  14. text: "无预定",
  15. url: "/subpkg_checkin/selectRoomType/selectRoomType"
  16. },
  17. {
  18. text: "有预定",
  19. url: "/subpkg_checkin/queryOrder/queryOrder"
  20. }
  21. ]
  22. function navigateTo(url) {
  23. uni.navigateTo({
  24. url
  25. })
  26. }
  27. function navigateBack() {
  28. uni.navigateBack()
  29. }
  30. </script>
  31. <style lang="scss">
  32. .back-arrow {
  33. position: fixed;
  34. top: 100rpx;
  35. left: 10rpx;
  36. z-index: 99;
  37. width: 72rpx;
  38. height: 72rpx;
  39. }
  40. .hotel-selector {
  41. transform: translateY(-80rpx);
  42. }
  43. .checkin-type-btns {
  44. margin-top: 100rpx;
  45. button {
  46. color: #FFFFFF;
  47. background-color: #9e97c3;
  48. margin: 0 60rpx 60rpx;
  49. font-size: 33rpx;
  50. }
  51. }
  52. </style>