zs 1 年之前
父节点
当前提交
bb6b3115e4
共有 5 个文件被更改,包括 11 次插入17 次删除
  1. 4 4
      pagesMatch/team/index.js
  2. 3 9
      pagesMatch/team/index.wxml
  3. 2 2
      pagesMy/course/index.js
  4. 1 1
      pagesMy/match/index.js
  5. 1 1
      pagesMy/match/index.wxml

+ 4 - 4
pagesMatch/team/index.js

@@ -15,7 +15,7 @@ Page({
     // 查询
     async toSearch(e) {
         const that = this;
-        if (e.detail.value) that.setData({ 'searchInfo.name': e.detail.value })
+        if (e.detail.value) that.setData({ 'searchInfo.team_name': e.detail.value })
         else that.setData({ searchInfo: {} })
         that.clearPage();
         that.search()
@@ -25,7 +25,7 @@ Page({
         const that = this;
         if (that.data.user.name) {
             let item = e.currentTarget.dataset.item
-            wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item._id })
+            wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item.team_id })
         } else {
             wx.showToast({ title: `请维护基础信息`, icon: 'none' });
         }
@@ -111,8 +111,8 @@ Page({
     // 查询通知
     async search() {
         const that = this;
-        let info = { skip: that.data.skip, limit: that.data.limit, match_id: that.data.id, status: "1" };
-        let res = await app.$api('application/team', 'GET', { ...info, ...that.data.searchInfo })
+        let info = { skip: that.data.skip, limit: that.data.limit, match_id: that.data.id };
+        let res = await app.$api('application', 'GET', { ...info, ...that.data.searchInfo })
         if (res.errcode == '0') {
             let list = [...that.data.list, ...res.data]
             for (const val of list) {

+ 3 - 9
pagesMatch/team/index.wxml

@@ -6,21 +6,15 @@
         <scroll-view class="scroll-view" scroll-y="true" bindscrolltolower="toLower" bindscroll="toScroll">
             <view class="list" wx:for="{{list}}" wx:key="index" wx:for-item="item">
                 <view class="list_1">
-                    <view class="name textOver"> {{item.name||"暂无比赛名称"}} </view>
+                    <view class="name textOver"> {{item.team_name||"暂无团队名称"}} </view>
                     <view class="color{{item.status}}"> {{item.status_name||'暂无状态'}} </view>
                 </view>
                 <view class="other">
                     <view class="other_1">
-                        手机号:{{item.phone||'暂无手机号'}}
+                        申请时间:{{item.apply_time||'暂无申请时间'}}
                     </view>
                     <view class="other_1">
-                        成立时间:{{item.create_time||'暂无成立时间'}}
-                    </view>
-                    <view class="other_1">
-                        团队人数:{{item.number||'暂无团队人数'}}人
-                    </view>
-                    <view class="other_1 textOver">
-                        单位地址:{{item.address||'暂无单位地址'}}
+                       参赛人数:{{item.num||'0'}}人
                     </view>
                 </view>
                 <view class="button">

+ 2 - 2
pagesMy/course/index.js

@@ -9,7 +9,7 @@ Page({
         total: 0,
         page: 0,
         skip: 0,
-        limit: 5,
+        limit: 10,
         statusList: []
     },
     // 上传比分
@@ -55,7 +55,7 @@ Page({
         const that = this;
         that.setData({ list: [] })
         that.setData({ skip: 0 })
-        that.setData({ limit: 5 })
+        that.setData({ limit: 10 })
         that.setData({ total: 0 })
     },
     /**

+ 1 - 1
pagesMy/match/index.js

@@ -24,7 +24,7 @@ Page({
         let item = e.currentTarget.dataset.item
         wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item._id })
     },
-    // 赛程安排
+    // 赛程信息
     toCourse(e) {
         let item = e.currentTarget.dataset.item
         wx.navigateTo({ url: '/pagesMy/course/index?id=' + item.match_id + '&team_id=' + item.team_id })

+ 1 - 1
pagesMy/match/index.wxml

@@ -25,7 +25,7 @@
                 </view>
                 <view class="button">
                     <button wx:if="{{item.status=='1'&&item.match_status=='1'}}" class="color btn_1" type="primary" size="mini" data-item="{{item}}" bindtap="toCourse">
-                        赛程安排
+                        赛程信息
                     </button>
                     <button wx:if="{{item.status=='1'&&item.match_status=='-1'}}" class="color btn_2" type="primary" size="mini" data-item="{{item}}" bindtap="toRank">
                         排名