2020-06-15 10:00:14 +08:00
|
|
|
export default {
|
|
|
|
init(vm){
|
|
|
|
return {
|
2020-06-17 12:09:28 +08:00
|
|
|
// 启动页
|
|
|
|
pageList({document_code}) {
|
|
|
|
return vm.$u.post('StartUp/pageList', {});
|
|
|
|
},
|
|
|
|
// 首页协议
|
|
|
|
documentInfo({document_code}) {
|
|
|
|
return vm.$u.post('StartUp/documentInfo', {
|
|
|
|
document_code : document_code
|
|
|
|
});
|
|
|
|
},
|
|
|
|
//获取验证码接口
|
|
|
|
sendSmsCode({member_mobile, smslog_type}) {
|
|
|
|
return vm.$u.post('sms/sendSmsCode', {
|
|
|
|
member_mobile: member_mobile,
|
|
|
|
smslog_type: smslog_type
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 用户验证码登录
|
2020-06-15 11:34:33 +08:00
|
|
|
phoneLogin({member_mobile, sms_code}) {
|
|
|
|
return vm.$u.post('auth/phoneLogin', {
|
|
|
|
member_mobile: member_mobile,
|
|
|
|
sms_code: sms_code
|
|
|
|
});
|
|
|
|
},
|
2020-06-17 12:09:28 +08:00
|
|
|
//手机号(用户)注册
|
|
|
|
phoneRegister({member_mobile, sms_code}) {
|
|
|
|
return vm.$u.post('auth/phoneRegister', {
|
2020-06-15 11:34:33 +08:00
|
|
|
member_mobile: member_mobile,
|
2020-06-17 12:09:28 +08:00
|
|
|
sms_code: sms_code
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 微信授权登录
|
|
|
|
wechatLogin({member_wxopenid, member_nickname,member_avatar}) {
|
|
|
|
return vm.$u.post('auth/wechatLogin', {
|
|
|
|
member_wxopenid: member_wxopenid,
|
|
|
|
member_nickname: member_nickname,
|
|
|
|
member_avatar : member_avatar
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// qq授权登录
|
|
|
|
qqLogin({member_qqopenid, member_nickname,member_avatar}) {
|
|
|
|
return vm.$u.post('auth/qqLogin', {
|
|
|
|
member_qqopenid: member_qqopenid,
|
|
|
|
member_nickname: member_nickname,
|
|
|
|
member_avatar : member_avatar
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 绑定手机号
|
|
|
|
mobileBind({member_mobile,sms_code}) {
|
|
|
|
return vm.$u.post('auth/mobileBind', {
|
|
|
|
member_mobile: member_mobile,
|
|
|
|
sms_code: sms_code
|
2020-06-15 11:34:33 +08:00
|
|
|
});
|
|
|
|
}
|
2020-06-15 10:00:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|