ソースを参照

fix gamebuckect single data bug

EthnaYeh 7 年 前
コミット
638ab4ca73
共有1 個のファイルを変更した7 個の追加9 個の削除を含む
  1. 7 9
      src/views/gambleGameBucket/detail/index.vue

+ 7 - 9
src/views/gambleGameBucket/detail/index.vue

@@ -276,15 +276,6 @@ export default {
276 276
               this.rowspan = ${this.group[i].length},
277 277
               this.colspan = 1
278 278
             }`
279
-          } else if (i === this.group.length - 1) {
280
-            this.statement +=
281
-            `else if(this.rowIndex === ${this._sum(i)}){
282
-              this.rowspan = ${this.group[i].length},
283
-              this.colspan = 1
284
-            }else {
285
-              this.rowspan = 0,
286
-              this.colspan = 0
287
-            }`
288 279
           } else {
289 280
             this.statement +=
290 281
             `else if(this.rowIndex === ${this._sum(i)}){
@@ -292,6 +283,13 @@ export default {
292 283
               this.colspan = 1 
293 284
             }`
294 285
           }
286
+          if (i === this.group.length - 1) {
287
+            this.statement +=
288
+            `else {
289
+              this.rowspan = 0,
290
+              this.colspan = 0
291
+            }`
292
+          }
295 293
         }
296 294
 
297 295
         this.func = eval(`(function() {${this.statement}})`)