getprop.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <div class="prop-grid">
  2. {{each Prs}}
  3. <div class="prop-card">
  4. <img src="{{$value.img}}" class="prop-image" alt="道具图片">
  5. <div class="prop-body">
  6. <h3 class="prop-name">🤩{{$value.propName}}[{{$value.propId}}]🤩</h3>
  7. <p class="prop-describe">📖{{$value.describe}}</p>
  8. <div class="prop-price">
  9. 💰{{$value.price}}
  10. </div>
  11. </div>
  12. </div>
  13. {{/each}}
  14. </div>
  15. <style>
  16. .prop-grid {
  17. display: flex;
  18. flex-wrap: wrap;
  19. gap: 20px;
  20. padding: 15px;
  21. }
  22. .prop-card {
  23. background: #fff;
  24. border-radius: 12px;
  25. box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  26. width: 220px;
  27. transition: transform 0.2s;
  28. }
  29. .prop-image {
  30. width: 100%;
  31. height: 180px;
  32. object-fit: cover;
  33. border-radius: 12px 12px 0 0;
  34. }
  35. .prop-body {
  36. padding: 15px;
  37. text-align: center;
  38. }
  39. .prop-name {
  40. margin: 12px 0;
  41. color: #2d2d2d;
  42. font-size: 18px;
  43. }
  44. .prop-describe {
  45. color: #666;
  46. font-size: 14px;
  47. line-height: 1.5;
  48. min-height: 60px;
  49. }
  50. .prop-price span {
  51. justify-content: flex-end;
  52. background: transparent;
  53. color: #ff5722;
  54. font-size: 18px;
  55. padding: 6px 12px;
  56. border-radius: 4px;
  57. margin: 10px 0;
  58. gap: 8px;
  59. }
  60. coin-icon {
  61. width: 20px;
  62. height: 20px;
  63. order: 1; /* 图标放在价格右侧 */
  64. }
  65. .prop-card:hover .prop-price {
  66. transform: scale(1.03);
  67. background: rgba(255, 87, 34, 0.05);
  68. }
  69. </style>