Commit 297a5f01a75feee4898ae8325a2af911f610ae9e

Authored by zhiyangdu
1 parent a3c40387

设置分享参数

src/pages/goodDetails/goodDetails.vue
... ... @@ -390,21 +390,11 @@ export default {
390 390 mounted () {
391 391 // 如果是App外,设置唤起App和微信内分享参数
392 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 394 if (typeof this.$parent.getShareData === "function") {
405 395 this.$parent.getShareData({
406   - type: 38,
407   - id: this.$route.query.id || 1,
  396 + type: 46,
  397 + id: "",
408 398 url: ""
409 399 });
410 400 }
... ...
src/pages/pointsMall/pointsMall.vue
... ... @@ -329,20 +329,11 @@ export default {
329 329 // 如果是App外,设置唤起App和微信内分享参数
330 330 if (!this.isCNLive.value) {
331 331  
332   - // 唤起详情页
  332 + // 设置积分首页唤起app参数
333 333 if (typeof this.$parent.getOpenApp === "function") {
334 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 337 url: ""
347 338 });
348 339 }
... ...