Commit b8e1d6c4 by 岑成威

fix: 修复

1 parent ff936d5b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"configurations" : [ "configurations" : [
{ {
"customPlaygroundType" : "local", "customPlaygroundType" : "local",
"playground" : "standard", "playground" : "custom",
"type" : "uni-app:app-android" "type" : "uni-app:app-android"
} }
] ]
......
...@@ -220,8 +220,8 @@ function onTabItemClick(index: number): void { ...@@ -220,8 +220,8 @@ function onTabItemClick(index: number): void {
} }
.landscape-vertical-tabs__icon { .landscape-vertical-tabs__icon {
width: var(--tabbar-icon-size); width: var(--tabbar-icon-size, 28px);
height: var(--tabbar-icon-size); height: var(--tabbar-icon-size, 28px);
flex-shrink: 0; flex-shrink: 0;
} }
......
...@@ -64,7 +64,7 @@ const tabs = HOME_FRAME_TABS; ...@@ -64,7 +64,7 @@ const tabs = HOME_FRAME_TABS;
/* 与 layout-root 注入的 index.vars.uts 中 --tabbar-icon-size 一致;横屏侧栏见 TabbarLandscape .landscape-vertical-tabs__icon */ /* 与 layout-root 注入的 index.vars.uts 中 --tabbar-icon-size 一致;横屏侧栏见 TabbarLandscape .landscape-vertical-tabs__icon */
.tabbar-icon-img { .tabbar-icon-img {
width: var(--tabbar-icon-size); width: var(--tabbar-icon-size, 24px);
height: var(--tabbar-icon-size); height: var(--tabbar-icon-size, 24px);
} }
</style> </style>
<template> <template>
<layout-root> <layout-root :page-vars="pageVars">
<view class="page-container my-route-page"> <view class="page-container my-route-page">
<SceneShell ref="shellRef" <SceneShell ref="shellRef"
:active-tab-index="2"> :active-tab-index="2">
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
import { ComponentPublicInstance, ref } from "vue"; import { ComponentPublicInstance, ref } from "vue";
import SceneShell from "@/components/HomeFrame/SceneShell.uvue"; import SceneShell from "@/components/HomeFrame/SceneShell.uvue";
import pageVars from "@/components/HomeFrame/styles/index.vars";
import MyCenterTab from "@/components/HomeFrame/presets/MyCenterTab.uvue"; import MyCenterTab from "@/components/HomeFrame/presets/MyCenterTab.uvue";
const shellRef = ref(null); const shellRef = ref(null);
......
...@@ -969,8 +969,8 @@ getCustomerListImpl = async (append: boolean): Promise<void> => { ...@@ -969,8 +969,8 @@ getCustomerListImpl = async (append: boolean): Promise<void> => {
} }
return; return;
} }
const list = bizData.list; const listRaw = bizData.list;
if (list == null || (Array.isArray(list)) != true) { if (listRaw == null || (Array.isArray(listRaw)) != true) {
if (append != true) { if (append != true) {
customerList.value = []; customerList.value = [];
} }
...@@ -980,12 +980,10 @@ getCustomerListImpl = async (append: boolean): Promise<void> => { ...@@ -980,12 +980,10 @@ getCustomerListImpl = async (append: boolean): Promise<void> => {
} }
return; return;
} }
const bizListRows = listRaw as Array<any>;
const arr: UTSJSONObject[] = []; const arr: UTSJSONObject[] = [];
let i = 0; for (const el of bizListRows) {
while (i < list.length) { arr.push(el as UTSJSONObject);
const item = list[i] as UTSJSONObject;
arr.push(item);
i++;
} }
if (append == true) { if (append == true) {
customerList.value = mergeByKey(customerList.value, arr, "id"); customerList.value = mergeByKey(customerList.value, arr, "id");
...@@ -1068,8 +1066,8 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => { ...@@ -1068,8 +1066,8 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => {
} }
return; return;
} }
const list = bizData.list; const listRaw = bizData.list;
if (list == null || (Array.isArray(list)) != true) { if (listRaw == null || (Array.isArray(listRaw)) != true) {
if (append != true) { if (append != true) {
receptionRecordList.value = []; receptionRecordList.value = [];
} }
...@@ -1079,12 +1077,10 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => { ...@@ -1079,12 +1077,10 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => {
} }
return; return;
} }
const bizListRows = listRaw as Array<any>;
const arr: UTSJSONObject[] = []; const arr: UTSJSONObject[] = [];
let i = 0; for (const el of bizListRows) {
while (i < list.length) { arr.push(el as UTSJSONObject);
const item = list[i] as UTSJSONObject;
arr.push(item);
i++;
} }
if (append == true) { if (append == true) {
receptionRecordList.value = mergeByKey(receptionRecordList.value, arr, "batchId"); receptionRecordList.value = mergeByKey(receptionRecordList.value, arr, "batchId");
......
...@@ -13,6 +13,10 @@ export const globalScreenVars = { ...@@ -13,6 +13,10 @@ export const globalScreenVars = {
'--padding': '12px', '--padding': '12px',
'--gap': '8px', '--gap': '8px',
'--font-md': '14px', '--font-md': '14px',
// HomeFrame 底部 Tab:与 components/HomeFrame/styles/index.vars.uts portrait 一致;
// 非首页路由若未传 pageVars,仍要有约束,避免图标按位图原始尺寸撑满。
'--tabbar-height': '60px',
'--tabbar-icon-size': '24px',
}, },
// 横屏全局 // 横屏全局
...@@ -20,15 +24,32 @@ export const globalScreenVars = { ...@@ -20,15 +24,32 @@ export const globalScreenVars = {
'--padding': '20px', '--padding': '20px',
'--gap': '12px', '--gap': '12px',
'--font-md': '16px', '--font-md': '16px',
'--tabbar-width': '120px',
'--tabbar-height': '540px',
'--tabbar-padding': '16px',
'--tabbar-icon-size': '28px',
}, },
// 精准分辨率 // 精准分辨率
resolutions: { resolutions: {
'portrait-768x1174': { 'portrait-768x1174': {
'--padding': '14px', '--padding': '14px',
'--tabbar-height': '70px',
'--tabbar-icon-size': '32px',
}, },
'landscape-1174x768': { 'landscape-1174x768': {
'--padding': '22px', '--padding': '22px',
'--tabbar-height': '70px',
'--tabbar-icon-size': '46px',
'--tabbar-width': '140px',
},
'landscape-1024x768': {
'--tabbar-height': '600px',
'--tabbar-icon-size': '32px',
},
'landscape-816x393': {
'--tabbar-height': '480px',
'--tabbar-icon-size': '26px',
}, },
}, },
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!