Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xysBooking
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-01-30 09:51:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f23723c8fbb2f72d6673ae3efa52815440224c9
4f23723c
1 parent
efb0e47e
预约码页面没有数据时,新增一个查看预约记录的链接
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/components/qrCode.vue
src/components/qrCode.vue
View file @
4f23723
<!--
* @Date: 2024-01-16 10:06:47
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-
29 17:08:00
* @LastEditTime: 2024-01-
30 09:49:29
* @FilePath: /xysBooking/src/components/qrCode.vue
* @Description: 预约码卡组件
-->
...
...
@@ -49,6 +49,7 @@
<div v-else class="no-qrcode">
<img src="https://cdn.ipadbiz.cn/xys/booking/%E6%9A%82%E6%97%A0@2x.png" style="width: 10rem;">
<div class="no-qrcode-title">您还没有预约过今天参观</div>
<div style="text-align: center; color: #A67939;">在我的“<span @click="toRecord" style="text-decoration: underline;">预约记录</span>”查看更多</div>
</div>
</div>
</template>
...
...
@@ -62,6 +63,8 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@
//import { } from '@/composables'
import { qrcodeListAPI, qrcodeStatusAPI, billPersonAPI } from '@/api/index'
import { useGo } from '@/hooks/useGo'
const go = useGo();
const $route = useRoute();
const $router = useRouter();
useTitle($route.meta.title);
...
...
@@ -254,6 +257,10 @@ const intervalId = setInterval(poll, 1000);
onUnmounted(() => {
clearInterval(intervalId);
});
const toRecord = () => { // 跳转到预约记录
go('/bookingList');
}
</script>
<style lang="less" scoped>
...
...
Please
register
or
login
to post a comment