Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b8e1d6c4
authored
Apr 13, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复
1 parent
ff936d5b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
20 deletions
apps/uniappX/uniapp-x-tape/.hbuilderx/launch.json
apps/uniappX/uniapp-x-tape/components/HomeFrame/TabbarLandscape.uvue
apps/uniappX/uniapp-x-tape/components/HomeFrame/TabbarPortrait.uvue
apps/uniappX/uniapp-x-tape/pages/person/myCenter.uvue
apps/uniappX/uniapp-x-tape/pages/receptionCenter/center.uvue
apps/uniappX/uniapp-x-tape/services/adapter/constants/screen.vars.global.uts
apps/uniappX/uniapp-x-tape/.hbuilderx/launch.json
View file @
b8e1d6c
...
@@ -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"
}
}
]
]
...
...
apps/uniappX/uniapp-x-tape/components/HomeFrame/TabbarLandscape.uvue
View file @
b8e1d6c
...
@@ -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;
}
}
...
...
apps/uniappX/uniapp-x-tape/components/HomeFrame/TabbarPortrait.uvue
View file @
b8e1d6c
...
@@ -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>
apps/uniappX/uniapp-x-tape/pages/person/myCenter.uvue
View file @
b8e1d6c
<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);
...
...
apps/uniappX/uniapp-x-tape/pages/receptionCenter/center.uvue
View file @
b8e1d6c
...
@@ -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 list
Raw
= bizData.list;
if (list
== null || (Array.isArray(list
)) != true) {
if (list
Raw == 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 list
Raw
= bizData.list;
if (list
== null || (Array.isArray(list
)) != true) {
if (list
Raw == 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");
...
...
apps/uniappX/uniapp-x-tape/services/adapter/constants/screen.vars.global.uts
View file @
b8e1d6c
...
@@ -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',
},
},
},
},
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment