panhui 4 years ago
parent
commit
0f96d86e5b

+ 11 - 0
src/main/nine-space/src/views/asset/Detail.vue

@@ -571,6 +571,17 @@ export default {
             });
             this.$http.get('/asset/get/' + this.$route.query.id).then(res => {
                 this.info = res;
+                wx.updateAppMessageShareData({
+                    title: '第九空间-' + res.name,
+                    desc: '全球首个基于区块链的游戏资产集换中心',
+                    link: location.origin + '/9th/assetDetail?id=' + res.id,
+                    imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
+                });
+                wx.updateTimelineShareData({
+                    title: '第九空间-' + res.name,
+                    link: location.origin + '/9th/assetDetail?id=' + res.id,
+                    imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
+                });
                 this.tokenId = this.info.tokenId;
                 if (res.privileges) {
                     this.init2 = res.privileges.find(item => {

+ 11 - 0
src/main/nine-space/src/views/product/Detail.vue

@@ -329,6 +329,17 @@ export default {
                 .then(res => {
                     console.log(res);
                     this.info = res;
+                    wx.updateAppMessageShareData({
+                        title: '第九空间-' + res.name,
+                        desc: '全球首个基于区块链的游戏资产集换中心',
+                        link: location.origin + '/9th/productDetail?id=' + res.id,
+                        imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
+                    });
+                    wx.updateTimelineShareData({
+                        title: '第九空间-' + res.name,
+                        link: location.origin + '/9th/productDetail?id=' + res.id,
+                        imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
+                    });
                     if (res.assetId) {
                         this.$http.get('/asset/get/' + res.assetId).then(res => {
                             console.log(res);