ShopDialog.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. .shop-content {
  2. margin-top: 25rpx;
  3. margin-left: 10rpx;
  4. background: url('/static/island/UI/task/rw_bg.png') no-repeat center center;
  5. background-size: cover;
  6. width: 702rpx;
  7. height: 984rpx;
  8. display: flex;
  9. flex-direction: column;
  10. .shop-tabs {
  11. flex-shrink: 0;
  12. display: flex;
  13. align-items: center;
  14. justify-content: center;
  15. padding-top: 60rpx;
  16. gap: 40rpx;
  17. .tab-item {
  18. color: #FFF;
  19. font-size: 32rpx;
  20. font-weight: bold;
  21. position: relative;
  22. padding: 0 20rpx;
  23. &.active {
  24. &::after {
  25. content: '';
  26. position: absolute;
  27. bottom: -10rpx;
  28. left: 50%;
  29. transform: translateX(-50%);
  30. width: 120rpx;
  31. height: 4rpx;
  32. background: #FFF;
  33. border-radius: 2rpx;
  34. }
  35. }
  36. }
  37. }
  38. .shop-items {
  39. flex: 1;
  40. overflow-y: auto;
  41. margin-top: 10rpx;
  42. margin-bottom: 18rpx;
  43. padding: 0 20rpx;
  44. &::-webkit-scrollbar {
  45. width: 6rpx;
  46. }
  47. &::-webkit-scrollbar-thumb {
  48. background: rgba(166, 124, 82, 0.3);
  49. border-radius: 3rpx;
  50. }
  51. &::-webkit-scrollbar-track {
  52. background: transparent;
  53. }
  54. .shop-item {
  55. margin-bottom: 20rpx;
  56. .item-card {
  57. background: #FFF1E4;
  58. box-shadow: inset 0rpx 6rpx 0rpx 0rpx rgba(255,255,255,0.3),
  59. inset 0rpx -6rpx 0rpx 0rpx #F6E0CB,
  60. 0rpx 4rpx 4rpx 0rpx #F3D2B2;
  61. border-radius: 28rpx;
  62. border: 2rpx solid #DEB691;
  63. padding: 20rpx;
  64. display: flex;
  65. position: relative;
  66. .new-tag {
  67. position: absolute;
  68. top: -10rpx;
  69. right: 20rpx;
  70. background: linear-gradient(to right, #FF6B6B, #FF8E8E);
  71. color: #FFF;
  72. font-size: 20rpx;
  73. padding: 4rpx 12rpx;
  74. border-radius: 10rpx;
  75. }
  76. .item-left {
  77. margin-right: 20rpx;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. .item-icon {
  82. width: 120rpx;
  83. height: 120rpx;
  84. background: linear-gradient(to bottom right, #B8E986, #7EC242);
  85. border-radius: 16rpx;
  86. padding: 10rpx;
  87. }
  88. .owned-text {
  89. margin-top: 10rpx;
  90. color: #987453;
  91. font-size: 24rpx;
  92. }
  93. }
  94. .item-info {
  95. flex: 1;
  96. display: flex;
  97. flex-direction: column;
  98. .item-name {
  99. color: #987453;
  100. font-size: 28rpx;
  101. font-weight: bold;
  102. margin-bottom: 10rpx;
  103. }
  104. .item-details {
  105. margin-bottom: 20rpx;
  106. .detail-text {
  107. color: #987453;
  108. font-size: 24rpx;
  109. margin-right: 20rpx;
  110. }
  111. }
  112. .item-bottom {
  113. margin-top: auto;
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. .item-price {
  118. display: flex;
  119. align-items: center;
  120. gap: 8rpx;
  121. .currency-icon {
  122. width: 32rpx;
  123. height: 32rpx;
  124. }
  125. text {
  126. color: #987453;
  127. font-size: 28rpx;
  128. font-weight: bold;
  129. }
  130. }
  131. .buy-btn {
  132. min-width: 120rpx;
  133. height: 62rpx;
  134. line-height: 62rpx;
  135. text-align: center;
  136. font-size: 24rpx;
  137. color: #ffffff;
  138. background-image: url('/static/island/UI/btn_yellow.png');
  139. background-size: 100% 100%;
  140. background-repeat: no-repeat;
  141. border: none;
  142. padding: 0 20rpx;
  143. &:active {
  144. transform: scale(0.95);
  145. opacity: 0.9;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. }
  153. }