浏览代码

静态页面

XuChengxiang 4 年前
父节点
当前提交
722b58bbfc
共有 38 个文件被更改,包括 843 次插入101 次删除
  1. 33
    14
      package-lock.json
  2. 4
    4
      src/components/index/LanQiuDanGuanDaXiaoFen/index.vue
  3. 5
    5
      src/components/index/LanQiuDanGuanRangFenShengFu/index.vue
  4. 2
    2
      src/components/index/LanQiuDanGuanShengFenCha/index.vue
  5. 4
    4
      src/components/index/LanQiuDanGuanShengFu/index.vue
  6. 4
    4
      src/components/index/LanQiuGuoGuanDaXiaoFen/index.vue
  7. 6
    6
      src/components/index/LanQiuGuoGuanHunHeTouZhu/index.vue
  8. 4
    4
      src/components/index/LanQiuGuoGuanRangFenShengFu/index.vue
  9. 2
    2
      src/components/index/LanQiuGuoGuanShengFenCha/index.vue
  10. 4
    4
      src/components/index/LanQiuGuoGuanShengFu/index.vue
  11. 7
    1
      src/components/index/LqgghhtzDaXiaoFen/index.vue
  12. 7
    1
      src/components/index/LqgghhtzDaXiaoFenItem/index.vue
  13. 7
    1
      src/components/index/LqgghhtzRangFenShengFu/index.vue
  14. 7
    1
      src/components/index/LqgghhtzShengFenCha/index.vue
  15. 7
    1
      src/components/index/LqgghhtzShengFu/index.vue
  16. 7
    1
      src/components/index/LqgghhtzShengFuItem/index.vue
  17. 7
    1
      src/components/index/ZqdghhtzShengPingFu/index.vue
  18. 7
    1
      src/components/index/ZqgghhtzBanQuanChang/index.vue
  19. 7
    1
      src/components/index/ZqgghhtzBanQuanChangItem/index.vue
  20. 7
    1
      src/components/index/ZqgghhtzBiFen/index.vue
  21. 7
    1
      src/components/index/ZqgghhtzJinQiuShu/index.vue
  22. 7
    1
      src/components/index/ZqgghhtzJinQiuShuItem/index.vue
  23. 7
    1
      src/components/index/ZqgghhtzShengPingFu/index.vue
  24. 7
    1
      src/components/index/ZqgghhtzShengPingFuItem/index.vue
  25. 4
    4
      src/components/index/ZuQiuDanGuanBanQuanChang/index.vue
  26. 2
    2
      src/components/index/ZuQiuDanGuanBiFen/index.vue
  27. 4
    4
      src/components/index/ZuQiuDanGuanJinQiuShu/index.vue
  28. 4
    4
      src/components/index/ZuQiuDanGuanShengPingFu/index.vue
  29. 4
    4
      src/components/index/ZuQiuGuoGuanBanQuanChang/index.vue
  30. 2
    2
      src/components/index/ZuQiuGuoGuanBiFen/index.vue
  31. 7
    7
      src/components/index/ZuQiuGuoGuanHunHeTouZhu/index.vue
  32. 4
    4
      src/components/index/ZuQiuGuoGuanJinQiuShu/index.vue
  33. 4
    4
      src/components/index/ZuQiuGuoGuanShengPingFu/index.vue
  34. 23
    3
      src/pages/index/LanQiu/index.vue
  35. 292
    0
      src/pages/index/LanQiuDingDan/index.vue
  36. 303
    0
      src/pages/index/LanQiuDingDan/page.scss
  37. 4
    0
      src/router/index.js
  38. 20
    0
      src/store/user/index.js

+ 33
- 14
package-lock.json 查看文件

5521
         "ansi-regex": {
5521
         "ansi-regex": {
5522
           "version": "2.1.1",
5522
           "version": "2.1.1",
5523
           "bundled": true,
5523
           "bundled": true,
5524
-          "dev": true
5524
+          "dev": true,
5525
+          "optional": true
5525
         },
5526
         },
