zs 2 年之前
父节点
当前提交
954fcfbf48

+ 1 - 1
commpents/pagesMatchs/match/match-5.js

@@ -4,7 +4,7 @@ Component({
      * 组件的属性列表
      */
     properties: {
-        raceteamList: { type: Array },
+        projectList: { type: Array },
     },
 
     /**

+ 2 - 2
commpents/pagesMatchs/match/match-5.wxml

@@ -1,7 +1,7 @@
 <view class="main">
     <view class="one">
-        <view class="title" wx:for="{{raceteamList}}" wx:key="item" bindtap="toCommon" data-item="{{item}}">
-            <view class="name">{{item.name}}</view>
+        <view class="title" wx:for="{{projectList}}" wx:key="item" bindtap="toCommon" data-item="{{item}}">
+            <view class="name">{{item.name}}({{item.age}}岁)</view>
             <view class="icon">
                 <text class="iconfont icon-jiantou_liebiaoxiangyou"></text>
             </view>

+ 7 - 0
pagesMatch/match/info.js

@@ -24,6 +24,8 @@ Page({
         },
         // 赛况列表
         matchList: [],
+        //成绩册项目列表
+        projectList: [],
         active: '',
         // 状态
         statusList: [],
@@ -172,6 +174,11 @@ Page({
                         }
                         that.setData({ 'fieldtabs.menu': groundList })
                     }
+                    // 成绩册项目列表
+                    let project = await app.$get(`/matchProject`, { match_id: arr.data._id }, 'race');
+                    if (project.errcode == '0') {
+                        that.setData({ projectList: project.data })
+                    }
                 } else { wx.showToast({ title: `${res.errmsg}`, icon: 'fail', duration: 2000 }); }
                 // 选手
                 arr = await app.$get(`/match/getAll/${that.data.id}`, {}, 'race');

+ 1 - 1
pagesMatch/match/info.wxml

@@ -38,7 +38,7 @@
             <view wx:if="{{tabs.active=='e'}}" class="e">
                 <scroll-view scroll-y="true" class="scroll-view">
                     <view class="list-scroll-view">
-                        <match-5 raceteamList="{{raceteamList}}"></match-5>
+                        <match-5 projectList="{{projectList}}"></match-5>
                     </view>
                 </scroll-view>
             </view>