...
|
...
|
@@ -41,23 +41,76 @@ Page({ |
|
|
},
|
|
|
// 我的活动
|
|
|
getMyactive() {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/myactivity/myactivity',
|
|
|
})
|
|
|
|
|
|
let that = this;
|
|
|
let url = '/index/second/checkTranStatus';
|
|
|
let head = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
|
|
|
app.post(url, {}, head).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.code == 40000) {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '请先成为志愿者'
|
|
|
|
|
|
})
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/myactivity/myactivity',
|
|
|
})
|
|
|
}
|
|
|
}).catch((err) => {})
|
|
|
},
|
|
|
//我的团队
|
|
|
getMyteam() {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/myteam/myteam',
|
|
|
})
|
|
|
|
|
|
let that = this;
|
|
|
let url = '/index/second/checkTranStatus';
|
|
|
let head = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
|
|
|
app.post(url, {}, head).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.code == 40000) {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '请先成为志愿者'
|
|
|
|
|
|
})
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/myteam/myteam',
|
|
|
})
|
|
|
}
|
|
|
}).catch((err) => {})
|
|
|
},
|
|
|
// 我的培训
|
|
|
getMytrain() {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/mytrain/mytrain',
|
|
|
})
|
|
|
|
|
|
let that = this;
|
|
|
let url = '/index/second/checkTranStatus';
|
|
|
let head = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
|
|
|
app.post(url, {}, head).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.code == 40000) {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '请先成为志愿者'
|
|
|
|
|
|
})
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/mytrain/mytrain',
|
|
|
})
|
|
|
|
|
|
}
|
|
|
}).catch((err) => {})
|
|
|
|
|
|
},
|
|
|
// 志愿回馈
|
...
|
...
|
@@ -86,13 +139,6 @@ Page({ |
|
|
}).catch((err) => {
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
// 成为志愿者
|
...
|
...
|
@@ -105,9 +151,32 @@ Page({ |
|
|
},
|
|
|
// 电子证件
|
|
|
getCertificate() {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/mycertificate/mycertificate',
|
|
|
|
|
|
let that = this;
|
|
|
let url = '/index/second/checkTranStatus';
|
|
|
let head = {
|
|
|
'XX-Token': wx.getStorageSync('token')
|
|
|
}
|
|
|
app.post(url, {}, head).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.code == 40000) {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
|
content: '请先成为志愿者'
|
|
|
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/mycertificate/mycertificate',
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
}).catch((err) => {
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
// 我的地址
|
...
|
...
|
|