Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-boss
Commits
4b5ff119
Commit
4b5ff119
authored
Dec 27, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参数名
parent
8d7ba468
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
17 deletions
+25
-17
index.js
miniprogram/pages/index/index.js
+0
-0
index.ts
miniprogram/pages/index/index.ts
+25
-17
No files found.
miniprogram/pages/index/index.js
View file @
4b5ff119
This diff is collapsed.
Click to expand it.
miniprogram/pages/index/index.ts
View file @
4b5ff119
...
@@ -111,26 +111,34 @@ Page({
...
@@ -111,26 +111,34 @@ Page({
.
then
((
res
:
wx
.
RequestSuccessCallbackResult
)
=>
{
.
then
((
res
:
wx
.
RequestSuccessCallbackResult
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
return
{
return
{
c
ode
:
res
.
data
.
verifyCode
,
verifyC
ode
:
res
.
data
.
verifyCode
,
cookie
:
res
.
header
[
'Set-Cookie'
],
cookie
:
res
.
header
[
'Set-Cookie'
],
};
};
})
})
.
then
(({
vCode
,
cookie
}:
{
vCode
:
string
;
cookie
:
string
})
=>
{
.
then
(
let
mixpwd
=
md5
(
pwd
);
({
return
systemFetch
({
verifyCode
,
url
:
'/boss/login'
,
cookie
,
method
:
'POST'
,
}:
{
header
:
{
verifyCode
:
string
;
cookie
:
cookie
,
cookie
:
string
;
},
})
=>
{
data
:
{
let
mixpwd
=
md5
(
pwd
);
code
,
return
systemFetch
({
account
,
url
:
'/boss/login'
,
pwd
:
mixpwd
,
method
:
'POST'
,
varifyCode
:
vCode
,
header
:
{
},
cookie
:
cookie
,
});
},
})
data
:
{
code
,
account
,
pwd
:
mixpwd
,
varifyCode
:
verifyCode
,
},
});
},
)
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
const
{
const
{
...
...
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