goods-evaluateDetail.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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: 142rpx;
  184. height: 142rpx;
  185. flex-shrink: 0;
  186. border-radius: 12rpx;
  187. overflow: hidden;
  188. background: #f5f5f5;
  189. margin-right: 5px;
  190. margin-bottom: 10px;
  191. }
  192. .media-thumb {
  193. width: 100%;
  194. height: 100%;
  195. display: block;
  196. }
  197. .media-item-video {
  198. position: relative;
  199. width: 100%;
  200. height: 100%;
  201. .media-thumb {
  202. display: block;
  203. }
  204. }
  205. .media-item-play {
  206. position: absolute;
  207. left: 50%;
  208. top: 50%;
  209. transform: translate(-50%, -50%);
  210. pointer-events: none;
  211. }
  212. .media-delete {
  213. position: absolute;
  214. top: 0;
  215. right: 0;
  216. width: 48rpx;
  217. height: 48rpx;
  218. background: rgba(0, 0, 0, 0.5);
  219. display: flex;
  220. align-items: center;
  221. justify-content: center;
  222. border-radius: 0 12rpx 0 12rpx;
  223. }
  224. .publish-footer {
  225. position: fixed;
  226. bottom: 0;
  227. left: 0;
  228. right: 0;
  229. background: #fff;
  230. padding: 20rpx 32rpx;
  231. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
  232. z-index: 100;
  233. }
  234. .publish-btn {
  235. height: 88rpx;
  236. line-height: 88rpx;
  237. text-align: center;
  238. font-size: 32rpx;
  239. font-weight: 500;
  240. color: #fff;
  241. background: #1976d2;
  242. border-radius: 44rpx;
  243. }
  244. .publish-btn.disabled {
  245. background: #e8e8e8;
  246. color: #999;
  247. }
  248. /* 全屏轮播层:图片+视频一起,轮播到视频自动播放 */
  249. .media-carousel-overlay {
  250. position: fixed;
  251. left: 0;
  252. top: 0;
  253. right: 0;
  254. bottom: 0;
  255. z-index: 1000;
  256. background: #000;
  257. }
  258. .media-carousel-swiper {
  259. width: 100%;
  260. height: 100%;
  261. }
  262. .media-carousel-item {
  263. width: 100%;
  264. height: 100%;
  265. display: flex;
  266. align-items: center;
  267. justify-content: center;
  268. }
  269. .media-carousel-image-wrap {
  270. width: 100%;
  271. height: 100%;
  272. display: flex;
  273. align-items: center;
  274. justify-content: center;
  275. }
  276. .media-carousel-image {
  277. width: 100%;
  278. height: 100%;
  279. display: block;
  280. object-position: center;
  281. }
  282. .media-carousel-video-wrap {
  283. width: 100%;
  284. height: 100%;
  285. }
  286. .media-carousel-video {
  287. width: 100%;
  288. height: 100%;
  289. display: block;
  290. }
  291. .media-carousel-close {
  292. position: absolute;
  293. top: calc(var(--status-bar-height, 0px) + 24rpx);
  294. right: 24rpx;
  295. width: 80rpx;
  296. height: 80rpx;
  297. border-radius: 50%;
  298. background: rgba(0, 0, 0, 0.5);
  299. display: flex;
  300. align-items: center;
  301. justify-content: center;
  302. z-index: 1001;
  303. }