5526
         "aproba": {
5527
         "aproba": {
5527
           "version": "1.2.0",
5528
           "version": "1.2.0",
5542
         "balanced-match": {
5543
         "balanced-match": {
5543
           "version": "1.0.0",
5544
           "version": "1.0.0",
5544
           "bundled": true,
5545
           "bundled": true,
5545
-          "dev": true
5546
+          "dev": true,
5547
+          "optional": true
5546
         },
5548
         },
5547
         "brace-expansion": {
5549
         "brace-expansion": {
5548
           "version": "1.1.11",
5550
           "version": "1.1.11",
5549
           "bundled": true,
5551
           "bundled": true,
5550
           "dev": true,
5552
           "dev": true,
5553
+          "optional": true,
5551
           "requires": {
5554
           "requires": {
5552
             "balanced-match": "^1.0.0",
5555
             "balanced-match": "^1.0.0",
5553
             "concat-map": "0.0.1"
5556
             "concat-map": "0.0.1"
5562
         "code-point-at": {
5565
         "code-point-at": {
5563
           "version": "1.1.0",
5566
           "version": "1.1.0",
5564
           "bundled": true,
5567
           "bundled": true,
5565
-          "dev": true
5568
+          "dev": true,
5569
+          "optional": true
5566
         },
5570
         },
5567
         "concat-map": {
5571
         "concat-map": {
5568
           "version": "0.0.1",
5572
           "version": "0.0.1",
5569
           "bundled": true,
5573
           "bundled": true,
5570
-          "dev": true
5574
+          "dev": true,
5575
+          "optional": true
5571
         },
5576
         },
5572
         "console-control-strings": {
5577
         "console-control-strings": {
5573
           "version": "1.1.0",
5578
           "version": "1.1.0",
5574
           "bundled": true,
5579
           "bundled": true,
5575
-          "dev": true
5580
+          "dev": true,
5581
+          "optional": true
5576
         },
5582
         },
5577
         "core-util-is": {
5583
         "core-util-is": {
5578
           "version": "1.0.2",
5584
           "version": "1.0.2",
5689
         "inherits": {
5695
         "inherits": {
5690
           "version": "2.0.3",
5696
           "version": "2.0.3",
5691
           "bundled": true,
5697
           "bundled": true,
5692
-          "dev": true
5698
+          "dev": true,
5699
+          "optional": true
5693
         },
5700
         },
5694
         "ini": {
5701
         "ini": {
5695
           "version": "1.3.5",
5702
           "version": "1.3.5",
5701
           "version": "1.0.0",
5708
           "version": "1.0.0",
5702
           "bundled": true,
5709
           "bundled": true,
5703
           "dev": true,
5710
           "dev": true,
5711
+          "optional": true,
5704
           "requires": {
5712
           "requires": {
5705
             "number-is-nan": "^1.0.0"
5713
             "number-is-nan": "^1.0.0"
5706
           }
5714
           }
5715
           "version": "3.0.4",
5723
           "version": "3.0.4",
5716
           "bundled": true,
5724
           "bundled": true,
5717
           "dev": true,
5725
           "dev": true,
5726
+          "optional": true,
5718
           "requires": {
5727
           "requires": {
5719
             "brace-expansion": "^1.1.7"
5728
             "brace-expansion": "^1.1.7"
5720
           }
5729
           }
5722
         "minimist": {
5731
         "minimist": {
5723
           "version": "0.0.8",
5732
           "version": "0.0.8",
5724
           "bundled": true,
5733
           "bundled": true,
5725
-          "dev": true
5734
+          "dev": true,
5735
+          "optional": true
5726
         },
5736
         },
5727
         "minipass": {
5737
         "minipass": {
5728
           "version": "2.2.4",
5738
           "version": "2.2.4",
5729
           "bundled": true,
5739
           "bundled": true,
5730
           "dev": true,
5740
           "dev": true,
5741
+          "optional": true,
5731
           "requires": {
5742
           "requires": {
5732
             "safe-buffer": "^5.1.1",
5743
             "safe-buffer": "^5.1.1",
5733
             "yallist": "^3.0.0"
5744
             "yallist": "^3.0.0"
5746
           "version": "0.5.1",
5757
           "version": "0.5.1",
5747
           "bundled": true,
5758
           "bundled": true,
5748
           "dev": true,
5759
           "dev": true,
5760
+          "optional": true,
5749
           "requires": {
5761
           "requires": {
5750
             "minimist": "0.0.8"
5762
             "minimist": "0.0.8"
5751
           }
5763
           }
5826
         "number-is-nan": {
5838
         "number-is-nan": {
5827
           "version": "1.0.1",
5839
           "version": "1.0.1",
5828
           "bundled": true,
5840
           "bundled": true,
5829
-          "dev": true
5841
+          "dev": true,
5842
+          "optional": true
5830
         },
5843
         },
5831
         "object-assign": {
5844
         "object-assign": {
5832
           "version": "4.1.1",
5845
           "version": "4.1.1",
5838
           "version": "1.4.0",
5851
           "version": "1.4.0",
5839
           "bundled": true,
5852
           "bundled": true,
5840
           "dev": true,
5853
           "dev": true,
5854
+          "optional": true,
5841
           "requires": {
5855
           "requires": {
5842
             "wrappy": "1"
5856
             "wrappy": "1"
5843
           }
5857
           }
5923
         "safe-buffer": {
5937
         "safe-buffer": {
5924
           "version": "5.1.1",
5938
           "version": "5.1.1",
5925
           "bundled": true,
5939
           "bundled": true,
5926
-          "dev": true
5940
+          "dev": true,
5941
+          "optional": true
5927
         },
5942
         },
5928
         "safer-buffer": {
5943
         "safer-buffer": {
5929
           "version": "2.1.2",
5944
           "version": "2.1.2",
5959
           "version": "1.0.2",
5974
           "version": "1.0.2",
5960
           "bundled": true,
5975
           "bundled": true,
5961
           "dev": true,
5976
           "dev": true,
5977
+          "optional": true,
5962
           "requires": {
5978
           "requires": {
5963
             "code-point-at": "^1.0.0",
5979
             "code-point-at": "^1.0.0",
5964
             "is-fullwidth-code-point": "^1.0.0",
5980
             "is-fullwidth-code-point": "^1.0.0",
5978
           "version": "3.0.1",
5994
           "version": "3.0.1",
5979
           "bundled": true,
5995
           "bundled": true,
5980
           "dev": true,
5996
           "dev": true,
5997
+          "optional": true,
5981
           "requires": {
5998
           "requires": {
5982
             "ansi-regex": "^2.0.0"
5999
             "ansi-regex": "^2.0.0"
5983
           }
6000
           }
6021
         "wrappy": {
6038
         "wrappy": {
6022
           "version": "1.0.2",
6039
           "version": "1.0.2",
6023
           "bundled": true,
6040
           "bundled": true,
6024
-          "dev": true
6041
+          "dev": true,
6042
+          "optional": true
6025
         },
6043
         },
6026
         "yallist": {
6044
         "yallist": {
6027
           "version": "3.0.2",
6045
           "version": "3.0.2",
6028
           "bundled": true,
6046
           "bundled": true,
6029
-          "dev": true
6047
+          "dev": true,
6048
+          "optional": true
6030
         }
6049
         }
6031
       }
6050
       }
6032
     },
6051
     },
9077
           }
9096
           }
9078
         },
9097
         },
9079
         "lodash": {
9098
         "lodash": {
9080
-          "version": "4.17.15",
9081
-          "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
9082
-          "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
9099
+          "version": "4.17.20",
9100
+          "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
9101
+          "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
9083
           "dev": true
9102
           "dev": true
9084
         },
9103
         },
9085
         "supports-color": {
9104
         "supports-color": {

+ 4
- 4
src/components/index/LanQiuDanGuanDaXiaoFen/index.vue 查看文件

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

+ 5
- 5
src/components/index/LanQiuDanGuanRangFenShengFu/index.vue 查看文件

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

+ 2
- 2
src/components/index/LanQiuDanGuanShengFenCha/index.vue 查看文件

116
       item.Active = !item.Active
116
       item.Active = !item.Active
117
       this.TriggerRes(this.CurrentIndex, index, key, item.Active, item, this.CurrentTarget.matchId)
117
       this.TriggerRes(this.CurrentIndex, index, key, item.Active, item, this.CurrentTarget.matchId)
118
     },
118
     },
119
-    TriggerRes (pIndex, cIndex, key, value, target, id) {
119
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
120
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
120
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
121
       if (value) { // 新增投注
121
       if (value) { // 新增投注
122
         let Bool = false
122
         let Bool = false
128
           }
128
           }
129
         })
129
         })
130
         if (!Bool) {
130
         if (!Bool) {
131
-          this.ResList.push({ id: id, list: [] })
131
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
132
           this.ResList[this.ResList.length - 1].list.push({ ...target })
132
           this.ResList[this.ResList.length - 1].list.push({ ...target })
133
         }
133
         }
134
       } else { // 删除投注
134
       } else { // 删除投注

+ 4
- 4
src/components/index/LanQiuDanGuanShengFu/index.vue 查看文件

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

+ 4
- 4
src/components/index/LanQiuGuoGuanDaXiaoFen/index.vue 查看文件

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

+ 6
- 6
src/components/index/LanQiuGuoGuanHunHeTouZhu/index.vue 查看文件

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

+ 4
- 4
src/components/index/LanQiuGuoGuanRangFenShengFu/index.vue 查看文件

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

+ 2
- 2
src/components/index/LanQiuGuoGuanShengFenCha/index.vue 查看文件

116
       item.Active = !item.Active
116
       item.Active = !item.Active
117
       this.TriggerRes(this.CurrentIndex, index, key, item.Active, item, this.CurrentTarget.matchId)
117
       this.TriggerRes(this.CurrentIndex, index, key, item.Active, item, this.CurrentTarget.matchId)
118
     },
118
     },
119
-    TriggerRes (pIndex, cIndex, key, value, target, id) {
119
+    TriggerRes (pIndex, cIndex, key, value, target, id, homeTeamName, awayTeamName) {
120
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
120
       this.PageData[pIndex].playOdds[key][cIndex].Active = value
121
       if (value) { // 新增投注
121
       if (value) { // 新增投注
122
         let Bool = false
122
         let Bool = false
128
           }
128
           }
129
         })
129
         })
130
         if (!Bool) {
130
         if (!Bool) {
131
-          this.ResList.push({ id: id, list: [] })
131
+          this.ResList.push({ id, list: [], homeTeamName, awayTeamName })
132
           this.ResList[this.ResList.length - 1].list.push({ ...target })
132
           this.ResList[this.ResList.length - 1].list.push({ ...target })
133
         }
133
         }
134
       } else { // 删除投注
134
       } else { // 删除投注

+ 4
- 4
src/components/index/LanQiuGuoGuanShengFu/index.vue 查看文件

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

+ 7
- 1
src/components/index/LqgghhtzDaXiaoFen/index.vue 查看文件

25
     Id: {
25
     Id: {
26
       default: null
26
       default: null
27
     },
27
     },
28
+    HomeTeamName: {
29
+      default: null
30
+    },
31
+    AwayTeamName: {
32
+      default: null
33
+    },
28
     Index: {
34
     Index: {
29
       default: null
35
       default: null
30
     },
36
     },
57
   methods: {
63
   methods: {
58
     SelectItem (item, index, key) { // 选择投注
64
     SelectItem (item, index, key) { // 选择投注
59
       item.Active = !item.Active
65
       item.Active = !item.Active
60
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
66
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
61
     }
67
     }
62
   }
68
   }
63
 }
69
 }

+ 7
- 1
src/components/index/LqgghhtzDaXiaoFenItem/index.vue 查看文件

22
     Id: {
22
     Id: {
23
       default: null
23
       default: null
24
     },
24
     },
25
+    HomeTeamName: {
26
+      default: null
27
+    },
28
+    AwayTeamName: {
29
+      default: null
30
+    },
25
     Index: {
31
     Index: {
26
       default: null
32
       default: null
27
     },
33
     },
54
   methods: {
60
   methods: {
55
     SelectItem (item, index, key) { // 选择投注
61
     SelectItem (item, index, key) { // 选择投注
56
       item.Active = !item.Active
62
       item.Active = !item.Active
57
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
63
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
58
     }
64
     }
59
   }
65
   }
60
 }
66
 }

+ 7
- 1
src/components/index/LqgghhtzRangFenShengFu/index.vue 查看文件

22
     Id: {
22
     Id: {
23
       default: null
23
       default: null
24
     },
24
     },
25
+    HomeTeamName: {
26
+      default: null
27
+    },
28
+    AwayTeamName: {
29
+      default: null
30
+    },
25
     Index: {
31
     Index: {
26
       default: null
32
       default: null
27
     },
33
     },
54
   methods: {
60
   methods: {
55
     SelectItem (item, index, key) { // 选择投注
61
     SelectItem (item, index, key) { // 选择投注
56
       item.Active = !item.Active
62
       item.Active = !item.Active
57
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
63
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
58
     }
64
     }
59
   }
65
   }
60
 }
