BillInfo.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="con" :class="{ pay: billType === 'pay' }">
  3. <view>
  4. <view class="text1">
  5. {{Info.title}}
  6. </view>
  7. <view class="text2">
  8. {{Info.settleTime}}
  9. </view>
  10. </view>
  11. <view class="money">
  12. {{Info.amount}}
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'Bill',
  19. props: {
  20. Info: {
  21. type: Object,
  22. default: () => {
  23. return {};
  24. }
  25. },
  26. billType: {
  27. type: String,
  28. default: ''
  29. }
  30. },
  31. methods: {
  32. details() {
  33. this.$emit('detail');
  34. }
  35. }
  36. };
  37. </script>
  38. <style lang="scss" scoped>
  39. .con{
  40. height: 70px;
  41. background: #FFFFFF;
  42. margin: 0 20px;
  43. display: flex;
  44. align-items: center;
  45. justify-content: space-between;
  46. border-bottom:1px solid #F5F7FA;
  47. .text1{
  48. font-size: 14px;
  49. font-weight: 400;
  50. color: #000000;
  51. line-height: 20px;
  52. }
  53. .text2{
  54. font-size: 12px;
  55. font-weight: 400;
  56. color: #969799;
  57. line-height: 17px;
  58. }
  59. .money{
  60. font-size: 16px;
  61. font-weight: bold;
  62. color: #F42202;
  63. line-height: 24px;
  64. }
  65. }
  66. .pay {
  67. color: #000000;
  68. }
  69. </style>