ShopDialog.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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-top: 10rpx;
  37. margin-bottom: 20rpx;
  38. height: 220rpx;
  39. &:last-child {
  40. margin-bottom: 0;
  41. }
  42. }
  43. .item-card {
  44. background: #fff;
  45. border-radius: 12rpx;
  46. padding: 5px;
  47. position: relative;
  48. border: 2rpx solid #ddd;
  49. display: flex;
  50. height: 100%;
  51. .new-tag {
  52. position: absolute;
  53. top: -10rpx;
  54. left: -10rpx;
  55. background: #ff6b6b;
  56. color: white;
  57. padding: 4rpx 12rpx;
  58. border-radius: 20rpx;
  59. font-size: 20rpx;
  60. }
  61. .item-left {
  62. display: flex;
  63. flex-direction: column;
  64. align-items: center;
  65. margin-right: 20rpx;
  66. width: 80rpx;
  67. padding-left: 10rpx;
  68. .item-icon {
  69. width: 80rpx;
  70. height: 80rpx;
  71. margin-bottom: 28rpx;
  72. }
  73. .owned-text {
  74. font-size: 22rpx;
  75. color: #666;
  76. white-space: nowrap;
  77. }
  78. }
  79. .item-info {
  80. padding-left: 80rpx;
  81. flex: 1;
  82. position: relative;
  83. display: flex;
  84. flex-direction: column;
  85. .item-name {
  86. font-size: 26rpx;
  87. color: #933;
  88. font-weight: bold;
  89. margin-bottom: 8rpx;
  90. }
  91. .item-details {
  92. font-size: 20rpx;
  93. color: #666;
  94. padding-left: 10rpx;
  95. .detail-text {
  96. display: block;
  97. }
  98. }
  99. .item-bottom {
  100. display: flex;
  101. align-items: center;
  102. justify-content: space-between;
  103. margin-top: auto;
  104. margin-bottom: 10rpx;
  105. position: absolute;
  106. bottom: 0;
  107. left: 80rpx;
  108. right: 0;
  109. .item-price {
  110. display: flex;
  111. align-items: center;
  112. gap: 4rpx;
  113. margin-top: 25rpx;
  114. .currency-icon {
  115. width: 24rpx;
  116. height: 24rpx;
  117. }
  118. text {
  119. font-size: 24rpx;
  120. color: #ff9500;
  121. font-weight: bold;
  122. }
  123. }
  124. .buy-btn {
  125. background: #8b5e3c;
  126. color: white;
  127. font-size: 24rpx;
  128. padding: 4rpx 16rpx;
  129. border-radius: 30rpx;
  130. border: none;
  131. margin-right: 10rpx;
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }