shaogen1995 1 yıl önce
ebeveyn
işleme
2622667297

+ 65 - 0
scene/public/index.html

@@ -62,6 +62,71 @@
     <script src="<%= VUE_APP_STATIC_DIR %>/js/lib/OBJLoader.js"></script>
     <!-- <script src="<%= VUE_APP_STATIC_DIR %>/js/CAD/bundle.js"></script> -->
     <script src="<%= VUE_APP_STATIC_DIR %>/js/loadCAD.js"></script>
+
+
+    <!-- 微信分享 -->
+    <!-- <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
+    <script>
+        $.ajax({
+            url: 'https://www.4dage.com/wechat/jssdk/share/',
+            type: "post",
+            data: {
+                'uri': location.href.split('#')[0], //当前页面地址
+                'name': "四维6号" //哪个公众号,对应上方的名称
+            },
+            dataType: "jsonp",
+            jsonpCallback: "success_jsonp",
+            success: function (data, textStatus) {
+                wx.config({
+                    debug: false,
+                    appId: data.appId,
+                    timestamp: data.timestamp,
+                    nonceStr: data.nonceStr,
+                    signature: data.signature,
+                    jsApiList: ['checkJsApi', 'onMenuShareTimeline',
+                        'onMenuShareAppMessage', 'onMenuShareQQ',
+                        'onMenuShareWeibo', 'hideMenuItems',
+                        'showMenuItems', 'hideAllNonBaseMenuItem',
+                        'showAllNonBaseMenuItem', 'translateVoice',
+                        'startRecord', 'stopRecord', 'onRecordEnd',
+                        'playVoice', 'pauseVoice', 'stopVoice',
+                        'uploadVoice', 'downloadVoice', 'chooseImage',
+                        'previewImage', 'uploadImage', 'downloadImage',
+                        'getNetworkType', 'openLocation', 'getLocation',
+                        'hideOptionMenu', 'showOptionMenu', 'closeWindow',
+                        'scanQRCode', 'chooseWXPay',
+                        'openProductSpecificView', 'addCard', 'chooseCard',
+                        'openCard'
+                    ]
+                });
+
+                wx.ready(function () {
+                    wx.onMenuShareTimeline({
+                        title: '雷锋纪念馆',
+                        desc: '欢迎参观雷锋纪念馆',
+                        link: location.href,
+                        imgUrl: `${location.href.split('#')[0]}/leifengWeiXin.jpg`,
+                        success: function () { },
+                        cancel: function () { },
+                    });
+                    wx.onMenuShareAppMessage({
+                        title: '雷锋纪念馆',
+                        desc: '欢迎参观雷锋纪念馆',
+                        link: location.href,
+                        imgUrl: `${location.href.split('#')[0]}/leifengWeiXin.jpg`,
+                        type: "",
+                        dataUrl: "",
+                        success: function () { },
+                        cancel: function () { },
+                    });
+                    wx.error(function () { });
+                });
+            },
+            error: function (XMLHttpRequest, textStatus, errorThrown) {
+                console.log("jsonp.error:" + textStatus);
+            }
+        });
+    </script> -->
 </body>
 
 </html>

+ 1 - 1
scene/src/components/welcome/index.vue

@@ -3,7 +3,7 @@
     <div class="mobileBg" v-if="isMobile"></div>
     <iframe
       v-else
-      src="https://zzbbh.4dage.com/SWKK/show.html?id=WK1676144701759062016&vr=fd720_7kWYgznaO"
+      src="https://zzbbh.4dage.com/SWKK/show.html?id=WK1717474784264114176&vr=fd720_Y8cO1d7Fu&lang=zh"
       frameborder="0"
     ></iframe>
     <div class="btn" @click.stop="$emit('close')">