panhui 4 éve
szülő
commit
7d61ad0a8f

+ 6 - 2
src/main/comos/src/router/index.js

@@ -16,7 +16,7 @@ function jsapiSign() {
                 .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.href })
                 .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.href })
                 .then(res => {
                 .then(res => {
                     wx.config({
                     wx.config({
-                        debug: false,
+                        debug: true,
                         appId: res.appId,
                         appId: res.appId,
                         timestamp: res.timestamp,
                         timestamp: res.timestamp,
                         nonceStr: res.nonceStr,
                         nonceStr: res.nonceStr,
@@ -38,7 +38,11 @@ function jsapiSign() {
                             title: 'Cosmos Art',
                             title: 'Cosmos Art',
                             desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                             desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                             link: location.origin + '/cosmos',
                             link: location.origin + '/cosmos',
-                            imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/thumb_image/6761642385045_.pic.jpg'
+                            imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/thumb_image/6761642385045_.pic.jpg',
+                            success: function () {
+                                // 设置成功
+                                console.log('7273');
+                            }
                         });
                         });
                         wx.updateTimelineShareData({
                         wx.updateTimelineShareData({
                             title: 'Cosmos Art',
                             title: 'Cosmos Art',

+ 2 - 2
src/main/comos/src/views/asset/Detail.vue

@@ -563,13 +563,13 @@ export default {
                     title: 'Cosmos Art - ' + res.name,
                     title: 'Cosmos Art - ' + res.name,
                     desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                     desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                     link: location.origin + '/cosmos/assetDetail?id=' + res.id,
                     link: location.origin + '/cosmos/assetDetail?id=' + res.id,
-                    imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/thumb_image/6761642385045_.pic.jpg'
+                    imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                 });
                 });
                 wx.updateTimelineShareData({
                 wx.updateTimelineShareData({
                     title: 'Cosmos Art - ' + res.name,
                     title: 'Cosmos Art - ' + res.name,
                     desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                     desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                     link: location.origin + '/cosmos/assetDetail?id=' + res.id,
                     link: location.origin + '/cosmos/assetDetail?id=' + res.id,
-                    imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/thumb_image/6761642385045_.pic.jpg'
+                    imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                 });
                 });
                 this.tokenId = this.info.tokenId;
                 this.tokenId = this.info.tokenId;
                 if (res.privileges) {
                 if (res.privileges) {

+ 2 - 2
src/main/comos/src/views/product/Detail.vue

@@ -369,13 +369,13 @@ export default {
                             title: 'Cosmos Art - ' + res.name,
                             title: 'Cosmos Art - ' + res.name,
                             desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                             desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                             link: location.origin + '/cosmos/productDetail?id=' + res.id,
                             link: location.origin + '/cosmos/productDetail?id=' + res.id,
-                            imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/thumb_image/6761642385045_.pic.jpg'
+                            imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                         });
                         });
                         wx.updateTimelineShareData({
                         wx.updateTimelineShareData({
                             title: 'Cosmos Art - ' + res.name,
                             title: 'Cosmos Art - ' + res.name,
                             desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                             desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
                             link: location.origin + '/cosmos/productDetail?id=' + res.id,
                             link: location.origin + '/cosmos/productDetail?id=' + res.id,
-                            imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/thumb_image/6761642385045_.pic.jpg'
+                            imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                         });
                         });
                         console.log(wx);
                         console.log(wx);
                     }
                     }