Showing
14 changed files
with
28 additions
and
14 deletions
| @@ -785,7 +785,9 @@ Page({ | @@ -785,7 +785,9 @@ Page({ | ||
| 785 | */ | 785 | */ |
| 786 | onHide() { | 786 | onHide() { |
| 787 | clearInterval(this.timers) | 787 | clearInterval(this.timers) |
| 788 | - this.audioCtx.destroy();// 释放音频资源 | 788 | + if(this.audioCtx){ |
| 789 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 790 | + } | ||
| 789 | }, | 791 | }, |
| 790 | 792 | ||
| 791 | /** | 793 | /** |
| @@ -220,5 +220,5 @@ | @@ -220,5 +220,5 @@ | ||
| 220 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 220 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 221 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 221 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 222 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 222 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 223 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 223 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 224 | </view> | 224 | </view> |
| @@ -750,7 +750,9 @@ Page({ | @@ -750,7 +750,9 @@ Page({ | ||
| 750 | */ | 750 | */ |
| 751 | onHide() { | 751 | onHide() { |
| 752 | clearInterval(this.timers) | 752 | clearInterval(this.timers) |
| 753 | - this.audioCtx.destroy();// 释放音频资源 | 753 | + if(this.audioCtx){ |
| 754 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 755 | + } | ||
| 754 | }, | 756 | }, |
| 755 | 757 | ||
| 756 | /** | 758 | /** |
| @@ -228,5 +228,5 @@ | @@ -228,5 +228,5 @@ | ||
| 228 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 228 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 229 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 229 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 230 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 230 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 231 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 231 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 232 | </view> | 232 | </view> |
| @@ -750,7 +750,9 @@ Page({ | @@ -750,7 +750,9 @@ Page({ | ||
| 750 | */ | 750 | */ |
| 751 | onHide() { | 751 | onHide() { |
| 752 | clearInterval(this.timers) | 752 | clearInterval(this.timers) |
| 753 | - this.audioCtx.destroy();// 释放音频资源 | 753 | + if(this.audioCtx){ |
| 754 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 755 | + } | ||
| 754 | }, | 756 | }, |
| 755 | 757 | ||
| 756 | /** | 758 | /** |
| @@ -204,5 +204,5 @@ | @@ -204,5 +204,5 @@ | ||
| 204 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 204 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 205 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 205 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 206 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 206 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 207 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 207 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 208 | </view> | 208 | </view> |
| @@ -749,7 +749,9 @@ Page({ | @@ -749,7 +749,9 @@ Page({ | ||
| 749 | */ | 749 | */ |
| 750 | onHide() { | 750 | onHide() { |
| 751 | clearInterval(this.timers) | 751 | clearInterval(this.timers) |
| 752 | - this.audioCtx.destroy();// 释放音频资源 | 752 | + if(this.audioCtx){ |
| 753 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 754 | + } | ||
| 753 | }, | 755 | }, |
| 754 | 756 | ||
| 755 | /** | 757 | /** |
| @@ -201,5 +201,5 @@ | @@ -201,5 +201,5 @@ | ||
| 201 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 201 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 202 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 202 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 203 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 203 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 204 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 204 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 205 | </view> | 205 | </view> |
| @@ -698,7 +698,9 @@ Page({ | @@ -698,7 +698,9 @@ Page({ | ||
| 698 | */ | 698 | */ |
| 699 | onHide() { | 699 | onHide() { |
| 700 | clearInterval(this.timers) | 700 | clearInterval(this.timers) |
| 701 | - this.audioCtx.destroy();// 释放音频资源 | 701 | + if(this.audioCtx){ |
| 702 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 703 | + } | ||
| 702 | }, | 704 | }, |
| 703 | 705 | ||
| 704 | /** | 706 | /** |
| @@ -279,5 +279,5 @@ | @@ -279,5 +279,5 @@ | ||
| 279 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 279 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 280 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 280 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 281 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 281 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 282 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 282 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 283 | </view> | 283 | </view> |
| @@ -743,7 +743,9 @@ Page({ | @@ -743,7 +743,9 @@ Page({ | ||
| 743 | */ | 743 | */ |
| 744 | onHide() { | 744 | onHide() { |
| 745 | clearInterval(this.timers) | 745 | clearInterval(this.timers) |
| 746 | - this.audioCtx.destroy();// 释放音频资源 | 746 | + if(this.audioCtx){ |
| 747 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 748 | + } | ||
| 747 | }, | 749 | }, |
| 748 | 750 | ||
| 749 | /** | 751 | /** |
| @@ -222,5 +222,5 @@ | @@ -222,5 +222,5 @@ | ||
| 222 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 222 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 223 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 223 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 224 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 224 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 225 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 225 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 226 | </view> | 226 | </view> |
| @@ -742,7 +742,9 @@ Page({ | @@ -742,7 +742,9 @@ Page({ | ||
| 742 | */ | 742 | */ |
| 743 | onHide() { | 743 | onHide() { |
| 744 | clearInterval(this.timers) | 744 | clearInterval(this.timers) |
| 745 | - this.audioCtx.destroy();// 释放音频资源 | 745 | + if(this.audioCtx){ |
| 746 | + this.audioCtx.destroy();// 释放音频资源 | ||
| 747 | + } | ||
| 746 | }, | 748 | }, |
| 747 | 749 | ||
| 748 | /** | 750 | /** |
| @@ -209,5 +209,5 @@ | @@ -209,5 +209,5 @@ | ||
| 209 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> | 209 | <view wx:if="{{marketing.is_transpond=='1' || marketing.is_online_book=='1' || (paymentId && paymentStatus == '0')}}" class="all-button flex-lr sharewidth"> |
| 210 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> | 210 | <view wx:if="{{marketing.is_online_book=='1'}}" class="flex-cc font30r moreBtn" bindtap="secondbook" style="position: relative;">再次预订</view> |
| 211 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> | 211 | <view wx:if="{{paymentId && paymentStatus == '0'}}" class="flex-cc font30r paymenBtn" bindtap="paymentFun">支付定金</view> |
| 212 | - <view wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</view> | 212 | + <button wx:if="{{marketing.is_transpond=='1'}}" class="flex-cc font30r shareItem" open-type="share">转发给客人</button> |
| 213 | </view> | 213 | </view> |
-
Please register or login to post a comment