zs 3 éve
szülő
commit
d545cd73fa
2 módosított fájl, 6 hozzáadás és 7 törlés
  1. 3 4
      pages/me/index.js
  2. 3 3
      utils/dict.js

+ 3 - 4
pages/me/index.js

@@ -77,11 +77,10 @@ Page({
       })
     } else {
       if (id != undefined || list != undefined) {
-        wx.navigateTo({ url: `/${route}?id=` + id })
-        wx.navigateTo({ url: `/${routes}?id=` + id + `&list=` + list })
+        wx.navigateTo({ url: `/${route}?id=` + id + `&list=` + list })
       } else {
-        if (route == 'pages/photo/index' || route == 'pages/password/index') {
-          wx.navigateTo({ url: `/${route}?id=` + id })
+        if (route == 'pages/photo/index' || route == 'pages/password/index'||route == 'pages/user/index' || route == 'pages/meMatch/detail') {
+          wx.navigateTo({ url: `/${route}?id=` + id + `&list=` + list })
         } else {
           wx.showToast({ title: `暂无团队`, icon: 'error', duration: 2000 })
         }

+ 3 - 3
utils/dict.js

@@ -13,8 +13,8 @@ export const btn = [
   { title: '退出登录', icon: 'icon-tuichudenglu', route: '', type: '0|1|2', method: 'signout' },
   { title: '用户管理', icon: 'icon-shenhe', route: 'pages/user/index', type: '0' },
   { title: '比赛管理', icon: 'icon-bisaiguanli', route: 'pages/meMatch/detail', type: '0' },
-  { title: '审核队员', icon: 'icon-shenhe', routes: 'pages/auditTeam/index', type: '1' },
-  { title: '解散团队', icon: 'icon-ren_jiesantuandui_line', routes: 'pages/dissolution/detail', type: '1' },
-  { title: '比赛管理', icon: 'icon-bisaiguanli', routes: 'pages/meMatch/index', type: '1' },
+  { title: '审核队员', icon: 'icon-shenhe', route: 'pages/auditTeam/index', type: '1' },
+  { title: '解散团队', icon: 'icon-ren_jiesantuandui_line', route: 'pages/dissolution/detail', type: '1' },
+  { title: '比赛管理', icon: 'icon-bisaiguanli', route: 'pages/meMatch/index', type: '1' },
 
 ]