Showing
1 changed file
with
8 additions
and
1 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-29 17:08:00 | 4 | + * @LastEditTime: 2024-01-30 09:49:29 |
| 5 | * @FilePath: /xysBooking/src/components/qrCode.vue | 5 | * @FilePath: /xysBooking/src/components/qrCode.vue |
| 6 | * @Description: 预约码卡组件 | 6 | * @Description: 预约码卡组件 |
| 7 | --> | 7 | --> |
| ... | @@ -49,6 +49,7 @@ | ... | @@ -49,6 +49,7 @@ |
| 49 | <div v-else class="no-qrcode"> | 49 | <div v-else class="no-qrcode"> |
| 50 | <img src="https://cdn.ipadbiz.cn/xys/booking/%E6%9A%82%E6%97%A0@2x.png" style="width: 10rem;"> | 50 | <img src="https://cdn.ipadbiz.cn/xys/booking/%E6%9A%82%E6%97%A0@2x.png" style="width: 10rem;"> |
| 51 | <div class="no-qrcode-title">您还没有预约过今天参观</div> | 51 | <div class="no-qrcode-title">您还没有预约过今天参观</div> |
| 52 | + <div style="text-align: center; color: #A67939;">在我的“<span @click="toRecord" style="text-decoration: underline;">预约记录</span>”查看更多</div> | ||
| 52 | </div> | 53 | </div> |
| 53 | </div> | 54 | </div> |
| 54 | </template> | 55 | </template> |
| ... | @@ -62,6 +63,8 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ | ... | @@ -62,6 +63,8 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ |
| 62 | //import { } from '@/composables' | 63 | //import { } from '@/composables' |
| 63 | 64 | ||
| 64 | import { qrcodeListAPI, qrcodeStatusAPI, billPersonAPI } from '@/api/index' | 65 | import { qrcodeListAPI, qrcodeStatusAPI, billPersonAPI } from '@/api/index' |
| 66 | +import { useGo } from '@/hooks/useGo' | ||
| 67 | +const go = useGo(); | ||
| 65 | const $route = useRoute(); | 68 | const $route = useRoute(); |
| 66 | const $router = useRouter(); | 69 | const $router = useRouter(); |
| 67 | useTitle($route.meta.title); | 70 | useTitle($route.meta.title); |
| ... | @@ -254,6 +257,10 @@ const intervalId = setInterval(poll, 1000); | ... | @@ -254,6 +257,10 @@ const intervalId = setInterval(poll, 1000); |
| 254 | onUnmounted(() => { | 257 | onUnmounted(() => { |
| 255 | clearInterval(intervalId); | 258 | clearInterval(intervalId); |
| 256 | }); | 259 | }); |
| 260 | + | ||
| 261 | +const toRecord = () => { // 跳转到预约记录 | ||
| 262 | + go('/bookingList'); | ||
| 263 | +} | ||
| 257 | </script> | 264 | </script> |
| 258 | 265 | ||
| 259 | <style lang="less" scoped> | 266 | <style lang="less" scoped> | ... | ... |
-
Please register or login to post a comment