YY 2 年之前
父节点
当前提交
fb3ab1373d

+ 4 - 5
pagesMatch/match/info.js

@@ -22,9 +22,9 @@ Page({
         // 赛事选手
         // 赛事选手
         playerList: [],
         playerList: [],
         // 第一层手风琴
         // 第一层手风琴
-        playerIndex: null,
+        playerIndex: 99999,
         // 第二层手风琴
         // 第二层手风琴
-        playerIndexs: null,
+        playerIndexs: 99999,
         // 秩序册
         // 秩序册
         cType: '0',
         cType: '0',
         cList: [],
         cList: [],
@@ -111,13 +111,13 @@ Page({
     onePayer: function (e) {
     onePayer: function (e) {
         const that = this;
         const that = this;
         if (e.detail != that.data.playerIndex) that.setData({ playerIndex: e.detail })
         if (e.detail != that.data.playerIndex) that.setData({ playerIndex: e.detail })
-        else that.setData({ playerIndex: null })
+        else that.setData({ playerIndex: 99999 })
     },
     },
     // 第二层手风琴
     // 第二层手风琴
     twoPayer: function (e) {
     twoPayer: function (e) {
         const that = this;
         const that = this;
         if (e.detail != that.data.playerIndexs) that.setData({ playerIndexs: e.detail })
         if (e.detail != that.data.playerIndexs) that.setData({ playerIndexs: e.detail })
-        else that.setData({ playerIndexs: null })
+        else that.setData({ playerIndexs: 99999 })
     },
     },
     // 秩序册选择
     // 秩序册选择
     cChange: function (e) {
     cChange: function (e) {
@@ -223,7 +223,6 @@ Page({
                 }
                 }
                 // 成绩册列表
                 // 成绩册列表
                 arr = await app.$get(`/matchProject`, { match_id: that.data.info._id }, 'race');
                 arr = await app.$get(`/matchProject`, { match_id: that.data.info._id }, 'race');
-                console.log(arr.data);
                 if (arr.errcode == '0') { that.setData({ achieveList: arr.data }) }
                 if (arr.errcode == '0') { that.setData({ achieveList: arr.data }) }
 
 
             },
             },

+ 0 - 1
pagesMatch/matchAdmin/elimmatch/edit.js

@@ -68,7 +68,6 @@ Page({
         if (data) {
         if (data) {
             that.setData({ 'form.team_id': data._id, 'form.team_id_name': data.name });
             that.setData({ 'form.team_id': data._id, 'form.team_id_name': data.name });
             const arr = await app.$get(`/matchTeamGroup/${data._id}`, {}, 'race');
             const arr = await app.$get(`/matchTeamGroup/${data._id}`, {}, 'race');
-            console.log(arr);
             if (arr.errcode == '0') {
             if (arr.errcode == '0') {
                 if (arr.data.person_type == 'Race.User') { that.setData({ 'form.player_type': 'Race.User', 'form.type_name': '单打' }) }
                 if (arr.data.person_type == 'Race.User') { that.setData({ 'form.player_type': 'Race.User', 'form.type_name': '单打' }) }
                 if (arr.data.person_type == 'Race.TeamApply') { that.setData({ 'form.player_type': 'Race.TeamApply', 'form.type_name': '双打' }) }
                 if (arr.data.person_type == 'Race.TeamApply') { that.setData({ 'form.player_type': 'Race.TeamApply', 'form.type_name': '双打' }) }

+ 0 - 1
pagesMatch/matchAdmin/mtschedule/add.js

@@ -68,7 +68,6 @@ Page({
         if (data) {
         if (data) {
             that.setData({ 'form.team_id': data._id, 'form.team_id_name': data.name });
             that.setData({ 'form.team_id': data._id, 'form.team_id_name': data.name });
             const arr = await app.$get(`/matchTeamGroup/${data._id}`, {}, 'race');
             const arr = await app.$get(`/matchTeamGroup/${data._id}`, {}, 'race');
-            console.log(arr);
             if (arr.errcode == '0') {
             if (arr.errcode == '0') {
                 if (arr.data.person_type == 'Race.User') { that.setData({ 'form.player_type': 'Race.User', 'form.type_name': '单打' }) }
                 if (arr.data.person_type == 'Race.User') { that.setData({ 'form.player_type': 'Race.User', 'form.type_name': '单打' }) }
                 if (arr.data.person_type == 'Race.TeamApply') { that.setData({ 'form.player_type': 'Race.TeamApply', 'form.type_name': '双打' }) }
                 if (arr.data.person_type == 'Race.TeamApply') { that.setData({ 'form.player_type': 'Race.TeamApply', 'form.type_name': '双打' }) }

+ 2 - 0
pagesMatch/matchAdmin/profit/list.js

@@ -54,6 +54,7 @@ Page({
         }
         }
     },
     },
     search: async function (e) {
     search: async function (e) {
+        wx.showLoading({ title: '加载中', mask: true })
         const that = this;
         const that = this;
         let info = { skip: that.data.skip, limit: that.data.limit, ...that.data.form };
         let info = { skip: that.data.skip, limit: that.data.limit, ...that.data.form };
         const arr = await app.$get(`/bill`, { ...info }, 'race');
         const arr = await app.$get(`/bill`, { ...info }, 'race');
@@ -62,6 +63,7 @@ Page({
             that.setData({ list })
             that.setData({ list })
             that.setData({ total: arr.total })
             that.setData({ total: arr.total })
         }
         }
+        wx.hideLoading()
     },
     },
     // 关闭弹框
     // 关闭弹框
     toClose: function () {
     toClose: function () {