|
@@ -69,8 +69,8 @@ Page({
|
|
|
that.setData({ 'form.team_id': data._id, 'form.team_id_name': data.name });
|
|
|
const arr = await app.$get(`/matchTeamGroup/${data._id}`, {}, 'race');
|
|
|
if (arr.errcode == '0') {
|
|
|
- if (arr.data.person_type == 'User') { that.setData({ 'form.player_type': 'User', 'form.type_name': '单打' }) }
|
|
|
- if (arr.data.person_type == 'TeamApply') { that.setData({ 'form.player_type': 'TeamApply', 'form.type_name': '双打' }) }
|
|
|
+ if (arr.data.person_type == 'Race.User') { that.setData({ 'form.player_type': 'Race.User', 'form.type_name': '单打' }) }
|
|
|
+ if (arr.data.person_type == 'Race.TeamApply') { that.setData({ 'form.player_type': 'Race.TeamApply', 'form.type_name': '双打' }) }
|
|
|
that.setData({ memberList: arr.data.person });
|
|
|
}
|
|
|
|
|
@@ -186,8 +186,8 @@ Page({
|
|
|
// 状态
|
|
|
let status = that.data.statusList.find(i => i.value == arr.data.status)
|
|
|
if (status) arr.data.zhStatus = status.label;
|
|
|
- if (arr.data.player_type == 'User') { arr.data.type_name = '单打' }
|
|
|
- if (arr.data.player_type == 'TeamApply') { arr.data.type_name = '双打' }
|
|
|
+ if (arr.data.player_type == 'Race.User') { arr.data.type_name = '单打' }
|
|
|
+ if (arr.data.player_type == 'Race.TeamApply') { arr.data.type_name = '双打' }
|
|
|
that.setData({ form: arr.data })
|
|
|
} else {
|
|
|
wx.showToast({ title: `${arr.errmsg}`, icon: 'error', duration: 2000 })
|