修正布局,删改无用页面
This commit is contained in:
@@ -4,12 +4,28 @@ export function login(params) {
|
||||
return request.post('/member/auth/miniapp/login', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送短信验证码
|
||||
* @param {object} params - { phone: string }
|
||||
*/
|
||||
export function sendCode(params) {
|
||||
return request.post('/member/auth/send-code', params)
|
||||
return request.post('/auth/phone/send-code', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机号验证码登录
|
||||
* @param {object} params - { phone: string, code: string }
|
||||
*/
|
||||
export function loginWithPhone(params) {
|
||||
return request.post('/member/auth/phone-login', params)
|
||||
return request.post('/auth/phone/code-login', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机号一键登录
|
||||
* @param {object} params - { accessToken: string, openid: string, nickname?: string, avatar?: string }
|
||||
*/
|
||||
export function oneClickLogin(params) {
|
||||
return request.post('/auth/phone/one-click-login', params)
|
||||
}
|
||||
|
||||
export function logout() {
|
||||
@@ -157,6 +173,14 @@ export function createPayment(params) {
|
||||
return request.post('/payment/create', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建扫码支付订单
|
||||
* @param {Object} params - 支付参数
|
||||
*/
|
||||
export function createQrCodePayment(params) {
|
||||
return request.post('/payment/qrcode/create', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询支付状态
|
||||
* @param {string} orderId - 订单ID
|
||||
@@ -237,6 +261,7 @@ export default {
|
||||
login,
|
||||
sendCode,
|
||||
loginWithPhone,
|
||||
oneClickLogin,
|
||||
logout,
|
||||
getQRCode,
|
||||
checkIn,
|
||||
@@ -254,6 +279,7 @@ export default {
|
||||
purchaseMemberCard,
|
||||
getMyMemberCards,
|
||||
createPayment,
|
||||
createQrCodePayment,
|
||||
getPaymentStatus,
|
||||
refundPayment,
|
||||
getRecommendCourses,
|
||||
|
||||
Reference in New Issue
Block a user