Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
395c193b
Commit
395c193b
authored
Apr 27, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电脑端登录处理 样式修改
parent
5dc00912
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
17 deletions
+28
-17
index.vue
components/auth/index.vue
+26
-15
mydetails.vue
pages/friendcircle/mydetails.vue
+1
-1
index.vue
pages/share/index/index.vue
+1
-1
No files found.
components/auth/index.vue
View file @
395c193b
...
...
@@ -43,21 +43,28 @@
},
methods
:
{
getoldUser
(){
//旧的 兼容电脑端
var
that
=
this
;
uni
.
login
({
provider
:
'weixin'
,
success
:
function
(
loginRes
)
{
console
.
log
(
loginRes
.
authResult
);
// 获取用户信息
uni
.
getUserInfo
({
provider
:
'weixin'
,
success
:
function
(
infoRes
)
{
console
.
log
(
infoRes
,
'infoRes'
)
that
.
getUserInfo
(
infoRes
)
}
});
}
//4.27注释掉 给予新的提示不能在电脑端登录
// var that = this;
// uni.login({
// provider: 'weixin',
// success: function (loginRes) {
// console.log(loginRes.authResult);
// // 获取用户信息
// uni.getUserInfo({
// provider: 'weixin',
// success: function (infoRes) {
// console.log(infoRes,'infoRes')
// that.getUserInfo(infoRes)
// }
// });
// }
// });
uni
.
showToast
({
title
:
'电脑端暂时不能获取用户信息,请转到手机端使用!'
,
icon
:
'none'
});
this
.
showDialog
=
false
;
this
.
$emit
(
'gbAuth'
);
},
getUserProfile
(){
//新的获取用户资料
var
that
=
this
;
...
...
@@ -192,7 +199,11 @@
uni
.
removeStorageSync
(
"KeyWord"
);
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
;
that
.
msg
.
Id
=
uid
// that.updateuserinfo(that.msg);//更新用户头像
let
IsOpenMiAi
=
uni
.
getStorageSync
(
"basedata"
)?
uni
.
getStorageSync
(
"basedata"
).
mall
.
setting
.
is_show_miai
:
0
;
//是否开启相亲模式
if
(
IsOpenMiAi
==
0
){
//不是相亲模式的时候去更新头像和昵称
that
.
updateuserinfo
(
that
.
msg
);
//更新用户头像
}
}
}
...
...
pages/friendcircle/mydetails.vue
View file @
395c193b
...
...
@@ -563,7 +563,7 @@
}
);
},
goUserinfo
(
x
){
goUserinfo
(
x
,
type
){
let
UserId
=
x
.
createEmpId
if
(
type
==
2
){
UserId
=
x
.
empId
...
...
pages/share/index/index.vue
View file @
395c193b
...
...
@@ -237,7 +237,7 @@
IsEducation
:
0
,
orderPopupdata
:{},
//离线收益的弹窗
showorder
:
false
,
//显示弹出
topHeight
:
5
0
0
,
//头部高度
topHeight
:
5
1
0
,
//头部高度
}
},
created
()
{
...
...
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