|
@@ -77,6 +77,8 @@ Page({
|
|
|
// 我的服务-功能按钮
|
|
|
toCommon: function (e) {
|
|
|
let { route, method } = e.currentTarget.dataset;
|
|
|
+ let list = JSON.stringify(e.currentTarget.dataset.item);
|
|
|
+ let id = e.currentTarget.dataset.id;
|
|
|
if (method == 'signout') {
|
|
|
wx.showModal({
|
|
|
title: '提示',
|
|
@@ -93,66 +95,9 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- wx.navigateTo({ url: `/${route}` })
|
|
|
+ wx.navigateTo({ url: `/${route}?id=` + id + `&list=` + list })
|
|
|
}
|
|
|
},
|
|
|
- // //已上传图片
|
|
|
- // Uploaded: function () {
|
|
|
- // wx.navigateTo({
|
|
|
- // url: `/pages/photo/index`,
|
|
|
- // })
|
|
|
- // },
|
|
|
- // //修改密码
|
|
|
- // change: function () {
|
|
|
- // wx.navigateTo({
|
|
|
- // url: `/pages/password/index`,
|
|
|
- // })
|
|
|
- // },
|
|
|
- // //审核队员
|
|
|
- // examine: function (e) {
|
|
|
- // let id = e.currentTarget.dataset.id;
|
|
|
- // wx.navigateTo({
|
|
|
- // url: `/pages/auditTeam/index?id=` + id,
|
|
|
- // })
|
|
|
- // },
|
|
|
- // //解散团队
|
|
|
- // clickme: function (e) {
|
|
|
- // let id = e.currentTarget.dataset.id;
|
|
|
- // wx.navigateTo({
|
|
|
- // url: `/pages/dissolution/detail?id=` + id,
|
|
|
- // })
|
|
|
- // },
|
|
|
- // //退出登录
|
|
|
- // tui() {
|
|
|
- // wx.showModal({
|
|
|
- // title: '',
|
|
|
- // content: '是否确认退出登录',
|
|
|
- // success(res) {
|
|
|
- // if (res.confirm) {
|
|
|
- // wx.removeStorage({
|
|
|
- // key: 'token',
|
|
|
- // success(res) {
|
|
|
- // return wx.redirectTo({ url: '/pages/index/index', })
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else if (res.cancel) {
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
- // //团队创建人-比赛管理
|
|
|
- // Administration: function (e) {
|
|
|
- // var list = JSON.stringify(this.data.list[0])
|
|
|
- // wx.navigateTo({
|
|
|
- // url: `/pages/meMatch/index?list=${list}`,
|
|
|
- // })
|
|
|
- // },
|
|
|
- // //管理员-比赛管理
|
|
|
- // manage: function (e) {
|
|
|
- // wx.navigateTo({
|
|
|
- // url: `/pages/meMatch/detail`,
|
|
|
- // })
|
|
|
- // },
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
@@ -184,32 +129,6 @@ Page({
|
|
|
// 判断用户身份显示不同功能按钮
|
|
|
let jump = btn.filter((i) => i.type.includes(type));
|
|
|
if (jump) that.setData({ jumpList: jump });
|
|
|
- // let list = [
|
|
|
- // { name: '已上传照片', icons: 'icon-shangchuanzhaopian', route: 'pages/photo/index' },
|
|
|
- // { name: '修改密码', icons: 'icon-xiugaimima', route: 'pages/password/index' },
|
|
|
- // { name: '审核队员', icons: 'icon-shenhe', route: 'pages/auditTeam/index' },
|
|
|
- // { name: '解散团队', icons: 'icon-ren_jiesantuandui_line', route: 'pages/dissolution/detail' },
|
|
|
- // { name: '退出登录', icons: 'icon-tuichudenglu', route: '', method: 'signout' },
|
|
|
- // { name: '比赛管理', icons: ' icon-bisaiguanli', route: 'pages/meMatch/index' }
|
|
|
- // ];
|
|
|
- // let list1 = [
|
|
|
- // { name: '已上传照片', icons: 'icon-shangchuanzhaopian', route: 'pages/photo/index' },
|
|
|
- // { name: '修改密码', icons: 'icon-xiugaimima', route: 'pages/password/index' },
|
|
|
- // { name: '退出登录', icons: ' icon-tuichudenglu', route: '', method: 'signout' },
|
|
|
- // ];
|
|
|
- // let list2 = [
|
|
|
- // { name: '已上传照片', icons: 'icon-shangchuanzhaopian', route: 'pages/photo/index' },
|
|
|
- // { name: '修改密码', icons: 'icon-xiugaimima', route: 'pages/password/index' },
|
|
|
- // { name: '退出登录', icons: ' icon-tuichudenglu', route: '', method: 'signout' },
|
|
|
- // { name: '比赛管理', icons: 'icon-bisaiguanli', route: '/pages/meMatch/detail' }
|
|
|
- // ];
|
|
|
- // if (type == '1') {
|
|
|
- // that.setData({ jumpList: list });
|
|
|
- // } else if (type == 2) {
|
|
|
- // that.setData({ jumpList: list1 })
|
|
|
- // } else if (type == 0) {
|
|
|
- // that.setData({ jumpList: list2 })
|
|
|
- // }
|
|
|
},
|
|
|
error: err => {
|
|
|
}
|