feat: 项目初始化
This commit is contained in:
33
src/api/my.ts
Normal file
33
src/api/my.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import httpService from '@/utils/request'
|
||||
// 报警电话列表
|
||||
export function warnPhoneList() {
|
||||
return httpService.get(`/api/user-center/list_warn_phone`)
|
||||
}
|
||||
// 修改报警电话
|
||||
export function updateWarnPhone(data) {
|
||||
return httpService.put(`/api/user-center/update_warn_phone`,{data})
|
||||
}
|
||||
// 修改手机号码
|
||||
export function updatePhone(data) {
|
||||
return httpService.put(`/api/user-center/update_mobile_phone`,{data})
|
||||
}
|
||||
// 验证验证码
|
||||
export function verifyCode(params) {
|
||||
return httpService.post(`/sms_code/verify`,{params})
|
||||
}
|
||||
// 修改昵称
|
||||
export function updateNickName(data) {
|
||||
return httpService.put(`/api/user-center/update_user_name`,{data})
|
||||
}
|
||||
// 支付选项页面
|
||||
export function payOption() {
|
||||
return httpService.post(`/api/tenpay/get_pay_item`)
|
||||
}
|
||||
// 创建支付订单
|
||||
export function createOrder(data) {
|
||||
return httpService.post(`/api/tenpay/create_order`,{data})
|
||||
}
|
||||
// 微信支付
|
||||
export function wxPayOrder(data) {
|
||||
return httpService.post(`https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi`,{data})
|
||||
}
|
||||
Reference in New Issue
Block a user