|
@@ -32,10 +32,7 @@ Page({
|
|
raceteamList: [],
|
|
raceteamList: [],
|
|
raceList: [],
|
|
raceList: [],
|
|
// 赛况
|
|
// 赛况
|
|
- dTabs: {
|
|
|
|
- active: '0',
|
|
|
|
- menu: []
|
|
|
|
- },
|
|
|
|
|
|
+ dTabs: { active: '0', menu: [] },
|
|
dList: [],
|
|
dList: [],
|
|
// 成绩册
|
|
// 成绩册
|
|
achieveList: [],
|
|
achieveList: [],
|
|
@@ -47,36 +44,6 @@ Page({
|
|
formatList: [],
|
|
formatList: [],
|
|
//性别列表
|
|
//性别列表
|
|
genderList: [],
|
|
genderList: [],
|
|
-
|
|
|
|
- // // 场地选项卡
|
|
|
|
- // fieldtabs: {
|
|
|
|
- // active: 0,
|
|
|
|
- // menu: [],
|
|
|
|
- // },
|
|
|
|
- // // 赛况列表
|
|
|
|
- // matchList: [],
|
|
|
|
- // //成绩册项目列表
|
|
|
|
- // projectList: [],
|
|
|
|
- // active: '',
|
|
|
|
- // // 状态
|
|
|
|
- // statusList: [],
|
|
|
|
- // // 赛事类别
|
|
|
|
- // typeList: [],
|
|
|
|
- // // 赛制列表
|
|
|
|
- // formatList: [],
|
|
|
|
- // // 性别
|
|
|
|
- // genderList: [],
|
|
|
|
- // // 选手
|
|
|
|
- // player: {},
|
|
|
|
- // showIndex: 10000, //默认不显示
|
|
|
|
- // showIndexs: 10000, //默认不显示
|
|
|
|
- // // 秩序册
|
|
|
|
- // cType: '0',
|
|
|
|
- // cList: [],
|
|
|
|
- // raceList: [],
|
|
|
|
- // raceteamList: [],
|
|
|
|
- // //查询条件
|
|
|
|
- // searchInfo: {},
|
|
|
|
},
|
|
},
|
|
// 返回
|
|
// 返回
|
|
back: function () { wx.navigateBack({ delta: 1 }) },
|
|
back: function () { wx.navigateBack({ delta: 1 }) },
|
|
@@ -120,59 +87,7 @@ Page({
|
|
else list = raceList;
|
|
else list = raceList;
|
|
that.setData({ dList: list })
|
|
that.setData({ dList: list })
|
|
that.setData({ 'dTabs.active': e.detail })
|
|
that.setData({ 'dTabs.active': e.detail })
|
|
-
|
|
|
|
},
|
|
},
|
|
- // // 场地选项卡
|
|
|
|
- // fieldtabsChange: async function (e) {
|
|
|
|
- // const that = this;
|
|
|
|
- // let match = that.data.info;
|
|
|
|
- // if (e.detail) var active = e.detail;
|
|
|
|
- // if (e.detail == 0) var active = 0;
|
|
|
|
- // that.setData({ 'fieldtabs.active': active });
|
|
|
|
- // that.setData({ active: active });
|
|
|
|
- // let address = that.data.fieldtabs.menu.find((i) => i.active == active);
|
|
|
|
- // if (address && address.menu != 0) {
|
|
|
|
- // let arr;
|
|
|
|
- // if (address._id == '') arr = await app.$get(`/msgs`, { match_id: match._id }, 'race');
|
|
|
|
- // else arr = await app.$get(`/msgs`, { match_id: match._id, address_id: address._id }, 'race');
|
|
|
|
- // if (arr.errcode == '0') that.setData({ matchList: arr.data });
|
|
|
|
- // else wx.showToast({ title: `${arr.errmsg}`, icon: 'fail', duration: 2000 });
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- // // 赛况详情
|
|
|
|
- // toCommon: function (e) {
|
|
|
|
- // wx.navigateTo({ url: `/pagesMatch/userAdmin/schedule/sinfo?id=${e.detail._id}` })
|
|
|
|
- // },
|
|
|
|
- // //比赛报名
|
|
|
|
- // toSign: function (e) {
|
|
|
|
- // const { item } = e.currentTarget.dataset;
|
|
|
|
- // wx.navigateTo({ url: `/pagesMatch/match/sign?id=${item._id}` })
|
|
|
|
- // },
|
|
|
|
- // // 手风琴1
|
|
|
|
- // panel: function (e) {
|
|
|
|
- // const that = this;
|
|
|
|
- // if (e.detail != that.data.showIndex) that.setData({ showIndex: e.detail })
|
|
|
|
- // else that.setData({ showIndex: 10000 })
|
|
|
|
- // },
|
|
|
|
- // // 手风琴2
|
|
|
|
- // panels: function (e) {
|
|
|
|
- // const that = this;
|
|
|
|
- // if (e.detail != that.data.showIndexs) that.setData({ showIndexs: e.detail })
|
|
|
|
- // else that.setData({ showIndexs: 10000 })
|
|
|
|
- // },
|
|
|
|
- // // 秩序册
|
|
|
|
- // orderChange: function (e) {
|
|
|
|
- // const that = this;
|
|
|
|
- // const ctype = e.detail;
|
|
|
|
- // that.setData({ cType: ctype })
|
|
|
|
- // that.setData({ cList: that.data.cType == '0' ? that.data.raceList : that.data.raceteamList })
|
|
|
|
- // },
|
|
|
|
- // // 秩序册查询
|
|
|
|
- // cSearch: async function (e) {
|
|
|
|
- // const that = this;
|
|
|
|
- // that.setData({ 'searchInfo.name': e.detail });
|
|
|
|
- // that.searchOrderBook();
|
|
|
|
- // },
|
|
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|