Переглянути джерело

Merge branch 'master' of http://git.cc-lotus.info/ball-court/ball-applet

guhongwei 2 роки тому
батько
коміт
5f401b36fb
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      pagesMatch/match/sign.js

+ 2 - 2
pagesMatch/match/sign.js

@@ -27,7 +27,7 @@ Page({
         if (data) {
             that.setData({ 'form.group_id': data._id, 'form.group_name': data.name, 'form.group_age': data.age })
             // 项目
-            let arr = await app.$get(`/matchProject`, { group_id: data._id }, 'race');
+            let arr = await app.$get(`/matchProject`, { match_id: that.data.id, group_id: data._id }, 'race');
             if (arr.errcode == '0' && arr.total > 0) that.setData({ projectList: arr.data });
         }
     },
@@ -126,7 +126,7 @@ Page({
         const that = this;
         let arr;
         // 组别
-        arr = await app.$get(`/matchGroup`, {}, 'race');
+        arr = await app.$get(`/matchGroup`, { match_id: that.data.id }, 'race');
         if (arr.errcode == '0') that.setData({ groupList: arr.data })
     },
     /**