Commit 060c051f0190cd8fa755105bdf95b393153354c0

Authored by zhiyangdu
1 parent 4c280496

去除扩展传goodsId

src/pages/goodDetails/goodDetails.vue
... ... @@ -577,7 +577,7 @@ export default {
577 577 toShare () {
578 578 // 判断分享
579 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 894 if (typeof this.$parent.getOpenApp === "function") {
895 895 this.$parent.getOpenApp({
896 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 901 if (typeof this.$parent.getShareData === "function") {
903 902 this.$parent.getShareData({
904 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 }
... ...