| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- import Service from '../lib/service'
- class LoginService extends Service {
- constructor () {
- super()
- }
- //登录
- async Login (params = {}) {
- let res = await this.postAll("Host80","/custom/login", params);
- return res
- }
- //登出
- async Logout (params = {}) {
- let res = await this.postAll("Host80","/custom/logout", params);
- return res
- }
- //注册
- async Register (params = {}, config = {}) {
- let res = await this.postAll("Host80","/custom/register", params, config);
- return res
- }
- //发送邮件验证
- async Code (params = {}) {
- let res = await this.postAll("Host80","/custom/register/send/code", params);
- return res
- }
- //当前国家编码
- async CodeById (params = {}) {
- let res = await this.postAll("Host80","/country/getCodeByIp", params);
- return res
- }
- // 获取登录信息
- async CustomLoginInfo (params = {}) {
- let res = await this.postAll("Host80","/custom/info", params);
- return res
- }
- //语言切换
- async switchLanguage (params = {}) {
- let res = await this.postAll("Host80","/custom/switch/lang", params);
- return res
- }
- //忘记密码发送邮件
- async forgetPwd (params = {}) {
- let res = await this.postAll("Host80","/custom/update/password/send/email", params);
- return res
- }
- //忘记密码
- async forgetPwdUpdate (params = {}) {
- let res = await this.postAll("Host80","/custom/update/email/password", params);
- return res
- }
- //trading密码重置
- async tradingPwdUpdate (params = {}) {
- let res = await this.postAll("Host80","/account/deal/password/reset/apply", params);
- return res
- }
- //客户文件列表
- async CustomFileList (params = {}) {
- let res = await this.postAll("Host80","/custom/file/list", params);
- return res
- }
- //浏览器语言
- async getLanguage (params = {}) {
- let res = await this.postAll("Host80","/custom/get/language", params);
- return res
- }
- //发送邮件验证
- async sendCode (params = {}) {
- let res = await this.post("/custom/send/code", params);
- return res
- }
- //登录验证方式
- async loginValid (params = {}) {
- let res = await this.post("/custom/login/valid", params);
- return res
- }
- }
- export default new LoginService
|