feat: 怀化石油汽油券购买前端——门店页购券模块+确认订单/券详情两页,接 hhService/voucher 接口与云闪付控件

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-09-24 10:12:19 +08:00
co-authored by Claude Fable 5
parent 966eac566c
commit 571afb0673
8 changed files with 616 additions and 2 deletions
+13 -1
View File
@@ -22,6 +22,10 @@ const WinnerDatesUrl = 'mp-api/hhrsWinner/dates'
const WinnerListUrl = 'mp-api/hhrsWinner/list'
// 预约下单(智慧游卡包)
const AppointUrl = 'zhy-api/cardBag/appoint'
// xuchao: 怀化石油汽油券(下单/预支付/最新订单查询,后端 HhVoucherController)
const VoucherCreateUrl = 'open-api/hhService/voucher/create'
const VoucherPrepayUrl = 'open-api/hhService/voucher/prepay'
const VoucherLatestUrl = 'open-api/hhService/voucher/latest'
// 此处第二个参数vm,就是我们在页面使用的this
const install = (Vue, vm) => {
@@ -52,6 +56,11 @@ const install = (Vue, vm) => {
const getWinnerDates = (params = {}) => vm.$u.get(WinnerDatesUrl, params)
const getWinnerList = (params = {}) => vm.$u.post(WinnerListUrl, params)
// xuchao: 石油汽油券
const voucherCreate = (params = {}) => vm.$u.post(VoucherCreateUrl, params)
const voucherPrepay = (params = {}) => vm.$u.post(VoucherPrepayUrl, params)
const voucherLatest = (params = {}) => vm.$u.post(VoucherLatestUrl, params)
vm.$u.api = {
checkerLogin,
sendLoginVerifyCode,
@@ -67,7 +76,10 @@ const install = (Vue, vm) => {
initFaceVerify,
describeFaceVerify,
getWinnerDates,
getWinnerList
getWinnerList,
voucherCreate,
voucherPrepay,
voucherLatest
}
}