Commit 060c051f0190cd8fa755105bdf95b393153354c0

Authored by zhiyangdu
1 parent 4c280496

去除扩展传goodsId

src/pages/goodDetails/goodDetails.vue
@@ -577,7 +577,7 @@ export default { @@ -577,7 +577,7 @@ export default {
577 toShare () { 577 toShare () {
578 // 判断分享 578 // 判断分享
579 if (typeof this.$parent.toShare === 'function') { 579 if (typeof this.$parent.toShare === 'function') {
580 - this.$parent.toShare(71, "1", (this.$route.query.goodsId ? { "goodsId": this.$route.query.goodsId } : "")); 580 + this.$parent.toShare(71,(this.$route.query.goodsId || 1));
581 } 581 }
582 }, 582 },
583 /** 583 /**
@@ -894,17 +894,15 @@ export default { @@ -894,17 +894,15 @@ export default {
894 if (typeof this.$parent.getOpenApp === "function") { 894 if (typeof this.$parent.getOpenApp === "function") {
895 this.$parent.getOpenApp({ 895 this.$parent.getOpenApp({
896 type: 71, 896 type: 71,
897 - id: "1",  
898 - url: "",  
899 - ext: this.$route.query.goodsId ? { "goodsId": this.$route.query.goodsId } : "" 897 + id:(this.$route.query.goodsId || 1),
  898 + url: ""
900 }); 899 });
901 } 900 }
902 if (typeof this.$parent.getShareData === "function") { 901 if (typeof this.$parent.getShareData === "function") {
903 this.$parent.getShareData({ 902 this.$parent.getShareData({
904 type: 71, 903 type: 71,
905 - id: 1,  
906 - url: "",  
907 - ext: this.$route.query.goodsId ? { "goodsId": this.$route.query.goodsId } : "" 904 + id:(this.$route.query.goodsId || 1),
  905 + url: ""
908 }); 906 });
909 } 907 }
910 } 908 }