优惠券

This commit is contained in:
18631081161 2026-03-10 17:56:32 +08:00
parent 4f4c95d3d4
commit 01ada8da2b
2 changed files with 3 additions and 2 deletions

View File

@ -184,7 +184,7 @@
this.confirmVisible = false
try {
const api = this.pendingType === 'scan' ? scanVerify : codeVerify
await api({ code: this.pendingCode })
await api({ couponCode: this.pendingCode })
this.showResult(true, '优惠券核销成功')
} catch (err) {
const msg = (err && err.message) || '核销失败,请重试'

View File

@ -4,7 +4,8 @@
*/
// 后台 API 基础地址,按环境配置
const BASE_URL = 'http://localhost:5030'
// const BASE_URL = 'http://localhost:5030'
const BASE_URL = 'https://api.pli.shhmkjgs.cn'
// 请求超时时间(毫秒)
const TIMEOUT = 10000