guhongwei 2 years ago
parent
commit
9c251f8330
2 changed files with 3 additions and 3 deletions
  1. 2 2
      pages/matchInfo/index.js
  2. 1 1
      pages/matchInfo/index.wxml

+ 2 - 2
pages/matchInfo/index.js

@@ -81,8 +81,8 @@ Page({
     toAchieve: function (e) {
         const that = this;
         let type = that.data.cType;
-        const { item } = e.currentTarget.dataset;
-        if (type == '1') {
+        const { item, ctype } = e.currentTarget.dataset;
+        if (type == '1' || ctype == '1') {
             wx.navigateTo({ url: `/pages/matchInfo/achieve?match_id=${item.match_id}&grouping_id=${item.grouping_id}&project_id=${item.project_id}` })
         }
 

+ 1 - 1
pages/matchInfo/index.wxml

@@ -163,7 +163,7 @@
             <view wx:elif="{{tabs.active=='e'}}" class="a e" style="height: 81vh !important;">
                 <scroll-view scroll-y="true" class="scroll-view">
                     <view class="list-scroll-view">
-                        <view class="eList" wx:for="{{raceteamList}}" wx:key="item">
+                        <view class="eList" wx:for="{{raceteamList}}" wx:key="item" bindtap="toAchieve" data-item="{{item}}" data-ctype="1">
                             <text>{{item.grouping_name}}</text>
                             <text>{{item.project_name}}</text>
                             <text>{{item.name}}</text>