Commit 4c280496873a50b912dc39966cef63f9e2038ba9

Authored by zhiyangdu
1 parent d199f67b

分享参数设置

src/pages/couponCollectionDetails/couponCollectionDetails.vue
@@ -109,7 +109,7 @@ export default { @@ -109,7 +109,7 @@ export default {
109 toShare () { 109 toShare () {
110 // 判断分享 110 // 判断分享
111 if (typeof this.$parent.toShare === 'function') { 111 if (typeof this.$parent.toShare === 'function') {
112 - this.$parent.toShare(77, "1", (this.$route.query.couponId ? { "couponId": this.$route.query.couponId } : "")); 112 + this.$parent.toShare(77, (this.$route.query.couponId || 1));
113 } 113 }
114 }, 114 },
115 // type=2跳转原生优惠券列表3跳转原生购买内容列表 115 // type=2跳转原生优惠券列表3跳转原生购买内容列表
@@ -286,17 +286,15 @@ export default { @@ -286,17 +286,15 @@ export default {
286 if (typeof this.$parent.getOpenApp === "function") { 286 if (typeof this.$parent.getOpenApp === "function") {
287 this.$parent.getOpenApp({ 287 this.$parent.getOpenApp({
288 type: 77, 288 type: 77,
289 - id: "1",  
290 - url: "",  
291 - ext: this.$route.query.couponId ? { "couponId": this.$route.query.couponId } : "" 289 + id: this.$route.query.couponId || 1,
  290 + url: ""
292 }); 291 });
293 } 292 }
294 if (typeof this.$parent.getShareData === "function") { 293 if (typeof this.$parent.getShareData === "function") {
295 this.$parent.getShareData({ 294 this.$parent.getShareData({
296 type: 77, 295 type: 77,
297 - id: 1,  
298 - url: "",  
299 - ext: this.$route.query.couponId ? { "couponId": this.$route.query.couponId } : "" 296 + id: this.$route.query.couponId || 1,
  297 + url: ""
300 }); 298 });
301 } 299 }
302 } 300 }