Kaynağa Gözat

修复安全漏洞

任一存 2 yıl önce
ebeveyn
işleme
4da63d92f4
6 değiştirilmiş dosya ile 14284 ekleme ve 608 silme
  1. BIN
      dist.zip
  2. 1 1
      index.html
  3. 1 1
      local.html
  4. 14228 551
      package-lock.json
  5. 53 54
      src/App.vue
  6. 1 1
      src/pages/layout/aside/index.vue

BIN
dist.zip


+ 1 - 1
index.html

@@ -8,7 +8,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
     <link rel="apple-touch-icon" sizes="180x180" href="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/favicon.png">
     <link rel="icon" type="image/png" href="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/favicon.png" sizes="192x192">
-    <title>珠海国家高新区-不可移动文物一张图</title>
+    <title>珠海高新区-不可移动文物一张图</title>
   </head>
   <body>
     <script src="https://webapi.amap.com/maps?v=1.4.10&key=e661b00bdf2c44cccf71ef6070ef41b8"></script>

+ 1 - 1
local.html

@@ -8,7 +8,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
     <link rel="apple-touch-icon" sizes="180x180" href="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/favicon.png">
     <link rel="icon" type="image/png" href="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/favicon.png" sizes="192x192">
-    <title>珠海国家高新区-不可移动文物一张图</title>
+    <title>珠海高新区-不可移动文物一张图</title>
   </head>
   <body>
     <!-- <script src="https://webapi.amap.com/maps?v=1.4.10&key=e661b00bdf2c44cccf71ef6070ef41b8"></script>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 14228 - 551
package-lock.json


+ 53 - 54
src/App.vue

@@ -18,64 +18,63 @@ export default {
     }
   },
   methods: {
-    wxShare () {
-      let url = location.href.split('#')[0]
-      jsonp('https://www.4dage.com/wechat/jssdk/share/?uri=' +
-  window.escape(url) + '&name=4dageshare', 'success_jsonp', function (err, data) {
-        if (err) {
-          console.err(err)
-        } else {
-          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']
-          })
-        }
-        wx.ready(function () {
-          var shareData = {
-            title: '珠海国家高新区-不可移动文物一张图', //  标题
-            desc: '掌间遍览115处文物', //  描述
-            link: window.location.href, //  分享的URL,必须和当前打开的网页的URL是一样的
-            imgUrl: 'http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/share.jpg', //  缩略图地址
-            success: function () {
+    // wxShare () {
+    //   let url = location.href.split('#')[0]
+    //   jsonp('https://www.4dage.com/wechat/jssdk/share/?uri=' + window.escape(url) + '&name=4dageshare', 'success_jsonp', function (err, data) {
+    //     if (err) {
+    //       console.err(err)
+    //     } else {
+    //       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']
+    //       })
+    //     }
+    //     wx.ready(function () {
+    //       var shareData = {
+    //         title: '珠海高新区-不可移动文物一张图', //  标题
+    //         desc: '掌间遍览115处文物', //  描述
+    //         link: window.location.href, //  分享的URL,必须和当前打开的网页的URL是一样的
+    //         imgUrl: 'http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/share.jpg', //  缩略图地址
+    //         success: function () {
 
-            },
-            cancel: function () {
+    //         },
+    //         cancel: function () {
 
-            }
-          }
-          wx.onMenuShareAppMessage(shareData)
-          wx.onMenuShareTimeline(shareData)
-          wx.onMenuShareQQ(shareData)
-          wx.onMenuShareQZone(shareData)
-        })
-      })
-    }
+    //         }
+    //       }
+    //       wx.onMenuShareAppMessage(shareData)
+    //       wx.onMenuShareTimeline(shareData)
+    //       wx.onMenuShareQQ(shareData)
+    //       wx.onMenuShareQZone(shareData)
+    //     })
+    //   })
+    // }
   },
   mounted () {
-    if (!this.$isLocal) {
-      this.wxShare()
-    }
+    // if (!this.$isLocal) {
+    //   this.wxShare()
+    // }
   }
 }
 </script>

+ 1 - 1
src/pages/layout/aside/index.vue

@@ -13,7 +13,7 @@
     <div class="right-layout" :class="{show: show, mobile: ismobile}">
       <div class="info" @touchmove.prevent @click="mainHandle">
         <i class="iconfont icon-guojiagaoxinqu"></i>
-        <h1>珠海国家高新区</h1>
+        <h1>珠海高新区</h1>
         <p>不可移动文物一张图</p>
       </div>