fix: 后端接口改为java,联调接口修改。

This commit is contained in:
tianyongbao
2026-01-12 00:36:05 +08:00
parent 7e10c62cf9
commit b2f7f5fe1e
21 changed files with 550 additions and 259 deletions

View File

@@ -1,33 +1,42 @@
import httpService from '@/utils/request'
import API from './config'
// 报警电话列表
export function warnPhoneList() {
return httpService.get(`/api/user-center/list_warn_phone`)
return httpService.get(API.USER.WARN_PHONE_LIST())
}
// 修改报警电话
export function updateWarnPhone(data) {
return httpService.put(`/api/user-center/update_warn_phone`,{data})
return httpService.put(API.USER.UPDATE_WARN_PHONE(), {data})
}
// 修改手机号码
export function updatePhone(data) {
return httpService.put(`/api/user-center/update_mobile_phone`,{data})
return httpService.put(API.USER.UPDATE_PHONE(), {data})
}
// 验证验证码
export function verifyCode(params) {
return httpService.post(`/sms_code/verify`,{params})
return httpService.post(API.USER.VERIFY_CODE(), {params})
}
// 修改昵称
export function updateNickName(data) {
return httpService.put(`/api/user-center/update_user_name`,{data})
return httpService.put(API.USER.UPDATE_NICKNAME(), {data})
}
// 支付选项页面
export function payOption() {
return httpService.post(`/api/tenpay/get_pay_item`)
return httpService.post(API.PAY.OPTIONS())
}
// 创建支付订单
export function createOrder(data) {
return httpService.post(`/api/tenpay/create_order`,{data})
return httpService.post(API.PAY.CREATE_ORDER(), {data})
}
// 微信支付
export function wxPayOrder(data) {
return httpService.post(`https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi`,{data})
return httpService.post(API.PAY.WECHAT_PAY(), {data})
}