Commit 163cdba7 by Lin

refactor(reception): 移除不必要的样式和优化接待中心布局

- 删除了与横屏布局相关的样式和逻辑,简化了组件结构
- 更新了接待中心的样式变量,增加了容器的上边距以改善布局
- 统一了样式配置,确保在不同分辨率下的适应性
1 parent a80cc5e4
......@@ -190,7 +190,6 @@ import { resolutionState } from '@/services/adapter/index.uts'
import { cssClassRef } from "@/services/adapter";
import { updateOrientation, useOrientation } from '@/services/adapter/hooks/index.uts'
// 导入样式变量
import { getLandscapeConfig } from "./styles/landscape.uts";
import {
getPortraitConfig,
getReceptionPortraitMainTabsConfig,
......@@ -231,11 +230,6 @@ const dynamicModuleBoxStyle = computed((): any => {
const adapterCls = cssClassRef.value;
if (adapterCls.indexOf('layout-landscape-1174x768') >= 0) {
const cfg = getLandscapeConfig(adapterCls)
return cfg != null ? ({ ...cfg } as UTSJSONObject) : ({} as UTSJSONObject);
}
if (adapterCls.indexOf('layout-portrait-768x1174') >= 0) {
const cfg = getPortraitConfig(adapterCls)
return cfg != null ? ({ ...cfg } as UTSJSONObject) : ({} as UTSJSONObject);
......@@ -1229,7 +1223,6 @@ onMounted(() => {
}
}
}
console.log('[ReceptionCenter] 页面初始化完成')
})
// 在 center.uvue setup 顶部监听自定义事件,刷新列表
......@@ -1248,6 +1241,7 @@ onUnmounted(() => {
<style scoped lang="scss">
@import "./styles/common.scss";
<<<<<<< HEAD
// @import "./styles/landscape.scss";
// @import "./styles/portrait.scss";
......@@ -1266,6 +1260,8 @@ onUnmounted(() => {
height: 100%;
}
=======
>>>>>>> e9b81af8 (refactor(reception): 移除不必要的样式和优化接待中心布局)
/* 接待中心页面包一层:供预录表单绝对定位覆盖 */
.reception-center-page {
flex: 1;
......@@ -1284,6 +1280,7 @@ onUnmounted(() => {
border-bottom: 1px solid #eef2f7;
padding: 0px 12px 6px;
box-sizing: border-box;
margin-top: 30px;
}
.reception-main-tabs {
......
......@@ -8,4 +8,5 @@
}
.reception-tabs-container{
padding: var(--reception-tabs-container-padding);
margin-top: var(--reception-tabs-container-margin-top);
}
\ No newline at end of file
......@@ -25,6 +25,7 @@ export default {
'--test-view-bg': 'blue',
// 'padding': '10px'
'--reception-tabs-container-padding': '8px 12px 60px'
'--reception-tabs-container-margin-top': '30px'
},
'landscape-1174x768': {
'--adapter-color': '#FF4444',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!