hookehuyr

新增预约成功页

...@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' { ...@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
15 VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] 15 VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
16 VanCol: typeof import('vant/es')['Col'] 16 VanCol: typeof import('vant/es')['Col']
17 VanDialog: typeof import('vant/es')['Dialog'] 17 VanDialog: typeof import('vant/es')['Dialog']
18 + VanEmpty: typeof import('vant/es')['Empty']
18 VanField: typeof import('vant/es')['Field'] 19 VanField: typeof import('vant/es')['Field']
19 VanForm: typeof import('vant/es')['Form'] 20 VanForm: typeof import('vant/es')['Form']
20 VanIcon: typeof import('vant/es')['Icon'] 21 VanIcon: typeof import('vant/es')['Icon']
......
1 /* 1 /*
2 * @Date: 2023-06-13 13:26:46 2 * @Date: 2023-06-13 13:26:46
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-01-15 17:40:55 4 + * @LastEditTime: 2024-01-15 18:29:00
5 * @FilePath: /xysBooking/src/route.js 5 * @FilePath: /xysBooking/src/route.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -42,6 +42,13 @@ export default [ ...@@ -42,6 +42,13 @@ export default [
42 }, 42 },
43 }, 43 },
44 { 44 {
45 + path: '/success',
46 + component: () => import('@/views/success.vue'),
47 + meta: {
48 + title: '预约成功',
49 + },
50 + },
51 + {
45 path: '/auth', 52 path: '/auth',
46 component: () => import('@/views/auth.vue'), 53 component: () => import('@/views/auth.vue'),
47 meta: { 54 meta: {
......
1 +<!--
2 + * @Date: 2024-01-15 18:28:25
3 + * @LastEditors: hookehuyr hookehuyr@gmail.com
4 + * @LastEditTime: 2024-01-16 10:03:13
5 + * @FilePath: /xysBooking/src/views/success.vue
6 + * @Description: 文件描述
7 +-->
8 +<template>
9 + <div class="success-page">
10 + <div style="display: flex; align-items: center; justify-content: center; height: 35vh; flex-direction: column;">
11 + <img src="https://cdn.ipadbiz.cn/xys/booking/%E6%88%90%E5%8A%9F@2x.png" style="width: 60vw;">
12 + <div style="color: #A67939; font-size: 1.25rem;">预约成功</div>
13 + </div>
14 + <div style="padding: 2rem 1rem; border-bottom: 1px dashed #A67939; line-height: 2;">
15 + <div>参观人数:<span style="color: #A67939;">2人</span></div>
16 + <div>参访时间:<span style="color: #A67939;">2024-01-10 05:00-08:00</span></div>
17 + <div>支付金额:<span style="color: #FF1919;">¥50</span></div>
18 + </div>
19 + <div style="color: #A67939; padding: 1rem; line-height: 2;">
20 + <p style="margin-bottom: 0.25rem;"><van-icon name="info-o" />&nbsp;温馨提示</p>
21 + <p style="font-size: 0.85rem;">1. 一人一码,或拿身份证,扫码或识别身份证成功后进入</p>
22 + <p style="font-size: 0.85rem;">2. 若您无法按时参观,请提前在预约记录中取消您的预约</p>
23 + </div>
24 + <div class="success-btn">
25 + <div class="btn-item btn-left">首页</div>
26 + <div class="btn-item btn-right">详情</div>
27 + </div>
28 + </div>
29 +</template>
30 +
31 +<script setup>
32 +import { ref } from 'vue'
33 +import { useRoute, useRouter } from 'vue-router'
34 +
35 +import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@/utils/generatePackage.js'
36 +//import { } from '@/utils/generateModules.js'
37 +//import { } from '@/utils/generateIcons.js'
38 +//import { } from '@/composables'
39 +const $route = useRoute();
40 +const $router = useRouter();
41 +useTitle($route.meta.title);
42 +
43 +</script>
44 +
45 +<style lang="less" scoped>
46 +.success-page {
47 + position: relative;
48 + background-color: #FFF;
49 + .success-btn {
50 + background-color: #FFF;
51 + position: fixed;
52 + width: 100vw;
53 + bottom: 0;
54 + left: 0;
55 + height: 5rem;
56 + display: flex;
57 + align-items: center;
58 + justify-content: space-around;
59 + .btn-item {
60 + padding: 0.7rem 4rem;
61 + border-radius: 5px;
62 + font-size: 1.05rem;
63 + }
64 + .btn-left{
65 + background-color: #A67939;
66 + color: #FFF;
67 + margin-left: 0.7rem;
68 + }
69 + .btn-right{
70 + border: 1px solid #A67939;
71 + color: #A67939;
72 + font-size: 1.05rem;
73 + margin-right: 0.7rem;
74 + }
75 + }
76 +}
77 +</style>