|
@@ -1,6 +1,7 @@
|
|
const app = getApp()
|
|
const app = getApp()
|
|
Page({
|
|
Page({
|
|
data: {
|
|
data: {
|
|
|
|
+ team_id: '',
|
|
id: '',
|
|
id: '',
|
|
// 用户信息
|
|
// 用户信息
|
|
user: {},
|
|
user: {},
|
|
@@ -61,7 +62,7 @@ Page({
|
|
*/
|
|
*/
|
|
async onLoad(options) {
|
|
async onLoad(options) {
|
|
const that = this;
|
|
const that = this;
|
|
- that.setData({ id: options.id });
|
|
|
|
|
|
+ that.setData({ id: options.id, team_id: options.team_id });
|
|
},
|
|
},
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面显示
|
|
* 生命周期函数--监听页面显示
|
|
@@ -101,7 +102,8 @@ Page({
|
|
const that = this;
|
|
const that = this;
|
|
let info = { skip: that.data.skip, limit: that.data.limit };
|
|
let info = { skip: that.data.skip, limit: that.data.limit };
|
|
info.match_id = that.data.id
|
|
info.match_id = that.data.id
|
|
- let res = await app.$api('course', 'GET', { ...info })
|
|
|
|
|
|
+ info.team_id = that.data.team_id
|
|
|
|
+ let res = await app.$api('course/only', 'GET', { ...info })
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
let list = [...that.data.list, ...res.data]
|
|
let list = [...that.data.list, ...res.data]
|
|
for (const val of list) {
|
|
for (const val of list) {
|