1002884655 преди 4 години
родител
ревизия
66cbaf3fd2
променени са 34 файла, в които са добавени 244 реда и са изтрити 137 реда
  1. 5
    5
      src/components/index/LanQiuDanGuanDaXiaoFen/index.vue
  2. 5
    5
      src/components/index/LanQiuDanGuanRangFenShengFu/index.vue
  3. 3
    3
      src/components/index/LanQiuDanGuanShengFenCha/index.vue
  4. 5
    5
      src/components/index/LanQiuDanGuanShengFu/index.vue
  5. 5
    5
      src/components/index/LanQiuGuoGuanDaXiaoFen/index.vue
  6. 7
    7
      src/components/index/LanQiuGuoGuanHunHeTouZhu/index.vue
  7. 5
    5
      src/components/index/LanQiuGuoGuanRangFenShengFu/index.vue
  8. 3
    3
      src/components/index/LanQiuGuoGuanShengFenCha/index.vue
  9. 5
    5
      src/components/index/LanQiuGuoGuanShengFu/index.vue
  10. 7
    1
      src/components/index/LqgghhtzDaXiaoFen/index.vue
  11. 7
    1
      src/components/index/LqgghhtzDaXiaoFenItem/index.vue
  12. 7
    1
      src/components/index/LqgghhtzRangFenShengFu/index.vue
  13. 7
    1
      src/components/index/LqgghhtzShengFenCha/index.vue
  14. 7
    1
      src/components/index/LqgghhtzShengFu/index.vue
  15. 7
    1
      src/components/index/LqgghhtzShengFuItem/index.vue
  16. 7
    1
      src/components/index/ZqdghhtzShengPingFu/index.vue
  17. 7
    1
      src/components/index/ZqgghhtzBanQuanChang/index.vue
  18. 7
    1
      src/components/index/ZqgghhtzBanQuanChangItem/index.vue
  19. 7
    1
      src/components/index/ZqgghhtzBiFen/index.vue
  20. 7
    1
      src/components/index/ZqgghhtzJinQiuShu/index.vue
  21. 7
    1
      src/components/index/ZqgghhtzJinQiuShuItem/index.vue
  22. 7
    1
      src/components/index/ZqgghhtzShengPingFu/index.vue
  23. 7
    1
      src/components/index/ZqgghhtzShengPingFuItem/index.vue
  24. 4
    4
      src/components/index/ZuQiuDanGuanBanQuanChang/index.vue
  25. 2
    2
      src/components/index/ZuQiuDanGuanBiFen/index.vue
  26. 4
    4
      src/components/index/ZuQiuDanGuanJinQiuShu/index.vue
  27. 4
    4
      src/components/index/ZuQiuDanGuanShengPingFu/index.vue
  28. 4
    4
      src/components/index/ZuQiuGuoGuanBanQuanChang/index.vue
  29. 2
    2
      src/components/index/ZuQiuGuoGuanBiFen/index.vue
  30. 7
    7
      src/components/index/ZuQiuGuoGuanHunHeTouZhu/index.vue
  31. 4
    4
      src/components/index/ZuQiuGuoGuanJinQiuShu/index.vue
  32. 4
    4
      src/components/index/ZuQiuGuoGuanShengPingFu/index.vue
  33. 6
    3
      src/pages/index/LanQiu/index.vue
  34. 62
    42
      src/pages/index/LanQiuDingDan/index.vue

+ 5
- 5
src/components/index/LanQiuDanGuanDaXiaoFen/index.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div class="components LanQiuDanGuanDaXiaoFen">
3 3
 
4 4
     <ul>
5
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-score`] !== undefined">
5
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-score`] !== undefined && item.matchWay[`bst-score`].isSingle">
6 6
         <div class="Title flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -12,7 +12,7 @@
12 12
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13 13
         </div>
14 14
         <div class="Detail">
15
-          <LqgghhtzDaXiaoFenItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :ScoreData="item.playOdds['bst-score']" @SelectItem="SelectItem"></LqgghhtzDaXiaoFenItem>
15
+          <LqgghhtzDaXiaoFenItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :ScoreData="item.playOdds['bst-score']" @SelectItem="SelectItem"></LqgghhtzDaXiaoFenItem>
16 16
         </div>
17 17
       </li>
18 18
     </ul>
@@ -51,9 +51,9 @@ export default {
51 51
   },
52 52
   methods: {
53 53
     SelectItem (e) { // 选择投注
54
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
54
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
55 55
     },
56
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
56
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
57 57
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
58 58
       if (value) { // 新增投注
59 59
         let Bool = false
@@ -65,7 +65,7 @@ export default {
65 65
           }
66 66
         })
67 67
         if (!Bool) {
68
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
68
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
69 69
           this.ResList[this.ResList.length - 1].list.push({ ...target })
70 70
         }
71 71
       } else { // 删除投注

+ 5
- 5
src/components/index/LanQiuDanGuanRangFenShengFu/index.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div class="components LanQiuDanGuanRangFenShengFu">
3 3
 
4 4
     <ul>
5
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wls`] !== undefined">
5
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wls`] !== undefined && item.matchWay[`bst-wls`].isSingle">
6 6
         <div class="Title flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -12,7 +12,7 @@
12 12
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13 13
         </div>
14 14
         <div class="Detail">
15
-          <LqgghhtzRangFenShengFu :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem"></LqgghhtzRangFenShengFu>
15
+          <LqgghhtzRangFenShengFu :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem"></LqgghhtzRangFenShengFu>
16 16
         </div>
17 17
       </li>
18 18
     </ul>
@@ -51,9 +51,9 @@ export default {
51 51
   },
52 52
   methods: {
53 53
     SelectItem (e) { // 选择投注
54
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
54
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
55 55
     },
56
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
56
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
57 57
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
58 58
       if (value) { // 新增投注
59 59
         let Bool = false
@@ -65,7 +65,7 @@ export default {
65 65
           }
66 66
         })
67 67
         if (!Bool) {
68
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
68
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
69 69
           this.ResList[this.ResList.length - 1].list.push({ ...target })
70 70
         }
