Commit 297a5f01a75feee4898ae8325a2af911f610ae9e
1 parent
a3c40387
设置分享参数
Showing
2 changed files
with
6 additions
and
25 deletions
src/pages/goodDetails/goodDetails.vue
| @@ -390,21 +390,11 @@ export default { | @@ -390,21 +390,11 @@ export default { | ||
| 390 | mounted () { | 390 | mounted () { |
| 391 | // 如果是App外,设置唤起App和微信内分享参数 | 391 | // 如果是App外,设置唤起App和微信内分享参数 |
| 392 | if (!this.isCNLive.value) { | 392 | if (!this.isCNLive.value) { |
| 393 | - | ||
| 394 | - // 唤起详情页 | ||
| 395 | - if (typeof this.$parent.getOpenApp === "function") { | ||
| 396 | - this.$parent.getOpenApp({ | ||
| 397 | - type: 38, | ||
| 398 | - id: this.$route.query.id || 1, | ||
| 399 | - url: "" | ||
| 400 | - }); | ||
| 401 | - } | ||
| 402 | - | ||
| 403 | - // 分享详情页 | 393 | + // 设置分享详情页唤起参数 |
| 404 | if (typeof this.$parent.getShareData === "function") { | 394 | if (typeof this.$parent.getShareData === "function") { |
| 405 | this.$parent.getShareData({ | 395 | this.$parent.getShareData({ |
| 406 | - type: 38, | ||
| 407 | - id: this.$route.query.id || 1, | 396 | + type: 46, |
| 397 | + id: "", | ||
| 408 | url: "" | 398 | url: "" |
| 409 | }); | 399 | }); |
| 410 | } | 400 | } |
src/pages/pointsMall/pointsMall.vue
| @@ -329,20 +329,11 @@ export default { | @@ -329,20 +329,11 @@ export default { | ||
| 329 | // 如果是App外,设置唤起App和微信内分享参数 | 329 | // 如果是App外,设置唤起App和微信内分享参数 |
| 330 | if (!this.isCNLive.value) { | 330 | if (!this.isCNLive.value) { |
| 331 | 331 | ||
| 332 | - // 唤起详情页 | 332 | + // 设置积分首页唤起app参数 |
| 333 | if (typeof this.$parent.getOpenApp === "function") { | 333 | if (typeof this.$parent.getOpenApp === "function") { |
| 334 | this.$parent.getOpenApp({ | 334 | this.$parent.getOpenApp({ |
| 335 | - type: 38, | ||
| 336 | - id: this.$route.query.id || 1, | ||
| 337 | - url: "" | ||
| 338 | - }); | ||
| 339 | - } | ||
| 340 | - | ||
| 341 | - // 分享详情页 | ||
| 342 | - if (typeof this.$parent.getShareData === "function") { | ||
| 343 | - this.$parent.getShareData({ | ||
| 344 | - type: 38, | ||
| 345 | - id: this.$route.query.id || 1, | 335 | + type: 45, |
| 336 | + id: "", | ||
| 346 | url: "" | 337 | url: "" |
| 347 | }); | 338 | }); |
| 348 | } | 339 | } |