Commit 158f9ed8a56ef83cfc7ec888e8ac19881ca9e45b
1 parent
bb8b2f72
oa单弹窗提醒抽奖
Showing
9 changed files
with
58 additions
and
9 deletions
packageE/pages/user/monthgiftbag/payment/payment.js
| ... | ... | @@ -21,8 +21,22 @@ Page({ |
| 21 | 21 | }); |
| 22 | 22 | var money = parseFloat(options.money).toFixed(2), order_sn = options.order_sn; |
| 23 | 23 | this.setData({allmoney:money,order_sn:order_sn}) |
| 24 | + // if (money*1 > 0) { | |
| 25 | + // var encourage = this.selectComponent("#encourage"); //组件的id | |
| 26 | + // if (encourage){ | |
| 27 | + // encourage.get_encourage(); | |
| 28 | + // } | |
| 29 | + // } | |
| 30 | + }, | |
| 31 | + onReady(){ | |
| 32 | + // console.error(6666); | |
| 33 | + if (this.data.allmoney*1 > 0) { | |
| 34 | + var encourage = this.selectComponent("#encourage"); //组件的id | |
| 35 | + if (encourage){ | |
| 36 | + encourage.get_encourage(); | |
| 37 | + } | |
| 38 | + } | |
| 24 | 39 | }, |
| 25 | - | |
| 26 | 40 | goto: function () { |
| 27 | 41 | var url = '/pages/index/index/index'; |
| 28 | 42 | getApp().goto(url) | ... | ... |
packageE/pages/user/monthgiftbag/payment/payment.json
packageE/pages/user/monthgiftbag/payment/payment.wxml
packageG/pages/payment/pay_success/pay_success.js
| ... | ... | @@ -133,9 +133,13 @@ Page({ |
| 133 | 133 | }; |
| 134 | 134 | |
| 135 | 135 | |
| 136 | - | |
| 137 | 136 | }, |
| 138 | - | |
| 137 | + onReady(){ | |
| 138 | + var encourage = this.selectComponent("#encourage"); //组件的id | |
| 139 | + if (encourage){ | |
| 140 | + encourage.get_encourage(); | |
| 141 | + } | |
| 142 | + }, | |
| 139 | 143 | goto: function() { |
| 140 | 144 | var url= '/pages/index/index/index'; |
| 141 | 145 | getApp().goto(url) | ... | ... |
packageG/pages/payment/pay_success/pay_success.json
packageG/pages/payment/pay_success/pay_success.wxml
| ... | ... | @@ -148,4 +148,8 @@ |
| 148 | 148 | |
| 149 | 149 | <view class="shequn" style="margin-top:20rpx;" bindtap="gotoshequn" wx:if="{{banner}}" data-url="{{banner[0].ad_weapplink}}"> |
| 150 | 150 | <image src="{{banner[0].ad_code}}" mode="widthFix" style="width: 100%;border-radius: 15rpx;" /> |
| 151 | -</view> | |
| 152 | 151 | \ No newline at end of file |
| 152 | +</view> | |
| 153 | + | |
| 154 | + | |
| 155 | +<!-- 满足抽奖提醒 --> | |
| 156 | +<show_encourage id="encourage"></show_encourage> | |
| 153 | 157 | \ No newline at end of file | ... | ... |
pages/giftpack/payment/payment.js
| ... | ... | @@ -21,6 +21,18 @@ Page({ |
| 21 | 21 | }); |
| 22 | 22 | var money = parseFloat(options.money), order_sn = options.order_sn; |
| 23 | 23 | this.setData({allmoney:money,order_sn:order_sn}) |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + }, | |
| 28 | + onReady(){ | |
| 29 | + // console.error(6666); | |
| 30 | + if (this.data.allmoney*1 > 0) { | |
| 31 | + var encourage = this.selectComponent("#encourage"); //组件的id | |
| 32 | + if (encourage){ | |
| 33 | + encourage.get_encourage(); | |
| 34 | + } | |
| 35 | + } | |
| 24 | 36 | }, |
| 25 | 37 | |
| 26 | 38 | goto: function () { | ... | ... |
pages/giftpack/payment/payment.json
pages/giftpack/payment/payment.wxml