张延森 5 年之前
父節點
當前提交
7c440ce017
共有 4 個文件被更改,包括 19 次插入3 次删除
  1. 2
    0
      public/index.html
  2. 10
    0
      public/vconsole.min.js
  3. 1
    1
      src/main.js
  4. 6
    2
      src/views/supportDetail/supportDetail.vue

+ 2
- 0
public/index.html 查看文件

6
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" charset="utf-8" />
6
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" charset="utf-8" />
7
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
7
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
     <link rel="stylesheet" href="//at.alicdn.com/t/font_957047_8k5bffh7y09.css">
8
     <link rel="stylesheet" href="//at.alicdn.com/t/font_957047_8k5bffh7y09.css">
9
+    <!-- <script src="./vconsole.min.js"></script>
10
+    <script>new VConsole();</script> -->
9
     <title>助力砍价活动</title>
11
     <title>助力砍价活动</title>
10
   </head>
12
   </head>
11
   <body>
13
   <body>

+ 10
- 0
public/vconsole.min.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
src/main.js 查看文件

12
 Vue.prototype.toolClass = toolClass
12
 Vue.prototype.toolClass = toolClass
13
 Vue.config.productionTip = false
13
 Vue.config.productionTip = false
14
 
14
 
15
-new Vue({
15
+window.__vue = new Vue({
16
   router,
16
   router,
17
   store,
17
   store,
18
   render: h => h(App)
18
   render: h => h(App)

+ 6
- 2
src/views/supportDetail/supportDetail.vue 查看文件

158
       if (this.$route.params.recordid == 0) {
158
       if (this.$route.params.recordid == 0) {
159
         this.recordid = this.game.record.RecordId
159
         this.recordid = this.game.record.RecordId
160
         this.getRecord(this.recordid).then(() => {
160
         this.getRecord(this.recordid).then(() => {
161
-          this.share(this.recordid)
161
+          // this.share(this.recordid)
162
         })
162
         })
163
       } else {
163
       } else {
164
         this.recordid = this.$route.params.recordid
164
         this.recordid = this.$route.params.recordid
165
         this.getRecord(this.recordid).then(() => {
165
         this.getRecord(this.recordid).then(() => {
166
-          this.share(this.recordid)
166
+          // this.share(this.recordid)
167
         })
167
         })
168
       }
168
       }
169
+      this.share(this.recordid)
169
     })
170
     })
170
     setInterval(() => {
171
     setInterval(() => {
171
       this.time = new Date().getSeconds()
172
       this.time = new Date().getSeconds()
201
     },
202
     },
202
     share (recordid) {
203
     share (recordid) {
203
       let link = `${window.location.origin}${window.location.pathname}#/supportDetail/other/${recordid}`
204
       let link = `${window.location.origin}${window.location.pathname}#/supportDetail/other/${recordid}`
205
+
206
+      console.log('---share--link--->', link)
207
+
204
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
208
       wxsdk({ url: encodeURIComponent(window.location.href.split('#')[0]) }, {
205
         title: '热浪席卷盛夏,好友助力砍价',
209
         title: '热浪席卷盛夏,好友助力砍价',
206
         desc: '悦见山星级泳池即将开放,18.8元抢鲜泳池体验+指定饮品~',
210
         desc: '悦见山星级泳池即将开放,18.8元抢鲜泳池体验+指定饮品~',