interview.wxss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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: 80%;
  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. }
  171. /* 添加手势引导蒙层样式 */
  172. .gesture-overlay {
  173. position: absolute;
  174. top: 0;
  175. left: 0;
  176. width: 100%;
  177. height: 80%;
  178. display: flex;
  179. flex-direction: column;
  180. justify-content: center;
  181. align-items: center;
  182. pointer-events: none; /* 允许点击穿透 */
  183. z-index: 10;
  184. }
  185. .gesture-image {
  186. width: 70%;
  187. height: 70%;
  188. opacity: 0.6;
  189. }
  190. .gesture-hint {
  191. background-color: rgba(0, 0, 0, 0.5);
  192. padding: 10rpx 20rpx;
  193. border-radius: 10rpx;
  194. margin-top: 20rpx;
  195. }
  196. .gesture-hint-text {
  197. color: white;
  198. font-size: 28rpx;
  199. text-align: center;
  200. }
  201. /* 添加切换摄像头按钮样式 */
  202. .switch-camera-btn {
  203. width: 200rpx;
  204. height: 80rpx;
  205. line-height: 80rpx;
  206. background-color: rgba(255, 255, 255, 0.3);
  207. color: #ffffff;
  208. text-align: center;
  209. border-radius: 40rpx;
  210. margin: 20rpx 0;
  211. }
  212. .camera-buttons {
  213. display: flex;
  214. flex-direction: row;
  215. justify-content: center;
  216. width: 100%;
  217. margin-top: 20rpx;
  218. }
  219. .capture-btn {
  220. width: 200rpx;
  221. height: 200rpx;
  222. border-radius: 50%;
  223. background-color: #ffffff;
  224. border: 10rpx solid #0039b3;
  225. margin: 30rpx 0;
  226. }
  227. .switch-camera-btn, .cancel-btn {
  228. width: 200rpx;
  229. height: 80rpx;
  230. line-height: 80rpx;
  231. background-color: rgba(255, 255, 255, 0.3);
  232. color: #ffffff;
  233. text-align: center;
  234. border-radius: 40rpx;
  235. margin: 0 20rpx;
  236. }