interview.wxss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 94vh;
  5. background-color: #f5f5f5;
  6. }
  7. .header {
  8. padding: 20rpx;
  9. background-color: #007AFF;
  10. text-align: center;
  11. }
  12. .title {
  13. color: #ffffff;
  14. font-size: 36rpx;
  15. font-weight: bold;
  16. }
  17. .photo-container {
  18. flex: 1;
  19. padding: 20rpx;
  20. display: flex;
  21. flex-direction: column;
  22. }
  23. .instruction {
  24. padding: 20rpx;
  25. background-color: #E5E5EA;
  26. border-radius: 10rpx;
  27. margin-bottom: 20rpx;
  28. }
  29. .preview-container {
  30. flex: 1;
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. background-color: #E5E5EA;
  35. border-radius: 10rpx;
  36. margin-bottom: 20rpx;
  37. overflow: hidden;
  38. }
  39. .preview-image {
  40. width: 100%;
  41. height: 100%;
  42. }
  43. .empty-preview {
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. width: 100%;
  48. height: 100%;
  49. color: #999;
  50. }
  51. .thumbnails {
  52. display: flex;
  53. justify-content: space-around;
  54. margin-bottom: 20rpx;
  55. }
  56. .thumbnail-item {
  57. width: 150rpx;
  58. height: 150rpx;
  59. border-radius: 10rpx;
  60. overflow: hidden;
  61. background-color: #E5E5EA;
  62. display: flex;
  63. justify-content: center;
  64. align-items: center;
  65. border: 4rpx solid transparent;
  66. }
  67. .thumbnail-item.active {
  68. border-color: #007AFF;
  69. }
  70. .thumbnail-item.completed {
  71. background-color: #ffffff;
  72. }
  73. .thumbnail-image {
  74. width: 100%;
  75. height: 100%;
  76. }
  77. .thumbnail-placeholder {
  78. font-size: 40rpx;
  79. color: #999;
  80. }
  81. .controls {
  82. padding: 20rpx;
  83. background-color: #ffffff;
  84. border-top: 1px solid #0039b3;
  85. }
  86. .camera-btn {
  87. width: 100%;
  88. height: 80rpx;
  89. line-height: 80rpx;
  90. text-align: center;
  91. background-color: #0039b3;
  92. color: white;
  93. border-radius: 40rpx;
  94. margin-bottom: 20rpx;
  95. }
  96. .navigation-btns {
  97. display: flex;
  98. justify-content: space-between;
  99. }
  100. .nav-btn {
  101. width: 48%;
  102. height: 80rpx;
  103. line-height: 80rpx;
  104. text-align: center;
  105. border-radius: 40rpx;
  106. }
  107. .nav-btn.prev {
  108. background-color: #E5E5EA;
  109. color: #333;
  110. }
  111. .nav-btn.next {
  112. background-color: #34C759;
  113. color: white;
  114. }
  115. .nav-btn[disabled] {
  116. opacity: 0.5;
  117. }
  118. /* 浏览器摄像头相关样式 */
  119. .camera-container {
  120. position: fixed;
  121. top: 0;
  122. left: 0;
  123. width: 100%;
  124. height: 100%;
  125. background-color: #000;
  126. z-index: 999;
  127. display: flex;
  128. flex-direction: column;
  129. justify-content: center;
  130. align-items: center;
  131. }
  132. .camera-video {
  133. width: 100%;
  134. height: 70%;
  135. object-fit: cover;
  136. }
  137. .camera-canvas {
  138. display: none;
  139. }
  140. .capture-btn {
  141. width: 200rpx;
  142. height: 200rpx;
  143. border-radius: 50%;
  144. background-color: #ffffff;
  145. border: 10rpx solid #0039b3;
  146. margin: 30rpx 0;
  147. }
  148. .cancel-btn {
  149. width: 200rpx;
  150. height: 80rpx;
  151. line-height: 80rpx;
  152. background-color: rgba(255, 255, 255, 0.3);
  153. color: #ffffff;
  154. text-align: center;
  155. border-radius: 40rpx;
  156. }
  157. /* 小程序相机组件样式 */
  158. .camera-component {
  159. width: 100%;
  160. height: 100%;
  161. display: block;
  162. }
  163. .camera-controls {
  164. width: 100%;
  165. display: flex;
  166. flex-direction: column;
  167. align-items: center;
  168. position: absolute;
  169. bottom: 50rpx;
  170. z-index: 9999;
  171. }
  172. /* 添加手势引导蒙层样式 */
  173. .gesture-overlay {
  174. position: absolute;
  175. top: 0;
  176. left: 0;
  177. width: 100%;
  178. height: 80%;
  179. display: flex;
  180. flex-direction: column;
  181. justify-content: center;
  182. align-items: center;
  183. pointer-events: none; /* 允许点击穿透 */
  184. z-index: 10;
  185. }
  186. .gesture-image {
  187. width: 100%;
  188. height: 100%;
  189. /* opacity: 0.6; */
  190. }
  191. .gesture-hint {
  192. position: fixed;
  193. top: 1px;
  194. background-color: rgba(0, 0, 0, 0.5);
  195. padding: 10rpx 20rpx;
  196. border-radius: 10rpx;
  197. margin-top: 20rpx;
  198. z-index: 999;
  199. }
  200. .gesture-hint-text {
  201. color: white;
  202. font-size: 28rpx;
  203. text-align: center;
  204. }
  205. /* 添加切换摄像头按钮样式 */
  206. .switch-camera-btn {
  207. width: 200rpx;
  208. height: 80rpx;
  209. line-height: 80rpx;
  210. background-color: rgba(255, 255, 255, 0.3);
  211. color: #ffffff;
  212. text-align: center;
  213. border-radius: 40rpx;
  214. margin: 20rpx 0;
  215. }
  216. .camera-buttons {
  217. display: flex;
  218. flex-direction: row;
  219. justify-content: center;
  220. width: 100%;
  221. margin-top: 20rpx;
  222. }
  223. .capture-btn {
  224. width: 200rpx;
  225. height: 200rpx;
  226. border-radius: 50%;
  227. background-color: #ffffff;
  228. border: 10rpx solid #0039b3;
  229. margin: 30rpx 0;
  230. }
  231. .switch-camera-btn, .cancel-btn {
  232. width: 200rpx;
  233. height: 80rpx;
  234. line-height: 80rpx;
  235. background-color: rgba(255, 255, 255, 0.3);
  236. color: #ffffff;
  237. text-align: center;
  238. border-radius: 40rpx;
  239. margin: 0 20rpx;
  240. }
  241. /* 添加右上角引导图标样式 */
  242. .guide-icon {
  243. position: absolute;
  244. top: 30rpx;
  245. right: 30rpx;
  246. width: 160rpx;
  247. height: 200rpx;
  248. display: flex;
  249. flex-direction: column;
  250. align-items: center;
  251. justify-content: center;
  252. background-color: rgba(0, 0, 0, 0.5);
  253. border-radius: 10rpx;
  254. z-index: 11;
  255. }
  256. .guide-image {
  257. width: 160rpx;
  258. height: 200rpx;
  259. }
  260. .guide-text {
  261. color: white;
  262. font-size: 24rpx;
  263. margin-top: 5rpx;
  264. }