VoucherBalance.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="container">
  3. <p class="titles-one">代金卷余额</p>
  4. <view class="titles-two">
  5. <text class="number">{{ userAcount.number || '0.00' }}</text>元
  6. </view>
  7. <button class="btns">可兑换</button>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'VoucherBalance',
  13. props: {
  14. userAcount: {
  15. type: Object,
  16. default: {}
  17. }
  18. }
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. .container {
  23. width: 690rpx;
  24. height: 284rpx;
  25. border-radius: 20px;
  26. background: #FFFFFF;
  27. display: flex;
  28. flex-direction: column;
  29. align-items: center;
  30. justify-content: space-evenly;
  31. font-family: 思源黑体;
  32. .titles-one {
  33. font-size: 28rpx;
  34. color: #888889;
  35. }
  36. .titles-two {
  37. color: #222229;
  38. font-weight: 400;
  39. font-size: 32rpx;
  40. .number {
  41. margin-right: 8rpx;
  42. font-weight: 400;
  43. font-size: 68rpx;
  44. }
  45. }
  46. .btns {
  47. width: 222rpx;
  48. height: 59rpx;
  49. border-radius: 50rpx;
  50. display: flex;
  51. flex-direction: column;
  52. padding: 9rpx 69rpx;
  53. font-size: 28rpx;
  54. line-height: 49rpx;
  55. color: #fff;
  56. background: linear-gradient(270deg, rgba(255, 56, 12, 0.41) 0%, #FF380C 70%);
  57. }
  58. }
  59. </style>