pay-confirm.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view style="background-color: #F1F1F1;min-height: 100vh">
  3. <view class="center info" style="padding-bottom: 50rpx;">
  4. <image :src="info.shop.cover" mode=""></image>
  5. <text class="text-lg" style="color: #1C1C1C;font-size: 30rpx;">{{info.shop.name}}</text>
  6. </view>
  7. <view class="card" style="background-color: #FFFFFF;">
  8. <view class="flex flex-direction margin-bottom-40">
  9. <text class="text-lg text-bold">支付确认</text>
  10. <text class=" text-sm margin-top-10" style="color: #999999;">您本次交易可使用积分抵扣,具体如下:</text>
  11. </view>
  12. <view class="item">
  13. <view class="left">商品价格</view>
  14. <view class="right price">{{info.bills.cost}}</view>
  15. </view>
  16. <view class="item">
  17. <view class="left">商家活动抵扣</view>
  18. <view class="right" style="color: #EE9230;"><text class="price reduce">{{info.bills.discount || 0}}</text></view>
  19. </view>
  20. <view class="item">
  21. <view class="left">渠道积分抵扣</view>
  22. <view class="right" style="color: #EE9230;"><text class="price reduce">{{info.bills.pointNum}}</text></view>
  23. </view>
  24. <view class="item">
  25. <view class="left">积分余额抵扣</view>
  26. <view class="right" style="color: #EE9230;"><text class="price reduce">{{info.bills.balanceNum}}</text></view>
  27. </view>
  28. <view class="item">
  29. <view class="left">积分交易手续费</view>
  30. <view class="right"><text class="price">{{info.bills.pointFee}}</text></view>
  31. </view>
  32. <view class="item u-border-top" style="margin-top: 10rpx;padding-top: 40rpx;padding-bottom: 0;">
  33. <view class="left" style="font-size: 30rpx;">您仍需支付</view>
  34. <view class="right text-bold" style="font-size: 40rpx;"><text class="price">{{info.bills.price}}</text></view>
  35. </view>
  36. </view>
  37. <view class="center flex-direction" style="margin-top: 150rpx;">
  38. <text class="text-gray text-sm margin-bottom-20">感谢使用联兑通,越用越优惠</text>
  39. <view @click="confirm" class="cu-btn flex text-lg btn-bg-color round" style="padding: 42rpx 0;width: 90%;">
  40. 确认支付
  41. </view>
  42. <text @click="cancel" class="text-base payConfirm" style="margin-top: 50rpx;font-size: 28rpx;text-decoration: underline;">暂不支付</text>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. props:{
  49. info:Object
  50. },
  51. data() {
  52. return {
  53. }
  54. },
  55. methods: {
  56. confirm(){
  57. this.$emit('confirm')
  58. },
  59. cancel(){
  60. this.$emit('cancel')
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .info {
  67. display: flex;
  68. justify-content: center;
  69. align-content: center;
  70. padding: 60rpx;
  71. flex-direction: column;
  72. image {
  73. width: 120rpx;
  74. height: 120rpx;
  75. border-radius: 50%;
  76. margin-bottom: 20rpx;
  77. }
  78. }
  79. .card {
  80. margin: 0 40rpx;
  81. border-radius: 20rpx;
  82. padding: 40rpx;
  83. background-color: #FFFFFF;
  84. .item {
  85. padding: 20rpx 0;
  86. display: flex;
  87. justify-content: space-between;
  88. font-size: 28rpx;
  89. .left {
  90. color: #353535;
  91. font-weight: 300;
  92. }
  93. .right {
  94. font-size: 30rpx;
  95. color: #353535;
  96. }
  97. }
  98. }
  99. .price::after {
  100. content: '元';
  101. margin-left: 6rpx;
  102. font-size: 0.8em;
  103. }
  104. .reduce::before {
  105. content: '-';
  106. margin-right: 10rpx;
  107. }
  108. </style>