Commit 42c8d1c5 by liimin

fix(reception): 解决客户列表和接待记录列表的数据类型问题

- 为客户列表数据添加 UTSArray 类型断言
- 为接待记录列表数据添加 UTSArray 类型断言
- 修复类型检查错误,确保列表数据正确处理
- 在弹窗组件中添加 600ms 动画持续时间配置
- 更新 HBuilderX 调试配置为自定义模式
1 parent ff936d5b
......@@ -3,7 +3,7 @@
"configurations" : [
{
"customPlaygroundType" : "local",
"playground" : "standard",
"playground" : "custom",
"type" : "uni-app:app-android"
}
]
......
......@@ -5,6 +5,7 @@
:round="isLandscapeMode ? 0 : 20"
:closeable="true"
:z-index="10075"
duration="600"
@close="close">
<view class="popup-wrapper" :class="isLandscapeMode ? 'landscape-wrapper' : 'portrait-wrapper'">
<!-- 标题栏 -->
......
......@@ -67,7 +67,7 @@ export default {
resolutions: {
// iPad 横屏优化 (1024x768) - 产品介绍占 65%
// 可用高度 = 768 - 44(状态栏) - 52(标题) ≈ 672px (TabBar在左侧,不影响高度)
// 可用高度 = 768 - 44(状态栏) - 52(标题) ≈ 672px
'landscape-1024x768': {
'--module-box-height': '440px',
'--tool-box-height': '200px',
......@@ -78,20 +78,20 @@ export default {
},
// 大屏平板横屏 (1174x768) - 产品介绍占 65%
// 可用高度 = 768 - 44(状态栏) - 54(标题) ≈ 670px (TabBar在左侧,不影响高度)
// 可用高度 = 768 - 44(状态栏) - 54(标题) ≈ 670px
'landscape-1174x768': {
'--module-box-height': '360px',
'--tool-box-height': '280px',
'--common-title-height': '54px',
'--entrance-icon-size': '64px',
'--entrance-item-gap': 'var(--l-spacing-3xl)',
'--tabbar-height': '70px',
'--tabbar-icon-size': '46px',
'--tabbar-height': '640px',
'--tabbar-icon-size': '34px',
'--tabbar-width': '140px',
},
// 小屏 Pad 横屏 (816x393) - 产品介绍占 65%
// 可用高度 = 393 - 44(状态栏) - 44(标题) ≈ 305px (TabBar在左侧,不影响高度)
// 可用高度 = 393 - 44(状态栏) - 44(标题) ≈ 305px
'landscape-816x393': {
'--module-box-height': '200px',
'--tool-box-height': '90px',
......@@ -112,7 +112,7 @@ export default {
// iPhone 14 Pro 竖屏 (393x816) - 产品介绍占 60%
// 可用高度 = 816 - 44(状态栏) - 42(标题) - 60(TabBar) ≈ 670px
'portrait-393x816': {
'--module-box-height': '300px',
'--module-box-height': '400px',
'--tool-box-min-height': '200px',
'--common-title-height': '42px',
},
......@@ -126,7 +126,7 @@ export default {
'--entrance-icon-size': '64px',
'--entrance-item-gap': 'var(--l-spacing-3xl)',
'--tabbar-height': '70px',
'--tabbar-icon-size': '32px',
'--tabbar-icon-size': '34px',
},
}
}
......@@ -969,7 +969,7 @@ getCustomerListImpl = async (append: boolean): Promise<void> => {
}
return;
}
const list = bizData.list;
const list = bizData.list as UTSArray<Any>;
if (list == null || (Array.isArray(list)) != true) {
if (append != true) {
customerList.value = [];
......@@ -1068,7 +1068,7 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => {
}
return;
}
const list = bizData.list;
const list = bizData.list as UTSArray<Any>;
if (list == null || (Array.isArray(list)) != true) {
if (append != true) {
receptionRecordList.value = [];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!