66
 }

+ 7
- 1
src/components/index/LqgghhtzShengFenCha/index.vue 查看文件

46
     Id: {
46
     Id: {
47
       default: null
47
       default: null
48
     },
48
     },
49
+    HomeTeamName: {
50
+      default: null
51
+    },
52
+    AwayTeamName: {
53
+      default: null
54
+    },
49
     Index: {
55
     Index: {
50
       default: null
56
       default: null
51
     },
57
     },
87
   methods: {
93
   methods: {
88
     SelectItem (item, index, key) { // 选择投注
94
     SelectItem (item, index, key) { // 选择投注
89
       item.Active = !item.Active
95
       item.Active = !item.Active
90
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
96
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
91
     }
97
     }
92
   }
98
   }
93
 }
99
 }

+ 7
- 1
src/components/index/LqgghhtzShengFu/index.vue 查看文件

28
     Id: {
28
     Id: {
29
       default: null
29
       default: null
30
     },
30
     },
31
+    HomeTeamName: {
32
+      default: null
33
+    },
34
+    AwayTeamName: {
35
+      default: null
36
+    },
31
     Index: {
37
     Index: {
32
       default: null
38
       default: null
33
     },
39
     },
71
   methods: {
77
   methods: {
72
     SelectItem (item, index, key) { // 选择投注
78
     SelectItem (item, index, key) { // 选择投注
73
       item.Active = !item.Active
79
       item.Active = !item.Active
74
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
80
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
75
     }
81
     }
76
   }
82
   }
