浏览代码

静态页面

1002884655 4 年前
父节点
当前提交
425cc7b015
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11
    1
      src/pages/index/ZuQiuDingDan/index.vue

+ 11
- 1
src/pages/index/ZuQiuDingDan/index.vue 查看文件

@@ -368,7 +368,17 @@ export default {
368 368
         }
369 369
       })
370 370
       this.AllParts = GetAllParts([...ListData], PassTarget).allParts
371
-      this.TotalCount = GetAllParts([...ListData], PassTarget).sum
371
+      if (this.CurrentPassCode === '1*1') {
372
+        let Count = 1
373
+        this.AllParts.map((item) => {
374
+          item.map((subItem) => {
375
+            Count *= subItem.length
376
+          })
377
+        })
378
+        this.TotalCount = Count
379
+      } else {
380
+        this.TotalCount = GetAllParts([...ListData], PassTarget).sum
381
+      }
372 382
       this.TotalPrice = this.TotalCount * 200 * this.Multiple
373 383
       this.PriceArr = GetPrice(this.AllParts)
374 384
       let ResArr = []