ShopDialog.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. .shop-content {
  2. background: #f8f3e9;
  3. min-height: 200rpx;
  4. padding: 20rpx;
  5. height: 680rpx;
  6. display: flex;
  7. flex-direction: column;
  8. .shop-tabs {
  9. display: flex;
  10. margin-bottom: 20rpx;
  11. background: #8b5e3c;
  12. border-radius: 8rpx;
  13. padding: 10rpx;
  14. .tab-item {
  15. flex: 1;
  16. text-align: center;
  17. padding: 15rpx 0;
  18. font-size: 28rpx;
  19. color: #f8f3e9;
  20. background: #6b4423;
  21. margin: 0 5rpx;
  22. border-radius: 6rpx;
  23. &.active {
  24. background: #f8f3e9;
  25. color: #6b4423;
  26. font-weight: bold;
  27. }
  28. }
  29. }
  30. .shop-items {
  31. flex: 1;
  32. overflow-y: auto;
  33. .shop-item {
  34. width: 100%;
  35. padding: 0 10rpx;
  36. margin-bottom: 20rpx;
  37. height: 220rpx;
  38. &:last-child {
  39. margin-bottom: 0;
  40. }
  41. }
  42. .item-card {
  43. background: #fff;
  44. border-radius: 12rpx;
  45. padding: 20rpx;
  46. position: relative;
  47. border: 2rpx solid #ddd;
  48. display: flex;
  49. height: 100%;
  50. .new-tag {
  51. position: absolute;
  52. top: -10rpx;
  53. left: -10rpx;
  54. background: #ff6b6b;
  55. color: white;
  56. padding: 4rpx 12rpx;
  57. border-radius: 20rpx;
  58. font-size: 20rpx;
  59. }
  60. .item-left {
  61. display: flex;
  62. flex-direction: column;
  63. align-items: center;
  64. margin-right: 20rpx;
  65. width: 80rpx;
  66. .item-icon {
  67. width: 80rpx;
  68. height: 80rpx;
  69. margin-bottom: 8rpx;
  70. }
  71. .owned-text {
  72. font-size: 22rpx;
  73. color: #666;
  74. white-space: nowrap;
  75. }
  76. }
  77. .item-info {
  78. flex: 1;
  79. .item-name {
  80. font-size: 28rpx;
  81. color: #333;
  82. font-weight: bold;
  83. margin-bottom: 8rpx;
  84. }
  85. .item-details {
  86. font-size: 20rpx;
  87. color: #666;
  88. padding-left: 6rpx;
  89. .detail-text {
  90. display: block;
  91. line-height: 1.5;
  92. }
  93. }
  94. .item-bottom {
  95. display: flex;
  96. align-items: center;
  97. justify-content: space-between;
  98. margin-top: 10rpx;
  99. .item-price {
  100. display: flex;
  101. align-items: center;
  102. gap: 4rpx;
  103. .currency-icon {
  104. width: 24rpx;
  105. height: 24rpx;
  106. }
  107. text {
  108. font-size: 24rpx;
  109. color: #ff9500;
  110. font-weight: bold;
  111. }
  112. }
  113. .buy-btn {
  114. background: #8b5e3c;
  115. color: white;
  116. font-size: 24rpx;
  117. padding: 4rpx 16rpx;
  118. border-radius: 30rpx;
  119. border: none;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }