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
392c7d13
Commit
392c7d13
authored
Mar 14, 2020
by
biao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlib.occloud.net/biao/ZhiNanZhen
* 'master' of
http://gitlib.occloud.net/biao/ZhiNanZhen
: 1
parents
8a203e50
94ec58eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
47 deletions
+73
-47
leaderRegister.js
src/wx/pages/leaderRegister/leaderRegister.js
+30
-17
socialUserRegister.js
src/wx/pages/socialUserRegister/socialUserRegister.js
+43
-30
No files found.
src/wx/pages/leaderRegister/leaderRegister.js
View file @
392c7d13
...
@@ -85,25 +85,38 @@ Page({
...
@@ -85,25 +85,38 @@ Page({
this
.
userInfoReadyCallback
(
res
)
this
.
userInfoReadyCallback
(
res
)
}
}
wx
.
request
({
wx
.
request
({
url
:
'https://www.koala-online.cn/compass/if/ajax_leader_user_register
.php'
,
url
:
app
.
url
+
'ajax_get_unionid
.php'
,
data
:
{
data
:
{
unionId
:
config
.
unionId
,
openid
:
config
.
openId
,
openId
:
config
.
openId
,
iv
:
res
.
iv
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
encryptedData
:
res
.
encryptedData
qrId
:
this
.
data
.
qrId
,
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
//跳转到年龄选择
wx
.
navigateTo
({
url
:
'../ageChange/ageChange'
,
});
},
},
fail
:
function
(
res
)
{
},
success
(
resp
)
{
complete
:
function
(
res
)
{
},
if
(
resp
.
data
.
status
==
'OK'
)
{
})
wx
.
request
({
url
:
'https://www.koala-online.cn/compass/if/ajax_leader_user_register.php'
,
data
:
{
unionId
:
resp
.
data
.
result
.
unionId
,
openId
:
config
.
openId
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
qrId
:
this
.
data
.
qrId
,
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
//跳转到年龄选择
wx
.
navigateTo
({
url
:
'../ageChange/ageChange'
,
});
},
fail
:
function
(
res
)
{
},
complete
:
function
(
res
)
{
},
})
}
}
});
}
}
})
})
...
...
src/wx/pages/socialUserRegister/socialUserRegister.js
View file @
392c7d13
...
@@ -198,38 +198,51 @@ Page({
...
@@ -198,38 +198,51 @@ Page({
return
return
}
}
wx
.
request
({
wx
.
request
({
url
:
app
.
url
+
'ajax_
social_user_register1
.php'
,
url
:
app
.
url
+
'ajax_
get_unionid
.php'
,
data
:
{
data
:
{
unionId
:
config
.
unionId
,
openid
:
config
.
openId
,
openId
:
config
.
openId
,
iv
:
res
.
iv
,
name
:
that
.
data
.
name
,
encryptedData
:
res
.
encryptedData
mobile
:
that
.
data
.
mobile
,
legalPerson
:
that
.
data
.
legalPerson
,
organizationContact
:
that
.
data
.
organizationContact
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
longitude
:
location
.
longitude
,
latitude
:
location
.
latitude
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
wx
.
showToast
({
title
:
res
.
data
.
result
.
message
,
icon
:
'success'
,
duration
:
2000
});
//注册成功以后,弹出机构认证对话框
that
.
setData
({
showRule
:
true
,
uploadPic
:
1
})
},
fail
:
function
(
res
)
{
console
.
log
(
res
,
'失败'
)
},
},
complete
:
function
(
res
)
{
},
success
(
resp
)
{
})
if
(
resp
.
data
.
status
==
'OK'
)
{
wx
.
request
({
url
:
app
.
url
+
'ajax_social_user_register1.php'
,
data
:
{
unionId
:
resp
.
data
.
result
.
unionId
,
openId
:
config
.
openId
,
name
:
that
.
data
.
name
,
mobile
:
that
.
data
.
mobile
,
legalPerson
:
that
.
data
.
legalPerson
,
organizationContact
:
that
.
data
.
organizationContact
,
headerImg
:
app
.
globalData
.
userInfo
.
avatarUrl
,
longitude
:
location
.
longitude
,
latitude
:
location
.
latitude
},
header
:
{
'content-type'
:
'application/json'
},
method
:
'GET'
,
dataType
:
'json'
,
success
:
function
(
res
)
{
wx
.
showToast
({
title
:
res
.
data
.
result
.
message
,
icon
:
'success'
,
duration
:
2000
});
//注册成功以后,弹出机构认证对话框
that
.
setData
({
showRule
:
true
,
uploadPic
:
1
})
},
fail
:
function
(
res
)
{
console
.
log
(
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