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 10:04:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e02d45225914a7b365049c34e5167c3f116f58ab
e02d4522
1 parent
c358e1a9
新增预约成功页
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
1 deletions
components.d.ts
src/assets/images/成功@2x.png
src/route.js
src/views/success.vue
components.d.ts
View file @
e02d452
...
...
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
VanCheckboxGroup
:
typeof
import
(
'vant/es'
)[
'CheckboxGroup'
]
VanCol
:
typeof
import
(
'vant/es'
)[
'Col'
]
VanDialog
:
typeof
import
(
'vant/es'
)[
'Dialog'
]
VanEmpty
:
typeof
import
(
'vant/es'
)[
'Empty'
]
VanField
:
typeof
import
(
'vant/es'
)[
'Field'
]
VanForm
:
typeof
import
(
'vant/es'
)[
'Form'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
...
...
src/assets/images/成功@2x.png
0 → 100644
View file @
e02d452
20.7 KB
src/route.js
View file @
e02d452
/*
* @Date: 2023-06-13 13:26:46
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-15 1
7:40:55
* @LastEditTime: 2024-01-15 1
8:29:00
* @FilePath: /xysBooking/src/route.js
* @Description: 文件描述
*/
...
...
@@ -42,6 +42,13 @@ export default [
},
},
{
path
:
'/success'
,
component
:
()
=>
import
(
'@/views/success.vue'
),
meta
:
{
title
:
'预约成功'
,
},
},
{
path
:
'/auth'
,
component
:
()
=>
import
(
'@/views/auth.vue'
),
meta
:
{
...
...
src/views/success.vue
0 → 100644
View file @
e02d452
<!--
* @Date: 2024-01-15 18:28:25
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-16 10:03:13
* @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 class="btn-item btn-left">首页</div>
<div class="btn-item btn-right">详情</div>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
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);
</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>
Please
register
or
login
to post a comment