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-16 15:50:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
778a01505eb832f0a4a7054973f84e379b6908cc
778a0150
1 parent
83aff800
成功预约页逻辑调整
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
src/views/success.vue
src/views/success.vue
View file @
778a015
<!--
* @Date: 2024-01-15 18:28:25
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-16 1
0:03:13
* @LastEditTime: 2024-01-16 1
5:49:07
* @FilePath: /xysBooking/src/views/success.vue
* @Description: 文件描述
-->
...
...
@@ -22,8 +22,8 @@
<p style="font-size: 0.85rem;">2. 若您无法按时参观,请提前在预约记录中取消您的预约</p>
</div>
<div class="success-btn">
<div class="btn-item btn-left">首页</div>
<div class="btn-item btn-right">详情</div>
<div
@click="goToHome"
class="btn-item btn-left">首页</div>
<div
@click="goToDetail"
class="btn-item btn-right">详情</div>
</div>
</div>
</template>
...
...
@@ -31,7 +31,7 @@
<script setup>
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useGo } from '@/hooks/useGo'
import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@/utils/generatePackage.js'
//import { } from '@/utils/generateModules.js'
//import { } from '@/utils/generateIcons.js'
...
...
@@ -40,6 +40,14 @@ const $route = useRoute();
const $router = useRouter();
useTitle($route.meta.title);
const go = useGo();
const goToHome = () => {
go('/')
}
const goToDetail = () => {
go('/bookingDetail', { id: 'test' })
}
</script>
<style lang="less" scoped>
...
...
Please
register
or
login
to post a comment