Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yoho-miniapp-ufo
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
QC-L
6 years ago
Commit
395f712ec53f31a968c16cf9fd1012febc946c5a
1 parent
8aeb01e9
修复登录绑定不正确的问题 review by 黄敬囿
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
src/libs/login/login.js
src/libs/login/login.js
View file @
395f712
...
...
@@ -226,7 +226,7 @@ export const getUserInfo = (e) => {
event
.
emit
(
checkEventName
(
USER_GET_PHONENUMBER_ERROR
,
fromPage
),
error
.
message
);
});
}
else
{
wechatUserIsBind
(
loginData
.
unionid
).
then
(
message
=>
{
wechatUserIsBind
(
loginData
.
unionid
,
e
.
detail
.
userInfo
).
then
(
message
=>
{
if
(
message
.
code
===
10003
)
{
event
.
emit
(
checkEventName
(
USER_LOGIN_SUCCESS
,
fromPage
));
setTimeout
(()
=>
{
...
...
@@ -274,11 +274,10 @@ export const getPhoneNumber = (e) => {
const
res
=
e
.
detail
;
let
phoneNumber
;
let
countryCode
;
let
union_id
;
const
union_id
=
wx
.
getStorageSync
(
'unionid'
)
;
return
login
.
decodeUserInfo
(
srd_session
,
res
.
encryptedData
,
res
.
iv
).
then
(
data
=>
{
phoneNumber
=
data
.
phoneNumber
;
countryCode
=
data
.
countryCode
;
union_id
=
globalData
.
userInfo
.
union_id
;
if
(
countryCode
&&
phoneNumber
)
{
return
login
.
bindMiniAppByAuto
(
union_id
,
phoneNumber
,
countryCode
);
}
...
...
Please
register
or
login
to post a comment