pictureList.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="dis_flex_order_li">
  3. <div class="list" v-for="(item, index) in list" :key="index">
  4. <img :src="backFullSrc(item.img)" alt="" />
  5. <div class="right">
  6. <h4>{{ item.label }}:</h4>
  7. <p>
  8. {{ item.value || info[item.prop] | formatPrice }}{{ item.ch || "元" }}
  9. </p>
  10. </div>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. name: "SaasMasterPlatformPictureList",
  17. props: {
  18. list: {
  19. type: Array,
  20. default: () => {
  21. return [];
  22. },
  23. },
  24. info: {
  25. type: Object,
  26. default: () => {
  27. return {};
  28. },
  29. },
  30. },
  31. data() {
  32. return {
  33. };
  34. },
  35. methods: {
  36. backFullSrc(name) {
  37. return require(`@/assets/images/${name}@2x.png`);
  38. },
  39. },
  40. };
  41. </script>
  42. <style lang="scss" scoped>
  43. .dis_flex_order_li {
  44. display: flex;
  45. align-items: center;
  46. flex-wrap: wrap;
  47. & > .list {
  48. user-select: none;
  49. cursor: pointer;
  50. transition: all 0.3s;
  51. box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
  52. &:hover {
  53. transform: scale(1.04);
  54. }
  55. width: 136px;
  56. height: 44px;
  57. border-radius: 6px;
  58. display: flex;
  59. align-items: center;
  60. flex-shrink: 0;
  61. margin-right: 10px;
  62. margin-bottom: 10px;
  63. & > img {
  64. margin-left: 2px;
  65. width: 40px;
  66. height: 40px;
  67. }
  68. & > .right {
  69. flex: 1;
  70. padding-left: 4px;
  71. & > h4 {
  72. color: #000;
  73. margin: 0;
  74. font-size: 12px;
  75. }
  76. & > p {
  77. font-size: 12px;
  78. color: red;
  79. margin: 0;
  80. }
  81. }
  82. }
  83. }
  84. </style>