张延森 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,6 +6,8 @@
6 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 7
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8 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 11
     <title>助力砍价活动</title>
10 12
   </head>
11 13
   <body>

+ 10
- 0
public/vconsole.min.js
文件差异内容过多而无法显示
查看文件


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

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

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

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