123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- .container {
- display: flex;
- flex-direction: column;
- height: 94vh;
- background-color: #f5f5f5;
- }
- .header {
- padding: 20rpx;
- background-color: #007AFF;
- text-align: center;
- }
- .title {
- color: #ffffff;
- font-size: 36rpx;
- font-weight: bold;
- }
- .photo-container {
- flex: 1;
- padding: 20rpx;
- display: flex;
- flex-direction: column;
- }
- .instruction {
- padding: 20rpx;
- background-color: #E5E5EA;
- border-radius: 10rpx;
- margin-bottom: 20rpx;
- }
- .preview-container {
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: #E5E5EA;
- border-radius: 10rpx;
- margin-bottom: 20rpx;
- overflow: hidden;
- }
- .preview-image {
- width: 100%;
- height: 100%;
- }
- .empty-preview {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 100%;
- color: #999;
- }
- .thumbnails {
- display: flex;
- justify-content: space-around;
- margin-bottom: 20rpx;
- }
- .thumbnail-item {
- width: 150rpx;
- height: 150rpx;
- border-radius: 10rpx;
- overflow: hidden;
- background-color: #E5E5EA;
- display: flex;
- justify-content: center;
- align-items: center;
- border: 4rpx solid transparent;
- }
- .thumbnail-item.active {
- border-color: #007AFF;
- }
- .thumbnail-item.completed {
- background-color: #ffffff;
- }
- .thumbnail-image {
- width: 100%;
- height: 100%;
- }
- .thumbnail-placeholder {
- font-size: 40rpx;
- color: #999;
- }
- .controls {
- padding: 20rpx;
- background-color: #ffffff;
- border-top: 1px solid #0039b3;
- }
- .camera-btn {
- width: 100%;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- background-color: #0039b3;
- color: white;
- border-radius: 40rpx;
- margin-bottom: 20rpx;
- }
- .navigation-btns {
- display: flex;
- justify-content: space-between;
- }
- .nav-btn {
- width: 48%;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- border-radius: 40rpx;
- }
- .nav-btn.prev {
- background-color: #E5E5EA;
- color: #333;
- }
- .nav-btn.next {
- background-color: #34C759;
- color: white;
- }
- .nav-btn[disabled] {
- opacity: 0.5;
- }
- /* 浏览器摄像头相关样式 */
- .camera-container {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: #000;
- z-index: 999;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .camera-video {
- width: 100%;
- height: 70%;
- object-fit: cover;
- }
- .camera-canvas {
- display: none;
- }
- .capture-btn {
- width: 200rpx;
- height: 200rpx;
- border-radius: 50%;
- background-color: #ffffff;
- border: 10rpx solid #0039b3;
- margin: 30rpx 0;
- }
- .cancel-btn {
- width: 200rpx;
- height: 80rpx;
- line-height: 80rpx;
- background-color: rgba(255, 255, 255, 0.3);
- color: #ffffff;
- text-align: center;
- border-radius: 40rpx;
- }
- /* 小程序相机组件样式 */
- .camera-component {
- width: 100%;
- height: 100%;
- display: block;
- }
- .camera-controls {
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- position: absolute;
- bottom: 50rpx;
- z-index: 9999;
- }
- /* 添加手势引导蒙层样式 */
- .gesture-overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 80%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- pointer-events: none; /* 允许点击穿透 */
- z-index: 10;
- }
- .gesture-image {
- width: 100%;
- height: 100%;
- /* opacity: 0.6; */
- }
- .gesture-hint {
- position: fixed;
- top: 1px;
- background-color: rgba(0, 0, 0, 0.5);
- padding: 10rpx 20rpx;
- border-radius: 10rpx;
- margin-top: 20rpx;
- z-index: 999;
- }
- .gesture-hint-text {
- color: white;
- font-size: 28rpx;
- text-align: center;
- }
- /* 添加切换摄像头按钮样式 */
- .switch-camera-btn {
- width: 200rpx;
- height: 80rpx;
- line-height: 80rpx;
- background-color: rgba(255, 255, 255, 0.3);
- color: #ffffff;
- text-align: center;
- border-radius: 40rpx;
- margin: 20rpx 0;
- }
- .camera-buttons {
- display: flex;
- flex-direction: row;
- justify-content: center;
- width: 100%;
- margin-top: 20rpx;
- }
- .capture-btn {
- width: 200rpx;
- height: 200rpx;
- border-radius: 50%;
- background-color: #ffffff;
- border: 10rpx solid #0039b3;
- margin: 30rpx 0;
- }
- .switch-camera-btn, .cancel-btn {
- width: 200rpx;
- height: 80rpx;
- line-height: 80rpx;
- background-color: rgba(255, 255, 255, 0.3);
- color: #ffffff;
- text-align: center;
- border-radius: 40rpx;
- margin: 0 20rpx;
- }
- /* 添加右上角引导图标样式 */
- .guide-icon {
- position: absolute;
- top: 30rpx;
- right: 30rpx;
- width: 160rpx;
- height: 200rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- background-color: rgba(0, 0, 0, 0.5);
- border-radius: 10rpx;
- z-index: 11;
- }
- .guide-image {
- width: 160rpx;
- height: 200rpx;
- }
- .guide-text {
- color: white;
- font-size: 24rpx;
- margin-top: 5rpx;
- }
|