Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-22 00:19:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
423a1fcfbd1deaffbc4b61ec4373c813b06a9fd6
423a1fcf
1 parent
661bae57
授权后检查个人资料是否完善
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/pages/auth/index.vue
src/pages/auth/index.vue
View file @
423a1fc
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-
18 17:17:17
* @LastEditTime: 2022-10-
21 17:24:06
* @FilePath: /swx/src/pages/auth/index.vue
* @Description: 文件描述
-->
...
...
@@ -31,6 +31,7 @@ export default {
//发起网络请求
request.post('/srv/?a=openid', {
code: res.code
// openid: '0002'
})
.then(res => {
if (res.data.code) {
...
...
@@ -40,9 +41,16 @@ export default {
//TAG 小程序绑定cookie
// 修改请求头
request.defaults.headers.cookie = res.cookies[0];
if (res.data.data.avatar) {
Taro.navigateBack({
delta: 1 // 返回上一级页面。
});
} else { // 头像没有设置跳转完善信息页面
Taro.redirectTo({
url: '../apxUserInfo/index'
})
}
}
} else {
console.warn(res.data.msg);
...
...
Please
register
or
login
to post a comment