77
 }
83
 }

+ 7
- 1
src/components/index/LqgghhtzShengFuItem/index.vue 查看文件

22
     Id: {
22
     Id: {
23
       default: null
23
       default: null
24
     },
24
     },
25
+    HomeTeamName: {
26
+      default: null
27
+    },
28
+    AwayTeamName: {
29
+      default: null
30
+    },
25
     Index: {
31
     Index: {
26
       default: null
32
       default: null
27
     },
33
     },
54
   methods: {
60
   methods: {
55
     SelectItem (item, index, key) { // 选择投注
61
     SelectItem (item, index, key) { // 选择投注
56
       item.Active = !item.Active
62
       item.Active = !item.Active
57
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
63
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
58
     }
64
     }
59
   }
65
   }
60
 }
66
 }

+ 7
- 1
src/components/index/ZqdghhtzShengPingFu/index.vue 查看文件

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

+ 7
- 1
src/components/index/ZqgghhtzBanQuanChang/index.vue 查看文件

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

+ 7
- 1
src/components/index/ZqgghhtzBanQuanChangItem/index.vue 查看文件

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

+ 7
- 1
src/components/index/ZqgghhtzBiFen/index.vue 查看文件

67
     Id: {
67
     Id: {
68
       default: null
68
       default: null
69
     },
69
     },
70
+    HomeTeamName: {
71
+      default: null
72
+    },
73
+    AwayTeamName: {
74
+      default: null
75
+    },
70
     Index: {
76
     Index: {
71
       default: null
77
       default: null
72
     },
78
     },
99
   methods: {
105
   methods: {
100
     SelectItem (item, index, key) { // 选择投注
106
     SelectItem (item, index, key) { // 选择投注
101
       item.Active = !item.Active
107
       item.Active = !item.Active
102
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
108
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
103
     }
109
     }
104
   }
110
   }
105
 }
111
 }

+ 7
- 1
src/components/index/ZqgghhtzJinQiuShu/index.vue 查看文件

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

+ 7
- 1
src/components/index/ZqgghhtzJinQiuShuItem/index.vue 查看文件

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

+ 7
- 1
src/components/index/ZqgghhtzShengPingFu/index.vue 查看文件

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

+ 7
- 1
src/components/index/ZqgghhtzShengPingFuItem/index.vue 查看文件

24
     Id: {
24
     Id: {
25
       default: null
25
       default: null
26
     },
26
     },
27
+    HomeTeamName: {
28
+      default: null
29
+    },
30
+    AwayTeamName: {
31
+      default: null
32
+    },
27
     Index: {
33
     Index: {
28
       default: null
34
       default: null
29
     },
35
     },
67
   methods: {
73
   methods: {
68
     SelectItem (item, index, key) { // 选择投注
74
     SelectItem (item, index, key) { // 选择投注
69
       item.Active = !item.Active
75
       item.Active = !item.Active
70
-      this.$emit('SelectItem', { pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item })
76
+      this.$emit('SelectItem', {pIndex: this.Index, value: item.Active, key, cIndex: index, id: this.Id, target: item, homeTeamName: this.HomeTeamName, awayTeamName: this.AwayTeamName})
71
     }
77
     }
72
   }
78
   }
73
 }
79
 }

+ 4
- 4
src/components/index/ZuQiuDanGuanBanQuanChang/index.vue 查看文件

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

+ 2
- 2
src/components/index/ZuQiuDanGuanBiFen/index.vue 查看文件

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

+ 4
- 4
src/components/index/ZuQiuDanGuanJinQiuShu/index.vue 查看文件

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

+ 4
- 4
src/components/index/ZuQiuDanGuanShengPingFu/index.vue 查看文件

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

+ 4
- 4
src/components/index/ZuQiuGuoGuanBanQuanChang/index.vue 查看文件

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

+ 2
- 2
src/components/index/ZuQiuGuoGuanBiFen/index.vue 查看文件

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

+ 7
- 7
src/components/index/ZuQiuGuoGuanHunHeTouZhu/index.vue 查看文件

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

+ 4
- 4
src/components/index/ZuQiuGuoGuanJinQiuShu/index.vue 查看文件

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

+ 4
- 4
src/components/index/ZuQiuGuoGuanShengPingFu/index.vue 查看文件

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

+ 23
- 3
src/pages/index/LanQiu/index.vue 查看文件

91
     <div class="Bottom flex-h">
91
     <div class="Bottom flex-h">
92
       <a class="iconfont iconjian" @click="EmptyAllData"></a>
92
       <a class="iconfont iconjian" @click="EmptyAllData"></a>
93
       <div class="flex-item"></div>
93
       <div class="flex-item"></div>
94
-      <span>{{ResList.length ? `已选择${ResList.length}场比赛` : '非单关至少选两场比赛'}}</span>
95
-      <a class="Btn">投注</a>
94
+      <span>{{ResList.length ? `已选择${ResList.length}场比赛` : SelectType > 5 ? '单关至少选一场比赛' : '非单关至少选两场比赛'}}</span>
95
+      <a class="Btn" @click="ToBetting">投注</a>
96
     </div>
96
     </div>
97
 
97
 
98
   </div>
98
   </div>
109
 import LanQiuGuoGuanShengFenCha from '../../../components/index/LanQiuGuoGuanShengFenCha'
109
 import LanQiuGuoGuanShengFenCha from '../../../components/index/LanQiuGuoGuanShengFenCha'
110
 import LanQiuDanGuanShengFenCha from '../../../components/index/LanQiuDanGuanShengFenCha'
