| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165 |
- <template>
- <view class="page">
- <NavBar title="签到记录" :showBack="true">
- <template #right>
- <view class="nav-action" @click="handleExport">
- <view class="export-icon"></view>
- </view>
- </template>
- </NavBar>
-
- <view class="content">
- <view class="filter-section">
- <view class="filter-row">
- <picker
- mode="selector"
- :range="typeOptions"
- range-key="label"
- @change="onTypeChange"
- >
- <view class="filter-item">
- <text class="filter-label">{{ currentTypeLabel }}</text>
- <view class="filter-arrow"></view>
- </view>
- </picker>
-
- <picker
- mode="date"
- :value="filterStartDate"
- @change="onStartDateChange"
- >
- <view class="filter-item">
- <text class="filter-label">{{ filterStartDate || '开始日期' }}</text>
- <view class="filter-arrow"></view>
- </view>
- </picker>
-
- <picker
- mode="date"
- :value="filterEndDate"
- @change="onEndDateChange"
- >
- <view class="filter-item">
- <text class="filter-label">{{ filterEndDate || '结束日期' }}</text>
- <view class="filter-arrow"></view>
- </view>
- </picker>
- </view>
- </view>
-
- <view class="stats-row">
- <view class="stats-item">
- <text class="stats-value">{{ stats.todayCount }}</text>
- <text class="stats-label">今日签到</text>
- </view>
- <view class="stats-item">
- <text class="stats-value">{{ stats.weekCount }}</text>
- <text class="stats-label">本周签到</text>
- </view>
- <view class="stats-item">
- <text class="stats-value">{{ stats.monthCount }}</text>
- <text class="stats-label">本月签到</text>
- </view>
- <view class="stats-item warning" v-if="stats.pendingSyncCount > 0">
- <text class="stats-value">{{ stats.pendingSyncCount }}</text>
- <text class="stats-label">待同步</text>
- </view>
- </view>
-
- <view class="list-section">
- <view class="list-header">
- <text class="list-title">签到记录</text>
- <text class="list-count">共 {{ total }} 条</text>
- </view>
-
- <scroll-view
- class="list-scroll"
- scroll-y
- @scrolltolower="loadMore"
- :refresher-enabled="true"
- :refresher-triggered="isRefreshing"
- @refresherrefresh="onRefresh"
- >
- <view class="record-list">
- <view
- class="record-item"
- v-for="record in records"
- :key="record.id"
- @click="viewDetail(record)"
- >
- <view class="record-left">
- <view class="record-type" :class="record.type">
- <view class="type-icon"></view>
- </view>
- </view>
-
- <view class="record-content">
- <view class="record-header">
- <text class="record-type-name">{{ record.typeName }}</text>
- <view class="record-status" :class="record.status">
- <text>{{ getStatusText(record.status) }}</text>
- </view>
- </view>
-
- <view class="record-info">
- <view class="info-row">
- <view class="info-icon user"></view>
- <text class="info-text">{{ record.userName }} ({{ record.userNo }})</text>
- </view>
- <view class="info-row">
- <view class="info-icon location"></view>
- <text class="info-text">{{ record.location.address }}</text>
- </view>
- <view class="info-row">
- <view class="info-icon time"></view>
- <text class="info-text">{{ formatTime(record.createdAt) }}</text>
- </view>
- </view>
-
- <view class="record-photos" v-if="record.photos.length > 0">
- <image
- class="photo-thumb"
- v-for="(photo, index) in record.photos.slice(0, 3)"
- :key="photo.id"
- :src="photo.path"
- mode="aspectFill"
- />
- <view class="photo-more" v-if="record.photos.length > 3">
- <text>+{{ record.photos.length - 3 }}</text>
- </view>
- </view>
-
- <view class="record-remark" v-if="record.remark">
- <text>{{ record.remark }}</text>
- </view>
- </view>
-
- <view class="record-arrow">
- <view class="arrow-icon"></view>
- </view>
- </view>
-
- <view class="empty-state" v-if="!isLoading && records.length === 0">
- <view class="empty-icon"></view>
- <text class="empty-text">暂无签到记录</text>
- </view>
-
- <view class="loading-more" v-if="isLoadingMore">
- <view class="loading-spinner"></view>
- <text class="loading-text">加载中...</text>
- </view>
-
- <view class="no-more" v-if="!hasMore && records.length > 0">
- <text>没有更多了</text>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
-
- <view class="detail-modal" v-if="showDetail && currentRecord">
- <view class="detail-mask" @click="closeDetail"></view>
- <view class="detail-content">
- <view class="detail-header">
- <text class="detail-title">签到详情</text>
- <view class="detail-close" @click="closeDetail">
- <view class="close-icon"></view>
- </view>
- </view>
-
- <scroll-view class="detail-body" scroll-y>
- <view class="detail-section">
- <view class="detail-row">
- <text class="detail-label">签到类型</text>
- <text class="detail-value">{{ currentRecord.typeName }}</text>
- </view>
- <view class="detail-row">
- <text class="detail-label">签到人员</text>
- <text class="detail-value">{{ currentRecord.userName }} ({{ currentRecord.userNo }})</text>
- </view>
- <view class="detail-row">
- <text class="detail-label">签到时间</text>
- <text class="detail-value">{{ currentRecord.createdAt }}</text>
- </view>
- <view class="detail-row" v-if="currentRecord.shopName">
- <text class="detail-label">关联门店</text>
- <text class="detail-value">{{ currentRecord.shopName }}</text>
- </view>
- <view class="detail-row" v-if="currentRecord.deviceName">
- <text class="detail-label">关联设备</text>
- <text class="detail-value">{{ currentRecord.deviceName }}</text>
- </view>
- </view>
-
- <view class="detail-section">
- <view class="section-title">位置信息</view>
- <view class="location-map">
- <view class="map-placeholder">
- <view class="map-icon"></view>
- <text class="map-text">{{ currentRecord.location.address }}</text>
- <text class="map-coords">{{ currentRecord.location.latitude.toFixed(6) }}, {{ currentRecord.location.longitude.toFixed(6) }}</text>
- </view>
- </view>
- </view>
-
- <view class="detail-section" v-if="currentRecord.photos.length > 0">
- <view class="section-title">签到照片</view>
- <view class="photo-grid">
- <image
- class="detail-photo"
- v-for="photo in currentRecord.photos"
- :key="photo.id"
- :src="photo.path"
- mode="aspectFill"
- @click="previewPhotos(photo.path)"
- />
- </view>
- </view>
-
- <view class="detail-section" v-if="currentRecord.remark">
- <view class="section-title">备注信息</view>
- <view class="remark-box">
- <text>{{ currentRecord.remark }}</text>
- </view>
- </view>
-
- <view class="detail-section">
- <view class="section-title">同步状态</view>
- <view class="sync-info">
- <view class="sync-status" :class="currentRecord.status">
- <view class="status-dot"></view>
- <text>{{ getStatusText(currentRecord.status) }}</text>
- </view>
- <text class="sync-time" v-if="currentRecord.syncedAt">
- 同步时间: {{ currentRecord.syncedAt }}
- </text>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- </view>
- </template>
- <script setup lang="ts">
- import { ref, computed, onMounted } from 'vue';
- import { logger } from '@/utils/logger';
- import NavBar from '@/components/NavBar.vue';
- import { CheckinType, getCheckinList, getCheckinStats, exportCheckinRecords } from '@/api/checkin';
- import type { CheckinRecord, CheckinStats } from '@/api/checkin';
- const typeOptions = [
- { value: '', label: '全部类型' },
- { value: CheckinType.INVENTORY_TALLY, label: '理货盘点' },
- { value: CheckinType.DELIVERY_REPLENISH, label: '补货确认' }
- ];
- const filterType = ref('');
- const filterStartDate = ref('');
- const filterEndDate = ref('');
- const records = ref<CheckinRecord[]>([]);
- const total = ref(0);
- const page = ref(1);
- const pageSize = 10;
- const isLoading = ref(false);
- const isLoadingMore = ref(false);
- const isRefreshing = ref(false);
- const hasMore = ref(true);
- const showDetail = ref(false);
- const currentRecord = ref<CheckinRecord | null>(null);
- const stats = ref<CheckinStats>({
- todayCount: 0,
- weekCount: 0,
- monthCount: 0,
- inventoryTallyCount: 0,
- deliveryReplenishCount: 0,
- pendingSyncCount: 0
- });
- const currentTypeLabel = computed(() => {
- const option = typeOptions.find(o => o.value === filterType.value);
- return option ? option.label : '全部类型';
- });
- onMounted(() => {
- loadData();
- loadStats();
- });
- const loadData = async (reset = false) => {
- if (reset) {
- page.value = 1;
- hasMore.value = true;
- }
-
- if (isLoading.value) return;
- isLoading.value = true;
-
- try {
- const result = await getCheckinList({
- page: page.value,
- pageSize,
- type: filterType.value as CheckinType || undefined,
- startDate: filterStartDate.value || undefined,
- endDate: filterEndDate.value || undefined
- });
-
- if (reset) {
- records.value = result.list;
- } else {
- records.value = [...records.value, ...result.list];
- }
-
- total.value = result.total;
- hasMore.value = records.value.length < result.total;
- } catch (error) {
- logger.warn('加载签到记录失败', error);
- } finally {
- isLoading.value = false;
- isRefreshing.value = false;
- isLoadingMore.value = false;
- }
- };
- const loadStats = async () => {
- try {
- stats.value = await getCheckinStats();
- } catch (error) {
- logger.warn('加载统计数据失败', error);
- }
- };
- const loadMore = () => {
- if (!hasMore.value || isLoadingMore.value) return;
-
- isLoadingMore.value = true;
- page.value++;
- loadData();
- };
- const onRefresh = () => {
- isRefreshing.value = true;
- loadData(true);
- loadStats();
- };
- const onTypeChange = (e: any) => {
- filterType.value = typeOptions[e.detail.value].value;
- loadData(true);
- };
- const onStartDateChange = (e: any) => {
- filterStartDate.value = e.detail.value;
- loadData(true);
- };
- const onEndDateChange = (e: any) => {
- filterEndDate.value = e.detail.value;
- loadData(true);
- };
- const getStatusText = (status: string) => {
- const statusMap: Record<string, string> = {
- pending: '待同步',
- synced: '已同步',
- failed: '同步失败'
- };
- return statusMap[status] || status;
- };
- const formatTime = (timeStr: string) => {
- return timeStr.replace('T', ' ').substring(0, 19);
- };
- const viewDetail = (record: CheckinRecord) => {
- currentRecord.value = record;
- showDetail.value = true;
- };
- const closeDetail = () => {
- showDetail.value = false;
- currentRecord.value = null;
- };
- const previewPhotos = (current: string) => {
- if (!currentRecord.value) return;
-
- uni.previewImage({
- urls: currentRecord.value.photos.map(p => p.path),
- current
- });
- };
- const handleExport = async () => {
- uni.showLoading({ title: '导出中...' });
-
- try {
- const url = await exportCheckinRecords({
- type: filterType.value as CheckinType || undefined,
- startDate: filterStartDate.value || undefined,
- endDate: filterEndDate.value || undefined
- });
-
- uni.hideLoading();
-
- // #ifdef H5
- window.open(url, '_blank');
- // #endif
-
- // #ifndef H5
- uni.showToast({
- title: '导出成功',
- icon: 'success'
- });
- // #endif
- } catch (error) {
- uni.hideLoading();
- uni.showToast({
- title: '导出失败',
- icon: 'none'
- });
- }
- };
- </script>
- <style lang="scss" scoped>
- .page {
- min-height: 100vh;
- background: $bg-color-page;
- display: flex;
- flex-direction: column;
- }
- .nav-action {
- width: 64rpx;
- height: 64rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .export-icon {
- width: 36rpx;
- height: 36rpx;
- border: 3rpx solid $text-color-primary;
- border-radius: 6rpx;
- position: relative;
-
- &::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -30%);
- width: 0;
- height: 0;
- border-left: 6rpx solid transparent;
- border-right: 6rpx solid transparent;
- border-bottom: 8rpx solid $text-color-primary;
- }
-
- &::after {
- content: '';
- position: absolute;
- bottom: 4rpx;
- left: 50%;
- transform: translateX(-50%);
- width: 12rpx;
- height: 3rpx;
- background: $text-color-primary;
- }
- }
- .content {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .filter-section {
- padding: 16rpx 24rpx;
- background: $bg-color-card;
- border-bottom: 1rpx solid $border-color;
- }
- .filter-row {
- display: flex;
- gap: 16rpx;
- }
- .filter-item {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 64rpx;
- background: $bg-color-page;
- border-radius: 12rpx;
- padding: 0 16rpx;
-
- &:active {
- background: $bg-color-secondary;
- }
- }
- .filter-label {
- font-size: 24rpx;
- color: $text-color-secondary;
- margin-right: 8rpx;
- }
- .filter-arrow {
- width: 0;
- height: 0;
- border-left: 8rpx solid transparent;
- border-right: 8rpx solid transparent;
- border-top: 8rpx solid $text-color-muted;
- }
- .stats-row {
- display: flex;
- padding: 20rpx 24rpx;
- background: $bg-color-card;
- border-bottom: 1rpx solid $border-color;
- }
- .stats-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
-
- &.warning {
- .stats-value {
- color: $warning-color;
- }
- }
- }
- .stats-value {
- font-size: 40rpx;
- font-weight: 700;
- color: $text-color-primary;
- margin-bottom: 4rpx;
- }
- .stats-label {
- font-size: 22rpx;
- color: $text-color-tertiary;
- }
- .list-section {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .list-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20rpx 24rpx;
- }
- .list-title {
- font-size: 28rpx;
- font-weight: 600;
- color: $text-color-primary;
- }
- .list-count {
- font-size: 24rpx;
- color: $text-color-muted;
- }
- .list-scroll {
- flex: 1;
- height: 0;
- }
- .record-list {
- padding: 0 24rpx;
- padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
- }
- .record-item {
- display: flex;
- align-items: flex-start;
- background: $bg-color-card;
- border-radius: 16rpx;
- padding: 24rpx;
- margin-bottom: 16rpx;
- border: 1rpx solid $border-color;
-
- &:active {
- background: $bg-color-page;
- }
- }
- .record-left {
- margin-right: 20rpx;
- }
- .record-type {
- width: 72rpx;
- height: 72rpx;
- border-radius: 16rpx;
- display: flex;
- align-items: center;
- justify-content: center;
-
- &.inventory_tally {
- background: $success-color-bg;
-
- .type-icon {
- width: 28rpx;
- height: 36rpx;
- border: 3rpx solid $primary-color;
- border-radius: 4rpx;
- }
- }
-
- &.delivery_replenish {
- background: $accent-color-bg;
-
- .type-icon {
- width: 32rpx;
- height: 24rpx;
- border: 3rpx solid $accent-color;
- border-radius: 4rpx;
- }
- }
- }
- .record-content {
- flex: 1;
- min-width: 0;
- }
- .record-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12rpx;
- }
- .record-type-name {
- font-size: 28rpx;
- font-weight: 600;
- color: $text-color-primary;
- }
- .record-status {
- padding: 4rpx 12rpx;
- border-radius: 8rpx;
- font-size: 22rpx;
-
- &.synced {
- background: $success-color-bg;
- color: $primary-color;
- }
-
- &.pending {
- background: $warning-color-bg;
- color: $warning-color;
- }
-
- &.failed {
- background: $error-color-bg;
- color: $error-color;
- }
- }
- .record-info {
- margin-bottom: 12rpx;
- }
- .info-row {
- display: flex;
- align-items: center;
- margin-bottom: 8rpx;
-
- &:last-child {
- margin-bottom: 0;
- }
- }
- .info-icon {
- width: 28rpx;
- height: 28rpx;
- margin-right: 8rpx;
- border-radius: 50%;
-
- &.user {
- background: $info-color-bg;
- position: relative;
-
- &::before {
- content: '';
- position: absolute;
- top: 6rpx;
- left: 50%;
- transform: translateX(-50%);
- width: 8rpx;
- height: 8rpx;
- background: $info-color;
- border-radius: 50%;
- }
-
- &::after {
- content: '';
- position: absolute;
- bottom: 6rpx;
- left: 50%;
- transform: translateX(-50%);
- width: 14rpx;
- height: 6rpx;
- background: $info-color;
- border-radius: 6rpx 6rpx 0 0;
- }
- }
-
- &.location {
- background: $success-color-bg;
- position: relative;
-
- &::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 8rpx;
- height: 8rpx;
- background: $primary-color;
- border-radius: 50%;
- }
-
- &::after {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 14rpx;
- height: 14rpx;
- border: 2rpx solid $primary-color;
- border-radius: 50%;
- }
- }
-
- &.time {
- background: $primary-color-bg;
- position: relative;
-
- &::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 12rpx;
- height: 12rpx;
- border: 2rpx solid $primary-color;
- border-radius: 50%;
- }
-
- &::after {
- content: '';
- position: absolute;
- top: 8rpx;
- left: 50%;
- transform: translateX(-50%);
- width: 2rpx;
- height: 6rpx;
- background: $primary-color;
- }
- }
- }
- .info-text {
- font-size: 24rpx;
- color: $text-color-tertiary;
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .record-photos {
- display: flex;
- gap: 8rpx;
- margin-bottom: 12rpx;
- }
- .photo-thumb {
- width: 80rpx;
- height: 80rpx;
- border-radius: 8rpx;
- background: $bg-color-secondary;
- }
- .photo-more {
- width: 80rpx;
- height: 80rpx;
- border-radius: 8rpx;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
-
- text {
- font-size: 24rpx;
- color: $bg-color-card;
- }
- }
- .record-remark {
- padding: 12rpx;
- background: $bg-color-page;
- border-radius: 8rpx;
-
- text {
- font-size: 24rpx;
- color: $text-color-tertiary;
- }
- }
- .record-arrow {
- display: flex;
- align-items: center;
- padding-left: 16rpx;
- }
- .arrow-icon {
- width: 12rpx;
- height: 12rpx;
- border-top: 3rpx solid $text-color-placeholder;
- border-right: 3rpx solid $text-color-placeholder;
- transform: rotate(45deg);
- }
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 100rpx 0;
- }
- .empty-icon {
- width: 120rpx;
- height: 120rpx;
- background: $bg-color-secondary;
- border-radius: 50%;
- margin-bottom: 24rpx;
- position: relative;
-
- &::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 40rpx;
- height: 40rpx;
- border: 4rpx solid $text-color-placeholder;
- border-radius: 8rpx;
- }
- }
- .empty-text {
- font-size: 28rpx;
- color: $text-color-muted;
- }
- .loading-more {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24rpx;
- }
- .loading-spinner {
- width: 32rpx;
- height: 32rpx;
- border: 3rpx solid $border-color;
- border-top-color: $primary-color;
- border-radius: 50%;
- animation: rotate 0.8s linear infinite;
-
- @keyframes rotate {
- from { transform: rotate(0deg); }
- to { transform: rotate(360deg); }
- }
- }
- .loading-text {
- font-size: 24rpx;
- color: $text-color-muted;
- margin-left: 12rpx;
- }
- .no-more {
- text-align: center;
- padding: 24rpx;
-
- text {
- font-size: 24rpx;
- color: $text-color-muted;
- }
- }
- .detail-modal {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1000;
- }
- .detail-mask {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- }
- .detail-content {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- max-height: 80vh;
- background: $bg-color-card;
- border-radius: 32rpx 32rpx 0 0;
- display: flex;
- flex-direction: column;
- }
- .detail-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 32rpx;
- border-bottom: 1rpx solid $border-color;
- }
- .detail-title {
- font-size: 32rpx;
- font-weight: 600;
- color: $text-color-primary;
- }
- .detail-close {
- width: 56rpx;
- height: 56rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- background: $bg-color-secondary;
- border-radius: 50%;
- }
- .close-icon {
- width: 20rpx;
- height: 20rpx;
- position: relative;
-
- &::before, &::after {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- width: 24rpx;
- height: 3rpx;
- background: $text-color-tertiary;
- border-radius: 2rpx;
- }
-
- &::before {
- transform: translate(-50%, -50%) rotate(45deg);
- }
-
- &::after {
- transform: translate(-50%, -50%) rotate(-45deg);
- }
- }
- .detail-body {
- flex: 1;
- padding: 24rpx 32rpx;
- padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
- }
- .detail-section {
- margin-bottom: 32rpx;
- }
- .detail-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 16rpx 0;
- border-bottom: 1rpx solid $bg-color-secondary;
-
- &:last-child {
- border-bottom: none;
- }
- }
- .detail-label {
- font-size: 26rpx;
- color: $text-color-tertiary;
- }
- .detail-value {
- font-size: 26rpx;
- color: $text-color-primary;
- font-weight: 500;
- }
- .section-title {
- font-size: 28rpx;
- font-weight: 600;
- color: $text-color-primary;
- margin-bottom: 16rpx;
- }
- .location-map {
- background: $bg-color-page;
- border-radius: 16rpx;
- overflow: hidden;
- }
- .map-placeholder {
- padding: 32rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .map-icon {
- width: 48rpx;
- height: 48rpx;
- background: $primary-color;
- border-radius: 50%;
- margin-bottom: 16rpx;
- position: relative;
-
- &::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 16rpx;
- height: 16rpx;
- background: $bg-color-card;
- border-radius: 50%;
- }
- }
- .map-text {
- font-size: 26rpx;
- color: $text-color-primary;
- text-align: center;
- margin-bottom: 8rpx;
- }
- .map-coords {
- font-size: 22rpx;
- color: $text-color-muted;
- }
- .photo-grid {
- display: flex;
- flex-wrap: wrap;
- gap: 12rpx;
- }
- .detail-photo {
- width: calc(33.33% - 8rpx);
- aspect-ratio: 1;
- border-radius: 12rpx;
- background: $bg-color-secondary;
- }
- .remark-box {
- padding: 20rpx;
- background: $bg-color-page;
- border-radius: 12rpx;
-
- text {
- font-size: 26rpx;
- color: $text-color-secondary;
- line-height: 1.6;
- }
- }
- .sync-info {
- display: flex;
- align-items: center;
- }
- .sync-status {
- display: flex;
- align-items: center;
- padding: 8rpx 16rpx;
- border-radius: 12rpx;
-
- &.synced {
- background: $success-color-bg;
-
- .status-dot {
- background: $primary-color;
- }
-
- text {
- color: $primary-color;
- }
- }
-
- &.pending {
- background: $warning-color-bg;
-
- .status-dot {
- background: $warning-color;
- }
-
- text {
- color: $warning-color;
- }
- }
-
- &.failed {
- background: $error-color-bg;
-
- .status-dot {
- background: $error-color;
- }
-
- text {
- color: $error-color;
- }
- }
- }
- .status-dot {
- width: 12rpx;
- height: 12rpx;
- border-radius: 50%;
- margin-right: 8rpx;
- }
- .sync-time {
- font-size: 24rpx;
- color: $text-color-muted;
- margin-left: 16rpx;
- }
- </style>
|