ShopDialog.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. .shop-content {
  2. margin-top: 150rpx;
  3. margin-left: 10rpx;
  4. background: url('/static/island/UI/kuang.png') no-repeat center center;
  5. background-size: cover;
  6. width: 702rpx;
  7. height: 998rpx;
  8. display: flex;
  9. flex-direction: column;
  10. .shop-header {
  11. margin-top: -60rpx;
  12. width: 802rpx;
  13. height: 150rpx;
  14. margin-left: -50rpx;
  15. margin-right: -50rpx;
  16. background: url('/static/island/UI/shop/shop_header.png') no-repeat center center;
  17. background-size: contain;
  18. }
  19. .shop-name {
  20. width: 300rpx;
  21. height: 60rpx;
  22. margin: 0 auto;
  23. background: url('/static/island/UI/title_bg.png') no-repeat center center;
  24. background-size: 100% 100%;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. color: #FFF;
  29. font-size: 32rpx;
  30. font-weight: bold;
  31. margin-bottom: 20rpx;
  32. }
  33. .shop-tabs {
  34. flex-shrink: 0;
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. padding-top: 60rpx;
  39. gap: 40rpx;
  40. .tab-item {
  41. color: #FFF;
  42. font-size: 32rpx;
  43. font-weight: bold;
  44. position: relative;
  45. padding: 0 20rpx;
  46. &.active {
  47. &::after {
  48. content: '';
  49. position: absolute;
  50. bottom: -10rpx;
  51. left: 50%;
  52. transform: translateX(-50%);
  53. width: 120rpx;
  54. height: 4rpx;
  55. background: #FFF;
  56. border-radius: 2rpx;
  57. }
  58. }
  59. }
  60. }
  61. .shop-items {
  62. flex: 1;
  63. overflow-y: auto;
  64. margin-top: 10rpx;
  65. margin-bottom: 18rpx;
  66. padding: 0 20rpx;
  67. &::-webkit-scrollbar {
  68. width: 6rpx;
  69. }
  70. &::-webkit-scrollbar-thumb {
  71. background: rgba(166, 124, 82, 0.3);
  72. border-radius: 3rpx;
  73. }
  74. &::-webkit-scrollbar-track {
  75. background: transparent;
  76. }
  77. .shop-item {
  78. margin-bottom: 20rpx;
  79. .item-card {
  80. background: #FFF1E4;
  81. box-shadow: inset 0rpx 6rpx 0rpx 0rpx rgba(255,255,255,0.3),
  82. inset 0rpx -6rpx 0rpx 0rpx #F6E0CB,
  83. 0rpx 4rpx 4rpx 0rpx #F3D2B2;
  84. border-radius: 28rpx;
  85. border: 2rpx solid #DEB691;
  86. padding: 20rpx;
  87. display: flex;
  88. position: relative;
  89. width: 90%;
  90. margin: 0 auto;
  91. align-items: center;
  92. justify-content: space-between;
  93. .new-tag {
  94. position: absolute;
  95. top: -10rpx;
  96. right: 20rpx;
  97. background: linear-gradient(to right, #FF6B6B, #FF8E8E);
  98. color: #FFF;
  99. font-size: 20rpx;
  100. padding: 4rpx 12rpx;
  101. border-radius: 10rpx;
  102. }
  103. .item-left {
  104. flex-shrink: 0;
  105. margin-right: 20rpx;
  106. display: flex;
  107. flex-direction: column;
  108. align-items: center;
  109. .item-grid {
  110. position: relative;
  111. display: flex;
  112. width: 120rpx;
  113. height: 120rpx;
  114. .item-icon {
  115. width: 120rpx;
  116. height: 120rpx;
  117. background: #FBD6A9;
  118. border-radius: 16rpx;
  119. padding: 5rpx;
  120. box-sizing: border-box;
  121. border: 2rpx solid #DEB691;
  122. position: relative;
  123. display: flex;
  124. flex-direction: column;
  125. align-items: center;
  126. justify-content: center;
  127. }
  128. .owned-text {
  129. font-size: 20rpx;
  130. color:#A95F3C;
  131. white-space: normal;
  132. line-height: 1.2;
  133. width: 95%;
  134. margin: 12rpx 2rpx 2rpx 2rpx;
  135. background: rgba(255, 255, 255, 0.8);
  136. position: absolute;
  137. bottom: 0;
  138. left: 0;
  139. right: 0;
  140. border-radius: 0 0 16rpx 16rpx;
  141. text-align: center;
  142. }
  143. }
  144. }
  145. .item-center {
  146. flex: 1;
  147. display: flex;
  148. flex-direction: column;
  149. align-items: flex-start;
  150. margin: 0 20rpx 0 0;
  151. .item-name {
  152. color: #987453;
  153. font-size: 24rpx;
  154. font-weight: bold;
  155. margin-bottom: 6rpx;
  156. text-align: left;
  157. }
  158. .item-details {
  159. display: flex;
  160. flex-direction: column;
  161. align-items: flex-start;
  162. gap: 0rpx;
  163. .detail-text {
  164. color: #987453;
  165. font-size: 20rpx;
  166. text-align: left;
  167. white-space: pre-wrap;
  168. line-height: 1.4;
  169. }
  170. }
  171. }
  172. .item-right {
  173. flex-shrink: 0;
  174. .buy-btn {
  175. min-width: 150rpx;
  176. height: 55rpx;
  177. display: flex;
  178. flex-direction: column;
  179. align-items: center;
  180. justify-content: center;
  181. font-size: 24rpx;
  182. color: #ffffff;
  183. background-image: url('/static/island/UI/btn_green.png');
  184. background-size: 100% 100%;
  185. background-repeat: no-repeat;
  186. border: none;
  187. padding: 0;
  188. .item-price {
  189. display: flex;
  190. align-items: center;
  191. gap: 8rpx;
  192. .currency-icon {
  193. width: 32rpx;
  194. height: 32rpx;
  195. }
  196. text {
  197. color: #fff;
  198. font-size: 28rpx;
  199. font-weight: bold;
  200. }
  201. }
  202. &:active {
  203. transform: scale(0.95);
  204. opacity: 0.9;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. }
  211. }