|
@@ -121,7 +121,7 @@ Page({
|
|
|
that.setData({ memberList: mem });
|
|
|
wx.showToast({ title: `小组赛维护信息完成`, icon: 'success', duration: 2000 });
|
|
|
that.toClose();
|
|
|
- that.searchOther(list);
|
|
|
+ that.setData({ list });
|
|
|
}
|
|
|
},
|
|
|
//自动生成
|
|
@@ -131,7 +131,7 @@ Page({
|
|
|
const arr = await app.$post(`/matchTeamGroup/auto`, params, 'race');
|
|
|
if (arr.errcode == '0') {
|
|
|
that.toClose();
|
|
|
- that.searchOther(arr.data);
|
|
|
+ that.setData({ list: arr.data });
|
|
|
}
|
|
|
else wx.showToast({ title: `${arr.errmsg}`, icon: 'none', duration: 2000 })
|
|
|
},
|
|
@@ -177,10 +177,6 @@ Page({
|
|
|
// 监听用户是否登录
|
|
|
that.watchLogin();
|
|
|
},
|
|
|
- searchOther: async function (e) {
|
|
|
- const that = this;
|
|
|
- that.setData({ list: e });
|
|
|
- },
|
|
|
// 监听用户是否登录
|
|
|
watchLogin: async function () {
|
|
|
const that = this;
|
|
@@ -203,7 +199,7 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
- onShow: async function () {},
|
|
|
+ onShow: async function () { },
|
|
|
/**
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
*/
|