|
@@ -24,6 +24,8 @@ Page({
|
|
},
|
|
},
|
|
// 赛况列表
|
|
// 赛况列表
|
|
matchList: [],
|
|
matchList: [],
|
|
|
|
+ //成绩册项目列表
|
|
|
|
+ projectList: [],
|
|
active: '',
|
|
active: '',
|
|
// 状态
|
|
// 状态
|
|
statusList: [],
|
|
statusList: [],
|
|
@@ -172,6 +174,11 @@ Page({
|
|
}
|
|
}
|
|
that.setData({ 'fieldtabs.menu': groundList })
|
|
that.setData({ 'fieldtabs.menu': groundList })
|
|
}
|
|
}
|
|
|
|
+ // 成绩册项目列表
|
|
|
|
+ let project = await app.$get(`/matchProject`, { match_id: arr.data._id }, 'race');
|
|
|
|
+ if (project.errcode == '0') {
|
|
|
|
+ that.setData({ projectList: project.data })
|
|
|
|
+ }
|
|
} else { wx.showToast({ title: `${res.errmsg}`, icon: 'fail', duration: 2000 }); }
|
|
} else { wx.showToast({ title: `${res.errmsg}`, icon: 'fail', duration: 2000 }); }
|
|
// 选手
|
|
// 选手
|
|
arr = await app.$get(`/match/getAll/${that.data.id}`, {}, 'race');
|
|
arr = await app.$get(`/match/getAll/${that.data.id}`, {}, 'race');
|