推拿小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.1 KiB

  1. <template>
  2. <view class="card flex voucher">
  3. <image class="voucher-img" :src="data.member.headImage"></image>
  4. <view class="voucher-info">
  5. <view class="voucher-name">{{ data.member.nickName }}</view>
  6. <view class="voucher-desc">{{ `核销时间:${data.useTime}` }}</view>
  7. </view>
  8. <view class="voucher-count">
  9. <text>代金券</text>
  10. <text class="voucher-value">{{ `${data.discountAmount}` }}</text>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: {
  17. data: {
  18. type: Object,
  19. default() {
  20. return {}
  21. }
  22. },
  23. },
  24. }
  25. </script>
  26. <style scoped lang="scss">
  27. .voucher {
  28. padding: 33rpx 25rpx 33rpx 31rpx;
  29. &-img {
  30. width: 90rpx;
  31. height: 90rpx;
  32. border-radius: 50%;
  33. margin-right: 7rpx;
  34. }
  35. &-info {
  36. flex: 1;
  37. }
  38. &-name {
  39. color: #333333;
  40. font-size: 28rpx;
  41. line-height: 40rpx;
  42. }
  43. &-desc {
  44. color: #333333;
  45. font-size: 22rpx;
  46. line-height: 30rpx;
  47. margin-top: 5rpx;
  48. }
  49. &-count {
  50. color: #000000;
  51. font-size: 22rpx;
  52. }
  53. &-value {
  54. color: #FF2A2A;
  55. }
  56. }
  57. </style>