Commit a858dbc4 by liimin

Merge branch 'feature/rework' of http://192.168.3.233:8090/monorepo/venus into feature/rework

2 parents 42c8d1c5 b8e1d6c4
......@@ -220,8 +220,8 @@ function onTabItemClick(index: number): void {
}
.landscape-vertical-tabs__icon {
width: var(--tabbar-icon-size);
height: var(--tabbar-icon-size);
width: var(--tabbar-icon-size, 28px);
height: var(--tabbar-icon-size, 28px);
flex-shrink: 0;
}
......
......@@ -64,7 +64,7 @@ const tabs = HOME_FRAME_TABS;
/* 与 layout-root 注入的 index.vars.uts 中 --tabbar-icon-size 一致;横屏侧栏见 TabbarLandscape .landscape-vertical-tabs__icon */
.tabbar-icon-img {
width: var(--tabbar-icon-size);
height: var(--tabbar-icon-size);
width: var(--tabbar-icon-size, 24px);
height: var(--tabbar-icon-size, 24px);
}
</style>
<template>
<layout-root>
<layout-root :page-vars="pageVars">
<view class="page-container my-route-page">
<SceneShell ref="shellRef"
:active-tab-index="2">
......@@ -15,6 +15,7 @@
import { ComponentPublicInstance, ref } from "vue";
import SceneShell from "@/components/HomeFrame/SceneShell.uvue";
import pageVars from "@/components/HomeFrame/styles/index.vars";
import MyCenterTab from "@/components/HomeFrame/presets/MyCenterTab.uvue";
const shellRef = ref(null);
......
......@@ -969,8 +969,8 @@ getCustomerListImpl = async (append: boolean): Promise<void> => {
}
return;
}
const list = bizData.list as UTSArray<Any>;
if (list == null || (Array.isArray(list)) != true) {
const listRaw = bizData.list;
if (listRaw == null || (Array.isArray(listRaw)) != true) {
if (append != true) {
customerList.value = [];
}
......@@ -980,12 +980,10 @@ getCustomerListImpl = async (append: boolean): Promise<void> => {
}
return;
}
const bizListRows = listRaw as Array<any>;
const arr: UTSJSONObject[] = [];
let i = 0;
while (i < list.length) {
const item = list[i] as UTSJSONObject;
arr.push(item);
i++;
for (const el of bizListRows) {
arr.push(el as UTSJSONObject);
}
if (append == true) {
customerList.value = mergeByKey(customerList.value, arr, "id");
......@@ -1068,8 +1066,8 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => {
}
return;
}
const list = bizData.list as UTSArray<Any>;
if (list == null || (Array.isArray(list)) != true) {
const listRaw = bizData.list;
if (listRaw == null || (Array.isArray(listRaw)) != true) {
if (append != true) {
receptionRecordList.value = [];
}
......@@ -1079,12 +1077,10 @@ getReceptionRecordListImpl = async (append: boolean): Promise<void> => {
}
return;
}
const bizListRows = listRaw as Array<any>;
const arr: UTSJSONObject[] = [];
let i = 0;
while (i < list.length) {
const item = list[i] as UTSJSONObject;
arr.push(item);
i++;
for (const el of bizListRows) {
arr.push(el as UTSJSONObject);
}
if (append == true) {
receptionRecordList.value = mergeByKey(receptionRecordList.value, arr, "batchId");
......
......@@ -13,6 +13,10 @@ export const globalScreenVars = {
'--padding': '12px',
'--gap': '8px',
'--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 = {
'--padding': '20px',
'--gap': '12px',
'--font-md': '16px',
'--tabbar-width': '120px',
'--tabbar-height': '540px',
'--tabbar-padding': '16px',
'--tabbar-icon-size': '28px',
},
// 精准分辨率
resolutions: {
'portrait-768x1174': {
'--padding': '14px',
'--tabbar-height': '70px',
'--tabbar-icon-size': '32px',
},
'landscape-1174x768': {
'--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!