110
 import LanQiuDanGuanShengFenCha from '../../../components/index/LanQiuDanGuanShengFenCha'
111
 import { mapMutations, createNamespacedHelpers } from 'vuex'
111
 import { mapMutations, createNamespacedHelpers } from 'vuex'
112
-const { mapState: mapUserState, mapActions: mapUserActions } = createNamespacedHelpers('user')
112
+const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
113
 export default {
113
 export default {
114
   name: '',
114
   name: '',
115
   data () {
115
   data () {
178
     ...mapUserActions([
178
     ...mapUserActions([
179
       'GetMixData'
179
       'GetMixData'
180
     ]),
180
     ]),
181
+    ...mapUserMutations([
182
+      'AddLanQiuCart'
183
+    ]),
181
     Init () { // 初始化
184
     Init () { // 初始化
182
       this.GetMixData({ queryData: { lottery: 'basketball' } }).then((res) => {
185
       this.GetMixData({ queryData: { lottery: 'basketball' } }).then((res) => {
183
         this.MixData = res.data.data || []
186
         this.MixData = res.data.data || []
184
       })
187
       })
185
     },
188
     },
189
+    ToBetting () { // 去投注
190
+      if (this.SelectType > 5) {
191
+        if (this.ResList.length) {
192
+          this.ResList.map((item) => {
193
+            this.AddLanQiuCart(item)
194
+          })
195
+          this.$router.push({name: 'LanQiuDingDan'})
196
+        }
197
+      } else {
198
+        if (this.ResList.length > 1) {
199
+          this.ResList.map((item) => {
200
+            this.AddLanQiuCart(item)
201
+          })
202
+          this.$router.push({name: 'LanQiuDingDan'})
203
+        }
204
+      }
205
+    },
186
     ResChange (e) { // 投注结果更新
206
     ResChange (e) { // 投注结果更新
187
       this.ResList = e
207
       this.ResList = e
188
     },
208
     },

+ 292
- 0
src/pages/index/LanQiuDingDan/index.vue 查看文件

1
+<template>
2
+  <div class="Page flex-v">
3
+    <div class="flex-item">
4
+      <div>
5
+
6
+        <ul>
7
+          <li v-for="(item, index) in PageList" :key="index">
8
+            <a class="iconfont iconguanbi Close" @click="DeleteItem(index)"></a>
9
+            <div class="Title flex-h">
10
+              <span>{{item.id}}</span>
11
+              <div class="flex-item">
12
+                <div>
13
+                  <span>{{item.homeTeamName}} VS {{item.awayTeamName}}</span>
14
+                </div>
15
+              </div>
16
+            </div>
17
+            <div class="List">
18
+              <span v-for="(subItem, subIndex) in item.list" :key="subIndex">{{subItem.name}}</span>
19
+            </div>
20
+          </li>
21
+        </ul>
22
+
23
+        <div class="OtherTab">
24
+          <div>
25
+            <div class="flex-h">
26
+              <span class="flex-item">加倍</span>
27
+              <span>
28
+                <a class="iconfont iconjianhao" @click="Multiple = Multiple > 1 ? Multiple - 1 : 1"></a>
29
+                <input type="number" disabled="disabled" v-model="Multiple">
30
+                <span>倍</span>
31
+                <a class="iconfont iconjiahao" @click="Multiple += 1"></a>
32
+              </span>
33
+            </div>
34
+          </div>
35
+        </div>
36
+
37
+      </div>
38
+    </div>
39
+
40
+    <div class="Bottom">
41
+      <div class="Store">
42
+        <a @click="ShowStore = true">店铺:{{CurrentStoreName || '请选择'}}</a>
43
+      </div>
44
+      <div class="Chuan">
45
+        <span>4串1</span>
46
+      </div>
47
+      <div class="Count">
48
+        <span>
49
+          <em>{{TotalCount}}</em>注
50
+        </span>
51
+        <span>
52
+          金额:
53
+          <em>{{TotalPrize * Multiple}}</em>元
54
+        </span>
55
+        <span>
56
+          预计奖金:
57
+          <em>0 ~ 0</em>元
58
+        </span>
59
+      </div>
60
+      <a
61
+        @click="ToPostBetting"
62
+        :class="{'active': CurrentStoreId !== null && LanQiuCart.length}"
63
+      >立即购买</a>
64
+    </div>
65
+
66
+    <div class="Layer" v-if="ShowStore">
67
+      <div class="centerLabel">
68
+        <span v-if="RecommendStoreList.length">推荐店铺:</span>
69
+        <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
+          >
76
+            <div class="flex-item">
77
+              <div>
78
+                <span>{{item.name}}</span>
79
+              </div>
80
+            </div>
81
+            <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
82
+            <i class="iconfont iconyigouxuan active" v-else></i>
83
+          </li>
84
+        </ul>
85
+        <span>选择附近店铺:</span>
86
+        <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
+            <div class="flex-item">
94
+              <div>
95
+                <span>{{item.name}}</span>
96
+              </div>
97
+            </div>
98
+            <!-- <span>200m</span> -->
99
+            <i class="iconfont iconweigouxuan" v-if="item.shopId !== CurrentStoreId"></i>
100
+            <i class="iconfont iconyigouxuan active" v-else></i>
101
+          </li>
102
+        </ul>
103
+        <div class="Bottom flex-h">
104
+          <a
105
+            class="flex-item"
106
+            @click="CurrentStoreId = null; CurrentStoreName = null; ShowStore = false"
107
+          >取消</a>
108
+          <a class="flex-item active" @click="ShowStore = false">确定</a>
109
+        </div>
110
+      </div>
111
+    </div>
112
+  </div>
113
+</template>
114
+
115
+<script>
116
+import { Switch } from 'vant'
117
+import { mapMutations, createNamespacedHelpers } from 'vuex'
118
+const { mapState: mapUserState, mapActions: mapUserActions, mapMutations: mapUserMutations } = createNamespacedHelpers('user')
119
+export default {
120
+  name: '',
121
+  data () {
122
+    return {
123
+      CurrentStoreName: null, // 当前选择店铺名称
124
+      CurrentStoreId: null, // 当前选择店铺id
125
+      RecommendStoreList: [], // 推荐店铺列表
126
+      StoreList: [], // 店铺列表
127
+      Multiple: 1, // 倍数
128
+      ShowStore: false, // 是否显示店铺选择弹窗
129
+      TotalCount: 0, // 总注数
130
+      TotalPrize: 0, // 总金额
131
+      IsAdd: false, // 是否追加
132
+      PageList: [],
133
+      DataLock: false
134
+    }
135
+  },
136
+  computed: {
137
+    ...mapUserState({
138
+      LanQiuCart: x => x.LanQiuCart // 篮球购物车
139
+    })
140
+  },
141
+  components: {
142
+    'van-switch': Switch
143
+  },
144
+  created () {
145
+    this.EditMainData([ // 配置页面框架数据
146
+      { name: 'ShowMainHeader', value: true },
147
+      { name: 'MainHeaderTitle', value: '篮球' },
148
+      { name: 'ShowMainHeaderBack', value: true }
149
+    ])
150
+    this.PageList = [...this.LanQiuCart]
151
+    console.log(this.PageList)
152
+    this.CheckOrderCount() // 计算订单倍数、金额
153
+    this.GetStoreList({
154
+      queryData: {
155
+        location: '114.16936109999999,22.3193039',
156
+        lotteryId: 'lottery'
157
+      }
158
+    }).then((res) => {
159
+      let StoreList = res.data.data.nearest || []
160
+      let RecommendStoreList = res.data.data.recommend || []
161
+      StoreList.map((item) => {
162
+        if (item.status - 0 !== 1) {
163
+          this.StoreList.push(item)
164
+        }
165
+      })
166
+      RecommendStoreList.map((item) => {
167
+        if (item.status - 0 !== 1) {
168
+          this.RecommendStoreList.push(item)
169
+        }
170
+      })
171
+    })
172
+  },
173
+  mounted () {
174
+    this.$nextTick(() => {
175
+    })
176
+  },
177
+  methods: {
178
+    ...mapMutations([
179
+      'EditMainData' // 配置页面框架数据
180
+    ]),
181
+    ...mapUserMutations([
182
+      'DeleteLanQiuCart',
183
+      'EmptyLanQiuCart'
184
+    ]),
185
+    ...mapUserActions([
186
+      'PostBetting',
187
+      'GetStoreList'
188
+    ]),
189
+    SelectStore (item) { // 选择店铺
190
+      if (this.DataLock) return
191
+      this.DataLock = true
192
+      this.CurrentStoreName = item.shopId === this.CurrentStoreId ? null : item.name
193
+      this.CurrentStoreId = item.shopId === this.CurrentStoreId ? null : item.shopId
194
+      this.DataLock = false
195
+    },
196
+    ToPostBetting () { // 去下注
197
+      if (this.DataLock || !this.LanQiuCart.length || this.CurrentStoreId === null) return
198
+      this.DataLock = true
199
+      let ListData = []
200
+      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
+        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(',') // 后区其余数字, 逗号连接
214
+        })
215
+      })
216
+      let Data = {
217
+        isAdd: this.IsAdd, // 是否追加, 只有篮球需要
218
+        itemList: [...ListData], // 这个是详细购买方案的列表
219
+        lotteryId: 'lottery', // 彩种ID
220
+        notesNum: this.TotalCount, // 总注数
221
+        shopId: this.CurrentStoreId, // 店铺ID
222
+        times: this.Multiple, // 倍数
223
+        totalPrice: this.TotalPrize * this.Multiple * 100 // 总金额
224
+      }
225
+      this.PostBetting({
226
+        urlData: { id: 'lottery' },
227
+        data: { ...Data }
228
+      }).then((res) => {
229
+        this.Toast('投注成功!')
230
+        this.EmptyLanQiuCart()
231
+        this.PageList = []
232
+        this.TotalCount = 0
233
+        this.TotalPrize = 0
234
+        this.Multiple = 1
235
+        this.DataLock = false
236
+      }).catch((res) => {
237
+        this.Toast(res.data.message)
238
+        this.DataLock = false
239
+      })
240
+    },
241
+    SwitchChange () { // 追加状态改变
242
+      this.CheckOrderCount()
243
+    },
244
+    DeleteItem (index) { // 删除投注
245
+      this.DeleteLanQiuCart(index)
246
+      this.PageList = [...this.LanQiuCart]
247
+      this.CheckOrderCount()
248
+    },
249
+    ReturnType (item) {
250
+      if (item.FirstRes.Dan.length || item.LastRes.Dan.length) {
251
+        return '拖胆'
252
+      } else if (item.Count > 1) {
253
+        return '复式'
254
+      } else {
255
+        return '单式'
256
+      }
257
+    },
258
+    MultipleLess (item) { // 减少倍数
259
+      if (item.Multiple > 1 && !this.DataLock) {
260
+        this.DataLock = true
261
+        item.Multiple -= 1
262
+        this.CheckOrderCount() // 计算订单倍数、金额
263
+        this.DataLock = false
264
+      }
265
+    },
266
+    MultipleMore (item) { // 增加倍数
267
+      if (!this.DataLock) {
268
+        this.DataLock = true
269
+        item.Multiple += 1
270
+        this.CheckOrderCount() // 计算订单倍数、金额
271
+        this.DataLock = false
272
+      }
273
+    },
274
+    CheckOrderCount () { // 计算订单倍数、金额
275
+      // let Count = 0 // 注数
276
+      // let Money = 0 // 金额
277
+      // let ItemPrize = this.IsAdd ? 3 : 2
278
+      // this.PageList.map((item) => {
279
+      //   Count += item.Count
280
+      //   Money += item.Count * ItemPrize
281
+      // })
282
+      // this.TotalCount = Count
283
+      // this.TotalPrize = Money
284
+    }
285
+  }
286
+}
287
+</script>
288
+
289
+<!-- Add "scoped" attribute to limit CSS to this component only -->
290
+<style lang="scss" scoped>
291
+@import "page.scss";
292
+</style>

