goods-evaluateDetail.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. position: relative;
  16. display: flex;
  17. align-items: center;
  18. padding-bottom: 32rpx;
  19. margin-bottom: 24rpx;
  20. border-bottom: 1rpx solid #eee;
  21. }
  22. .product-img {
  23. width: 120rpx;
  24. height: 120rpx;
  25. border-radius: 12rpx;
  26. background: #f5f5f5;
  27. flex-shrink: 0;
  28. }
  29. .product-info {
  30. flex: 1;
  31. margin-left: 24rpx;
  32. min-width: 0;
  33. display: flex;
  34. flex-direction: column;
  35. justify-content: center;
  36. }
  37. .product-name-row {
  38. display: flex;
  39. align-items: center;
  40. flex-wrap: wrap;
  41. gap: 8rpx;
  42. }
  43. .product-name {
  44. font-size: 30rpx;
  45. color: #333;
  46. font-weight: 500;
  47. }
  48. .product-divider {
  49. font-size: 28rpx;
  50. color: #dcdcdc;
  51. margin: 0 30rpx;
  52. }
  53. .product-spec {
  54. font-size: 26rpx;
  55. color: #999;
  56. }
  57. .product-close {
  58. position: absolute;
  59. top: 0;
  60. right: 0;
  61. padding: 16rpx;
  62. z-index: 1;
  63. }
  64. .rate-row {
  65. display: flex;
  66. align-items: center;
  67. // justify-content: space-between;
  68. margin-bottom: 32rpx;
  69. }
  70. .rate-label {
  71. font-size: 30rpx;
  72. color: #333;
  73. margin-right: 20px;
  74. }
  75. .rate-wrap {
  76. display: flex;
  77. align-items: center;
  78. gap: 16rpx;
  79. }
  80. .rate-score {
  81. font-size: 28rpx;
  82. color: #333;
  83. min-width: 56rpx;
  84. margin-left: 20px;
  85. }
  86. .comment-section {
  87. position: relative;
  88. margin-bottom: 32rpx;
  89. }
  90. .comment-display {
  91. width: 100%;
  92. min-height: 120rpx;
  93. padding: 24rpx;
  94. font-size: 28rpx;
  95. color: #333;
  96. background: #f7f8fa;
  97. border-radius: 12rpx;
  98. box-sizing: border-box;
  99. line-height: 1.5;
  100. white-space: pre-wrap;
  101. word-break: break-all;
  102. }
  103. .comment-input {
  104. width: 100%;
  105. min-height: 200rpx;
  106. padding: 24rpx;
  107. font-size: 28rpx;
  108. color: #333;
  109. background: #f7f8fa;
  110. border-radius: 12rpx;
  111. box-sizing: border-box;
  112. }
  113. .comment-placeholder {
  114. color: #999;
  115. }
  116. .comment-count {
  117. position: absolute;
  118. top: 24rpx;
  119. right: 24rpx;
  120. font-size: 24rpx;
  121. color: #999;
  122. }
  123. .upload-section {
  124. margin-bottom: 24rpx;
  125. }
  126. .upload-section .empty-media {
  127. font-size: 26rpx;
  128. color: #999;
  129. margin-top: 8rpx;
  130. display: block;
  131. }
  132. .section-label {
  133. font-size: 28rpx;
  134. color: #666;
  135. margin-bottom: 16rpx;
  136. }
  137. .upload-row {
  138. display: flex;
  139. gap: 20rpx;
  140. flex-wrap: wrap;
  141. }
  142. .upload-trigger {
  143. display: inline-flex;
  144. flex-direction: column;
  145. align-items: center;
  146. justify-content: center;
  147. width: 160rpx;
  148. height: 160rpx;
  149. border-radius: 12rpx;
  150. border: 2rpx dashed #ddd;
  151. }
  152. .upload-trigger--image {
  153. background: #f2f2f2;
  154. }
  155. .upload-trigger--video {
  156. background: #4a4a4a;
  157. border-color: #333;
  158. }
  159. .upload-label {
  160. font-size: 26rpx;
  161. color: #999;
  162. margin-top: 12rpx;
  163. }
  164. .upload-label--light {
  165. color: rgba(255, 255, 255, 0.9);
  166. }
  167. .upload-trigger .t-icon {
  168. display: block;
  169. }
  170. /* 一行 4 个,与评价页一致 */
  171. .media-grid {
  172. display: flex;
  173. flex-wrap: wrap;
  174. gap: 24rpx;
  175. }
  176. .media-list--readonly .media-item {
  177. .media-delete {
  178. display: none;
  179. }
  180. }
  181. .media-item {
  182. position: relative;
  183. width: 140rpx;
  184. height: 140rpx;
  185. flex-shrink: 0;
  186. border-radius: 12rpx;
  187. overflow: hidden;
  188. background: #f5f5f5;
  189. margin-bottom: 10px;
  190. }
  191. .media-thumb {
  192. width: 100%;
  193. height: 100%;
  194. display: block;
  195. }
  196. .media-item-video {
  197. position: relative;
  198. width: 100%;
  199. height: 100%;
  200. .media-thumb {
  201. display: block;
  202. }
  203. }
  204. .media-item-play {
  205. position: absolute;
  206. left: 50%;
  207. top: 50%;
  208. transform: translate(-50%, -50%);
  209. pointer-events: none;
  210. }
  211. .media-delete {
  212. position: absolute;
  213. top: 0;
  214. right: 0;
  215. width: 48rpx;
  216. height: 48rpx;
  217. background: rgba(0, 0, 0, 0.5);
  218. display: flex;
  219. align-items: center;
  220. justify-content: center;
  221. border-radius: 0 12rpx 0 12rpx;
  222. }
  223. .publish-footer {
  224. position: fixed;
  225. bottom: 0;
  226. left: 0;
  227. right: 0;
  228. background: #fff;
  229. padding: 20rpx 32rpx;
  230. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
  231. z-index: 100;
  232. }
  233. .publish-btn {
  234. height: 88rpx;
  235. line-height: 88rpx;
  236. text-align: center;
  237. font-size: 32rpx;
  238. font-weight: 500;
  239. color: #fff;
  240. background: #1976d2;
  241. border-radius: 44rpx;
  242. }
  243. .publish-btn.disabled {
  244. background: #e8e8e8;
  245. color: #999;
  246. }
  247. /* 全屏轮播层:图片+视频一起,轮播到视频自动播放 */
  248. .media-carousel-overlay {
  249. position: fixed;
  250. left: 0;
  251. top: 0;
  252. right: 0;
  253. bottom: 0;
  254. z-index: 1000;
  255. background: #000;
  256. }
  257. .media-carousel-swiper {
  258. width: 100%;
  259. height: 100%;
  260. }
  261. .media-carousel-item {
  262. width: 100%;
  263. height: 100%;
  264. display: flex;
  265. align-items: center;
  266. justify-content: center;
  267. }
  268. .media-carousel-image-wrap {
  269. width: 100%;
  270. height: 100%;
  271. display: flex;
  272. align-items: center;
  273. justify-content: center;
  274. }
  275. .media-carousel-image {
  276. width: 100%;
  277. height: 100%;
  278. display: block;
  279. object-position: center;
  280. }
  281. .media-carousel-video-wrap {
  282. width: 100%;
  283. height: 100%;
  284. }
  285. .media-carousel-video {
  286. width: 100%;
  287. height: 100%;
  288. display: block;
  289. }
  290. .media-carousel-close {
  291. position: absolute;
  292. top: calc(var(--status-bar-height, 0px) + 24rpx);
  293. right: 24rpx;
  294. width: 80rpx;
  295. height: 80rpx;
  296. border-radius: 50%;
  297. background: rgba(0, 0, 0, 0.5);
  298. display: flex;
  299. align-items: center;
  300. justify-content: center;
  301. z-index: 1001;
  302. }