tpl_join_group.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div class="layout">
  3. <div class="join-list">
  4. <div class="join-title">
  5. <div>{{ res.list[0].title }}</div>
  6. <div>更多</div>
  7. </div>
  8. <div class="join-box">
  9. <div class="join-item" v-for="item in 4" :key="item">
  10. <div class="item-img-box">
  11. <img
  12. class="item-img"
  13. src="https://picsum.photos/id/268/200/200"
  14. alt
  15. />
  16. <div class="item-position-tips">2人团</div>
  17. </div>
  18. <div class="item-price">
  19. <span>¥120.00</span>
  20. </div>
  21. <div class="item-line-through">
  22. <span>¥120.00</span>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <script>
  30. // TODO 后续版本开发此功能 尽情期待
  31. export default {
  32. props: ["res"],
  33. title:"团购"
  34. };
  35. </script>
  36. <style lang="scss" scoped>
  37. @import "./tpl.scss";
  38. .join-box {
  39. display: flex;
  40. }
  41. .item-price {
  42. > span {
  43. font-size: 15px;
  44. font-weight: 500;
  45. color: #e1212b;
  46. }
  47. }
  48. .join-item {
  49. flex: 1;
  50. }
  51. .item-img {
  52. width: 75px;
  53. height: 75px;
  54. margin: 0 auto;
  55. display: block;
  56. }
  57. .item-img-box {
  58. position: relative;
  59. }
  60. .item-line-through {
  61. > span {
  62. font-size: 10px;
  63. font-weight: 400;
  64. text-decoration: line-through;
  65. color: #999;
  66. }
  67. }
  68. .item-position-tips {
  69. position: absolute;
  70. right: 0;
  71. color: #fff;
  72. font-size: 12px;
  73. bottom: 0;
  74. }
  75. .join-title {
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. background: #fff;
  80. height: 50px;
  81. > div:nth-of-type(1) {
  82. font-size: 16px;
  83. font-weight: bold;
  84. }
  85. > div:nth-of-type(2) {
  86. font-size: 12px;
  87. color: #999;
  88. }
  89. }
  90. </style>