success.vue
2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!--
* @Date: 2024-01-15 18:28:25
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-16 15:49:07
* @FilePath: /xysBooking/src/views/success.vue
* @Description: 文件描述
-->
<template>
<div class="success-page">
<div style="display: flex; align-items: center; justify-content: center; height: 35vh; flex-direction: column;">
<img src="https://cdn.ipadbiz.cn/xys/booking/%E6%88%90%E5%8A%9F@2x.png" style="width: 60vw;">
<div style="color: #A67939; font-size: 1.25rem;">预约成功</div>
</div>
<div style="padding: 2rem 1rem; border-bottom: 1px dashed #A67939; line-height: 2;">
<div>参观人数:<span style="color: #A67939;">2人</span></div>
<div>参访时间:<span style="color: #A67939;">2024-01-10 05:00-08:00</span></div>
<div>支付金额:<span style="color: #FF1919;">¥50</span></div>
</div>
<div style="color: #A67939; padding: 1rem; line-height: 2;">
<p style="margin-bottom: 0.25rem;"><van-icon name="info-o" /> 温馨提示</p>
<p style="font-size: 0.85rem;">1. 一人一码,或拿身份证,扫码或识别身份证成功后进入</p>
<p style="font-size: 0.85rem;">2. 若您无法按时参观,请提前在预约记录中取消您的预约</p>
</div>
<div class="success-btn">
<div @click="goToHome" class="btn-item btn-left">首页</div>
<div @click="goToDetail" class="btn-item btn-right">详情</div>
</div>
</div>
</template>
<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'
//import { } from '@/composables'
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>
.success-page {
position: relative;
background-color: #FFF;
.success-btn {
background-color: #FFF;
position: fixed;
width: 100vw;
bottom: 0;
left: 0;
height: 5rem;
display: flex;
align-items: center;
justify-content: space-around;
.btn-item {
padding: 0.7rem 4rem;
border-radius: 5px;
font-size: 1.05rem;
}
.btn-left{
background-color: #A67939;
color: #FFF;
margin-left: 0.7rem;
}
.btn-right{
border: 1px solid #A67939;
color: #A67939;
font-size: 1.05rem;
margin-right: 0.7rem;
}
}
}
</style>