Commit 8ca3a9e88481de93865dd9c11605fdd768f611dd
1 parent
28115e6d
礼包详情控制按钮显示
Showing
1 changed file
with
3 additions
and
2 deletions
packageA/pages/myGiftDetails/myGiftDetails.js
@@ -14,6 +14,7 @@ Page({ | @@ -14,6 +14,7 @@ Page({ | ||
14 | val: "12121", | 14 | val: "12121", |
15 | content: "当前核销码仅限当面使用!" | 15 | content: "当前核销码仅限当面使用!" |
16 | }, | 16 | }, |
17 | + showBtn: true, | ||
17 | }, | 18 | }, |
18 | 19 | ||
19 | /** | 20 | /** |
@@ -24,7 +25,7 @@ Page({ | @@ -24,7 +25,7 @@ Page({ | ||
24 | 25 | ||
25 | // 如果从商品详情页点击促销栏里的礼包跳转过来的话,不显示底部按钮 | 26 | // 如果从商品详情页点击促销栏里的礼包跳转过来的话,不显示底部按钮 |
26 | // showBtn 控制按钮是否显示 | 27 | // showBtn 控制按钮是否显示 |
27 | - let showBtn = true; | 28 | + let showBtn = this.data.showBtn; |
28 | if(options.btn == 0) { | 29 | if(options.btn == 0) { |
29 | showBtn = false; | 30 | showBtn = false; |
30 | } | 31 | } |
@@ -33,7 +34,7 @@ Page({ | @@ -33,7 +34,7 @@ Page({ | ||
33 | options: options, | 34 | options: options, |
34 | id: options.id, | 35 | id: options.id, |
35 | index: options.index, | 36 | index: options.index, |
36 | - showBtn: showBtn, | 37 | + showBtn, |
37 | }) | 38 | }) |
38 | 39 | ||
39 | // console.log('options', options); | 40 | // console.log('options', options); |