Commit 4b5ff119 by 姜雷

修改参数名

parent 8d7ba468
...@@ -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 {
code: res.data.verifyCode, verifyCode: 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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment