first commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import { Service } from '@/Service/Service';
|
||||
/*****登录接口*****/
|
||||
class CNRiderLoginService {
|
||||
private static RiderLoginPath : string = '/Login/RiderLogin';
|
||||
/*****登录注册*****/
|
||||
static RiderLogin(login : any) {
|
||||
var result = Service.Request(this.RiderLoginPath, "POST", login);
|
||||
return result;
|
||||
}
|
||||
|
||||
private static GetKefuInfoPath : string = '/Home/GetKefuInfo';
|
||||
/*****获取客服电话*****/
|
||||
static GetKefuInfo() {
|
||||
var result = Service.Request(this.GetKefuInfoPath, "GET", {});
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static GetPrivacyPath : string = '/Home/GetPrivacy';
|
||||
/*****用户协议*****/
|
||||
static GetPrivacy(type : number) {
|
||||
var result = Service.Request(this.GetPrivacyPath, "GET", { type });
|
||||
return result;
|
||||
}
|
||||
|
||||
private static SendUserSmsPath : string = '/Login/SendUserSms';
|
||||
/*****发送验证码*****/
|
||||
static SendUserSms(phone : string, code : string) {
|
||||
var result = Service.Request(this.SendUserSmsPath, "POST", { phone, code });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
export {
|
||||
Service,
|
||||
CNRiderLoginService
|
||||
}
|
||||
Reference in New Issue
Block a user