Commit fb8b6bf3 by biao
parents c730d6ef 743d3e13
...@@ -175,6 +175,12 @@ Page({ ...@@ -175,6 +175,12 @@ 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,
...@@ -291,7 +297,7 @@ Page({ ...@@ -291,7 +297,7 @@ Page({
classDetails(e) { classDetails(e) {
let medidaId = e.currentTarget.dataset['index'] let medidaId = e.currentTarget.dataset['index']
wx.navigateTo({ wx.navigateTo({
url: '../classDetails/classDetails?medidaId=' + medidaId, url: '../classDetails/classDetails?mediaId=' + medidaId,
}); });
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: '公益课堂' title: '公益课堂'
......
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