|
@@ -20,7 +20,7 @@
|
20
|
20
|
<!-- 胜负 -->
|
21
|
21
|
<div slot="SwiperItem-1" class="Item">
|
22
|
22
|
<ul>
|
23
|
|
- <li v-for="(item, index) in NewstSportsRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
|
23
|
+ <li v-for="(item, index) in LotterySportRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
24
|
24
|
<div class="From">
|
25
|
25
|
<span>{{item.leagueName}}</span>
|
26
|
26
|
<span>{{item.matchWeek}}</span>
|
|
@@ -47,7 +47,7 @@
|
47
|
47
|
<!-- 让分胜负 -->
|
48
|
48
|
<div slot="SwiperItem-2" class="Item">
|
49
|
49
|
<ul>
|
50
|
|
- <li v-for="(item, index) in NewstSportsRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
|
50
|
+ <li v-for="(item, index) in LotterySportRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
51
|
51
|
<div class="From">
|
52
|
52
|
<span>{{item.leagueName}}</span>
|
53
|
53
|
<span>{{item.matchWeek}}</span>
|
|
@@ -74,7 +74,7 @@
|
74
|
74
|
<!-- 胜分差 -->
|
75
|
75
|
<div slot="SwiperItem-3" class="Item">
|
76
|
76
|
<ul>
|
77
|
|
- <li v-for="(item, index) in NewstSportsRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
|
77
|
+ <li v-for="(item, index) in LotterySportRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
78
|
78
|
<div class="From">
|
79
|
79
|
<span>{{item.leagueName}}</span>
|
80
|
80
|
<span>{{item.matchWeek}}</span>
|
|
@@ -101,7 +101,7 @@
|
101
|
101
|
<!-- 大小分 -->
|
102
|
102
|
<div slot="SwiperItem-4" class="Item">
|
103
|
103
|
<ul>
|
104
|
|
- <li v-for="(item, index) in NewstSportsRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
|
104
|
+ <li v-for="(item, index) in LotterySportRes" :key="index" v-if="item.lotteryId === 'basketball'" class="flex-h">
|
105
|
105
|
<div class="From">
|
106
|
106
|
<span>{{item.leagueName}}</span>
|
107
|
107
|
<span>{{item.matchWeek}}</span>
|
|
@@ -138,7 +138,7 @@
|
138
|
138
|
import MainPageContainer from '../../../components/common/MainPageContainer'
|
139
|
139
|
import { createNamespacedHelpers } from 'vuex'
|
140
|
140
|
import TabSwiper from '../../../components/common/TabSwiper'
|
141
|
|
-const { mapState: mapIndexState, mapActions: mapIndexActions } = createNamespacedHelpers('index')
|
|
141
|
+const { mapState: mapIndexState, mapActions: mapIndexActions, mapMutations: mapIndexMutations } = createNamespacedHelpers('index')
|
142
|
142
|
export default {
|
143
|
143
|
name: '',
|
144
|
144
|
data () {
|
|
@@ -154,7 +154,7 @@ export default {
|
154
|
154
|
},
|
155
|
155
|
computed: {
|
156
|
156
|
...mapIndexState({
|
157
|
|
- NewstSportsRes: x => x.NewstSportsRes // 最新竞彩开奖结果列表
|
|
157
|
+ LotterySportRes: x => x.LotterySportRes // 最新竞彩开奖结果列表
|
158
|
158
|
})
|
159
|
159
|
},
|
160
|
160
|
components: {
|
|
@@ -170,11 +170,15 @@ export default {
|
170
|
170
|
},
|
171
|
171
|
methods: {
|
172
|
172
|
...mapIndexActions([
|
173
|
|
- 'GetNewstSportsRes'
|
|
173
|
+ 'GetLotterySportRes'
|
|
174
|
+ ]),
|
|
175
|
+ ...mapIndexMutations([
|
|
176
|
+ 'EmptyLotterySportRes'
|
174
|
177
|
]),
|
175
|
178
|
Init () {
|
176
|
|
- this.GetNewstSportsRes().then(() => {
|
177
|
|
- this.NewstSportsRes.map((item) => {
|
|
179
|
+ this.EmptyLotterySportRes()
|
|
180
|
+ this.GetLotterySportRes({ queryData: { lotteryId: 'basketball', pageNum: 1, pageSize: 100 } }).then(() => {
|
|
181
|
+ this.LotterySportRes.map((item) => {
|
178
|
182
|
if (item.lotteryId === 'basketball') {
|
179
|
183
|
this.NewstRes = { ...item }
|
180
|
184
|
}
|