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 60c53226
authored
Apr 08, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/rework' of
http://192.168.3.233:8090/monorepo/venus
into feature/rework
2 parents
bfb74c19
52dd2d1b
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
75 additions
and
96 deletions
apps/uniappX/uniapp-x-tape/adapt/landscape/1080/login.scss
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/boutique-index.scss
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/login.scss
apps/uniappX/uniapp-x-tape/adapt/portrait/1080/login.scss
apps/uniappX/uniapp-x-tape/adapt/portrait/1920/login.scss
apps/uniappX/uniapp-x-tape/main.ts
apps/uniappX/uniapp-x-tape/pages/receptionCenter/center.uvue
apps/uniappX/uniapp-x-tape/pages/receptionCenter/filters/ReceptionListPrimaryFilter.uvue
apps/uniappX/uniapp-x-tape/pages/receptionCenter/styles/common.scss
apps/uniappX/uniapp-x-tape/pages/receptionCenter/styles/landscape.scss
apps/uniappX/uniapp-x-tape/pages/receptionCenter/styles/portrait.scss
apps/uniappX/uniapp-x-tape/adapt/landscape/1080/login.scss
deleted
100644 → 0
View file @
bfb74c1
/* 登录选择账号页 横屏 1080 档位适配
* 通过 LayoutRoot 上的 .mode-landscape.res-1080 类控制,仅在横屏 1080 档时生效。
*/
.mode-landscape.res-1080
{
/* 示例:可根据登录页设计调整根容器
* .page-container {
* padding: 0 var(--l-spacing-lg);
* }
*/
}
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/boutique-index.scss
deleted
100644 → 0
View file @
bfb74c1
/* 精品页 横屏 1920 档位适配(预留) */
.mode-landscape.res-1920
{
/* 示例:后续可在此定义 1920 档变量 */
}
apps/uniappX/uniapp-x-tape/adapt/landscape/1920/login.scss
deleted
100644 → 0
View file @
bfb74c1
/* 登录选择账号页 横屏 1920 档位适配
* 大屏(如 1920 宽度)下,可在此增加更宽松的留白和布局。
*/
.mode-landscape.res-1920
{
/* 示例:后续按实际设计稿补充
* .page-container {
* max-width: 1600px;
* margin: 0 auto;
* }
*/
}
apps/uniappX/uniapp-x-tape/adapt/portrait/1080/login.scss
deleted
100644 → 0
View file @
bfb74c1
/* 登录页 竖屏 1080 档位适配(如 360 x 800 等宽度归为 1080 档)
* 通过 .login-page 避免影响其他页面;仅在手机竖屏时生效。
*/
.mode-portrait.res-1080
.login-page
{
.layout
{
justify-content
:
flex-start
;
align-items
:
stretch
;
padding
:
32px
24px
;
}
.login
{
align-items
:
stretch
;
margin-top
:
16px
;
max-width
:
320px
;
margin-left
:
auto
;
margin-right
:
auto
;
}
.login
.title
{
font-size
:
28px
;
margin-bottom
:
12px
;
}
.login
.sub-title
{
font-size
:
14px
;
margin
:
12px
0
20px
;
}
.login
.input
{
width
:
100%
;
height
:
48px
;
border-radius
:
24px
;
margin-bottom
:
16px
;
}
.login
.btn
{
width
:
100%
;
height
:
48px
;
margin-top
:
8px
;
font-size
:
18px
;
}
.form-footer
{
padding-left
:
0
;
margin-top
:
16px
;
}
.app-code
{
bottom
:
12px
;
/* 手机端登录页 APP 编码:完全使用固定像素,不参与变量缩放 */
font-size
:
10px
!
important
;
line-height
:
14px
;
left
:
50%
;
transform
:
translateX
(
-50%
)
scale
(
0
.85
);
}
}
apps/uniappX/uniapp-x-tape/adapt/portrait/1920/login.scss
deleted
100644 → 0
View file @
bfb74c1
/* 登录选择账号页 竖屏 1920 档位适配(预留)
* 如后续有竖屏大屏设备需求,可在此补充。
*/
.mode-portrait.res-1920
{
/* 预留占位,不影响现有布局 */
}
apps/uniappX/uniapp-x-tape/main.ts
View file @
60c5322
...
@@ -16,6 +16,7 @@ export function createApp() {
...
@@ -16,6 +16,7 @@ export function createApp() {
appMixin
(
app
);
appMixin
(
app
);
// 注入全局分辨率适配属性
// 注入全局分辨率适配属性
app
.
config
.
globalProperties
.
$resState
=
resolutionState
;
app
.
config
.
globalProperties
.
$resState
=
resolutionState
;
console
.
log
(
"resolutionState =>"
,
resolutionState
);
// 注意:在 main.ts 中,useResponsiveImage 返回的函数可以直接挂载
// 注意:在 main.ts 中,useResponsiveImage 返回的函数可以直接挂载
// 但因为 useResponsiveImage 本身返回的是一个闭包函数,我们直接挂载它返回的函数可能更方便
// 但因为 useResponsiveImage 本身返回的是一个闭包函数,我们直接挂载它返回的函数可能更方便
// 或者我们直接挂载一个 getter 函数
// 或者我们直接挂载一个 getter 函数
...
@@ -28,7 +29,7 @@ export function createApp() {
...
@@ -28,7 +29,7 @@ export function createApp() {
function
initDB
()
{
function
initDB
()
{
// 数据库初始化
// 数据库初始化
DBRecord
.
getInstance
().
init
().
then
((
res
):
void
=>
{
DBRecord
.
getInstance
().
init
().
then
((
_
res
):
void
=>
{
logger
.
info
(
"〖数据库初始化完成〗"
,
"Main"
);
logger
.
info
(
"〖数据库初始化完成〗"
,
"Main"
);
}).
catch
((
error
):
void
=>
{
}).
catch
((
error
):
void
=>
{
logger
.
error
(
`〖数据库初始化失败〗:
${
error
}
`
,
"Main"
);
logger
.
error
(
`〖数据库初始化失败〗:
${
error
}
`
,
"Main"
);
...
...
apps/uniappX/uniapp-x-tape/pages/receptionCenter/center.uvue
View file @
60c5322
...
@@ -252,9 +252,19 @@ const receptionSafeTopSpacerStyle = computed((): UTSJSONObject => {
...
@@ -252,9 +252,19 @@ const receptionSafeTopSpacerStyle = computed((): UTSJSONObject => {
})
})
function syncReceptionDashboardLayout(): void {
function syncReceptionDashboardLayout(): void {
/**
* 接待中心「布局同步」:
* - 计算顶部安全区占位,避免自定义导航与状态栏/刘海重叠
* - 判断横竖屏(横屏用于左右分栏展示、竖屏用于 Tab 切换展示)
* - 横屏窄宽时启用筛选区窄模式,避免 segmented 等控件最小宽度导致溢出
*
* 说明:
* - uni-app x(尤其 APP 端)对 onWindowResize 支持不稳定,因此通过定时轮询触发同步
* - 部分机型旋转后 getWindowInfo 的 windowWidth/windowHeight 刷新可能滞后,这里优先用 systemInfo 的 screenWidth/screenHeight 做兜底
*/
// 必须用 uni.getWindowInfo():uview-unix 的 getWindowInfo 在 Android 上返回 GetWindowInfoResult,不能 as UTSJSONObject
// 必须用 uni.getWindowInfo():uview-unix 的 getWindowInfo 在 Android 上返回 GetWindowInfoResult,不能 as UTSJSONObject
const info = uni.getWindowInfo()
const info = uni.getWindowInfo()
// 自定义导航:预留顶部安全区,避免与状态栏/刘海重叠(优先 safeAreaInsets.top)
// 自定义导航:预留顶部安全区,避免与状态栏/刘海重叠(优先 safeAreaInsets.top
-> safeArea.top -> statusBarHeight
)
let topInset = 0
let topInset = 0
const insets = info.safeAreaInsets
const insets = info.safeAreaInsets
if (insets != null) {
if (insets != null) {
...
@@ -291,6 +301,7 @@ function syncReceptionDashboardLayout(): void {
...
@@ -291,6 +301,7 @@ function syncReceptionDashboardLayout(): void {
const sw = info.screenWidth
const sw = info.screenWidth
const sh = info.screenHeight
const sh = info.screenHeight
// 横屏判定:宽 > 高。取值优先级:systemInfo.screen* -> windowInfo.screen* -> windowInfo.window*
const w = sysSw > 0 ? sysSw : (sw > 0 ? sw : ww)
const w = sysSw > 0 ? sysSw : (sw > 0 ? sw : ww)
const h = sysSh > 0 ? sysSh : (sh > 0 ? sh : wh)
const h = sysSh > 0 ? sysSh : (sh > 0 ? sh : wh)
const nextSplit = w > h
const nextSplit = w > h
...
@@ -303,6 +314,7 @@ function syncReceptionDashboardLayout(): void {
...
@@ -303,6 +314,7 @@ function syncReceptionDashboardLayout(): void {
`[ReceptionCenter] 屏幕方向变化:${nextSplit ? '横屏' : '竖屏'}(w=${w}, h=${h}, window=${ww}x${wh}, screen=${sw}x${sh})`
`[ReceptionCenter] 屏幕方向变化:${nextSplit ? '横屏' : '竖屏'}(w=${w}, h=${h}, window=${ww}x${wh}, screen=${sw}x${sh})`
)
)
}
}
// 横屏窄宽适配:避免右侧筛选区控件(如 segmented)在小于阈值时出现横向溢出
const RECEPTION_FILTER_NARROW_WIDTH = 920
const RECEPTION_FILTER_NARROW_WIDTH = 920
const nextFilterNarrowMode = nextSplit && w > 0 && w < RECEPTION_FILTER_NARROW_WIDTH
const nextFilterNarrowMode = nextSplit && w > 0 && w < RECEPTION_FILTER_NARROW_WIDTH
if (receptionFilterNarrowMode.value != nextFilterNarrowMode) {
if (receptionFilterNarrowMode.value != nextFilterNarrowMode) {
...
@@ -1047,7 +1059,8 @@ function openReviewPicker(): void {
...
@@ -1047,7 +1059,8 @@ function openReviewPicker(): void {
}
}
onMounted(() => {
onMounted(() => {
syncReceptionDashboardLayout()
// JS判断安全区顶部占位、横竖屏判断、以及 横屏窄宽时右侧筛选区的窄屏模式
// syncReceptionDashboardLayout()
// uni-app x(尤其 APP 端)对 onWindowResize 支持不稳定,这里统一用轮询保证兼容性
// uni-app x(尤其 APP 端)对 onWindowResize 支持不稳定,这里统一用轮询保证兼容性
// 如需 H5 实时监听,可在 H5 条件编译块里单独注册
// 如需 H5 实时监听,可在 H5 条件编译块里单独注册
receptionDashboardLayoutPollId = setInterval(syncReceptionDashboardLayout, RECEPTION_LAYOUT_POLL_MS)
receptionDashboardLayoutPollId = setInterval(syncReceptionDashboardLayout, RECEPTION_LAYOUT_POLL_MS)
...
...
apps/uniappX/uniapp-x-tape/pages/receptionCenter/filters/ReceptionListPrimaryFilter.uvue
View file @
60c5322
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
</un-segmented>
</un-segmented>
</view>
</view>
</view>
</view>
<view v-if="listSubTabIndex == 0" class="filter-actions">
<view v-if="listSubTabIndex == 0" class="filter-actions">
<view class="pre-entry-btn" @click="emit('customerEntryClick')">
<view class="pre-entry-btn" @click="emit('customerEntryClick')">
<view class="pre-entry-btn-icon-wrap">
<view class="pre-entry-btn-icon-wrap">
...
@@ -92,6 +91,20 @@ const emit = defineEmits<{
...
@@ -92,6 +91,20 @@ const emit = defineEmits<{
justify-content: center;
justify-content: center;
min-width: 96px;
min-width: 96px;
}
}
.pre-entry-btn-landscape {
height: 30px;
padding-left: 10px;
padding-right: 10px;
border-radius: 8px;
background-color: #ffffff;
border: 1px solid #dbe3ee;
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
min-width: 76px;
}
.pre-entry-btn-icon-wrap {
.pre-entry-btn-icon-wrap {
width: 16px;
width: 16px;
...
...
apps/uniappX/uniapp-x-tape/pages/receptionCenter/styles/common.scss
0 → 100644
View file @
60c5322
File mode changed
apps/uniappX/uniapp-x-tape/pages/receptionCenter/styles/landscape.scss
0 → 100644
View file @
60c5322
.layout
{
&
.layout-landscape-1920x1080
{
.login
{
width
:
500px
;
padding-top
:
30px
;
.title
{
font-size
:
36px
;
color
:
#1e293b
;
}
.btn
{
height
:
54px
;
}
}
}
&
.layout-landscape-1174x768
{
.login
{
width
:
470px
;
padding-top
:
24px
;
}
}
&
.layout-landscape-common
{
.login
{
width
:
48%
;
min-width
:
430px
;
}
}
}
apps/uniappX/uniapp-x-tape/pages/receptionCenter/styles/portrait.scss
0 → 100644
View file @
60c5322
.layout
{
&
.layout-portrait-common
{
.login
{
width
:
88%
;
margin-top
:
94px
;
padding
:
24px
18px
18px
;
.title
{
font-size
:
28px
;
}
}
}
}
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