Showing
2 changed files
with
64 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-16 10:06:47 | 2 | * @Date: 2024-01-16 10:06:47 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-16 11:27:36 | 4 | + * @LastEditTime: 2024-01-25 10:56:14 |
| 5 | * @FilePath: /xysBooking/src/views/bookingCode.vue | 5 | * @FilePath: /xysBooking/src/views/bookingCode.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <div class="booking-code-page"> | 9 | <div class="booking-code-page"> |
| 10 | + <div style="padding: 1rem;"> | ||
| 10 | <qrCode></qrCode> | 11 | <qrCode></qrCode> |
| 11 | <div class="warning"> | 12 | <div class="warning"> |
| 12 | <p><van-icon name="warning-o" /> 温馨提示</p> | 13 | <p><van-icon name="warning-o" /> 温馨提示</p> |
| 13 | <p>一人一码,扫码或识别身份证成功后进入</p> | 14 | <p>一人一码,扫码或识别身份证成功后进入</p> |
| 15 | + <div style="height: 8rem;"></div> | ||
| 16 | + </div> | ||
| 17 | + </div> | ||
| 18 | + <div class="index-nav"> | ||
| 19 | + <div class="nav-logo" @click="toHome"> | ||
| 20 | + <van-icon size="1.5rem" :name="icon_3" color="#A67939" /> | ||
| 21 | + 首页 | ||
| 22 | + </div> | ||
| 23 | + <div class="nav-logo"> | ||
| 24 | + <van-icon size="5rem" :name="icon_4" color="#A67939" style="position: absolute; top: -4rem;" /> | ||
| 25 | + <van-icon size="1.5rem" name="wap-home" color="#FFF" style="opacity: 0;" /> | ||
| 26 | + 预约码 | ||
| 27 | + </div> | ||
| 28 | + <div class="nav-logo" @click="toMy"> | ||
| 29 | + <van-icon size="1.5rem" :name="icon_5" color="#A67939" /> | ||
| 30 | + 我的 | ||
| 31 | + </div> | ||
| 14 | </div> | 32 | </div> |
| 15 | </div> | 33 | </div> |
| 16 | </template> | 34 | </template> |
| ... | @@ -23,19 +41,62 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ | ... | @@ -23,19 +41,62 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ |
| 23 | //import { } from '@/utils/generateIcons.js' | 41 | //import { } from '@/utils/generateIcons.js' |
| 24 | //import { } from '@/composables' | 42 | //import { } from '@/composables' |
| 25 | import qrCode from '@/components/qrCode'; | 43 | import qrCode from '@/components/qrCode'; |
| 44 | +import icon_1 from '@/assets/images/立即预约@2x.png' | ||
| 45 | +import icon_2 from '@/assets/images/预约记录@2x.png' | ||
| 46 | +import icon_3 from '@/assets/images/首页01@2x.png' | ||
| 47 | +import icon_4 from '@/assets/images/二维码icon.png' | ||
| 48 | +import icon_5 from '@/assets/images/我的01@2x.png' | ||
| 49 | +import { useGo } from '@/hooks/useGo' | ||
| 50 | +const go = useGo(); | ||
| 26 | const $route = useRoute(); | 51 | const $route = useRoute(); |
| 27 | const $router = useRouter(); | 52 | const $router = useRouter(); |
| 28 | useTitle($route.meta.title); | 53 | useTitle($route.meta.title); |
| 29 | 54 | ||
| 55 | +const toBooking = () => { // 跳转到预约须知 | ||
| 56 | + go('/notice'); | ||
| 57 | +} | ||
| 58 | +const toRecord = () => { // 跳转到预约记录 | ||
| 59 | + go('/bookingList'); | ||
| 60 | +} | ||
| 61 | +const toMy = () => { // 跳转到我的 | ||
| 62 | + go('/me'); | ||
| 63 | +} | ||
| 64 | +const toHome = () => { // 跳转到我的 | ||
| 65 | + go('/'); | ||
| 66 | +} | ||
| 67 | + | ||
| 68 | +onMounted(() => { | ||
| 69 | +}) | ||
| 30 | </script> | 70 | </script> |
| 31 | 71 | ||
| 32 | <style lang="less" scoped> | 72 | <style lang="less" scoped> |
| 33 | .booking-code-page { | 73 | .booking-code-page { |
| 34 | - padding: 1rem; | 74 | + position: relative; |
| 75 | + height: 100vh; | ||
| 35 | 76 | ||
| 36 | .warning { | 77 | .warning { |
| 37 | text-align: center; | 78 | text-align: center; |
| 38 | color: #A67939; | 79 | color: #A67939; |
| 39 | } | 80 | } |
| 81 | + | ||
| 82 | + .index-nav { | ||
| 83 | + position: fixed; | ||
| 84 | + bottom: 0; | ||
| 85 | + left: 0; | ||
| 86 | + width: 100vw; | ||
| 87 | + height: 10vh; | ||
| 88 | + background: #FFFFFF; | ||
| 89 | + box-shadow: 0rem -0.33rem 0.25rem 0rem rgba(0,0,0,0.12); | ||
| 90 | + display: flex; | ||
| 91 | + align-items: center; | ||
| 92 | + justify-content: space-around; | ||
| 93 | + color: #A67939; | ||
| 94 | + .nav-logo { | ||
| 95 | + position: relative; | ||
| 96 | + display: flex; | ||
| 97 | + flex-direction: column; | ||
| 98 | + align-items: center; | ||
| 99 | + } | ||
| 100 | + } | ||
| 40 | } | 101 | } |
| 41 | </style> | 102 | </style> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-01-16 13:33:36 | 2 | * @Date: 2024-01-16 13:33:36 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-01-25 10:10:41 | 4 | + * @LastEditTime: 2024-01-25 10:53:23 |
| 5 | * @FilePath: /xysBooking/src/views/me.vue | 5 | * @FilePath: /xysBooking/src/views/me.vue |
| 6 | * @Description: 我的页面 | 6 | * @Description: 我的页面 |
| 7 | --> | 7 | --> | ... | ... |
-
Please register or login to post a comment