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
3f989d03
Commit
3f989d03
authored
Mar 14, 2020
by
shijiuyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6341be4a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
index.js
src/wx/pages/index/index.js
+1
-3
register.js
src/wx/pages/register/register.js
+15
-1
No files found.
src/wx/pages/index/index.js
View file @
3f989d03
...
...
@@ -32,9 +32,7 @@ Page({
var
location
=
wx
.
getStorageSync
(
'location'
);
var
latitude
=
location
.
latitude
;
var
longitude
=
location
.
longitude
;
wx
.
showToast
({
title
:
location
,
})
wx
.
request
({
url
:
app
.
url
+
'ajax_get_user_role.php'
,
data
:
{
...
...
src/wx/pages/register/register.js
View file @
3f989d03
...
...
@@ -70,9 +70,19 @@ Page({
}
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_user_register.php'
,
data
:
{
unionId
:
config
.
unionId
,
unionId
:
resp
.
data
.
result
.
unionId
,
openId
:
config
.
openId
,
role
:
that
.
data
.
role
,
name
:
app
.
globalData
.
userInfo
.
nickName
,
...
...
@@ -106,6 +116,9 @@ Page({
complete
:
function
(
res
)
{
},
})
}
}
})
}
})
}
})
\ No newline at end of file
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