+ 303
- 0
src/pages/index/LanQiuDingDan/page.scss 查看文件

1
+.Page {
2
+  background: #f8f8f8;
3
+  position: relative;
4
+  overflow: hidden;
5
+  > div {
6
+    &.flex-item {
7
+      position: relative;
8
+      overflow: hidden;
9
+      z-index: 1;
10
+      > div {
11
+        width: 100%;
12
+        position: absolute;
13
+        left: 0;
14
+        top: 0;
15
+        bottom: 0;
16
+        overflow-y: scroll;
17
+        -webkit-overflow-scrolling: touch;
18
+        > ul {
19
+          padding: 0.15rem;
20
+          position: relative;
21
+          > li {
22
+            background: #fff;
23
+            position: relative;
24
+            overflow: visible;
25
+            padding: 0.15rem;
26
+            box-shadow: 0 0 0.02rem 0.02rem rgba(0, 0, 0, 0.05);
27
+            margin-top: 0.15rem;
28
+            border-radius: 0.06rem;
29
+            &:first-child {
30
+              margin-top: 0;
31
+            }
32
+            > .Close {
33
+              display: inline-block;
34
+              position: absolute;
35
+              right: 0;
36
+              top: 0;
37
+              font-size: 0.2rem;
38
+              color: #999;
39
+            }
40
+            >.Title {
41
+              align-items: center;
42
+              >span {
43
+                font-size: 0.12rem;
44
+                color: #999;
45
+                line-height: 0.2rem;
46
+              }
47
+              >div {
48
+                position: relative;
49
+                margin-left: 0.15rem;
50
+                >div {
51
+                  width: 100%;
52
+                  position: relative;
53
+                  overflow: hidden;
54
+                  >span {
55
+                    display: block;
56
+                    white-space: nowrap;
57
+                    font-size: 0.12rem;
58
+                    line-height: 0.2rem;
59
+                    overflow: hidden;
60
+                    text-overflow: ellipsis;
61
+                  }
62
+                }
63
+              }
64
+            }
65
+            >.List {
66
+              font-size: 0;
67
+              >span {
68
+                display: inline-block;
69
+                vertical-align: middle;
70
+                font-size: 0.12rem;
71
+                line-height: 0.2rem;
72
+                margin-top: 0.05rem;
73
+                margin-right: 0.05rem;
74
+                color: #fff;
75
+                background: #ff5200;
76
+                padding: 0 0.1rem;
77
+              }
78
+            }
79
+          }
80
+        }> .OtherTab {
81
+          padding: 0 0.15rem;
82
+          position: relative;
83
+          margin-bottom: 0.15rem;
84
+          > div {
85
+            background: #fff;
86
+            border-radius: 0.06rem;
87
+            box-shadow: 0 0 0.02rem 0.02rem rgba(0, 0, 0, 0.05);
88
+            > div {
89
+              padding: 0.15rem;
90
+              border-top: 0.01rem solid #f7f7f7;
91
+              align-items: center;
92
+              &:first-child {
93
+                border-top: none;
94
+              }
95
+              > span {
96
+                &:nth-child(1) {
97
+                  font-size: 0.15rem;
98
+                  color: #666;
99
+                  line-height: 0.2rem;
100
+                }
101
+                &:nth-child(2) {
102
+                  display: inline-block;
103
+                  margin-left: 0.1rem;
104
+                  position: relative;
105
+                  overflow: hidden;
106
+                  border: 0.01rem solid #f7f7f7;
107
+                  border-radius: 0.03rem;
108
+                  font-size: 0;
109
+                  white-space: nowrap;
110
+                  > * {
111
+                    display: inline-block;
112
+                    vertical-align: middle;
113
+                    font-size: 0.14rem;
114
+                    color: #999;
115
+                    line-height: 0.2rem;
116
+                    border-left: 0.01rem solid #f7f7f7;
117
+                    &:first-child {
118
+                      border: none;
119
+                      border-right: 0.01rem solid #f7f7f7;
120
+                    }
121
+                  }
122
+                  > a {
123
+                    width: 0.2rem;
124
+                    text-align: center;
125
+                  }
126
+                  > input {
127
+                    border: none;
128
+                    width: 0.35rem;
129
+                    text-align: center;
130
+                    color: #333;
131
+                    &:disabled {
132
+                      color: #333;
133
+                    }
134
+                  }
135
+                  > span {
136
+                    border: none;
137
+                    margin-right: 0.03rem;
138
+                  }
139
+                }
140
+              }
141
+            }
142
+          }
143
+        }
144
+      }
145
+    }
146
+    &.Bottom {
147
+      background: #fff;
148
+      position: relative;
149
+      overflow: hidden;
150
+      box-shadow: 0 0 0.02rem 0.02rem rgba(0, 0, 0, 0.05);
151
+      z-index: 2;
152
+      padding: 0.15rem;
153
+      padding-bottom: 0.2rem;
154
+      > .Store {
155
+        font-size: 0;
156
+        text-align: center;
157
+        > a {
158
+          display: inline-block;
159
+          font-size: 0.14rem;
160
+          color: #333;
161
+          line-height: 0.2rem;
162
+          max-width: 100%;
163
+          overflow: hidden;
164
+          white-space: nowrap;
165
+          text-overflow: ellipsis;
166
+        }
167
+      }
168
+      >.Chuan {
169
+        margin: 0.1rem 0;
170
+        >span {
171
+          font-size: 0.14rem;
172
+          line-height: 0.2rem;
173
+          display: block;
174
+          white-space: nowrap;
175
+          overflow: hidden;
176
+          text-align: center;
177
+          text-overflow: ellipsis;
178
+        }
179
+      }
180
+      > .Count {
181
+        font-size: 0;
182
+        text-align: center;
183
+        white-space: nowrap;
184
+        margin-top: 0.05rem;
185
+        > span {
186
+          display: inline-block;
187
+          vertical-align: middle;
188
+          font-size: 0.12rem;
189
+          color: #333;
190
+          line-height: 0.2rem;
191
+          margin-left: 0.1rem;
192
+          &:first-child {
193
+            margin-left: 0;
194
+          }
195
+          > em {
196
+            color: #d91d36;
197
+            font-size: 0.12rem;
198
+            line-height: 0.2rem;
199
+            font-weight: bold;
200
+          }
201
+        }
202
+      }
203
+      > a {
204
+        display: block;
205
+        text-align: center;
206
+        font-size: 0.16rem;
207
+        line-height: 0.42rem;
208
+        background: #ccc;
209
+        border-radius: 0.06rem;
210
+        color: #fff;
211
+        margin-top: 0.1rem;
212
+        &.active {
213
+          background: #ff5200;
214
+        }
215
+      }
216
+    }
217
+    &.Layer {
218
+      width: 100%;
219
+      position: absolute;
220
+      left: 0;
221
+      top: 0;
222
+      bottom: 0;
223
+      z-index: 10;
224
+      background: rgba(0, 0, 0, 0.7);
225
+      > div {
226
+        width: 80%;
227
+        background: #fff;
228
+        border-radius: 0.06rem;
229
+        position: relative;
230
+        overflow: hidden;
231
+        padding-top: 0.15rem;
232
+        > span {
233
+          font-size: 0.14rem;
234
+          font-weight: bold;
235
+          color: #000;
236
+          line-height: 0.3rem;
237
+          display: block;
238
+          text-indent: 0.15rem;
239
+        }
240
+        > ul {
241
+          padding: 0 0.15rem;
242
+          position: relative;
243
+          overflow: hidden;
244
+          &.ScrollList {
245
+            max-height: 2.5rem;
246
+            overflow-y: scroll;
247
+            -webkit-overflow-scrolling: touch;
248
+          }
249
+          > li {
250
+            align-items: center;
251
+            border-top: 0.01rem solid #f7f7f7;
252
+            &:first-child {
253
+              border: none;
254
+            }
255
+            > div {
256
+              position: relative;
257
+              > div {
258
+                width: 100%;
259
+                position: relative;
260
+                > span {
261
+                  display: block;
262
+                  white-space: nowrap;
263
+                  overflow: hidden;
264
+                  text-overflow: ellipsis;
265
+                  font-size: 0.14rem;
266
+                  color: #333;
267
+                  line-height: 0.42rem;
268
+                }
269
+              }
270
+            }
271
+            > span {
272
+              font-size: 0.14rem;
273
+              color: #999;
274
+              margin-right: 0.1rem;
275
+            }
276
+            > i {
277
+              font-size: 0.2rem;
278
+              color: #999;
279
+              &.active {
280
+                color: #ff5200;
281
+              }
282
+            }
283
+          }
284
+        }
285
+        > .Bottom {
286
+          border-top: 0.01rem solid #f7f7f7;
287
+          > a {
288
+            font-size: 0.16rem;
289
+            line-height: 0.42rem;
290
+            text-align: center;
291
+            border-left: 0.01rem solid #f7f7f7;
292
+            &.active {
293
+              color: #ff5200;
294
+            }
295
+            &:first-child {
296
+              border: none;
297
+            }
298
+          }
299
+        }
300
+      }
301
+    }
302
+  }
303
+}

