feat(detail): 参会人表新增 增值税及附加/摘要/现场照片 3 列 + 劳务协议展示, 角色=劳务形式, 费项改名 应发金额/个税税金/实发金额

This commit is contained in:
郭庆泰
2026-08-22 16:27:54 +08:00
parent 2ae4cd3ea5
commit da7c19af6c
47 changed files with 4976 additions and 15 deletions
+154
View File
@@ -0,0 +1,154 @@
<template>
<view class="home">
<view class="hero">
<text class="hero-title">取景拍摄</text>
<text class="hero-subtitle">选择拍摄场景</text>
</view>
<view class="list">
<view class="card" @click="goSignin">
<view class="card-icon-wrap">
<text class="card-icon">📄</text>
</view>
<view class="card-body">
<text class="card-title">签到表拍摄</text>
<text class="card-desc">A4 竖版 · 框宽 90% · 适合签到表 / 会议材料</text>
</view>
<text class="card-arrow"></text>
</view>
<view class="card" @click="goPanorama">
<view class="card-icon-wrap">
<text class="card-icon">📷</text>
</view>
<view class="card-body">
<text class="card-title">全景照片拍摄</text>
<text class="card-desc">16:9 横版 · 框宽 80% · 适合合影 / 全景</text>
</view>
<text class="card-arrow"></text>
</view>
</view>
<view class="footer">
<text class="footer-text">POC 阶段 · 真机测试需 HTTPS</text>
</view>
</view>
</template>
<script setup lang="uts">
function goSignin() {
uni.navigateTo({ url: '/pages/signin/index' })
}
function goPanorama() {
uni.navigateTo({ url: '/pages/panorama/index' })
}
</script>
<style>
.home {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #0d0d0d;
display: flex;
flex-direction: column;
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
overflow-y: auto;
}
.hero {
padding: 80rpx 40rpx 40rpx;
}
.hero-title {
display: block;
color: #FFD600;
font-size: 56rpx;
font-weight: bold;
margin-bottom: 12rpx;
}
.hero-subtitle {
display: block;
color: #999;
font-size: 28rpx;
}
.list {
display: flex;
flex-direction: column;
padding: 0 40rpx;
}
.card {
display: flex;
flex-direction: row;
align-items: center;
padding: 40rpx 32rpx;
margin-bottom: 24rpx;
background: rgba(255, 255, 255, 0.06);
border-radius: 20rpx;
border: 2rpx solid rgba(255, 214, 0, 0.25);
}
.card:active {
background: rgba(255, 214, 0, 0.12);
border-color: rgba(255, 214, 0, 0.6);
}
.card-icon-wrap {
width: 100rpx;
height: 100rpx;
border-radius: 24rpx;
background: rgba(255, 214, 0, 0.15);
display: flex;
justify-content: center;
align-items: center;
margin-right: 24rpx;
}
.card-icon {
font-size: 52rpx;
}
.card-body {
flex: 1;
display: flex;
flex-direction: column;
}
.card-title {
color: #fff;
font-size: 32rpx;
font-weight: bold;
margin-bottom: 8rpx;
}
.card-desc {
color: #999;
font-size: 24rpx;
line-height: 1.4;
}
.card-arrow {
color: #FFD600;
font-size: 56rpx;
margin-left: 16rpx;
font-weight: bold;
}
.footer {
margin-top: auto;
padding: 60rpx 40rpx 40rpx;
text-align: center;
}
.footer-text {
color: #666;
font-size: 22rpx;
}
</style>
+299
View File
@@ -0,0 +1,299 @@
<template>
<view class="camera-page">
<!-- 顶部导航 -->
<view class="topbar">
<view class="back-btn" @click="goBack">
<text class="back-icon"></text>
</view>
<text class="topbar-title">全景取景 (16:9)</text>
<view class="placeholder" />
</view>
<!-- 视频 + overlay -->
<view class="viewport">
<video
id="panorama-video"
class="video"
autoplay
muted
playsinline
/>
<image
class="frame panorama-frame"
src="/static/overlay/panorama.svg"
mode="widthFix"
/>
<view v-if="errorMsg" class="error-layer">
<text class="error-text">{{ errorMsg }}</text>
<button class="retry-btn" @click="startCamera">重试</button>
</view>
</view>
<!-- 底部控制条 -->
<view class="controls">
<button class="ctrl-btn" @click="flipCamera">
<text class="ctrl-icon">⟲</text>
<text class="ctrl-label">翻转</text>
</button>
<view class="shutter" @click="takePhoto">
<view class="shutter-inner" />
</view>
<view class="ctrl-btn-placeholder" />
</view>
<!-- 拍照预览层 -->
<view v-if="captured" class="preview">
<image
class="preview-img"
:src="captured"
mode="aspectFit"
/>
<view class="preview-actions">
<button class="preview-btn preview-btn-cancel" @click="retake">
<text>重拍</text>
</button>
<button class="preview-btn preview-btn-confirm" @click="confirm">
<text>使用</text>
</button>
</view>
</view>
</view>
</template>
<script setup lang="uts">
import { useCamera } from '@/composables/useCamera'
const videoId = 'panorama-video'
const { captured, errorMsg, startCamera, flipCamera, takePhoto, retake, confirm } =
useCamera(videoId)
function goBack() {
uni.navigateBack()
}
</script>
<style>
.camera-page {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: transparent;
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 3;
}
/* ========== 顶部导航 ========== */
.topbar {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 20rpx 30rpx;
padding-top: calc(20rpx + env(safe-area-inset-top));
background: rgba(0, 0, 0, 0.7);
}
.back-btn {
width: 80rpx;
height: 80rpx;
display: flex;
justify-content: center;
align-items: center;
}
.back-icon {
color: #fff;
font-size: 60rpx;
font-weight: bold;
}
.topbar-title {
color: #fff;
font-size: 32rpx;
font-weight: bold;
}
.placeholder {
width: 80rpx;
}
/* ========== 视频取景区 ========== */
.viewport {
position: relative;
flex: 1;
overflow: hidden;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}
.frame {
position: relative;
z-index: 1;
pointer-events: none;
}
/* 16:9 框: 宽度 80% 视口,SVG 内置 9:16 比例 (竖屏显示) */
.panorama-frame {
width: 80%;
height: auto;
}
/* ========== 错误层 ========== */
.error-layer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
padding: 40rpx;
background: rgba(0, 0, 0, 0.75);
border-radius: 16rpx;
max-width: 80%;
z-index: 2;
}
.error-text {
color: #fff;
font-size: 28rpx;
text-align: center;
margin-bottom: 24rpx;
line-height: 1.5;
}
.retry-btn {
padding: 12rpx 48rpx;
background: #FFD600;
color: #000;
border-radius: 32rpx;
font-size: 26rpx;
font-weight: bold;
}
/* ========== 底部控制 ========== */
.controls {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
padding: 40rpx 60rpx;
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
background: rgba(0, 0, 0, 0.7);
}
.ctrl-btn {
display: flex;
flex-direction: column;
align-items: center;
background: transparent;
min-width: 120rpx;
}
.ctrl-icon {
color: #fff;
font-size: 40rpx;
line-height: 1;
margin-bottom: 8rpx;
}
.ctrl-label {
color: #ccc;
font-size: 22rpx;
}
.ctrl-btn-placeholder {
min-width: 120rpx;
}
.shutter {
width: 144rpx;
height: 144rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.25);
border: 6rpx solid #fff;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 0 4rpx rgba(0, 0, 0, 0.3);
}
.shutter:active {
background: rgba(255, 255, 255, 0.4);
transform: scale(0.95);
}
.shutter-inner {
width: 110rpx;
height: 110rpx;
border-radius: 50%;
background: #fff;
}
/* ========== 预览层 ========== */
.preview {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 100;
}
.preview-img {
width: 100%;
flex: 1;
}
.preview-actions {
display: flex;
flex-direction: row;
justify-content: space-around;
width: 100%;
padding: 40rpx 60rpx;
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
}
.preview-btn {
flex: 1;
margin: 0 20rpx;
padding: 24rpx 0;
border-radius: 48rpx;
font-size: 30rpx;
font-weight: bold;
}
.preview-btn-cancel {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.preview-btn-confirm {
background: #FFD600;
color: #000;
}
</style>
+299
View File
@@ -0,0 +1,299 @@
<template>
<view class="camera-page">
<!-- 顶部导航 -->
<view class="topbar">
<view class="back-btn" @click="goBack">
<text class="back-icon"></text>
</view>
<text class="topbar-title">签到表取景 (A4)</text>
<view class="placeholder" />
</view>
<!-- 视频 + overlay -->
<view class="viewport">
<video
id="signin-video"
class="video"
autoplay
muted
playsinline
/>
<image
class="frame signin-frame"
src="/static/overlay/signin.svg"
mode="widthFix"
/>
<view v-if="errorMsg" class="error-layer">
<text class="error-text">{{ errorMsg }}</text>
<button class="retry-btn" @click="startCamera">重试</button>
</view>
</view>
<!-- 底部控制条 -->
<view class="controls">
<button class="ctrl-btn" @click="flipCamera">
<text class="ctrl-icon">⟲</text>
<text class="ctrl-label">翻转</text>
</button>
<view class="shutter" @click="takePhoto">
<view class="shutter-inner" />
</view>
<view class="ctrl-btn-placeholder" />
</view>
<!-- 拍照预览层 -->
<view v-if="captured" class="preview">
<image
class="preview-img"
:src="captured"
mode="aspectFit"
/>
<view class="preview-actions">
<button class="preview-btn preview-btn-cancel" @click="retake">
<text>重拍</text>
</button>
<button class="preview-btn preview-btn-confirm" @click="confirm">
<text>使用</text>
</button>
</view>
</view>
</view>
</template>
<script setup lang="uts">
import { useCamera } from '@/composables/useCamera'
const videoId = 'signin-video'
const { captured, errorMsg, startCamera, flipCamera, takePhoto, retake, confirm } =
useCamera(videoId)
function goBack() {
uni.navigateBack()
}
</script>
<style>
.camera-page {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: transparent;
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 3;
}
/* ========== 顶部导航 ========== */
.topbar {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 20rpx 30rpx;
padding-top: calc(20rpx + env(safe-area-inset-top));
background: rgba(0, 0, 0, 0.7);
}
.back-btn {
width: 80rpx;
height: 80rpx;
display: flex;
justify-content: center;
align-items: center;
}
.back-icon {
color: #fff;
font-size: 60rpx;
font-weight: bold;
}
.topbar-title {
color: #fff;
font-size: 32rpx;
font-weight: bold;
}
.placeholder {
width: 80rpx;
}
/* ========== 视频取景区 ========== */
.viewport {
position: relative;
flex: 1;
overflow: hidden;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}
.frame {
position: relative;
z-index: 1;
pointer-events: none;
}
/* A4 框: 宽度 90% 视口,SVG 内置 1:√2 比例 */
.signin-frame {
width: 90%;
height: auto;
}
/* ========== 错误层 ========== */
.error-layer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
padding: 40rpx;
background: rgba(0, 0, 0, 0.75);
border-radius: 16rpx;
max-width: 80%;
z-index: 2;
}
.error-text {
color: #fff;
font-size: 28rpx;
text-align: center;
margin-bottom: 24rpx;
line-height: 1.5;
}
.retry-btn {
padding: 12rpx 48rpx;
background: #FFD600;
color: #000;
border-radius: 32rpx;
font-size: 26rpx;
font-weight: bold;
}
/* ========== 底部控制 ========== */
.controls {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
padding: 40rpx 60rpx;
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
background: rgba(0, 0, 0, 0.7);
}
.ctrl-btn {
display: flex;
flex-direction: column;
align-items: center;
background: transparent;
min-width: 120rpx;
}
.ctrl-icon {
color: #fff;
font-size: 40rpx;
line-height: 1;
margin-bottom: 8rpx;
}
.ctrl-label {
color: #ccc;
font-size: 22rpx;
}
.ctrl-btn-placeholder {
min-width: 120rpx;
}
.shutter {
width: 144rpx;
height: 144rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.25);
border: 6rpx solid #fff;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 0 4rpx rgba(0, 0, 0, 0.3);
}
.shutter:active {
background: rgba(255, 255, 255, 0.4);
transform: scale(0.95);
}
.shutter-inner {
width: 110rpx;
height: 110rpx;
border-radius: 50%;
background: #fff;
}
/* ========== 预览层 ========== */
.preview {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 100;
}
.preview-img {
width: 100%;
flex: 1;
}
.preview-actions {
display: flex;
flex-direction: row;
justify-content: space-around;
width: 100%;
padding: 40rpx 60rpx;
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
}
.preview-btn {
flex: 1;
margin: 0 20rpx;
padding: 24rpx 0;
border-radius: 48rpx;
font-size: 30rpx;
font-weight: bold;
}
.preview-btn-cancel {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.preview-btn-confirm {
background: #FFD600;
color: #000;
}
</style>