unnamed.patch 1.92 KB
Index: src/pages/luckyWheel/luckyWheel.vue
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/pages/luckyWheel/luckyWheel.vue	(revision d479abe4293991a385e94294b21a819306733fc1)
+++ src/pages/luckyWheel/luckyWheel.vue	(revision )
@@ -100,7 +100,8 @@
                 rotate_transition_pointer: "transform 12s ease-in-out", //初始化指针过度属性控制
                 click_flag: true, //是否可以旋转抽奖
                 index: 0,
-                resultsInfo:null// 中奖信息
+                resultsInfo:null,// 中奖信息
+                activeId:0 // 活动Id
             };
         },
         created() {
@@ -349,6 +350,7 @@
                     path:'/drawRecord',
                     query:{
                         uid: this.getStore("uid") || 0,
+                        activeId:this.activeId
                     }
                 })
             }
Index: src/pages/drawRecord/drawRecord.vue
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/pages/drawRecord/drawRecord.vue	(revision d479abe4293991a385e94294b21a819306733fc1)
+++ src/pages/drawRecord/drawRecord.vue	(revision )
@@ -48,6 +48,10 @@
     created(){
         this.getmyLuckDraw(this.page)
     },
+      mounted(){
+        let activeId = this.$route.query.activeId
+        this.getShareData(activeId)
+      },
     methods: {
         // 抽奖记录
         /**
@@ -115,6 +119,14 @@
             this.loading = true;
             this.page++
             this.getmyLuckDraw(this.page)
+        },
+        // 获取并设置分享参数
+        getShareData(activeId){
+            this.$parent.getShareData({
+                type: 14,
+                id: activeId,
+                url: ""
+            });
         }
     }
   }