hookehuyr

feat(scan-checkin-list): 为扫码签到列表添加阶段编码展示功能

- 补充API返回数据的类型定义,新增stages的code字段
- 新增编码文本样式优化展示效果
- 更新列表数据映射逻辑携带code字段
- 在列表项中按需渲染编码文本
......@@ -103,6 +103,7 @@ export const listAPI = params => fn(fetch.get(Api.List, params))
* data: {
* stages: Array<{
* id: number;
* code: string;
* title: string;
* is_checked: boolean;
* }>;
......
......@@ -58,9 +58,22 @@
.scan-checkin-list-content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
cursor: pointer;
}
.scan-checkin-list-code {
display: block;
margin-bottom: 6rpx;
font-size: 22rpx;
line-height: 1.3;
color: #36b5bb;
letter-spacing: 2rpx;
}
.scan-checkin-list-name {
display: block;
font-size: 32rpx;
......
......@@ -22,6 +22,7 @@
</view>
<view class="scan-checkin-list-content" @click="goToDetail(point)">
<text v-if="point.code" class="scan-checkin-list-code">{{ point.code }}</text>
<text class="scan-checkin-list-name">{{ point.title }}</text>
</view>
......@@ -88,6 +89,7 @@ const pageSize = ref(10)
const mapStageList = stageList =>
stageList.map(stage => ({
id: stage.id,
code: stage.code,
title: stage.title,
isChecked: stage.is_checked,
}))
......