normalCard.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div id="normalCard" :style="{ backgroundImage: 'url(' + backgroundImage + ')' }" class="normalCard">
  3. <ul class="left">
  4. <li class="top">
  5. <span class="title">今日销售</span>
  6. <img src="@/assets/image/question.png" alt="" />
  7. </li>
  8. <li class="mid">1023</li>
  9. <li class="bot">昨日:2333</li>
  10. </ul>
  11. <img class="right" src="@/assets/image/hicon1.png" alt="" />
  12. </div>
  13. </template>
  14. <script>
  15. import { mixinPage } from '@/mixins/newMixin'
  16. export default {
  17. mixins: [mixinPage],
  18. name: 'NormalCard',
  19. props: {
  20. imageName: {
  21. type: String,
  22. default: 'cardBg',
  23. },
  24. },
  25. }
  26. </script>
  27. <style lang="less" scoped>
  28. .normalCard {
  29. display: flex;
  30. justify-content: space-between;
  31. padding: 16px;
  32. background-size: 100% 100%;
  33. border-radius: 8px;
  34. background-position: center;
  35. height: 116px;
  36. .top {
  37. color: #505968;
  38. font-size: 16px;
  39. .title {
  40. margin-right: 2px;
  41. }
  42. img {
  43. height: 16px;
  44. width: 16px;
  45. }
  46. }
  47. .mid {
  48. color: #333333;
  49. font-weight: 700;
  50. font-size: 32px;
  51. }
  52. .bot {
  53. font-size: 14px;
  54. color: #505968;
  55. }
  56. .right {
  57. width: 90px;
  58. height: 86px;
  59. }
  60. }
  61. </style>