71 71
       } else { // 删除投注

+ 3
- 3
src/components/index/LanQiuDanGuanShengFenCha/index.vue Целия файл

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="components LanQiuDanGuanShengFenCha">
3 3
     <ul>
4
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds['bst-points'] !== undefined">
4
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds['bst-points'] !== undefined && item.matchWay[`bst-points`].isSingle">
5 5
         <div class="Title flex-h">
6 6
           <div class="flex-item">
7 7
             <div>
@@ -116,7 +116,7 @@ export default {
116 116
       item.Active = !item.Active
117 117
       this.TriggerRes(this.CurrentIndex, index, key, item.Active, item, this.CurrentTarget.matchId)
118 118
     },
119
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
119
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
120 120
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
121 121
       if (value) { // 新增投注
122 122
         let Bool = false
@@ -128,7 +128,7 @@ export default {
128 128
           }
129 129
         })
130 130
         if (!Bool) {
131
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
131
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
132 132
           this.ResList[this.ResList.length - 1].list.push({ ...target })
133 133
         }
134 134
       } else { // 删除投注

+ 5
- 5
src/components/index/LanQiuDanGuanShengFu/index.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div class="components LanQiuDanGuanShengFu">
3 3
 
4 4
     <ul>
5
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined">
5
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined && item.matchWay[`bst-wl`].isSingle">
6 6
         <div class="Title flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -12,7 +12,7 @@
12 12
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13 13
         </div>
14 14
         <div class="Detail">
15
-          <LqgghhtzShengFuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WlData="item.playOdds['bst-wl']" @SelectItem="SelectItem"></LqgghhtzShengFuItem>
15
+          <LqgghhtzShengFuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlData="item.playOdds['bst-wl']" @SelectItem="SelectItem"></LqgghhtzShengFuItem>
16 16
         </div>
17 17
       </li>
18 18
     </ul>
@@ -51,9 +51,9 @@ export default {
51 51
   },
52 52
   methods: {
53 53
     SelectItem (e) { // 选择投注
54
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
54
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
55 55
     },
56
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
56
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
57 57
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
58 58
       if (value) { // 新增投注
59 59
         let Bool = false
@@ -65,7 +65,7 @@ export default {
65 65
           }
66 66
         })
67 67
         if (!Bool) {
68
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
68
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
69 69
           this.ResList[this.ResList.length - 1].list.push({ ...target })
70 70
         }
71 71
       } else { // 删除投注

+ 5
- 5
src/components/index/LanQiuGuoGuanDaXiaoFen/index.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div class="components LanQiuGuoGuanDaXiaoFen">
3 3
 
4 4
     <ul>
5
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-score`] !== undefined">
5
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-score`] !== undefined && item.matchWay[`bst-score`].isPass">
6 6
         <div class="Title flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -12,7 +12,7 @@
12 12
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13 13
         </div>
14 14
         <div class="Detail">
15
-          <LqgghhtzDaXiaoFenItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :ScoreData="item.playOdds['bst-score']" @SelectItem="SelectItem"></LqgghhtzDaXiaoFenItem>
15
+          <LqgghhtzDaXiaoFenItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :ScoreData="item.playOdds['bst-score']" @SelectItem="SelectItem"></LqgghhtzDaXiaoFenItem>
16 16
         </div>
17 17
       </li>
18 18
     </ul>
@@ -51,9 +51,9 @@ export default {
51 51
   },
52 52
   methods: {
53 53
     SelectItem (e) { // 选择投注
54
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
54
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
55 55
     },
56
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
56
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
57 57
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
58 58
       if (value) { // 新增投注
59 59
         let Bool = false
@@ -65,7 +65,7 @@ export default {
65 65
           }
66 66
         })
67 67
         if (!Bool) {
68
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
68
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
69 69
           this.ResList[this.ResList.length - 1].list.push({ ...target })
70 70
         }
71 71
       } else { // 删除投注

+ 7
- 7
src/components/index/LanQiuGuoGuanHunHeTouZhu/index.vue Целия файл

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="components LanQiuGuoGuanHunHeTouZhu">
3 3
     <ul>
4
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined && item.playOdds[`bst-wls`] !== undefined">
4
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined && item.playOdds[`bst-wls`] !== undefined && item.matchWay[`bst-wl`].isPass && item.matchWay[`bst-wls`].isPass">
5 5
         <div class="Title flex-h">
6 6
           <div class="flex-item">
7 7
             <div>
@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <LqgghhtzShengFu :MoreSelect="item.MoreSelect" :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WlData="item.playOdds['bst-wl']" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem" @ShowMore="ToShowMore"></LqgghhtzShengFu>
14
+          <LqgghhtzShengFu :MoreSelect="item.MoreSelect" :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlData="item.playOdds['bst-wl']" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem" @ShowMore="ToShowMore"></LqgghhtzShengFu>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -35,11 +35,11 @@
35 35
             </li> -->
36 36
 
37 37
             <li v-if="CurrentTarget.playOdds[`bst-score`] !== undefined">
38
-              <LqgghhtzDaXiaoFen :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :Index="CurrentIndex" :ScoreData="CurrentTarget.playOdds['bst-score']" @SelectItem="SelectItem"></LqgghhtzDaXiaoFen>
38
+              <LqgghhtzDaXiaoFen :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :HomeTeamId="CurrentTarget.homeTeamId" :AwayTeamId="CurrentTarget.awayTeamId" :Index="CurrentIndex" :ScoreData="CurrentTarget.playOdds['bst-score']" @SelectItem="SelectItem"></LqgghhtzDaXiaoFen>
39 39
             </li>
40 40
 
41 41
             <li v-if="CurrentTarget.playOdds[`bst-points`] !== undefined">
42
-              <LqgghhtzShengFenCha :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :Index="CurrentIndex" :PointsData="CurrentTarget.playOdds['bst-points']" @SelectItem="SelectItem"></LqgghhtzShengFenCha>
42
+              <LqgghhtzShengFenCha :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :HomeTeamId="CurrentTarget.homeTeamId" :AwayTeamId="CurrentTarget.awayTeamId" :Index="CurrentIndex" :PointsData="CurrentTarget.playOdds['bst-points']" @SelectItem="SelectItem"></LqgghhtzShengFenCha>
43 43
             </li>
44 44
 
45 45
           </ul>
@@ -107,9 +107,9 @@ export default {
107 107
       this.ShowMore = true
108 108
     },
109 109
     SelectItem (e) { // 选择投注
110
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
110
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
111 111
     },
112
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
112
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
113 113
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
114 114
       if (value) { // 新增投注
115 115
         let Bool = false
@@ -121,7 +121,7 @@ export default {
121 121
           }
122 122
         })
