liyongli 2 éve
szülő
commit
d6c85c970c
2 módosított fájl, 3 hozzáadás és 2 törlés
  1. 2 1
      src/view/WorldCup/components/match.vue
  2. 1 1
      src/view/WorldCup/index.vue

+ 2 - 1
src/view/WorldCup/components/match.vue

@@ -51,7 +51,7 @@
       </svg>
     </div>
     <br />
-    <div style="padding: 0 10vw">
+    <div style="padding: 0 10vw" v-if="!isWin">
       <van-button
         round
         type="primary"
@@ -86,6 +86,7 @@ const rowHeight = fontSize.value / 1.5 + 30;
 const height = ref(rowHeight * maxcol.length + 25);
 let textSize = 12;
 let id = "";
+const isWin = ref(team[0][0] ? team[0][0].isWinner : false);
 for (let row = 0; row < maxcol.length; row++) {
   let text = "?";
   let file = undefined;

+ 1 - 1
src/view/WorldCup/index.vue

@@ -150,7 +150,7 @@ function formmateBanner(r) {
 }
 
 function formmateMatch(matchList) {
-  const isForeast = !!matchList[14].isWinner;
+  const isForeast = !!matchList[14].winner;
   for (let i = 0; i < matchList.length; i++) {
     const v = matchList[i];
     if (v.rounds === "1/8决赛") setRow(0, v, isForeast); // 16进8