goods-evaluate.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. .product-name-row {
  89. display: flex;
  90. align-items: center;
  91. flex-wrap: wrap;
  92. gap: 8rpx;
  93. }
  94. .product-divider {
  95. font-size: 28rpx;
  96. color: #dcdcdc;
  97. margin: 0 30rpx;
  98. }
  99. .comment-count {
  100. position: absolute;
  101. top: 24rpx;
  102. right: 24rpx;
  103. font-size: 24rpx;
  104. color: #999;
  105. }
  106. .upload-section {
  107. margin-bottom: 24rpx;
  108. }
  109. /* 一行 4 个,文件之间 24rpx 缝隙 */
  110. .media-grid {
  111. display: flex;
  112. flex-wrap: wrap;
  113. gap: 24rpx;
  114. }
  115. .media-item {
  116. position: relative;
  117. width: 142rpx;
  118. height: 142rpx;
  119. flex-shrink: 0;
  120. border-radius: 12rpx;
  121. overflow: hidden;
  122. background: #f5f5f5;
  123. margin-right: 5px;
  124. margin-bottom: 10px;
  125. }
  126. .upload-trigger {
  127. display: flex;
  128. flex-direction: column;
  129. align-items: center;
  130. justify-content: center;
  131. width: 142rpx;
  132. height: 142rpx;
  133. flex-shrink: 0;
  134. background: #f7f8fa;
  135. border-radius: 12rpx;
  136. border: 2rpx dashed #ddd;
  137. }
  138. .upload-label {
  139. font-size: 24rpx;
  140. color: #999;
  141. margin-top: 12rpx;
  142. }
  143. .media-thumb {
  144. width: 100%;
  145. height: 100%;
  146. display: block;
  147. }
  148. .media-item-video {
  149. position: relative;
  150. width: 100%;
  151. height: 100%;
  152. .media-thumb {
  153. display: block;
  154. }
  155. }
  156. .media-item-play {
  157. position: absolute;
  158. left: 50%;
  159. top: 50%;
  160. transform: translate(-50%, -50%);
  161. pointer-events: none;
  162. }
  163. .media-delete {
  164. position: absolute;
  165. top: 0;
  166. right: 0;
  167. width: 48rpx;
  168. height: 48rpx;
  169. background: rgba(0, 0, 0, 0.5);
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. border-radius: 0 12rpx 0 12rpx;
  174. }
  175. .publish-footer {
  176. position: fixed;
  177. bottom: 0;
  178. left: 0;
  179. right: 0;
  180. background: #fff;
  181. padding: 20rpx 32rpx;
  182. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
  183. z-index: 100;
  184. }
  185. .publish-btn {
  186. height: 88rpx;
  187. line-height: 88rpx;
  188. text-align: center;
  189. font-size: 32rpx;
  190. font-weight: 500;
  191. color: #fff;
  192. background: #1976d2;
  193. border-radius: 44rpx;
  194. }
  195. .publish-btn.disabled {
  196. background: #e8e8e8;
  197. color: #999;
  198. }