+ 4
- 0
src/router/index.js 查看文件

29
             path: '/index/LanQiu', // 篮球
29
             path: '/index/LanQiu', // 篮球
30
             name: 'LanQiu',
30
             name: 'LanQiu',
31
             component: resolve => (require(['@/pages/index/LanQiu'], resolve))
31
             component: resolve => (require(['@/pages/index/LanQiu'], resolve))
32
+          }, {
33
+            path: '/index/LanQiuDingDan', // 篮球订单
34
+            name: 'LanQiuDingDan',
35
+            component: resolve => (require(['@/pages/index/LanQiuDingDan'], resolve))
32
           }, {
36
           }, {
33
             path: '/index/DaLeTou', // 大乐透
37
             path: '/index/DaLeTou', // 大乐透
34
             name: 'DaLeTou',
38
             name: 'DaLeTou',

+ 20
- 0
src/store/user/index.js 查看文件

5
   namespaced: true,
5
   namespaced: true,
6
   state: {
6
   state: {
7
     StoreList: [], // 店铺列表
7
     StoreList: [], // 店铺列表
8
+    LanQiuCart: [], // 篮球购物车
9
+    ZuQiuCart: [], // 足球购物车
8
     PaiLie3Cart: [], // 排列3购物车
10
     PaiLie3Cart: [], // 排列3购物车
9
     PaiLie5Cart: [], // 排列5购物车
11
     PaiLie5Cart: [], // 排列5购物车
10
     DaLeTouCart: [], // 大乐透购物车
12
     DaLeTouCart: [], // 大乐透购物车
76
     EmptyPaiLie5Cart (state, data) { // 清空排列5购物车
78
     EmptyPaiLie5Cart (state, data) { // 清空排列5购物车
77
       state.PaiLie5Cart = []
79
       state.PaiLie5Cart = []
78
     },
80
     },
81
+    AddLanQiuCart (state, data) { // 新增篮球购物车
82
+      state.LanQiuCart.unshift(data)
83
+    },
84
+    DeleteLanQiuCart (state, data) { // 删除篮球购物车
85
+      state.LanQiuCart.splice(data, 1)
86
+    },
87
+    EmptyLanQiuCart (state, data) { // 清空篮球购物车
88
+      state.LanQiuCart = []
89
+    },
90
+    AddZuQiuCart (state, data) { // 新增足球购物车
91
+      state.ZuQiuCart.unshift(data)
92
+    },
93
+    DeleteZuQiuCart (state, data) { // 删除足球购物车
94
+      state.ZuQiuCart.splice(data, 1)
95
+    },
96
+    EmptyZuQiuCart (state, data) { // 清空足球购物车
97
+      state.ZuQiuCart = []
98
+    },
79
     UpdateStoreList (state, data) { // 更新店铺列表
99
     UpdateStoreList (state, data) { // 更新店铺列表
80
       let Arr = data.nearest || []
100
       let Arr = data.nearest || []
81
       state.StoreList = []
101
       state.StoreList = []