goods-evaluate.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. @import "../../../../themes/page.scss";
  2. .page-scroll__container {
  3. flex: 0 1 auto;
  4. height: var(--page-container-safeHeight, 100vh);
  5. background: #f7f8fa;
  6. padding-bottom: 140rpx;
  7. }
  8. .evaluate-container {
  9. background: #fff;
  10. margin: 24rpx;
  11. border-radius: 16rpx;
  12. padding: 32rpx;
  13. }
  14. .product-card {
  15. display: flex;
  16. align-items: center;
  17. padding-bottom: 32rpx;
  18. margin-bottom: 24rpx;
  19. border-bottom: 1rpx solid #eee;
  20. }
  21. .product-img {
  22. width: 120rpx;
  23. height: 120rpx;
  24. border-radius: 12rpx;
  25. background: #f5f5f5;
  26. flex-shrink: 0;
  27. }
  28. .product-info {
  29. flex: 1;
  30. margin-left: 24rpx;
  31. min-width: 0;
  32. display: flex;
  33. flex-direction: column;
  34. gap: 8rpx;
  35. }
  36. .product-name {
  37. font-size: 30rpx;
  38. color: #333;
  39. font-weight: 500;
  40. }
  41. .product-spec {
  42. font-size: 26rpx;
  43. color: #999;
  44. }
  45. .product-close {
  46. flex-shrink: 0;
  47. padding: 16rpx;
  48. }
  49. .rate-row {
  50. display: flex;
  51. align-items: center;
  52. // justify-content: space-between;
  53. margin-bottom: 32rpx;
  54. }
  55. .rate-label {
  56. font-size: 30rpx;
  57. color: #333;
  58. margin-right: 20px;
  59. }
  60. .rate-wrap {
  61. display: flex;
  62. align-items: center;
  63. gap: 16rpx;
  64. }
  65. .rate-score {
  66. font-size: 26rpx;
  67. color: #999;
  68. min-width: 48rpx;
  69. margin-left: 20px;
  70. }
  71. .comment-section {
  72. position: relative;
  73. margin-bottom: 32rpx;
  74. }
  75. .comment-input {
  76. width: 100%;
  77. min-height: 200rpx;
  78. padding: 24rpx;
  79. font-size: 28rpx;
  80. color: #333;
  81. background: #f7f8fa;
  82. border-radius: 12rpx;
  83. box-sizing: border-box;
  84. }
  85. .comment-placeholder {
  86. color: #999;
  87. }
  88. .comment-count {
  89. position: absolute;
  90. top: 24rpx;
  91. right: 24rpx;
  92. font-size: 24rpx;
  93. color: #999;
  94. }
  95. .upload-section {
  96. margin-bottom: 24rpx;
  97. }
  98. /* 一行 4 个,文件之间 24rpx 缝隙 */
  99. .media-grid {
  100. display: flex;
  101. flex-wrap: wrap;
  102. gap: 24rpx;
  103. }
  104. .media-item {
  105. position: relative;
  106. width: 142rpx;
  107. height: 142rpx;
  108. flex-shrink: 0;
  109. border-radius: 12rpx;
  110. overflow: hidden;
  111. background: #f5f5f5;
  112. margin-right: 5px;
  113. margin-bottom: 10px;
  114. }
  115. .upload-trigger {
  116. display: flex;
  117. flex-direction: column;
  118. align-items: center;
  119. justify-content: center;
  120. width: 142rpx;
  121. height: 142rpx;
  122. flex-shrink: 0;
  123. background: #f7f8fa;
  124. border-radius: 12rpx;
  125. border: 2rpx dashed #ddd;
  126. }
  127. .upload-label {
  128. font-size: 24rpx;
  129. color: #999;
  130. margin-top: 12rpx;
  131. }
  132. .media-thumb {
  133. width: 100%;
  134. height: 100%;
  135. display: block;
  136. }
  137. .media-item-video {
  138. position: relative;
  139. width: 100%;
  140. height: 100%;
  141. .media-thumb {
  142. display: block;
  143. }
  144. }
  145. .media-item-play {
  146. position: absolute;
  147. left: 50%;
  148. top: 50%;
  149. transform: translate(-50%, -50%);
  150. pointer-events: none;
  151. }
  152. .media-delete {
  153. position: absolute;
  154. top: 0;
  155. right: 0;
  156. width: 48rpx;
  157. height: 48rpx;
  158. background: rgba(0, 0, 0, 0.5);
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. border-radius: 0 12rpx 0 12rpx;
  163. }
  164. .publish-footer {
  165. position: fixed;
  166. bottom: 0;
  167. left: 0;
  168. right: 0;
  169. background: #fff;
  170. padding: 20rpx 32rpx;
  171. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
  172. z-index: 100;
  173. }
  174. .publish-btn {
  175. height: 88rpx;
  176. line-height: 88rpx;
  177. text-align: center;
  178. font-size: 32rpx;
  179. font-weight: 500;
  180. color: #fff;
  181. background: #1976d2;
  182. border-radius: 44rpx;
  183. }
  184. .publish-btn.disabled {
  185. background: #e8e8e8;
  186. color: #999;
  187. }