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-25 16:49:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ac662b9e4f92829e3978055073bcb9d954b247dd
ac662b9e
1 parent
2d49ed4d
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
components.d.ts
src/views/bookingDetail.vue
components.d.ts
View file @
ac662b9
...
...
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanIcon
:
typeof
import
(
'vant/es'
)[
'Icon'
]
VanList
:
typeof
import
(
'vant/es'
)[
'List'
]
VanLoading
:
typeof
import
(
'vant/es'
)[
'Loading'
]
VanPicker
:
typeof
import
(
'vant/es'
)[
'Picker'
]
VanPopup
:
typeof
import
(
'vant/es'
)[
'Popup'
]
VanSwipe
:
typeof
import
(
'vant/es'
)[
'Swipe'
]
...
...
src/views/bookingDetail.vue
View file @
ac662b9
<!--
* @Date: 2024-01-16 13:19:23
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-25 1
4:57:11
* @LastEditTime: 2024-01-25 1
6:48:03
* @FilePath: /xysBooking/src/views/bookingDetail.vue
* @Description: 预约记录详情
-->
...
...
@@ -34,6 +34,9 @@
<div v-if="billInfo.status === CodeStatus.SUCCESS" class="cancel-wrapper">
<div @click="cancelBooking" class="cancel-btn ">取消预约</div>
</div>
<div v-if="loading" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center;background: rgba(0, 0, 0, 0.5);">
<van-loading size="24px" color="#fff" vertical>取消中...</van-loading>
</div>
</div>
</template>
...
...
@@ -57,6 +60,7 @@ const go = useGo();
const pay_id = $route.query.pay_id;
const qrCodeStatus = ref('');
const loading = ref(false);
const cancelBooking = (item) => {
showConfirmDialog({
...
...
@@ -66,9 +70,11 @@ const cancelBooking = (item) => {
width: '80vw'
})
.then(async () => {
loading.value = true;
// on confirm
const { code, data } = await icbcRefundAPI({ pay_id });
if (code) {
loading.value = false;
showSuccessToast('取消成功');
$router.go(-1);
}
...
...
Please
register
or
login
to post a comment