Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng_code
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanxiao
mancheng_code
Commits
a766ca5e
Commit
a766ca5e
authored
Nov 02, 2023
by
heshihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改参数形式
parent
a105be40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
30 deletions
+20
-30
src/api/login/index.js
+20
-30
No files found.
src/api/login/index.js
View file @
a766ca5e
import
api
from
'@/utils/http'
import
api
from
"@/utils/http"
;
const
industry
=
{
SendMobileCode
:
"/api/user/SendMobileCode"
,
...
...
@@ -11,19 +8,18 @@ const industry = {
Binding
:
"/api/user/Binding"
,
backLogin
:
"/api/user/backLogin"
,
Register
:
"/api/user/Register"
,
}
};
// 获取验证码
const
SendMobileCode
=
({
mobile
,
sms_type
})
=>
{
return
api
.
post
(
industry
.
SendMobileCode
,
{
mobile
,
sms_type
})
}
return
api
.
post
(
industry
.
SendMobileCode
,
{
mobile
,
sms_type
})
;
}
;
const
LoginBySms
=
({
mobile
,
sms_code
})
=>
{
return
api
.
post
(
industry
.
LoginBySms
,
{
mobile
,
sms_code
})
}
const
LoginByPwd
=
(
{
param
}
)
=>
{
return
api
.
post
(
industry
.
LoginByPwd
,
{
param
})
}
return
api
.
post
(
industry
.
LoginBySms
,
{
mobile
,
sms_code
})
;
}
;
const
LoginByPwd
=
(
data
)
=>
{
return
api
.
post
(
industry
.
LoginByPwd
,
data
);
}
;
const
Register
=
({
real_name
,
mobile
,
...
...
@@ -43,27 +39,22 @@ const Register = ({
password
,
password_again
,
sms_code
,
})
}
})
;
}
;
const
backLogin
=
({
param
})
=>
{
return
api
.
post
(
industry
.
backLogin
,
{
param
})
}
return
api
.
post
(
industry
.
backLogin
,
{
param
})
;
}
;
const
LoginByvx
=
({
code
})
=>
{
return
api
.
post
(
industry
.
LoginByvx
,
{
code
})
}
const
Binding
=
({
openid
,
unionid
,
mobile
,
sms_code
,
})
=>
{
return
api
.
post
(
industry
.
LoginByvx
,
{
code
});
};
const
Binding
=
({
openid
,
unionid
,
mobile
,
sms_code
})
=>
{
return
api
.
post
(
industry
.
Binding
,
{
openid
,
unionid
,
mobile
,
sms_code
,
})
}
})
;
}
;
export
default
{
SendMobileCode
,
...
...
@@ -72,5 +63,5 @@ export default {
Register
,
backLogin
,
LoginByvx
,
Binding
}
\ No newline at end of file
Binding
,
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment