goods-evaluate.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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: 140rpx;
  118. height: 140rpx;
  119. flex-shrink: 0;
  120. border-radius: 12rpx;
  121. overflow: hidden;
  122. background: #f5f5f5;
  123. margin-bottom: 10px;
  124. }
  125. .upload-trigger {
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. justify-content: center;
  130. width: 142rpx;
  131. height: 142rpx;
  132. flex-shrink: 0;
  133. background: #f7f8fa;
  134. border-radius: 12rpx;
  135. border: 2rpx dashed #ddd;
  136. }
  137. .upload-label {
  138. font-size: 24rpx;
  139. color: #999;
  140. margin-top: 12rpx;
  141. }
  142. .media-thumb {
  143. width: 100%;
  144. height: 100%;
  145. display: block;
  146. }
  147. .media-item-video {
  148. position: relative;
  149. width: 100%;
  150. height: 100%;
  151. .media-thumb {
  152. display: block;
  153. }
  154. }
  155. .media-item-play {
  156. position: absolute;
  157. left: 50%;
  158. top: 50%;
  159. transform: translate(-50%, -50%);
  160. pointer-events: none;
  161. }
  162. .media-delete {
  163. position: absolute;
  164. top: 0;
  165. right: 0;
  166. width: 48rpx;
  167. height: 48rpx;
  168. background: rgba(0, 0, 0, 0.5);
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. border-radius: 0 12rpx 0 12rpx;
  173. }
  174. .publish-footer {
  175. position: fixed;
  176. bottom: 0;
  177. left: 0;
  178. right: 0;
  179. background: #fff;
  180. padding: 20rpx 32rpx;
  181. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
  182. z-index: 100;
  183. }
  184. .publish-btn {
  185. height: 88rpx;
  186. line-height: 88rpx;
  187. text-align: center;
  188. font-size: 32rpx;
  189. font-weight: 500;
  190. color: #fff;
  191. background: #1976d2;
  192. border-radius: 44rpx;
  193. }
  194. .publish-btn.disabled {
  195. background: #e8e8e8;
  196. color: #999;
  197. }