Commit 8fb5b8834c041dd13169c7ee7014577b6b5dcddf

Authored by zhiyangdu
1 parent 764f161f

app拉起

src/pages/goodDetails/goodDetails.vue
@@ -386,11 +386,11 @@ export default { @@ -386,11 +386,11 @@ export default {
386 mounted () { 386 mounted () {
387 // 如果是App外,设置唤起App和微信内分享参数 387 // 如果是App外,设置唤起App和微信内分享参数
388 if (!this.isCNLive.value) { 388 if (!this.isCNLive.value) {
389 - // 设置分享详情页唤起参数  
390 - if (typeof this.$parent.getShareData === "function") {  
391 - this.$parent.getShareData({ 389 + // 设置积分首页唤起app参数
  390 + if (typeof this.$parent.getOpenApp === "function") {
  391 + this.$parent.getOpenApp({
392 type: 46, 392 type: 46,
393 - id: this.$route.query.id, 393 + id: this.$route.query.goodsId,
394 url: "" 394 url: ""
395 }); 395 });
396 } 396 }
src/pages/pointsMall/pointsMall.vue
@@ -368,12 +368,11 @@ export default { @@ -368,12 +368,11 @@ export default {
368 mounted () { 368 mounted () {
369 // 如果是App外,设置唤起App和微信内分享参数 369 // 如果是App外,设置唤起App和微信内分享参数
370 if (!this.isCNLive.value) { 370 if (!this.isCNLive.value) {
371 -  
372 // 设置积分首页唤起app参数 371 // 设置积分首页唤起app参数
373 if (typeof this.$parent.getOpenApp === "function") { 372 if (typeof this.$parent.getOpenApp === "function") {
374 this.$parent.getOpenApp({ 373 this.$parent.getOpenApp({
375 type: 45, 374 type: 45,
376 - id: "", 375 + id: 1,
377 url: "" 376 url: ""
378 }); 377 });
379 } 378 }