Commit 619a91a69b37162130418d164a4dee2ac1a685ea

Authored by vking
1 parent c88e6ca2

pay

... ... @@ -76,13 +76,16 @@ Component({
tplid:accept.toString()
})
},800)
this.triggerEvent('event',{type:'success'})
}else{
util.toast('订阅失败,请在设置中打开','none')
this.triggerEvent('event',{type:'fail'})
}
},
fail:(efail)=>{
console.log('wx.requestSubscribeMessage.fail',efail)
if(efail.errMsg.indexOf('not ended')) return;
this.triggerEvent('event',{type:'fail'})
wx.showModal({
title: '授权提示',
content: '您拒绝了订阅消息,请点击确定打开授权',
... ...
... ... @@ -43,7 +43,7 @@
</view>
<view class="list flex-lr">
<view class="list-name">红  包</view>
<view class="list-val">-¥ {{user.price}}</view>
<view class="list-val">-¥ {{checkout.subsidy_price}}</view>
</view>
<view class="list flex-lr">
<view class="list-name">应付金额</view>
... ... @@ -126,11 +126,13 @@
</view>
</view>
</checkbox-group>
<view class="checkout-get" bindtap="checkoutInit">
<view class="checkout-button">
获取消费金额
<view class="checkout-button-money-tips" wx:if="{{user.price>0}}">{{user.price}}元红包待用</view>
</view>
<view class="checkout-get">
<subscribe ids="{{[0]}}" bindevent="checkoutInit">
<view class="checkout-button">
获取消费金额
<view class="checkout-button-money-tips" wx:if="{{user.price>0}}">{{user.price}}元红包待用</view>
</view>
</subscribe>
</view>
</block>
</view>
... ...
... ... @@ -178,7 +178,7 @@
<view class="detail-info Medium" style="margin-top: 56rpx;">
<view class="flex-lr">
<view>实付金额</view>
<view class="detail-info-right" style="color:rgba(224,32,32,1);">¥{{checkout.price}}</view>
<view class="detail-info-right" style="color:rgba(224,32,32,1);">¥{{checkout.should_price}}</view>
</view>
<view class="flex-lr" style="margin-top: 26rpx;">
<view></view>
... ...