Browse Source

增加分享

jwyu 3 năm trước cách đây
mục cha
commit
ff941f28e0
2 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 6 0
      pages-activity/detail.vue
  2. 6 0
      pages/activity/activity.vue

+ 6 - 0
pages-activity/detail.vue

@@ -159,6 +159,12 @@ export default {
         this.id = options.id;
         this.getDetail();
     },
+    onShareAppMessage() {
+        return {
+            title: this.info.activityTypeName,
+            path: ''
+        }
+    },
     methods: {
         async getDetail() {
             const res = await apiActivityDetail({ activity_id: Number(this.id) });

+ 6 - 0
pages/activity/activity.vue

@@ -167,6 +167,12 @@ export default {
 		uni.$off('activityDetailSetRemind')
         uni.$off('activityDetailSetRegister')
 	},
+    onShareAppMessage(res) {
+        return {
+            title: '弘则研报',
+            path: ''
+        }
+    },
 
     onPullDownRefresh() {
         this.refreshPage()