Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
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
zong
Compass
Commits
94ec58eb
Commit
94ec58eb
authored
Mar 14, 2020
by
shijiuyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fd00aed0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
leaderRegister.js
src/wx/pages/leaderRegister/leaderRegister.js
+14
-1
socialUserRegister.js
src/wx/pages/socialUserRegister/socialUserRegister.js
+14
-1
No files found.
src/wx/pages/leaderRegister/leaderRegister.js
View file @
94ec58eb
...
@@ -85,9 +85,19 @@ Page({
...
@@ -85,9 +85,19 @@ Page({
this
.
userInfoReadyCallback
(
res
)
this
.
userInfoReadyCallback
(
res
)
}
}
wx
.
request
({
wx
.
request
({
url
:
app
.
url
+
'ajax_get_unionid.php'
,
data
:
{
openid
:
config
.
openId
,
iv
:
res
.
iv
,
encryptedData
:
res
.
encryptedData
},
success
(
resp
)
{
if
(
resp
.
data
.
status
==
'OK'
)
{
wx
.
request
({
url
:
'https://www.koala-online.cn/compass/if/ajax_leader_user_register.php'
,
url
:
'https://www.koala-online.cn/compass/if/ajax_leader_user_register.php'
,
data
:
{
data
:
{
unionId
:
config
.
unionId
,
unionId
:
resp
.
data
.
result
.
unionId
,
openId
:
config
.
openId
,
openId
:
config
.
openId
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
qrId
:
this
.
data
.
qrId
,
qrId
:
this
.
data
.
qrId
,
...
@@ -105,6 +115,9 @@ Page({
...
@@ -105,6 +115,9 @@ Page({
complete
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
})
}
}
}
});
}
})
})
...
...
src/wx/pages/socialUserRegister/socialUserRegister.js
View file @
94ec58eb
...
@@ -198,9 +198,19 @@ Page({
...
@@ -198,9 +198,19 @@ Page({
return
return
}
}
wx
.
request
({
wx
.
request
({
url
:
app
.
url
+
'ajax_get_unionid.php'
,
data
:
{
openid
:
config
.
openId
,
iv
:
res
.
iv
,
encryptedData
:
res
.
encryptedData
},
success
(
resp
)
{
if
(
resp
.
data
.
status
==
'OK'
)
{
wx
.
request
({
url
:
app
.
url
+
'ajax_social_user_register1.php'
,
url
:
app
.
url
+
'ajax_social_user_register1.php'
,
data
:
{
data
:
{
unionId
:
config
.
unionId
,
unionId
:
resp
.
data
.
result
.
unionId
,
openId
:
config
.
openId
,
openId
:
config
.
openId
,
name
:
that
.
data
.
name
,
name
:
that
.
data
.
name
,
mobile
:
that
.
data
.
mobile
,
mobile
:
that
.
data
.
mobile
,
...
@@ -230,6 +240,9 @@ Page({
...
@@ -230,6 +240,9 @@ Page({
},
},
complete
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
})
}
}
});
}
}
...
...
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