123 123
         if (!Bool) {
124
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
124
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
125 125
           this.ResList[this.ResList.length - 1].list.push({ ...target })
126 126
         }
127 127
         if (key !== 'bst-wl' && key !== 'bst-wls') {

+ 5
- 5
src/components/index/LanQiuGuoGuanRangFenShengFu/index.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div class="components LanQiuGuoGuanRangFenShengFu">
3 3
 
4 4
     <ul>
5
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wls`] !== undefined">
5
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wls`] !== undefined && item.matchWay[`bst-wls`].isPass">
6 6
         <div class="Title flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -12,7 +12,7 @@
12 12
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13 13
         </div>
14 14
         <div class="Detail">
15
-          <LqgghhtzRangFenShengFu :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem"></LqgghhtzRangFenShengFu>
15
+          <LqgghhtzRangFenShengFu :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlsData="item.playOdds['bst-wls']" @SelectItem="SelectItem"></LqgghhtzRangFenShengFu>
16 16
         </div>
17 17
       </li>
18 18
     </ul>
@@ -51,9 +51,9 @@ export default {
51 51
   },
52 52
   methods: {
53 53
     SelectItem (e) { // 选择投注
54
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
54
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
55 55
     },
56
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
56
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
57 57
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
58 58
       if (value) { // 新增投注
59 59
         let Bool = false
@@ -65,7 +65,7 @@ export default {
65 65
           }
66 66
         })
67 67
         if (!Bool) {
68
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
68
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
69 69
           this.ResList[this.ResList.length - 1].list.push({ ...target })
70 70
         }
71 71
       } else { // 删除投注

+ 3
- 3
src/components/index/LanQiuGuoGuanShengFenCha/index.vue Целия файл

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="components LanQiuGuoGuanShengFenCha">
3 3
     <ul>
4
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds['bst-points'] !== undefined">
4
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds['bst-points'] !== undefined && item.matchWay[`bst-points`].isPass">
5 5
         <div class="Title flex-h">
6 6
           <div class="flex-item">
7 7
             <div>
@@ -116,7 +116,7 @@ export default {
116 116
       item.Active = !item.Active
117 117
       this.TriggerRes(this.CurrentIndex, index, key, item.Active, item, this.CurrentTarget.matchId)
118 118
     },
119
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
119
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
120 120
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
121 121
       if (value) { // 新增投注
122 122
         let Bool = false
@@ -128,7 +128,7 @@ export default {
128 128
           }
129 129
         })
130 130
         if (!Bool) {
131
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
131
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
132 132
           this.ResList[this.ResList.length - 1].list.push({ ...target })
133 133
         }
