42 lines
1010 B
TypeScript
42 lines
1010 B
TypeScript
import httpService from '@/utils/request'
|
|
import API from './config'
|
|
|
|
// 报警电话列表
|
|
export function warnPhoneList() {
|
|
return httpService.get(API.USER.WARN_PHONE_LIST())
|
|
}
|
|
|
|
// 修改报警电话
|
|
export function updateWarnPhone(data) {
|
|
return httpService.put(API.USER.UPDATE_WARN_PHONE(), {data})
|
|
}
|
|
|
|
// 修改手机号码
|
|
export function updatePhone(data) {
|
|
return httpService.put(API.USER.UPDATE_PHONE(), {data})
|
|
}
|
|
|
|
// 验证验证码
|
|
export function verifyCode(params) {
|
|
return httpService.post(API.USER.VERIFY_CODE(), {params})
|
|
}
|
|
|
|
// 修改昵称
|
|
export function updateNickName(data) {
|
|
return httpService.put(API.USER.UPDATE_NICKNAME(), {data})
|
|
}
|
|
|
|
// 支付选项页面
|
|
export function payOption() {
|
|
return httpService.post(API.PAY.OPTIONS())
|
|
}
|
|
|
|
// 创建支付订单
|
|
export function createOrder(data) {
|
|
return httpService.post(API.PAY.CREATE_ORDER(), {data})
|
|
}
|
|
|
|
// 微信支付
|
|
export function wxPayOrder(data) {
|
|
return httpService.post(API.PAY.WECHAT_PAY(), {data})
|
|
} |