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
2026-01-22 12:20:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a37e33b2743d99f41f0a482782124d31de78e6d
6a37e33b
1 parent
99bf3b23
fix: 处理免费订单直接跳转成功页而非支付页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
src/views/submit.vue
src/views/submit.vue
View file @
6a37e33
<!--
* @Date: 2024-01-15 16:25:51
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-22 1
1:21
:08
* @LastEditTime: 2026-01-22 1
2:18
:08
* @FilePath: /git/xysBooking/src/views/submit.vue
* @Description: 预约人员信息
-->
...
...
@@ -128,7 +128,16 @@ const submitBtn = async () => {
// TAG: 提交订单跳转到支付页面
const { code, data } = await addReserveAPI({ reserve_date: date, begin_time: time.split('-')[0], end_time: time.split('-')[1], person_id_list: JSON.stringify(checked_visitors.value), period_type });
if (code) {
const pay_url = `/srv/?f=reserve&a=icbc_pay&pay_id=${data.pay_id}`;
const pay_id = data?.pay_id
const need_pay = data?.need_pay
const is_free_order = Number(total.value) <= 0 || Number(need_pay) === 0 || need_pay === false
if (is_free_order) {
go('/success', { pay_id })
return
}
const pay_url = `/srv/?f=reserve&a=icbc_pay&pay_id=${pay_id}`;
location.href = pay_url; // 跳转支付页面
}
}
...
...
Please
register
or
login
to post a comment