panhui 3 年 前
コミット
20eec8d1c4
3 ファイル変更10 行追加9 行削除
  1. 6 5
      src/router/index.js
  2. 2 2
      src/views/asset/Detail.vue
  3. 2 2
      src/views/product/Detail.vue

+ 6 - 5
src/router/index.js

@@ -6,7 +6,7 @@ import http from '../plugins/http';
 
 jsapiSign();
 function jsapiSign() {
-    return;
+    // return;
     // eslint-disable-next-line no-unreachable
     setTimeout(() => {
         console.log(/micromessenger/i.test(navigator.userAgent))
@@ -16,7 +16,7 @@ function jsapiSign() {
             }
             let isIOS = /iphone|ipad/i.test(navigator.userAgent);
             http.http
-                .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.href })
+                .get('/wx/jsapiSign', { url: isIOS ? store.state.firstUrl : location.origin + location.pathname })
                 .then(res => {
                     wx.config({
                         debug: false,
@@ -38,14 +38,15 @@ function jsapiSign() {
                     });
                     wx.ready(function () {
                         wx.updateAppMessageShareData({
+                            title: 'Raex绿洲-全球首个基于区块链的游戏资产集换中心',
                             desc: '全球首个基于区块链的游戏资产集换中心',
                             link: location.origin + '/9th',
-                            imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/nft/2021-11-05-15-58-30YwqLzMjy.jpg'
+                            imgUrl: 'https://cdn.raex.vip/nft/2023-02-03-15-26-31pSjRXlXn.png'
                         });
                         wx.updateTimelineShareData({
-                            title: '绿洲宇宙-全球首个基于区块链的游戏资产集换中心',
+                            title: 'Raex绿洲-全球首个基于区块链的游戏资产集换中心',
                             link: location.origin + '/9th',
-                            imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/nft/2021-11-05-15-58-30YwqLzMjy.jpg'
+                            imgUrl: 'https://cdn.raex.vip/nft/2023-02-03-15-26-31pSjRXlXn.png'
                         });
                     });
                 })

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

@@ -894,13 +894,13 @@ export default {
                     });
                 }
                 wx.updateAppMessageShareData({
-                    title: '绿洲宇宙-' + res.name,
+                    title: 'Raex绿洲-' + res.name,
                     desc: '全球首个基于区块链的游戏资产集换中心',
                     link: location.origin + '/9th/assetDetail?id=' + res.id,
                     imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
                 });
                 wx.updateTimelineShareData({
-                    title: '绿洲宇宙-' + res.name,
+                    title: 'Raex绿洲-' + res.name,
                     link: location.origin + '/9th/assetDetail?id=' + res.id,
                     imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
                 });

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

@@ -705,13 +705,13 @@ export default {
                     }
                     if (this.inWeixin) {
                         wx.updateAppMessageShareData({
-                            title: '绿洲宇宙-' + res.name,
+                            title: 'Raex绿洲-' + res.name,
                             desc: '全球首个基于区块链的游戏资产集换中心',
                             link: location.origin + '/9th/productDetail/' + res.id,
                             imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                         });
                         wx.updateTimelineShareData({
-                            title: '绿洲宇宙-' + res.name,
+                            title: 'Raex绿洲-' + res.name,
                             link: location.origin + '/9th/productDetail/' + res.id,
                             imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                         });