Commit 6ad8e8b0 by shijiuyan

1

parent fb8b6bf3
...@@ -62,6 +62,13 @@ Page({ ...@@ -62,6 +62,13 @@ Page({
success: function (res) { success: function (res) {
console.log(res) console.log(res)
if (res.statusCode == 200) { if (res.statusCode == 200) {
var role = res.data.result.role;
if ((role == 4 || role == 5 || role == 6) && res.data.result.childAge == 0) {
wx.navigateTo({
url: '/pages/ageChange/ageChange',
})
return;
}
//保存用户当前的省市区县信息 //保存用户当前的省市区县信息
location.province = res.data.result.province location.province = res.data.result.province
location.city = res.data.result.city location.city = res.data.result.city
...@@ -175,12 +182,6 @@ Page({ ...@@ -175,12 +182,6 @@ Page({
method: 'GET', method: 'GET',
dataType: 'json', dataType: 'json',
success: function (res) { success: function (res) {
var role=res.data.result.role;
if((role==4||role==5||role==6)&&res.data.result.childAge==0){
wx.navigateTo({
url: '/pages/ageChange/ageChange',
})
}
//设定页面数据 //设定页面数据
that.setData({ that.setData({
volunteerEventList: res.data.result.volunteerEventList, volunteerEventList: res.data.result.volunteerEventList,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment