24 lines
550 B
JavaScript
24 lines
550 B
JavaScript
export default {
|
|
init(vm){
|
|
return {
|
|
phoneRegister({member_mobile, sms_code}) {
|
|
return vm.$u.post('auth/phoneRegister', {
|
|
member_mobile: member_mobile,
|
|
sms_code: sms_code
|
|
});
|
|
},
|
|
phoneLogin({member_mobile, sms_code}) {
|
|
return vm.$u.post('auth/phoneLogin', {
|
|
member_mobile: member_mobile,
|
|
sms_code: sms_code
|
|
});
|
|
},
|
|
sendSmsCode({member_mobile, sms_type}) {
|
|
return vm.$u.get('sms/sendSmsCode', {
|
|
member_mobile: member_mobile,
|
|
sms_type: sms_type
|
|
});
|
|
}
|
|
}
|
|
}
|
|
} |