提交 569879e8 作者: wk

快捷登录直接注册

父级 9d945799
...@@ -37,6 +37,10 @@ const params = { ...@@ -37,6 +37,10 @@ const params = {
url: "/api/v1/access/login/do_login", url: "/api/v1/access/login/do_login",
method: "post" method: "post"
}, },
phoneLogin: {
url: "/ydt/api/v1/access/login/do_login",
method: "post"
},
//获取标准码 //获取标准码
getCodeList: { getCodeList: {
url: "/api/v1/config/code/get_codes_list", url: "/api/v1/config/code/get_codes_list",
...@@ -46,6 +50,11 @@ const params = { ...@@ -46,6 +50,11 @@ const params = {
url: "/api/v1/access/login/send_validate_code", url: "/api/v1/access/login/send_validate_code",
method: "post" method: "post"
}, },
//获取验证码 不关注用途
getCode: {
url: "/api/v1/access/login/send_validate_code",
method: "post"
},
//获取省市区 //获取省市区
getAreaList: { getAreaList: {
url: "/api/v1/base/area/get_area_box_list", url: "/api/v1/base/area/get_area_box_list",
......
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
}) })
return return
} }
Api.sendCode({ Api.getCode({
data: { data: {
"phone": this.phone, "phone": this.phone,
"usage_code": "1", // "usage_code": "1",
"template_no": "industry-0001", "template_no": "industry-0001",
"system_no": this.$config.systemCode "system_no": this.$config.systemCode
}, },
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
uni.showLoading({ uni.showLoading({
title: "登录中..." title: "登录中..."
}) })
Api.login({ Api.phoneLogin({
data: { data: {
"phone": this.phone, "phone": this.phone,
"code": this.code, "code": this.code,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment