zs 3 år sedan
förälder
incheckning
6cdc9ee4f9
2 ändrade filer med 5 tillägg och 2 borttagningar
  1. 0 1
      pages/maintain/index.js
  2. 5 1
      pages/me/index.js

+ 0 - 1
pages/maintain/index.js

@@ -125,7 +125,6 @@ Page({
             method: 'post',
             data: value,
             success(res) {
-              console.log(res.data.data);
               wx.showToast({ title: `修改比赛成功`, icon: 'success', duration: 2000 })
             }
           })

+ 5 - 1
pages/me/index.js

@@ -75,7 +75,11 @@ Page({
         }
       })
     } else {
-      wx.navigateTo({ url: `/${route}?id=` + id + `&list=` + list })
+      if(id!=undefined){
+        wx.navigateTo({ url: `/${route}?id=` + id + `&list=` + list })
+      }else{
+        wx.showToast({ title: `暂无团队`, icon: 'error', duration: 2000 })
+      }
     }
   },
   /**