|
@@ -36,7 +36,6 @@ Page({
|
|
|
return false
|
|
|
} else {
|
|
|
let arr;
|
|
|
- console.log(params);
|
|
|
if (params._id) { arr = await app.$post(`/matchGroup/${params._id}`, params, 'race') }
|
|
|
else { arr = await app.$post(`/matchGroup`, params, 'race') }
|
|
|
if (arr.errcode == '0') { wx.showToast({ title: `维护信息完成`, icon: 'success', duration: 2000 }); that.back(); }
|
|
@@ -61,8 +60,8 @@ Page({
|
|
|
wx.getStorage({
|
|
|
key: 'user',
|
|
|
success: async res => {
|
|
|
- let match = await app.$get(`/match`, {}, 'race');
|
|
|
- if (match.arrcode == '0') that.setData({ matchList: match.data })
|
|
|
+ let match = await app.$get(`/match`, { status: "0" }, 'race');
|
|
|
+ if (match.errcode == '0') that.setData({ matchList: match.data })
|
|
|
if (that.data.id) {
|
|
|
let arr = await app.$get(`/matchGroup/${that.data.id}`, {}, 'race');
|
|
|
if (arr.errcode == '0') {
|