PaymentView.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="payment-view">
  3. <image
  4. class="payment-icon"
  5. src="@/static/icons/icon-payment.png"/>
  6. <view class="payment-info">
  7. <text class="payment-name">Pay-Per-Use</text>
  8. <view :class="'payment-status ' + status" v-if="status">{{status}}</view>
  9. <view class="payment-status" v-else>$50.00 Pre-Authorization</view>
  10. </view>
  11. <!-- <i-icon
  12. name="arrow-right-s-line"
  13. size="48rpx"
  14. color="#333"/> -->
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: "PaymentView",
  20. props: {
  21. status: String
  22. },
  23. data() {
  24. return {
  25. };
  26. },
  27. mounted() {
  28. },
  29. methods: {
  30. }
  31. }
  32. </script>
  33. <style scoped>
  34. .payment-view {
  35. display: flex;
  36. padding: 32rpx;
  37. margin: 32rpx 32rpx 0;
  38. align-items: center;
  39. border-radius: 24rpx;
  40. padding-right: 24rpx;
  41. background-color: white;
  42. }
  43. .payment-icon {
  44. width: 65rpx;
  45. height: 65rpx;
  46. }
  47. .payment-info {
  48. flex: 1;
  49. padding: 0 32rpx;
  50. }
  51. .payment-name {
  52. flex: 1;
  53. color: #222;
  54. font-size: 32rpx;
  55. font-weight: bold;
  56. }
  57. .payment-status {
  58. color: #009E81;
  59. font-size: 28rpx;
  60. padding-top: 8rpx;
  61. }
  62. .payment-status.FAILED {
  63. color: #FF2222;
  64. }
  65. </style>