Parcourir la source

活动跳转整理

sunlupeng il y a 1 an
Parent
commit
08194d15fe

+ 2 - 2
src/views/HomeView/AnswerGame/QiXiAnswerGame.vue

@@ -430,7 +430,7 @@ export default{
     cursor: pointer;
     position: absolute;
     width: 200px;
-    bottom: 10%;
+    bottom: 17%;
     left: 0;
     right: 0;
     margin:auto;
@@ -439,7 +439,7 @@ export default{
     cursor: pointer;
     position: absolute;
     width: 200px;
-    bottom: 2%;
+    bottom: 8%;
     left: 0;
     right: 0;
     margin:auto;

+ 50 - 42
src/views/HomeView/FestiveEvents.vue

@@ -78,59 +78,67 @@ export default {
             console.log(val);
             //节日游戏
             if(val.type=='1'){
-                this.$router.push({
-                    path: '/home/festiveEvents/game',
-                    query: {
-                        url: val.activityUrl,
-                        actId:val.actId
-                    }
-                });
+                 //元宵节答题
+                if(val.actId==13){
+                    this.$router.push({
+                        path: '/home/festiveEvents/lanternFestival',
+                        query: {
+                            actId:val.actId
+                        }
+                    });
+                }
+                //七夕节答题
+                else if(val.actId==20){
+                    this.$router.push({
+                        path: '/home/festiveEvents/qiXiGame',
+                        query: {
+                            actId:val.actId
+                        }
+                    });
+                }
+                //每周竞技
+                else{
+                    this.$router.push({
+                        path: '/home/festiveEvents/game',
+                        query: {
+                            url: val.activityUrl,
+                            actId:val.actId
+                        }
+                    });
+                }
             }
             //答题
             if(val.type=='2'){
+                //每日答题
                 this.$router.push({
                     path: '/home/festiveEvents/answerGame',
                     query: {
                         actId:val.actId
                     }
                 });
-            }
-             //元宵节答题
-             if(val.actId==13){
-                this.$router.push({
-                    path: '/home/festiveEvents/lanternFestival',
-                    query: {
-                        actId:val.actId
-                    }
-                });
-            }
-            //七夕节答题
-            if(val.actId==20){
-                this.$router.push({
-                    path: '/home/festiveEvents/qiXiGame',
-                    query: {
-                        actId:val.actId
-                    }
-                });
             }
             //抽奖
-            if(val.type=='3'&&val.actId!=12){
-                this.$router.push({
-                    path: '/home/festiveEvents/drawCarouselGame',
-                    query: {
-                        actId:val.actId
-                    }
-                });
-            }
-            //春节抽签
-            if(val.actId==12){
-                this.$router.push({
-                    path: '/home/festiveEvents/game',
-                    query: {
-                        url: val.activityUrl,
-                        actId:val.actId
-                    }
-                });
+            if(val.type=='3'){
+                //春节抽签
+                if(val.actId==12){
+                    this.$router.push({
+                        path: '/home/festiveEvents/game',
+                        query: {
+                            url: val.activityUrl,
+                            actId:val.actId
+                        }
+                    });
+                }
+                //每月抽奖
+                else{
+                    this.$router.push({
+                        path: '/home/festiveEvents/drawCarouselGame',
+                        query: {
+                            actId:val.actId
+                        }
+                    });
+                }
+                
             }
         }
     }