- <view class="checkout">
- <view class="checkout-title">{{title}}</view>
- <view wx:if="{{valid}}" class="checkout-amount">¥{{amount}}</view>
- <view class="checkout-error" wx:if="{{error}}">{{error}}</view>
- <button wx:if="{{valid}}" type="primary" bindtap="pay" loading="{{paying}}" disabled="{{paying}}">{{statusText || '确认支付'}}</button>
- <button bindtap="back" disabled="{{paying}}">返回订单</button>
- </view>
|