|
@@ -28,11 +28,11 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
- this.setData({ids:options.id});
|
|
|
|
|
|
+ this.setData({ ids: options.id });
|
|
|
|
+ // 计算高度
|
|
|
|
+ this.searchHeight();
|
|
// 监听用户是否登录
|
|
// 监听用户是否登录
|
|
this.watchLogin();
|
|
this.watchLogin();
|
|
- // 计算高度
|
|
|
|
- this.searchHeight()
|
|
|
|
},
|
|
},
|
|
// 监听用户是否登录
|
|
// 监听用户是否登录
|
|
watchLogin: function () {
|
|
watchLogin: function () {
|
|
@@ -65,17 +65,18 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: res => {
|
|
fail: res => {
|
|
- return wx.redirectTo({ url: '/pages/login/index', })
|
|
|
|
|
|
+ return wx.redirectTo({ url: '/pages/login/index', })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 查询参赛队伍数据
|
|
// 查询参赛队伍数据
|
|
ranks: function () {
|
|
ranks: function () {
|
|
var that = this;
|
|
var that = this;
|
|
|
|
+ let match_id =that.data.ids;
|
|
wx.request({
|
|
wx.request({
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/matchteam`, //接口地址
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/matchteam`, //接口地址
|
|
method: 'get',
|
|
method: 'get',
|
|
- data: {},
|
|
|
|
|
|
+ data: { match_id:match_id},
|
|
success(res) {
|
|
success(res) {
|
|
if (res.data.errcode == 0) {
|
|
if (res.data.errcode == 0) {
|
|
let datacan = res.data.data
|
|
let datacan = res.data.data
|
|
@@ -96,10 +97,11 @@ Page({
|
|
// 查询赛程列表数据
|
|
// 查询赛程列表数据
|
|
course: function () {
|
|
course: function () {
|
|
var that = this;
|
|
var that = this;
|
|
|
|
+ let match_id =that.data.ids;
|
|
wx.request({
|
|
wx.request({
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/schedule`, //接口地址
|
|
url: `${app.globalData.publicUrl}/courtAdmin/api/schedule`, //接口地址
|
|
method: 'get',
|
|
method: 'get',
|
|
- data: {},
|
|
|
|
|
|
+ data: { match_id:match_id},
|
|
success(res) {
|
|
success(res) {
|
|
if (res.data.errcode == 0) {
|
|
if (res.data.errcode == 0) {
|
|
let datasai = res.data.data
|
|
let datasai = res.data.data
|