XuChengxiang il y a 4 ans
Parent
révision
ad8d219613

+ 3
- 3
src/pages/WoDe/WoDeCaiPiao/index.vue Voir le fichier

@@ -8,12 +8,12 @@
8 8
               <router-link tag="li" :to="{ name: 'CaiPiaoXiangQing', query: { id: item.bettingId } }" v-for="(item, index) in UserBettingList" :key="index">
9 9
                 <div class="Time">
10 10
                   <span>下单时间:{{ToolClass.FormatDate(item.createDate)}}</span>
11
-                  <span>{{item.issueNo}}期</span>
11
+                  <span v-if="item.lotteryId !== 'football' && item.lotteryId !== 'basketball'">{{item.issueNo}}期</span>
12 12
                 </div>
13 13
                 <div class="flex-h">
14 14
                   <div class="Icon">
15
-                    <img v-if="item.lotteryId === 'zq'" src="../../../assets/img/icon3.png" class="centerLabel cover" alt="">
16
-                    <img v-if="item.lotteryId === 'lq'" src="../../../assets/img/icon6.png" class="centerLabel cover" alt="">
15
+                    <img v-if="item.lotteryId === 'football'" src="../../../assets/img/icon3.png" class="centerLabel cover" alt="">
16
+                    <img v-if="item.lotteryId === 'basketball'" src="../../../assets/img/icon6.png" class="centerLabel cover" alt="">
17 17
                     <img v-if="item.lotteryId === 'lottery'" src="../../../assets/img/icon4.png" class="centerLabel cover" alt="">
18 18
                     <img v-if="item.lotteryId === 'double-color'" src="../../../assets/img/icon5.png" class="centerLabel cover" alt="">
19 19
                     <img v-if="item.lotteryId === 'p3'" src="../../../assets/img/icon7.png" class="centerLabel cover" alt="">

+ 5
- 1
src/pages/index/ShouYe/index.vue Voir le fichier

@@ -68,7 +68,7 @@
68 68
 import MainPageContainer from '../../../components/common/MainPageContainer'
69 69
 import Banner from '../../../components/index/Banner'
70 70
 import { mapState, mapActions, createNamespacedHelpers } from 'vuex'
71
-const { mapState: mapIndexState, mapActions: mapIndexActions } = createNamespacedHelpers('index')
71
+const { mapState: mapIndexState, mapActions: mapIndexActions, mapMutations: mapIndexMutations } = createNamespacedHelpers('index')
72 72
 export default {
73 73
   name: 'index',
74 74
   data () {
@@ -103,7 +103,11 @@ export default {
103 103
       'GetLotteryRes',
104 104
       'GetNewstLotteryRes'
105 105
     ]),
106
+    ...mapIndexMutations([
107
+      'EmptyBanner'
108
+    ]),
106 109
     Init (done = () => { }) { // 初始化
110
+      this.EmptyBanner()
107 111
       this.GetBanner({ queryData: { pageNum: 1, pageSize: 10, status: 1, adType: 'app-index-banner' } }).then(() => { // 获取banner
108 112
         this.GetNewstLotteryRes().then(() => { // 获取最新数字彩开奖结果列表
109 113
           done()

+ 3
- 0
src/store/index/index.js Voir le fichier

@@ -14,6 +14,9 @@ export default {
14 14
     UpdateBanner (state, data) { // 更新banner
15 15
       state.Banner = data.records || []
16 16
     },
17
+    EmptyBanner (state) { // 清空banner
18
+      state.Banner = []
19
+    },
17 20
     UpdateLotteryRes (state, data) { // 更新数字彩开奖结果列表
18 21
       // state.LotteryRes = data.records || []
19 22
       let Arr = data.records || []