|
@@ -13,58 +13,72 @@ Page({
|
|
|
// 主体高度
|
|
|
infoHeight: '',
|
|
|
bg_img: '/image/yun.jpg',
|
|
|
+ bg_img1: '/image/me_2.png',
|
|
|
// 比赛信息
|
|
|
match_id: '',
|
|
|
matchInfo: {},
|
|
|
// 参赛队伍
|
|
|
matchteamList: [],
|
|
|
+ // 赛程列表
|
|
|
+ scheduleList: [],
|
|
|
+ // 榜单
|
|
|
+ rankingList: [
|
|
|
+ {
|
|
|
+ pm: '1',
|
|
|
+ logo: [{ url: '/image/team_1.jpg' }],
|
|
|
+ team_name: '测试战队',
|
|
|
+ sheng: '10',
|
|
|
+ fu: '10',
|
|
|
+ jf: '111'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pm: '1',
|
|
|
+ logo: [{ url: '/image/team_1.jpg' }],
|
|
|
+ team_name: '测试战队',
|
|
|
+ sheng: '10',
|
|
|
+ fu: '10',
|
|
|
+ jf: '111'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pm: '1',
|
|
|
+ logo: [{ url: '/image/team_1.jpg' }],
|
|
|
+ team_name: '测试战队',
|
|
|
+ sheng: '10',
|
|
|
+ fu: '10',
|
|
|
+ jf: '111'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pm: '1',
|
|
|
+ logo: [{ url: '/image/team_1.jpg' }],
|
|
|
+ team_name: '测试战队',
|
|
|
+ sheng: '10',
|
|
|
+ fu: '10',
|
|
|
+ jf: '111'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pm: '1',
|
|
|
+ logo: [{ url: '/image/team_1.jpg' }],
|
|
|
+ team_name: '测试战队',
|
|
|
+ sheng: '10',
|
|
|
+ fu: '10',
|
|
|
+ jf: '111'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ pm: '1',
|
|
|
+ logo: [{ url: '/image/team_1.jpg' }],
|
|
|
+ team_name: '测试战队',
|
|
|
+ sheng: '10',
|
|
|
+ fu: '10',
|
|
|
+ jf: '111'
|
|
|
+ },
|
|
|
+ ],
|
|
|
// 状态
|
|
|
statusList: match_status,
|
|
|
// 选项卡
|
|
|
tabs: {
|
|
|
- active: 'b',
|
|
|
+ active: 'd',
|
|
|
list: [{ title: '赛制信息', name: 'a' }, { title: '参赛队伍', name: 'b' }, { title: '赛程列表', name: 'c' }, { title: '队伍榜单', name: 'd' }],
|
|
|
},
|
|
|
- // ids: '',
|
|
|
- // // 选项卡
|
|
|
- // tabs: {
|
|
|
- // active: 'd',
|
|
|
- // list: [
|
|
|
- // { title: '赛制信息', name: 'a' },
|
|
|
- // { title: '参赛队伍', name: 'b' },
|
|
|
- // { title: '赛程列表', name: 'c' },
|
|
|
- // { title: '队伍榜单', name: 'd' },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // teamlist: [],
|
|
|
- // ranks: [],
|
|
|
- // listbang: [
|
|
|
- // {
|
|
|
- // pm: '1',
|
|
|
- // team_name: '测试团队',
|
|
|
- // sf: '1/0',
|
|
|
- // jf: '234'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // pm: '1',
|
|
|
- // team_name: '测试团队',
|
|
|
- // sf: '1/0',
|
|
|
- // jf: '234'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // pm: '1',
|
|
|
- // team_name: '测试团队',
|
|
|
- // sf: '1/0',
|
|
|
- // jf: '234'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // pm: '1',
|
|
|
- // team_name: '测试团队',
|
|
|
- // sf: '1/0',
|
|
|
- // jf: '234'
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // schedule: [],
|
|
|
},
|
|
|
back: function () {
|
|
|
wx.navigateBack({ url: '/pages/me/index' })
|
|
@@ -101,29 +115,8 @@ Page({
|
|
|
}
|
|
|
arr = await app.$get(`/courtAdmin/api/matchteam`, { match_id: that.data.match_id });
|
|
|
if (arr.errcode == '0') that.setData({ matchteamList: arr.data })
|
|
|
- // wx.request({
|
|
|
- // url: `${app.globalData.publicUrl}/courtAdmin/api/match/${this.data.ids}`, //接口地址
|
|
|
- // method: 'get',
|
|
|
- // // data: {},
|
|
|
- // success(res) {
|
|
|
- // if (res.data.errcode == 0) {
|
|
|
- // let datas = res.data.data
|
|
|
- // that.setData({
|
|
|
- // teamlist: datas,
|
|
|
- // });
|
|
|
- // // 查询参赛队伍数据
|
|
|
- // that.ranks();
|
|
|
- // // 查询赛程列表数据
|
|
|
- // that.course();
|
|
|
- // } else {
|
|
|
- // wx.showToast({
|
|
|
- // title: res.data.errmsg,
|
|
|
- // icon: 'none',
|
|
|
- // duration: 2000
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
+ arr = await app.$get(`/courtAdmin/api/schedule`, { match_id: that.data.match_id });
|
|
|
+ if (arr.errcode == '0') that.setData({ scheduleList: arr.data })
|
|
|
},
|
|
|
fail: res => {
|
|
|
return wx.redirectTo({ url: '/pages/index/index', })
|