YY 3 anos atrás
pai
commit
e529c0df95
4 arquivos alterados com 10 adições e 12 exclusões
  1. 0 3
      pages/manage/index.js
  2. 0 2
      pages/match/index.js
  3. 7 4
      pages/me/index.js
  4. 3 3
      utils/dict.js

+ 0 - 3
pages/manage/index.js

@@ -36,8 +36,6 @@ Page({
               data: { status: status },
               header: {},
               success: res => {
-                console.log(res.data.data);
-
                 if (res.data.errcode === 0) {
                   wx.showToast({ title: '审核成功', icon: 'success', duration: 2000 });
                   that.watchLogin();
@@ -55,7 +53,6 @@ Page({
               data: { status: status },
               header: {},
               success: res => {
-                console.log(res.data.data);
                 if (res.data.errcode === 0) {
                   wx.showToast({ title: '审核成功', icon: 'success', duration: 2000 });
                   that.watchLogin();

+ 0 - 2
pages/match/index.js

@@ -69,14 +69,12 @@ Page({
   afterRead: function (event) {
     const { file } = event.detail;
     // 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式app.globalData.fileUrl:
-    console.log(file);
     wx.uploadFile({
       url: `${app.globalData.imageUrl}/files/court/elimg/upload`,
       filePath: file.url,
       name: 'file',
       formData: {},
       success: (res) => {
-        console.log(res);
         if (res.statusCode == '200') {
           let data = [{ name: JSON.parse(res.data).name, url: `${app.globalData.imageUrl}` + JSON.parse(res.data).uri }]
           const { fileList = [] } = this.data;

+ 7 - 4
pages/me/index.js

@@ -56,6 +56,7 @@ Page({
   },
   // 我的服务-功能按钮
   toCommon: function (e) {
+    let type = this.data.item1.type
     let { route, method } = e.currentTarget.dataset;
     let list = JSON.stringify(e.currentTarget.dataset.item);
     let id = e.currentTarget.dataset.id;
@@ -75,10 +76,12 @@ Page({
         }
       })
     } else {
-      if(id!=undefined){
-        wx.navigateTo({ url: `/${route}?id=` + id + `&list=` + list })
-      }else{
-        wx.showToast({ title: `暂无团队`, icon: 'error', duration: 2000 })
+      if (id != undefined) {
+        wx.navigateTo({ url: `/${route}?id=` + id })
+        wx.navigateTo({ url: `/${routes}?id=` + id + `&list=` + list })
+      } else {
+        wx.navigateTo({ url: `/${route}?id=` + id })
+        if (type == 1) 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', 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' },
+  { 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' },
 
 ]