|
@@ -29,6 +29,14 @@ Page({
|
|
|
// 添加团队
|
|
|
toAdd() {
|
|
|
wx.navigateTo({ url: `/pagesMy/teamCreate/index` })
|
|
|
+ },
|
|
|
+ // 查看
|
|
|
+ toView(e) {
|
|
|
+
|
|
|
+ },
|
|
|
+ // 加入比赛
|
|
|
+ toMatch(e) {
|
|
|
+
|
|
|
},
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
@@ -63,7 +71,9 @@ Page({
|
|
|
// 查询通知
|
|
|
async search() {
|
|
|
const that = this;
|
|
|
- let info = { skip: that.data.skip, limit: that.data.limit, administrator: that.data.user._id };
|
|
|
+ let info = { skip: that.data.skip, limit: that.data.limit };
|
|
|
+ if (that.data.user.type == '1') info.administrator = that.data.user._id
|
|
|
+ else info.user = that.data.user._id
|
|
|
let res = await app.$api('team', 'GET', { ...info, ...that.data.searchInfo })
|
|
|
if (res.errcode == '0') {
|
|
|
let list = [...that.data.list, ...res.data]
|