zs 1 年之前
父節點
當前提交
f216374ede
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 3 3
      pagesMatch/enroll/index.js
  2. 1 1
      pagesMy/match/index.wxml

+ 3 - 3
pagesMatch/enroll/index.js

@@ -114,8 +114,7 @@ Page({
         wx.showLoading({ title: '加载中', mask: true })
         //验证规则函数
         that.initValidate();
-        await that.searchUser()
-        await that.search()
+        that.searchUser()
         wx.hideLoading()
     },
     initValidate() {
@@ -129,7 +128,8 @@ Page({
             key: 'user',
             async success(res) {
                 that.setData({ user: res.data })
-                that.searchOther()
+                await that.searchOther()
+                await that.search()
             },
             fail(err) {
                 // console.log(err);

+ 1 - 1
pagesMy/match/index.wxml

@@ -27,7 +27,7 @@
                     <button wx:if="{{item.status=='1'}}" class="color btn_1" type="primary" size="mini" data-item="{{item}}" bindtap="toCourse">
                         赛程安排
                     </button>
-                    <button class="color btn_2" type="primary" size="mini" data-item="{{item}}" bindtap="toRank">
+                    <button wx:if="{{item.status=='1'}}" class="color btn_2" type="primary" size="mini" data-item="{{item}}" bindtap="toRank">
                         排名
                     </button>
                     <button wx:if="{{user.type=='1'&&item.status=='0'}}" class="color btn_3" type="primary" size="mini" data-item="{{item}}" bindtap="toEdit">