Commit d2566cb5 by 姜雷

修改注册完成后逻辑

parent e38cbeec
...@@ -175,12 +175,9 @@ class Register extends Component { ...@@ -175,12 +175,9 @@ class Register extends Component {
verificationCode: vcode, verificationCode: vcode,
}) })
.then(res => { .then(res => {
const { register, wxToken, ...userInfo } = res.data; const data = res.data;
console.log(userInfo); console.log(data);
updateUserInfo({ updateUserInfo(data);
...userInfo,
token: wxToken,
});
Taro.showToast({ Taro.showToast({
title: '注册成功', title: '注册成功',
}); });
...@@ -230,7 +227,7 @@ class Register extends Component { ...@@ -230,7 +227,7 @@ class Register extends Component {
Taro.navigateTo({ Taro.navigateTo({
url: url:
'/pages/WebPage/WebPage?url=' + '/pages/WebPage/WebPage?url=' +
encodeURIComponent(ANN_LINK_URL+'/agreement.html'), encodeURIComponent(ANN_LINK_URL + '/agreement.html'),
}); });
} }
......
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