style(mpuniapp): 移动浏览器全量页面UI/UX审视与瑞士国际主义排版优化
这个提交包含在:
@@ -439,7 +439,7 @@ onLoad((options: CardEditPageOptions) => {
|
||||
background-color: var(--oc-surface, #F7F8FA);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ onLoad((options: CardEditPageOptions) => {
|
||||
}
|
||||
|
||||
.card-bottom-spacer {
|
||||
height: 80px;
|
||||
height: calc(88px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.card-cta-bar {
|
||||
@@ -461,19 +461,28 @@ onLoad((options: CardEditPageOptions) => {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(16px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -175,7 +175,7 @@ onLoad((options: CardHomePageOptions) => {
|
||||
background-color: var(--oc-surface, #F7F8FA);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ onLoad((options: CardHomePageOptions) => {
|
||||
flex: 1;
|
||||
padding-inline: var(--oc-space-16, 16px);
|
||||
padding-block-start: var(--oc-space-12, 12px);
|
||||
padding-block-end: 88px;
|
||||
padding-block-end: calc(88px + var(--window-bottom, 0px) + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.card-row {
|
||||
@@ -244,6 +244,11 @@ onLoad((options: CardHomePageOptions) => {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.card-row:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.card-main {
|
||||
@@ -300,20 +305,29 @@ onLoad((options: CardHomePageOptions) => {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
bottom: var(--window-bottom, 0px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(12px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -195,19 +195,28 @@ onLoad((options: QrcodeQuery) => {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(16px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -488,7 +488,7 @@ export function goBackFromCardEdit(): void {
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
fail: () => {
|
||||
uni.reLaunch({
|
||||
uni.switchTab({
|
||||
url: '/pages/owner/card/index',
|
||||
});
|
||||
},
|
||||
|
||||
@@ -370,7 +370,7 @@ onLoad((options: LeadDetailPageOptions) => {
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
line-height: 1.6;
|
||||
}
|
||||
@@ -393,19 +393,28 @@ onLoad((options: LeadDetailPageOptions) => {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(16px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -233,7 +233,7 @@ onLoad((options: LeadsPageOptions) => {
|
||||
background-color: var(--oc-surface, #F7F8FA);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
margin-bottom: var(--oc-space-12, 12px);
|
||||
}
|
||||
@@ -241,7 +241,11 @@ onLoad((options: LeadsPageOptions) => {
|
||||
.chip-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
gap: 8px;
|
||||
padding-block: 4px;
|
||||
}
|
||||
|
||||
.status-chip {
|
||||
@@ -325,7 +329,7 @@ onLoad((options: LeadsPageOptions) => {
|
||||
flex: 1;
|
||||
padding-inline: var(--oc-space-16, 16px);
|
||||
padding-block-start: var(--oc-space-12, 12px);
|
||||
padding-block-end: 88px;
|
||||
padding-block-end: calc(88px + var(--window-bottom, 0px) + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.lead-row {
|
||||
@@ -339,6 +343,11 @@ onLoad((options: LeadsPageOptions) => {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.lead-row:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.lead-main {
|
||||
@@ -384,20 +393,29 @@ onLoad((options: LeadsPageOptions) => {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
bottom: var(--window-bottom, 0px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(12px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -204,7 +204,7 @@ onLoad((options: ModePageOptions) => {
|
||||
background-color: var(--oc-surface, #F7F8FA);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
}
|
||||
|
||||
@@ -249,6 +249,11 @@ onLoad((options: ModePageOptions) => {
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
margin-bottom: var(--oc-space-12, 12px);
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.secondary-btn:active {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.secondary-btn-active {
|
||||
@@ -267,7 +272,7 @@ onLoad((options: ModePageOptions) => {
|
||||
}
|
||||
|
||||
.mode-bottom-spacer {
|
||||
height: 80px;
|
||||
height: calc(88px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.mode-cta-bar {
|
||||
@@ -275,19 +280,28 @@ onLoad((options: ModePageOptions) => {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(16px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -170,14 +170,15 @@ onLoad((options: ScanPageOptions) => {
|
||||
background-color: var(--oc-surface, #F7F8FA);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
}
|
||||
|
||||
.scan-cta-bar {
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(16px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
@@ -189,6 +190,12 @@ onLoad((options: ScanPageOptions) => {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -392,7 +392,7 @@ async function handleToggleSecurity(): Promise<void> {
|
||||
}
|
||||
|
||||
.bottom-spacer {
|
||||
height: 80px;
|
||||
height: calc(88px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
/* 底部单一主 CTA 悬浮栏:触控区 >= 44x44 */
|
||||
@@ -404,8 +404,9 @@ async function handleToggleSecurity(): Promise<void> {
|
||||
background-color: #FFFFFF;
|
||||
border-top-width: 1px;
|
||||
border-top-color: var(--oc-border);
|
||||
padding: 12px 20px;
|
||||
padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
@@ -416,6 +417,11 @@ async function handleToggleSecurity(): Promise<void> {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.cta-btn-danger {
|
||||
|
||||
@@ -446,27 +446,36 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.bottom-spacer {
|
||||
height: 80px;
|
||||
height: calc(88px + var(--window-bottom, 0px) + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.bottom-cta-bar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px 16px 24px 16px;
|
||||
bottom: var(--window-bottom, 0px);
|
||||
padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
|
||||
background-color: #FFFFFF;
|
||||
border-top: 1px solid #E3E7ED;
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: #0B5CFF;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-text {
|
||||
|
||||
@@ -151,8 +151,8 @@ onLoad((options: RadarPageOptions) => {
|
||||
padding-inline: 12px;
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border: 1px solid var(--oc-border, #E3E7ED);
|
||||
border-radius: var(--oc-radius-card, 16px);
|
||||
font-size: 14px;
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
font-size: 16px;
|
||||
color: var(--oc-text, #101828);
|
||||
}
|
||||
|
||||
@@ -219,20 +219,27 @@ onLoad((options: RadarPageOptions) => {
|
||||
}
|
||||
|
||||
.radar-cta-bar {
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(12px + var(--window-bottom, 0px) + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
height: 48px;
|
||||
min-height: 44px;
|
||||
background-color: var(--oc-primary, #0B5CFF);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--oc-radius-btn, 12px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -193,7 +193,7 @@ onLoad(() => {
|
||||
flex: 1;
|
||||
padding-inline: var(--oc-space-16, 16px);
|
||||
padding-block-start: var(--oc-space-16, 16px);
|
||||
padding-block-end: 88px;
|
||||
padding-block-end: calc(88px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.overview-feedback {
|
||||
@@ -319,9 +319,11 @@ onLoad(() => {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
padding: 12px var(--oc-space-16, 16px) var(--oc-space-24, 24px) var(--oc-space-16, 16px);
|
||||
padding: 12px var(--oc-space-16, 16px) calc(16px + env(safe-area-inset-bottom, 0px)) var(--oc-space-16, 16px);
|
||||
background-color: var(--oc-bg, #FFFFFF);
|
||||
border-top: 1px solid var(--oc-border, #E3E7ED);
|
||||
box-sizing: border-box;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.primary-cta-btn {
|
||||
@@ -333,6 +335,12 @@ onLoad(() => {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
border-width: 0;
|
||||
transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.primary-cta-btn:active {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.primary-cta-btn-disabled {
|
||||
|
||||
@@ -436,7 +436,7 @@ export function goBackFromLeadDetail(): void {
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
fail: () => {
|
||||
uni.reLaunch({
|
||||
uni.switchTab({
|
||||
url: '/pages/owner/leads',
|
||||
});
|
||||
},
|
||||
|
||||
在新工单中引用
屏蔽一个用户