wangfei 6 years ago
parent
commit
893bced024
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      pages/ActivityDetail/index.js

+ 4
- 2
pages/ActivityDetail/index.js View File

17
     }
17
     }
18
   },
18
   },
19
   onLoad(e) {
19
   onLoad(e) {
20
+    console.log(e)
20
     this.setData({
21
     this.setData({
21
       Id: e.id,
22
       Id: e.id,
22
       Type: e.type - 0,
23
       Type: e.type - 0,
55
       CreateDate: '',
56
       CreateDate: '',
56
       Content: '',
57
       Content: '',
57
       BeginDate: '',
58
       BeginDate: '',
58
-      EndDate: ''
59
+      EndDate: '',
60
+      ActivityId: '',
59
     },
61
     },
60
     CommentList: [],
62
     CommentList: [],
61
     CurrentImgList: []
63
     CurrentImgList: []
319
   onShareAppMessage: function () {
321
   onShareAppMessage: function () {
320
     return {
322
     return {
321
       title: this.data.ActivityDetail.Title,
323
       title: this.data.ActivityDetail.Title,
322
-      path: '/pages/ActivityDetail/index?id=' + this.data.ActivityDetail.ActivityId,
324
+      path: '/pages/ActivityDetail/index?id=' + this.data.ActivityDetail.ActivityId + '&type=2',
323
       imageUrl: 'https://whole-estate.oss-cn-beijing.aliyuncs.com/notebaike-1.jpg'
325
       imageUrl: 'https://whole-estate.oss-cn-beijing.aliyuncs.com/notebaike-1.jpg'
324
     }
326
     }
325
   }
327
   }