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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
index.js
miniprogram/pages/index/index.js
+5
-5
index.ts
miniprogram/pages/index/index.ts
+12
-4
No files found.
miniprogram/pages/index/index.js
View file @
4b5ff119
...
@@ -106,12 +106,12 @@ Page({
...
@@ -106,12 +106,12 @@ Page({
.
then
(
function
(
res
)
{
.
then
(
function
(
res
)
{
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
(
function
(
_a
)
{
.
then
(
function
(
_a
)
{
var
v
Code
=
_a
.
v
Code
,
cookie
=
_a
.
cookie
;
var
v
erifyCode
=
_a
.
verify
Code
,
cookie
=
_a
.
cookie
;
var
mixpwd
=
md5
(
pwd_1
);
var
mixpwd
=
md5
(
pwd_1
);
return
fetch_1
.
systemFetch
({
return
fetch_1
.
systemFetch
({
url
:
'/boss/login'
,
url
:
'/boss/login'
,
...
@@ -123,7 +123,7 @@ Page({
...
@@ -123,7 +123,7 @@ Page({
code
:
code_2
,
code
:
code_2
,
account
:
account_1
,
account
:
account_1
,
pwd
:
mixpwd
,
pwd
:
mixpwd
,
varifyCode
:
vCode
,
varifyCode
:
v
erify
Code
,
},
},
});
});
})
})
...
@@ -176,4 +176,4 @@ Page({
...
@@ -176,4 +176,4 @@ Page({
var
_a
;
var
_a
;
},
},
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLHlDQUE4QztBQUM5QyxJQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLENBQUM7QUFHbkMsSUFBTSxHQUFHLEdBQUcsTUFBTSxFQUFVLENBQUM7QUFFN0IsSUFBSSxDQUFDO0lBQ0gsTUFBTTtRQUNKLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUN6QixJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7UUFDckIsQ0FBQztJQUNILENBQUM7SUFDRCxJQUFJLEVBQUU7UUFDSixPQUFPLEVBQUUsRUFBRTtRQUNYLEdBQUcsRUFBRSxFQUFFO1FBQ1AsWUFBWSxFQUFFLEtBQUs7S0FDcEI7SUFDRCxjQUFjO1FBQ1osSUFBSSxDQUFDLE9BQVEsQ0FBQztZQUNaLFlBQVksRUFBRSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsWUFBWTtTQUN0QyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBQ0QsaUJBQWlCO1FBQ1QsSUFBQSxjQUE0QixFQUExQixvQkFBTyxFQUFFLFlBQUcsQ0FBZTtRQUNuQyxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7WUFDYixFQUFFLENBQUMsU0FBUyxDQUFDO2dCQUNYLEtBQUssRUFBRSxPQUFPO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gICAgICAgIGljb246ICdub25lJyxcbiAgICAgIH0pO1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSxcbiAgdG9rZW5Mb2FnaW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuXG4gICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJ+eZu+mZhuS4rScgfSk7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcztcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbG9naW5IYW5kbGUoKSB7XG4gICAgY29uc29sZS5sb2coYXBwLmdsb2JhbERhdGEpO1xuICAgIGlmICh0aGlzLnZhbGlkYXRlTG9naW5EYXRhKCkpIHtcbiAgICAgIGNvbnN0IHsgYWNjb3VudCwgcHdkIH0gPSB0aGlzLmRhdGE7XG4gICAgICBjb25zb2xlLmxvZyhhY2NvdW50LCBwd2QpO1xuICAgICAgd3gubG9naW4oe1xuICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJycgfSk7XG4gICAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICBjb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4oKHsgdkNvZGUsIGNvb2tpZSB9OiB7IHZDb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+IHtcbiAgICAgICAgICAgICAgICBsZXQgbWl4cHdkID0gbWQ1KHB3ZCk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9ib3NzL2xvZ2luJyxcbiAgICAgICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgIGNvb2tpZTogY29va2llLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgY29kZSxcbiAgICAgICAgICAgICAgICAgICAgYWNjb3VudCxcbiAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgIHZhcmlmeUNvZGU6IHZDb2RlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfVxuICAgIC8vIGZldGNoKClcbiAgICAvLyB3eC5yZWRpcmVjdFRvKHtcbiAgICAvLyAgIHVybDogJy9wYWdlcy9ob21lL2hvbWUnXG4gICAgLy8gfSlcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGUuZGV0YWlsLnZhbHVlO1xuICAgIHRoaXMudXBkYXRlSW5wdXRWYWx1ZSgnYWNjb3VudCcsIHZhbHVlKTtcbiAgfSxcbiAgcGFzc3dhcmRJbm91dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ3B3ZCcsIHZhbHVlKTtcbiAgfSxcbiAgdXBkYXRlSW5wdXRWYWx1ZShrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xu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R1cm4gdHJ1ZTtcbiAgfSxcbiAgdG9rZW5Mb2FnaW4oKSB7XG4gICAgd3gubG9naW4oe1xuICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgaWYgKHJlcy5jb2RlKSB7XG4gICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuXG4gICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJ+eZu+mZhuS4rScgfSk7XG4gICAgICAgICAgc3lzdGVtRmV0Y2goe1xuICAgICAgICAgICAgdXJsOiAnL2xvZ2luL3ZlcmlmeUNvZGUnLFxuICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigocmVzOiB3eC5SZXF1ZXN0U3VjY2Vzc0NhbGxiYWNrUmVzdWx0KSA9PiB7XG4gICAgICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY29kZTogcmVzLmRhdGEudmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICBjb29raWU6IHJlcy5oZWFkZXJbJ1NldC1Db29raWUnXSxcbiAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAudGhlbigoeyBjb29raWUgfTogeyBjb2RlOiBzdHJpbmc7IGNvb2tpZTogc3RyaW5nIH0pID0+XG4gICAgICAgICAgICAgIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICB1cmw6ICcvYm9zcy9sb2dpbicsXG4gICAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICBjb29raWU6IGNvb2tpZSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgIGNvZGUsXG4gICAgICAgICAgICAgICAgICB0b2tlbjogYXBwLmdsb2JhbERhdGEudG9rZW4sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICAgICAgdG9rZW4sXG4gICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgIH0gPSByZXM7XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnRva2VuID0gdG9rZW47XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJSb2xlcyA9IHVzZXJSb2xlcztcbiAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgd3gucmVkaXJlY3RUbyh7XG4gICAgICAgICAgICAgICAgdXJsOiAnL3BhZ2VzL2hvbWVBbmRSZXBvcnQvaG9tZUFuZFJlcG9ydCcsXG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgIGljb246ICdub25lJyxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbiAgbG9naW5IYW5kbGUoKSB7XG4gICAgY29uc29sZS5sb2coYXBwLmdsb2JhbERhdGEpO1xuICAgIGlmICh0aGlzLnZhbGlkYXRlTG9naW5EYXRhKCkpIHtcbiAgICAgIGNvbnN0IHsgYWNjb3VudCwgcHdkIH0gPSB0aGlzLmRhdGE7XG4gICAgICBjb25zb2xlLmxvZyhhY2NvdW50LCBwd2QpO1xuICAgICAgd3gubG9naW4oe1xuICAgICAgICBzdWNjZXNzOiByZXMgPT4ge1xuICAgICAgICAgIGlmIChyZXMuY29kZSkge1xuICAgICAgICAgICAgY29uc3QgY29kZSA9IHJlcy5jb2RlO1xuICAgICAgICAgICAgd3guc2hvd0xvYWRpbmcoeyB0aXRsZTogJycgfSk7XG4gICAgICAgICAgICBzeXN0ZW1GZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogJy9sb2dpbi92ZXJpZnlDb2RlJyxcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC50aGVuKChyZXM6IHd4LlJlcXVlc3RTdWNjZXNzQ2FsbGJhY2tSZXN1bHQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICB2ZXJpZnlDb2RlOiByZXMuZGF0YS52ZXJpZnlDb2RlLFxuICAgICAgICAgICAgICAgICAgY29va2llOiByZXMuaGVhZGVyWydTZXQtQ29va2llJ10sXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4oXG4gICAgICAgICAgICAgICAgKHtcbiAgICAgICAgICAgICAgICAgIHZlcmlmeUNvZGUsXG4gICAgICAgICAgICAgICAgICBjb29raWUsXG4gICAgICAgICAgICAgICAgfToge1xuICAgICAgICAgICAgICAgICAgdmVyaWZ5Q29kZTogc3RyaW5nO1xuICAgICAgICAgICAgICAgICAgY29va2llOiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgbGV0IG1peHB3ZCA9IG1kNShwd2QpO1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIHN5c3RlbUZldGNoKHtcbiAgICAgICAgICAgICAgICAgICAgdXJsOiAnL2Jvc3MvbG9naW4nLFxuICAgICAgICAgICAgICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgICAgICAgICAgICAgICAgaGVhZGVyOiB7XG4gICAgICAgICAgICAgICAgICAgICAgY29va2llOiBjb29raWUsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICBjb2RlLFxuICAgICAgICAgICAgICAgICAgICAgIGFjY291bnQsXG4gICAgICAgICAgICAgICAgICAgICAgcHdkOiBtaXhwd2QsXG4gICAgICAgICAgICAgICAgICAgICAgdmFyaWZ5Q29kZTogdmVyaWZ5Q29kZSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHtcbiAgICAgICAgICAgICAgICAgIHRva2VuLFxuICAgICAgICAgICAgICAgICAgZGF0YTogeyB1c2VySW5mbywgdXNlclJvbGVzIH0sXG4gICAgICAgICAgICAgICAgfSA9IHJlcztcbiAgICAgICAgICAgICAgICBhcHAuZ2xvYmFsRGF0YS50b2tlbiA9IHRva2VuO1xuICAgICAgICAgICAgICAgIGFwcC5nbG9iYWxEYXRhLnVzZXJJbmZvID0gdXNlckluZm87XG4gICAgICAgICAgICAgICAgYXBwLmdsb2JhbERhdGEudXNlclJvbGVzID0gdXNlclJvbGVzO1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICB3eC5zZXRTdG9yYWdlU3luYygndG9rZW4nLCB0b2tlbik7XG4gICAgICAgICAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHt9XG4gICAgICAgICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICAgICAgICB3eC5yZWRpcmVjdFRvKHtcbiAgICAgICAgICAgICAgICAgIHVybDogJy9wYWdlcy9ob21lQW5kUmVwb3J0L2hvbWVBbmRSZXBvcnQnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgICAgIHRpdGxlOiBlcnIuZXJyTXNnLFxuICAgICAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgICAgdGl0bGU6ICfnmbvlvZXojrflj5Zjb2Rl5aSx6LSlJyxcbiAgICAgICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfVxuICAgIC8vIGZldGNoKClcbiAgICAvLyB3eC5yZWRpcmVjdFRvKHtcbiAgICAvLyAgIHVybDogJy9wYWdlcy9ob21lL2hvbWUnXG4gICAgLy8gfSlcbiAgfSxcbiAgbmFtZUlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB2YWx1ZSA9IGUuZGV0YWlsLnZhbHVlO1xuICAgIHRoaXMudXBkYXRlSW5wdXRWYWx1ZSgnYWNjb3VudCcsIHZhbHVlKTtcbiAgfSxcbiAgcGFzc3dhcmRJbm91dEhhbmRsZShlKSB7XG4gICAgY29uc3QgdmFsdWUgPSBlLmRldGFpbC52YWx1ZTtcbiAgICB0aGlzLnVwZGF0ZUlucHV0VmFsdWUoJ3B3ZCcsIHZhbHVlKTtcbiAgfSxcbiAgdXBkYXRlSW5wdXRWYWx1ZShrZXk6IHN0cmluZywgdmFsdWU6IHN0cmluZykge1xuICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgW2tleV06IHZhbHVlLFxuICAgIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
\ No newline at end of file
miniprogram/pages/index/index.ts
View file @
4b5ff119
...
@@ -111,11 +111,18 @@ Page({
...
@@ -111,11 +111,18 @@ 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
(
({
verifyCode
,
cookie
,
}:
{
verifyCode
:
string
;
cookie
:
string
;
})
=>
{
let
mixpwd
=
md5
(
pwd
);
let
mixpwd
=
md5
(
pwd
);
return
systemFetch
({
return
systemFetch
({
url
:
'/boss/login'
,
url
:
'/boss/login'
,
...
@@ -127,10 +134,11 @@ Page({
...
@@ -127,10 +134,11 @@ Page({
code
,
code
,
account
,
account
,
pwd
:
mixpwd
,
pwd
:
mixpwd
,
varifyCode
:
v
Code
,
varifyCode
:
verify
Code
,
},
},
});
});
})
},
)
.
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