134 134
       } else { // 删除投注

+ 5
- 5
src/components/index/LanQiuGuoGuanShengFu/index.vue Целия файл

@@ -2,7 +2,7 @@
2 2
   <div class="components LanQiuGuoGuanShengFu">
3 3
 
4 4
     <ul>
5
-      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined">
5
+      <li v-for="(item, index) in PageData" :key="index" v-if="item.playOdds[`bst-wl`] !== undefined && item.matchWay[`bst-wl`].isPass">
6 6
         <div class="Title flex-h">
7 7
           <div class="flex-item">
8 8
             <div>
@@ -12,7 +12,7 @@
12 12
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
13 13
         </div>
14 14
         <div class="Detail">
15
-          <LqgghhtzShengFuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WlData="item.playOdds['bst-wl']" @SelectItem="SelectItem"></LqgghhtzShengFuItem>
15
+          <LqgghhtzShengFuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WlData="item.playOdds['bst-wl']" @SelectItem="SelectItem"></LqgghhtzShengFuItem>
16 16
         </div>
17 17
       </li>
18 18
     </ul>
@@ -51,9 +51,9 @@ export default {
51 51
   },
52 52
   methods: {
53 53
     SelectItem (e) { // 选择投注
54
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
54
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
55 55
     },
56
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
56
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
57 57
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
58 58
       if (value) { // 新增投注
59 59
         let Bool = false
@@ -65,7 +65,7 @@ export default {
65 65
           }
66 66
         })
67 67
         if (!Bool) {
68
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
68
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
69 69
           this.ResList[this.ResList.length - 1].list.push({ ...target })
70 70
         }
71 71
       } else { // 删除投注

+ 7
- 1
src/components/index/LqgghhtzDaXiaoFen/index.vue Целия файл

@@ -31,6 +31,12 @@ export default {
31 31
     AwayTeamName: {
32 32
       default: null
33 33
     },
34
+    HomeTeamId: {
35
+      default: null
36
+    },
37
+    AwayTeamId: {
38
+      default: null
39
+    },
34 40
     Index: {
35 41
       default: null
36 42
     },
@@ -63,7 +69,7 @@ export default {
63 69
   methods: {
64 70
     SelectItem (item, index, key) { // 选择投注
65 71
       item.Active = !item.Active
66
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
72
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
67 73
     }
68 74
   }
69 75
 }

+ 7
- 1
src/components/index/LqgghhtzDaXiaoFenItem/index.vue Целия файл

@@ -28,6 +28,12 @@ export default {
28 28
     AwayTeamName: {
29 29
       default: null
30 30
     },
31
+    HomeTeamId: {
32
+      default: null
33
+    },
34
+    AwayTeamId: {
35
+      default: null
36
+    },
31 37
     Index: {
32 38
       default: null
33 39
     },
@@ -60,7 +66,7 @@ export default {
60 66
   methods: {
61 67
     SelectItem (item, index, key) { // 选择投注
62 68
       item.Active = !item.Active
63
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
69
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
64 70
     }
65 71
   }
66 72
 }

+ 7
- 1
src/components/index/LqgghhtzRangFenShengFu/index.vue Целия файл

@@ -28,6 +28,12 @@ export default {
28 28
     AwayTeamName: {
29 29
       default: null
30 30
     },
31
+    HomeTeamId: {
32
+      default: null
33
+    },
34
+    AwayTeamId: {
35
+      default: null
36
+    },
31 37
     Index: {
32 38
       default: null
33 39
     },
@@ -60,7 +66,7 @@ export default {
60 66
   methods: {
61 67
     SelectItem (item, index, key) { // 选择投注
62 68
       item.Active = !item.Active
63
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
69
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
64 70
     }
65 71
   }
66 72
 }

+ 7
- 1
src/components/index/LqgghhtzShengFenCha/index.vue Целия файл

@@ -52,6 +52,12 @@ export default {
52 52
     AwayTeamName: {
53 53
       default: null
54 54
     },
55
+    HomeTeamId: {
56
+      default: null
57
+    },
58
+    AwayTeamId: {
59
+      default: null
60
+    },
55 61
     Index: {
56 62
       default: null
57 63
     },
@@ -93,7 +99,7 @@ export default {
93 99
   methods: {
94 100
     SelectItem (item, index, key) { // 选择投注
95 101
       item.Active = !item.Active
96
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
102
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
97 103
     }
98 104
   }
99 105
 }

+ 7
- 1
src/components/index/LqgghhtzShengFu/index.vue Целия файл

@@ -34,6 +34,12 @@ export default {
34 34
     AwayTeamName: {
35 35
       default: null
36 36
     },
37
+    HomeTeamId: {
38
+      default: null
39
+    },
40
+    AwayTeamId: {
41
+      default: null
42
+    },
37 43
     Index: {
38 44
       default: null
39 45
     },
@@ -77,7 +83,7 @@ export default {
77 83
   methods: {
78 84
     SelectItem (item, index, key) { // 选择投注
79 85
       item.Active = !item.Active
80
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
86
+      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId })
81 87
     }
82 88
   }
83 89
 }

+ 7
- 1
src/components/index/LqgghhtzShengFuItem/index.vue Целия файл

@@ -28,6 +28,12 @@ export default {
28 28
     AwayTeamName: {
29 29
       default: null
30 30
     },
31
+    HomeTeamId: {
32
+      default: null
33
+    },
34
+    AwayTeamId: {
35
+      default: null
36
+    },
31 37
     Index: {
32 38
       default: null
33 39
     },
@@ -60,7 +66,7 @@ export default {
60 66
   methods: {
61 67
     SelectItem (item, index, key) { // 选择投注
62 68
       item.Active = !item.Active
63
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
69
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
64 70
     }
65 71
   }
66 72
 }

+ 7
- 1
src/components/index/ZqdghhtzShengPingFu/index.vue Целия файл

@@ -33,6 +33,12 @@ export default {
33 33
     AwayTeamName: {
34 34
       default: null
35 35
     },
36
+    HomeTeamId: {
37
+      default: null
38
+    },
39
+    AwayTeamId: {
40
+      default: null
41
+    },
36 42
     Index: {
37 43
       default: null
38 44
     },
@@ -65,7 +71,7 @@ export default {
65 71
   methods: {
66 72
     SelectItem (item, index, key) { // 选择投注
67 73
       item.Active = !item.Active
68
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
74
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
69 75
     }
70 76
   }
71 77
 }

+ 7
- 1
src/components/index/ZqgghhtzBanQuanChang/index.vue Целия файл

@@ -43,6 +43,12 @@ export default {
43 43
     AwayTeamName: {
44 44
       default: null
45 45
     },
46
+    HomeTeamId: {
47
+      default: null
48
+    },
49
+    AwayTeamId: {
50
+      default: null
51
+    },
46 52
     Index: {
47 53
       default: null
48 54
     },
@@ -75,7 +81,7 @@ export default {
75 81
   methods: {
76 82
     SelectItem (item, index, key) { // 选择投注
77 83
       item.Active = !item.Active
78
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
84
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
79 85
     }
80 86
   }
81 87
 }

+ 7
- 1
src/components/index/ZqgghhtzBanQuanChangItem/index.vue Целия файл

@@ -42,6 +42,12 @@ export default {
42 42
     AwayTeamName: {
43 43
       default: null
44 44
     },
45
+    HomeTeamId: {
46
+      default: null
47
+    },
48
+    AwayTeamId: {
49
+      default: null
50
+    },
45 51
     Index: {
46 52
       default: null
47 53
     },
@@ -74,7 +80,7 @@ export default {
74 80
   methods: {
75 81
     SelectItem (item, index, key) { // 选择投注
76 82
       item.Active = !item.Active
77
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
83
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
78 84
     }
79 85
   }
80 86
 }

+ 7
- 1
src/components/index/ZqgghhtzBiFen/index.vue Целия файл

@@ -73,6 +73,12 @@ export default {
73 73
     AwayTeamName: {
74 74
       default: null
75 75
     },
76
+    HomeTeamId: {
77
+      default: null
78
+    },
79
+    AwayTeamId: {
80
+      default: null
81
+    },
76 82
     Index: {
77 83
       default: null
78 84
     },
@@ -105,7 +111,7 @@ export default {
105 111
   methods: {
106 112
     SelectItem (item, index, key) { // 选择投注
107 113
       item.Active = !item.Active
108
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
114
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
109 115
     }
110 116
   }
111 117
 }

+ 7
- 1
src/components/index/ZqgghhtzJinQiuShu/index.vue Целия файл

@@ -37,6 +37,12 @@ export default {
37 37
     AwayTeamName: {
38 38
       default: null
39 39
     },
40
+    HomeTeamId: {
41
+      default: null
42
+    },
43
+    AwayTeamId: {
44
+      default: null
45
+    },
40 46
     Index: {
41 47
       default: null
42 48
     },
@@ -69,7 +75,7 @@ export default {
69 75
   methods: {
70 76
     SelectItem (item, index, key) { // 选择投注
71 77
       item.Active = !item.Active
72
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
78
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
73 79
     }
74 80
   }
75 81
 }

+ 7
- 1
src/components/index/ZqgghhtzJinQiuShuItem/index.vue Целия файл

@@ -36,6 +36,12 @@ export default {
36 36
     AwayTeamName: {
37 37
       default: null
38 38
     },
39
+    HomeTeamId: {
40
+      default: null
41
+    },
42
+    AwayTeamId: {
43
+      default: null
44
+    },
39 45
     Index: {
40 46
       default: null
41 47
     },
@@ -68,7 +74,7 @@ export default {
68 74
   methods: {
69 75
     SelectItem (item, index, key) { // 选择投注
70 76
       item.Active = !item.Active
71
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
77
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
72 78
     }
73 79
   }
74 80
 }

+ 7
- 1
src/components/index/ZqgghhtzShengPingFu/index.vue Целия файл

@@ -39,6 +39,12 @@ export default {
39 39
     AwayTeamName: {
40 40
       default: null
41 41
     },
42
+    HomeTeamId: {
43
+      default: null
44
+    },
45
+    AwayTeamId: {
46
+      default: null
47
+    },
42 48
     Index: {
43 49
       default: null
44 50
     },
@@ -82,7 +88,7 @@ export default {
82 88
   methods: {
83 89
     SelectItem (item, index, key) { // 选择投注
84 90
       item.Active = !item.Active
85
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
91
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
86 92
     }
87 93
   }
88 94
 }

+ 7
- 1
src/components/index/ZqgghhtzShengPingFuItem/index.vue Целия файл

@@ -30,6 +30,12 @@ export default {
30 30
     AwayTeamName: {
31 31
       default: null
32 32
     },
33
+    HomeTeamId: {
34
+      default: null
35
+    },
36
+    AwayTeamId: {
37
+      default: null
38
+    },
33 39
     Index: {
34 40
       default: null
35 41
     },
@@ -73,7 +79,7 @@ export default {
73 79
   methods: {
74 80
     SelectItem (item, index, key) { // 选择投注
75 81
       item.Active = !item.Active
76
-      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
82
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName, homeTeamId: this.HomeTeamId, awayTeamId: this.AwayTeamId})
77 83
     }
78 84
   }
79 85
 }

+ 4
- 4
src/components/index/ZuQiuDanGuanBanQuanChang/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqgghhtzBanQuanChangItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :DoubleData="item.playOdds['ft-double']" @SelectItem="SelectItem"></ZqgghhtzBanQuanChangItem>
14
+          <ZqgghhtzBanQuanChangItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :DoubleData="item.playOdds['ft-double']" @SelectItem="SelectItem"></ZqgghhtzBanQuanChangItem>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -50,9 +50,9 @@ export default {
50 50
   },
51 51
   methods: {
52 52
     SelectItem (e) { // 选择投注
53
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
53
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
54 54
     },
55
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
55
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
56 56
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
57 57
       if (value) { // 新增投注
58 58
         let Bool = false
@@ -64,7 +64,7 @@ export default {
64 64
           }
65 65
         })
66 66
         if (!Bool) {
67
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
67
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
68 68
           this.ResList[this.ResList.length - 1].list.push({ ...target })
69 69
         }
70 70
         if (key !== 'ft-double') {

+ 2
- 2
src/components/index/ZuQiuDanGuanBiFen/index.vue Целия файл

@@ -114,7 +114,7 @@ export default {
114 114
     SelectItem (e) { // 选择投注
115 115
       this.TriggerRes(this.CurrentIndex, e.cIndex, e.key, e.value, e.target, this.CurrentTarget.matchId)
116 116
     },
117
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
117
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
118 118
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
119 119
       if (value) { // 新增投注
120 120
         let Bool = false
@@ -126,7 +126,7 @@ export default {
126 126
           }
127 127
         })
128 128
         if (!Bool) {
129
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
129
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
130 130
           this.ResList[this.ResList.length - 1].list.push({ ...target })
131 131
         }
132 132
         if (key !== 'ft-score') {

+ 4
- 4
src/components/index/ZuQiuDanGuanJinQiuShu/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqgghhtzJinQiuShuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :PointsData="item.playOdds['ft-points']" @SelectItem="SelectItem"></ZqgghhtzJinQiuShuItem>
14
+          <ZqgghhtzJinQiuShuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :PointsData="item.playOdds['ft-points']" @SelectItem="SelectItem"></ZqgghhtzJinQiuShuItem>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -50,9 +50,9 @@ export default {
50 50
   },
51 51
   methods: {
52 52
     SelectItem (e) { // 选择投注
53
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
53
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
54 54
     },
55
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
55
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
56 56
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
57 57
       if (value) { // 新增投注
58 58
         let Bool = false
@@ -64,7 +64,7 @@ export default {
64 64
           }
65 65
         })
66 66
         if (!Bool) {
67
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
67
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
68 68
           this.ResList[this.ResList.length - 1].list.push({ ...target })
69 69
         }
70 70
         if (key !== 'ft-double') {

+ 4
- 4
src/components/index/ZuQiuDanGuanShengPingFu/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqdghhtzShengPingFu :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WdlData="item.playOdds['ft-wdl']" @SelectItem="SelectItem"></ZqdghhtzShengPingFu>
14
+          <ZqdghhtzShengPingFu :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WdlData="item.playOdds['ft-wdl']" @SelectItem="SelectItem"></ZqdghhtzShengPingFu>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -50,9 +50,9 @@ export default {
50 50
   },
51 51
   methods: {
52 52
     SelectItem (e) { // 选择投注
53
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
53
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
54 54
     },
55
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
55
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
56 56
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
57 57
       if (value) { // 新增投注
58 58
         let Bool = false
@@ -64,7 +64,7 @@ export default {
64 64
           }
65 65
         })
66 66
         if (!Bool) {
67
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
67
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
68 68
           this.ResList[this.ResList.length - 1].list.push({ ...target })
69 69
         }
70 70
       } else { // 删除投注

+ 4
- 4
src/components/index/ZuQiuGuoGuanBanQuanChang/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqgghhtzBanQuanChangItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :DoubleData="item.playOdds['ft-double']" @SelectItem="SelectItem"></ZqgghhtzBanQuanChangItem>
14
+          <ZqgghhtzBanQuanChangItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :DoubleData="item.playOdds['ft-double']" @SelectItem="SelectItem"></ZqgghhtzBanQuanChangItem>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -50,9 +50,9 @@ export default {
50 50
   },
51 51
   methods: {
52 52
     SelectItem (e) { // 选择投注
53
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
53
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
54 54
     },
55
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
55
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
56 56
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
57 57
       if (value) { // 新增投注
58 58
         let Bool = false
@@ -64,7 +64,7 @@ export default {
64 64
           }
65 65
         })
66 66
         if (!Bool) {
67
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
67
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
68 68
           this.ResList[this.ResList.length - 1].list.push({ ...target })
69 69
         }
70 70
         if (key !== 'ft-double') {

+ 2
- 2
src/components/index/ZuQiuGuoGuanBiFen/index.vue Целия файл

@@ -114,7 +114,7 @@ export default {
114 114
     SelectItem (e) { // 选择投注
115 115
       this.TriggerRes(this.CurrentIndex, e.cIndex, e.key, e.value, e.target, this.CurrentTarget.matchId)
116 116
     },
117
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
117
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
118 118
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
119 119
       if (value) { // 新增投注
120 120
         let Bool = false
@@ -126,7 +126,7 @@ export default {
126 126
           }
127 127
         })
128 128
         if (!Bool) {
129
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
129
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
130 130
           this.ResList[this.ResList.length - 1].list.push({ ...target })
131 131
         }
132 132
         if (key !== 'ft-score') {

+ 7
- 7
src/components/index/ZuQiuGuoGuanHunHeTouZhu/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqgghhtzShengPingFu :MoreSelect="item.MoreSelect" :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :SpreadPoints="item.spreadPoints" :WdlData="item.playOdds['ft-wdl']" :WdlsData="item.playOdds['ft-wdls']" @SelectItem="SelectItem" @ShowMore="ToShowMore"></ZqgghhtzShengPingFu>
14
+          <ZqgghhtzShengPingFu :MoreSelect="item.MoreSelect" :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :SpreadPoints="item.spreadPoints" :WdlData="item.playOdds['ft-wdl']" :WdlsData="item.playOdds['ft-wdls']" @SelectItem="SelectItem" @ShowMore="ToShowMore"></ZqgghhtzShengPingFu>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -43,15 +43,15 @@
43 43
             </li> -->
44 44
 
45 45
             <li v-if="CurrentTarget.playOdds[`ft-score`] !== undefined">
46
-              <ZqgghhtzBiFen :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :Index="CurrentIndex" :ScoreData="CurrentTarget.playOdds['ft-score']" @SelectItem="SelectItem"></ZqgghhtzBiFen>
46
+              <ZqgghhtzBiFen :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :HomeTeamId="CurrentTarget.homeTeamId" :AwayTeamId="CurrentTarget.awayTeamId" :Index="CurrentIndex" :ScoreData="CurrentTarget.playOdds['ft-score']" @SelectItem="SelectItem"></ZqgghhtzBiFen>
47 47
             </li>
48 48
 
49 49
             <li v-if="CurrentTarget.playOdds[`ft-points`] !== undefined">
50
-              <ZqgghhtzJinQiuShu :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :Index="CurrentIndex" :PointsData="CurrentTarget.playOdds['ft-points']" @SelectItem="SelectItem"></ZqgghhtzJinQiuShu>
50
+              <ZqgghhtzJinQiuShu :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :HomeTeamId="CurrentTarget.homeTeamId" :AwayTeamId="CurrentTarget.awayTeamId" :Index="CurrentIndex" :PointsData="CurrentTarget.playOdds['ft-points']" @SelectItem="SelectItem"></ZqgghhtzJinQiuShu>
51 51
             </li>
52 52
 
53 53
             <li v-if="CurrentTarget.playOdds[`ft-double`] !== undefined">
54
-              <ZqgghhtzBanQuanChang :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :Index="CurrentIndex" :DoubleData="CurrentTarget.playOdds['ft-double']" @SelectItem="SelectItem"></ZqgghhtzBanQuanChang>
54
+              <ZqgghhtzBanQuanChang :Id="CurrentTarget.matchId" :HomeTeamName="CurrentTarget.homeTeamName" :AwayTeamName="CurrentTarget.awayTeamName" :HomeTeamId="CurrentTarget.homeTeamId" :AwayTeamId="CurrentTarget.awayTeamId" :Index="CurrentIndex" :DoubleData="CurrentTarget.playOdds['ft-double']" @SelectItem="SelectItem"></ZqgghhtzBanQuanChang>
55 55
             </li>
56 56
 
57 57
           </ul>
@@ -118,9 +118,9 @@ export default {
118 118
       this.ShowMore = true
119 119
     },
120 120
     SelectItem (e) { // 选择投注
121
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
121
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
122 122
     },
123
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
123
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
124 124
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
125 125
       if (value) { // 新增投注
126 126
         let Bool = false
@@ -132,7 +132,7 @@ export default {
132 132
           }
133 133
         })
134 134
         if (!Bool) {
135
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
135
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
136 136
           this.ResList[this.ResList.length - 1].list.push({ ...target })
137 137
         }
138 138
         if (key !== 'ft-wdl' && key !== 'ft-wdls') {

+ 4
- 4
src/components/index/ZuQiuGuoGuanJinQiuShu/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqgghhtzJinQiuShuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :PointsData="item.playOdds['ft-points']" @SelectItem="SelectItem"></ZqgghhtzJinQiuShuItem>
14
+          <ZqgghhtzJinQiuShuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :PointsData="item.playOdds['ft-points']" @SelectItem="SelectItem"></ZqgghhtzJinQiuShuItem>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -50,9 +50,9 @@ export default {
50 50
   },
51 51
   methods: {
52 52
     SelectItem (e) { // 选择投注
53
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
53
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
54 54
     },
55
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
55
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
56 56
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
57 57
       if (value) { // 新增投注
58 58
         let Bool = false
@@ -64,7 +64,7 @@ export default {
64 64
           }
65 65
         })
66 66
         if (!Bool) {
67
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
67
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
68 68
           this.ResList[this.ResList.length - 1].list.push({ ...target })
69 69
         }
70 70
         if (key !== 'ft-double') {

+ 4
- 4
src/components/index/ZuQiuGuoGuanShengPingFu/index.vue Целия файл

@@ -11,7 +11,7 @@
11 11
           <span>{{item.leagueName}}<em>{{item.matchTime}}(截)</em></span>
12 12
         </div>
13 13
         <div class="Detail">
14
-          <ZqgghhtzShengPingFuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :Index="index" :WdlData="item.playOdds['ft-wdl']" :WdlsData="item.playOdds['ft-wdls']" @SelectItem="SelectItem"></ZqgghhtzShengPingFuItem>
14
+          <ZqgghhtzShengPingFuItem :Id="item.matchId" :HomeTeamName="item.homeTeamName" :AwayTeamName="item.awayTeamName" :HomeTeamId="item.homeTeamId" :AwayTeamId="item.awayTeamId" :Index="index" :WdlData="item.playOdds['ft-wdl']" :WdlsData="item.playOdds['ft-wdls']" @SelectItem="SelectItem"></ZqgghhtzShengPingFuItem>
15 15
         </div>
16 16
       </li>
17 17
     </ul>
@@ -50,9 +50,9 @@ export default {
50 50
   },
51 51
   methods: {
52 52
     SelectItem (e) { // 选择投注
53
-      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName)
53
+      this.TriggerRes(e.pIndex, e.cIndex, e.key, e.value, e.target, e.id, e.homeTeamName, e.awayTeamName, e.homeTeamId, e.awayTeamId)
54 54
     },
55
-    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
55
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName, homeTeamId, awayTeamId) {
56 56
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
57 57
       if (value) { // 新增投注
58 58
         let Bool = false
@@ -64,7 +64,7 @@ export default {
64 64
           }
65 65
         })
66 66
         if (!Bool) {
67
-          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
67
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName, homeTeamId, awayTeamId })
68 68
           this.ResList[this.ResList.length - 1].list.push({ ...target })
69 69
         }
70 70
       } else { // 删除投注

+ 6
- 3
src/pages/index/LanQiu/index.vue Целия файл

@@ -179,7 +179,8 @@ export default {
179 179
       'GetMixData'
180 180
     ]),
181 181
     ...mapUserMutations([
182
-      'AddLanQiuCart'
182
+      'AddLanQiuCart',
183
+      'EmptyLanQiuCart'
183 184
     ]),
184 185
     Init () { // 初始化
185 186
       this.GetMixData({ queryData: { lottery: 'basketball' } }).then((res) => {
@@ -189,17 +190,19 @@ export default {
189 190
     ToBetting () { // 去投注
190 191
       if (this.SelectType > 5) {
191 192
         if (this.ResList.length) {
193
+          this.EmptyLanQiuCart()
192 194
           this.ResList.map((item) => {
193 195
             this.AddLanQiuCart(item)
194 196
           })
195
-          this.$router.push({name: 'LanQiuDingDan'})
197
+          this.$router.push({ name: 'LanQiuDingDan', query: { type: 'single' } })
196 198
         }
197 199
       } else {
198 200
         if (this.ResList.length > 1) {
201
+          this.EmptyLanQiuCart()
199 202
           this.ResList.map((item) => {
200 203
             this.AddLanQiuCart(item)
201 204
           })
202
-          this.$router.push({name: 'LanQiuDingDan'})
205
+          this.$router.push({ name: 'LanQiuDingDan', query: { type: 'mix' } })
203 206
         }
204 207
       }
205 208
     },

+ 62
- 42
src/pages/index/LanQiuDingDan/index.vue Целия файл

@@ -41,7 +41,7 @@
41 41
       <div class="Store">
42 42
         <a @click="ShowStore = true">店铺:{{CurrentStoreName || '请选择'}}</a>
43 43
       </div>
44
-      <div class="Chuan">
44
+      <div class="Chuan" v-if="$route.query.type === 'mix'">
45 45
         <span>4串1</span>
46 46
       </div>
47 47
       <div class="Count">
@@ -57,22 +57,28 @@
57 57
           <em>0 ~ 0</em>元
58 58
         </span>
59 59
       </div>
60
-      <a
61
-        @click="ToPostBetting"
62
-        :class="{'active': CurrentStoreId !== null && LanQiuCart.length}"
63
-      >立即购买</a>
60
+      <a @click="ToPostBetting" :class="{'active': CurrentStoreId !== null && LanQiuCart.length}">立即购买</a>
61
+    </div>
62
+
63
+    <div class="Layer" v-if="ShowPassWay">
64
+      <div class="centerLabel">
65
+        <span>自由过关</span>
66
+        <nav>
67
+          <a v-for="(item, index) in FootballKeys" :key="index" v-if="item.unitNum <= PageList.length && item.amount === 1">{{item.name}}</a>
68
+        </nav>
69
+        <span>多串过关</span>
70
+        <div class="Bottom flex-h">
71
+          <a class="flex-item" @click="CurrentPassWay = null; ShowPassWay = false">取消</a>
72
+          <a class="flex-item active" @click="ShowPassWay = false">确定</a>
73
+        </div>
74
+      </div>
64 75
     </div>
65 76
 
66 77
     <div class="Layer" v-if="ShowStore">
67 78
       <div class="centerLabel">
68 79
         <span v-if="RecommendStoreList.length">推荐店铺:</span>
69 80
         <ul v-if="RecommendStoreList.length">
70
-          <li
71
-            v-for="(item, index) in RecommendStoreList"
72
-            :key="index"
73
-            class="flex-h"
74
-            @click="SelectStore(item)"
75
-          >
81
+          <li v-for="(item, index) in RecommendStoreList" :key="index" class="flex-h" @click="SelectStore(item)">
76 82
             <div class="flex-item">
77 83
               <div>
78 84
                 <span>{{item.name}}</span>
@@ -84,12 +90,7 @@
84 90
         </ul>
85 91
         <span>选择附近店铺:</span>
86 92
         <ul class="ScrollList">
87
-          <li
88
-            v-for="(item, index) in StoreList"
89
-            :key="index"
90
-            class="flex-h"
91
-            @click="SelectStore(item)"
92
-          >
93
+          <li v-for="(item, index) in StoreList" :key="index" class="flex-h" @click="SelectStore(item)">
93 94
             <div class="flex-item">
94 95
               <div>
95 96
                 <span>{{item.name}}</span>
@@ -101,10 +102,7 @@
101 102
           </li>
102 103
         </ul>
103 104
         <div class="Bottom flex-h">
104
-          <a
105
-            class="flex-item"
106
-            @click="CurrentStoreId = null; CurrentStoreName = null; ShowStore = false"
107
-          >取消</a>
105
+          <a class="flex-item" @click="CurrentStoreId = null; CurrentStoreName = null; ShowStore = false">取消</a>
108 106
           <a class="flex-item active" @click="ShowStore = false">确定</a>
109 107
         </div>
110 108
       </div>
@@ -114,12 +112,14 @@
114 112
 
115 113
 <script>
116 114
 import { Switch } from 'vant'
117
-import { mapMutations, createNamespacedHelpers } from 'vuex'
115
+import { mapState, mapMutations, createNamespacedHelpers } from 'vuex'
118 116
 const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
119 117
 export default {
120 118
   name: '',
121 119
   data () {
122 120
     return {
121
+      CurrentPassWay: null, // 当前串法id
122
+      ShowPassWay: true, // 显隐串法选择弹窗
123 123
       CurrentStoreName: null, // 当前选择店铺名称
124 124
       CurrentStoreId: null, // 当前选择店铺id
125 125
       RecommendStoreList: [], // 推荐店铺列表
@@ -128,12 +128,14 @@ export default {
128 128
       ShowStore: false, // 是否显示店铺选择弹窗
129 129
       TotalCount: 0, // 总注数
130 130
       TotalPrize: 0, // 总金额
131
-      IsAdd: false, // 是否追加
132 131
       PageList: [],
133 132
       DataLock: false
134 133
     }
135 134
   },
136 135
   computed: {
136
+    ...mapState({
137
+      FootballKeys: x => x.FootballKeys // 竞彩字典
138
+    }),
137 139
     ...mapUserState({
138 140
       LanQiuCart: x => x.LanQiuCart // 篮球购物车
139 141
     })
@@ -159,12 +161,12 @@ export default {
159 161
       let StoreList = res.data.data.nearest || []
160 162
       let RecommendStoreList = res.data.data.recommend || []
161 163
       StoreList.map((item) => {
162
-        if (item.status - 0 !== 1) {
164
+        if (item.status - 0 === 1) {
163 165
           this.StoreList.push(item)
164 166
         }
165 167
       })
166 168
       RecommendStoreList.map((item) => {
167
-        if (item.status - 0 !== 1) {
169
+        if (item.status - 0 === 1) {
168 170
           this.RecommendStoreList.push(item)
169 171
         }
170 172
       })
@@ -186,6 +188,15 @@ export default {
186 188
       'PostBetting',
187 189
       'GetStoreList'
188 190
     ]),
191
+    CalcTotalCount () {
192
+      let Count = 0
193
+      this.LanQiuCart.map((item) => {
194
+        item.list.map(() => {
195
+          Count += 1
196
+        })
197
+      })
198
+      return Count || 0
199
+    },
189 200
     SelectStore (item) { // 选择店铺
190 201
       if (this.DataLock) return
191 202
       this.DataLock = true
@@ -193,37 +204,46 @@ export default {
193 204
       this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
194 205
       this.DataLock = false
195 206
     },
207
+    ReturnDeatilList (list, pid) {
208
+      let Arr = []
209
+      list.map((item) => {
210
+        Arr.push({
211
+          matchId: pid,
212
+          odds: item.odds,
213
+          ruleCode: item.ruleCode,
214
+          wayCode: item.wayCode
215
+        })
216
+      })
217
+      return Arr || []
218
+    },
196 219
     ToPostBetting () { // 去下注
197 220
       if (this.DataLock || !this.LanQiuCart.length || this.CurrentStoreId === null) return
198 221
       this.DataLock = true
199 222
       let ListData = []
200 223
       this.LanQiuCart.map((item) => {
201
-        item.FirstRes.Dan.sort((a, b) => { return a - b })
202
-        item.FirstRes.Tuo.sort((a, b) => { return a - b })
203
-        item.LastRes.Dan.sort((a, b) => { return a - b })
204
-        item.LastRes.Tuo.sort((a, b) => { return a - b })
205 224
         ListData.push({
206
-          amount: item.Count, // 购买注数
207
-          charges: this.IsAdd ? item.Count * 3 * 100 : item.Count * 2 * 100, // 价格
208
-          firstDan: item.FirstRes.Dan.join(','), // 前区胆号, 逗号连接
209
-          firstNums: item.FirstRes.Tuo.join(','), // 前区其余数字, 逗号连接
210
-          isDan: !!item.FirstRes.Dan.length, // 是否胆拖
211
-          isMulti: item.Count > 1, // 是否复式
212
-          secondDan: item.LastRes.Dan.join(','), // 后区胆号, 逗号连接
213
-          secondNums: item.LastRes.Tuo.join(',') // 后区其余数字, 逗号连接
225
+          matchId: item.id,
226
+          awayTeamId: item.awayTeamId, // 客队id
227
+          awayTeamName: item.awayTeamName, // 客队名称
228
+          homeTeamId: item.homeTeamId, // 主队id
229
+          homeTeamName: item.homeTeamName, // 主队名称
230
+          amount: this.Multiple * item.list.length, // 购买注数
231
+          charges: this.Multiple * 2 * 100, // 价格
232
+          detailList: this.ReturnDeatilList(item.list, item.id)
214 233
         })
215 234
       })
216 235
       let Data = {
217
-        isAdd: this.IsAdd, // 是否追加, 只有篮球需要
218 236
         itemList: [...ListData], // 这个是详细购买方案的列表
219
-        lotteryId: 'lottery', // 彩种ID
220
-        notesNum: this.TotalCount, // 总注数
237
+        lotteryId: 'basketball', // 彩种ID
238
+        notesNum: this.TotalCount || 1, // 总注数
221 239
         shopId: this.CurrentStoreId, // 店铺ID
222 240
         times: this.Multiple, // 倍数
223
-        totalPrice: this.TotalPrize * this.Multiple * 100 // 总金额
241
+        passCode: '1*1', // 过关方式
242
+        // totalPrice: this.TotalPrize * this.Multiple * 100 // 总金额
243
+        totalPrice: this.CalcTotalCount() * this.Multiple * 2 * 100 // 总金额
224 244
       }
225 245
       this.PostBetting({
226
-        urlData: { id: 'lottery' },
246
+        urlData: { id: 'basketball' },
227 247
         data: { ...Data }
228 248
       }).then((res) => {
229 249
         this.Toast('投注成功!')