Commit 90e4fbbd by liimin

refactor(components): 替换MessageBox组件为un-popup并优化UI样式

- 将CarBrands和Employee组件中的MessageBox替换为un-popup组件
- 添加弹窗头部导航栏包含标题、返回和关闭按钮
- 重构弹窗布局结构和滚动视图配置
- 更新组件可见性控制逻辑从ref调用改为状态管理
- 调整ToolBox工具面板背景透明度和动画效果
- 优化入口图标尺寸和间距设置
- 修改完成步骤弹窗的最大高度限制
- 添加员工列表为空时的提示文案
- 调整各组件的样式细节包括圆角、阴影和颜色主题
1 parent dde67d29
<template> <template>
<view> <view>
<MessageBox ref="carBrandListVisible" <un-popup :show="visible"
:back="showBackButton" mode="bottom"
:is-footer="false" :round="20"
position="bottom"
:title="currentView == 'brand' ? '请选择车品牌' : '请选择车系'"
:z-index="dynamicZIndex" :z-index="dynamicZIndex"
@close="handleMessageBoxClose"> @close="handlePopupClose">
<scroll-view class="select-box"> <view class="popup-wrapper" :style="{ height: windowHeight * 0.6 + 'px' }">
<view class="popup-header">
<view v-if="showBackButton" class="icon-back" @click="handleBackClick">
<un-icon name="arrow-left" size="20"></un-icon>
</view>
<text class="popup-title">{{ currentView == 'brand' ? '请选择车品牌' : '请选择车系' }}</text>
<view class="icon-close-box" @click="handleHide">
<uni-icons color="#1A1A1A" :size="18" type="closeempty"></uni-icons>
</view>
</view>
<scroll-view class="select-box"
direction="vertical"
:show-scrollbar="false"
:bounces="false"
:scroll-with-animation="false"
scroll-y>
<!-- 品牌列表 --> <!-- 品牌列表 -->
<view v-show="currentView == 'brand'" class="view-content"> <view v-show="currentView == 'brand'" class="view-content">
<template v-for="(item, index) in carBrandList" <template v-for="(item, index) in carBrandList" :key="index">
:key="index">
<view class="select-item" <view class="select-item"
:class="[{ 'is-active': selectedBrandIndex == index }]" :class="[{ 'is-active': selectedBrandIndex == index }]"
@click="selectBrand(item, index)"> @click="selectBrand(item, index)">
...@@ -22,8 +34,7 @@ ...@@ -22,8 +34,7 @@
<!-- 车系列表 --> <!-- 车系列表 -->
<view v-show="currentView == 'series'" class="view-content"> <view v-show="currentView == 'series'" class="view-content">
<template v-for="(item, index) in currentCarList" <template v-for="(item, index) in currentCarList" :key="index">
:key="index">
<view class="select-item" <view class="select-item"
:class="[{ 'is-active': carModel == (item as UTSJSONObject).name }]" :class="[{ 'is-active': carModel == (item as UTSJSONObject).name }]"
@click="handleSelect(item)"> @click="handleSelect(item)">
...@@ -32,12 +43,13 @@ ...@@ -32,12 +43,13 @@
</template> </template>
</view> </view>
</scroll-view> </scroll-view>
</MessageBox> </view>
</un-popup>
</view> </view>
</template> </template>
<script setup lang="uts"> <script setup lang="uts">
import { ComponentPublicInstance } from "vue"; import { computed, ref, watch } from "vue";
console.log('==== CarBrands 组件脚本开始执行 ====') console.log('==== CarBrands 组件脚本开始执行 ====')
...@@ -46,20 +58,16 @@ import { recordService } from "@/services/recorder/index.uts"; ...@@ -46,20 +58,16 @@ import { recordService } from "@/services/recorder/index.uts";
import { dispatch, state } from "@/store/index.uts"; import { dispatch, state } from "@/store/index.uts";
import { storage } from "@/utils/storage.uts"; import { storage } from "@/utils/storage.uts";
import MessageBox from "./MessageBox.uvue";
import { resolutionState } from "@/services/adapter/index.uts"; import { resolutionState } from "@/services/adapter/index.uts";
import { computed } from "vue";
import type { AppResolutionConfig } from "@/services/adapter/types/index.uts";
// 使用 computed 响应式获取最新的分辨率配置 // 使用 computed 响应式获取最新的分辨率配置
const windowHeight = computed(() => { const windowHeight = computed(() => {
console.log('windowHeight:', resolutionState.windowHeight) console.log('windowHeight:', resolutionState.windowHeight)
return resolutionState.windowHeight const height = resolutionState.windowHeight;
} return height > 0 ? height : uni.getWindowInfo().windowHeight;
); });
type UserInfo = UTSJSONObject type UserInfo = UTSJSONObject
...@@ -89,13 +97,11 @@ const props = defineProps({ ...@@ -89,13 +97,11 @@ const props = defineProps({
const emit = defineEmits(["close", "select"]); const emit = defineEmits(["close", "select"]);
const carlist = ref<Array<any>>([]); const visible = ref<boolean>(false);
const selectItem = ref<UTSJSONObject>({});
const clickFlga = ref<boolean>(false);
const carBrandListOff = ref<boolean>(false); const carBrandListOff = ref<boolean>(false);
const carBrandListVisible = ref(null);
const updateView = ref<number>(Date.now()); const updateView = ref<number>(Date.now());
const carBrandList = ref<Array<any>>([]); const carBrandList = ref<Array<any>>([]);
const selectItem = ref<UTSJSONObject>({});
// 当前视图:"brand" = 品牌选择,"series" = 车系选择 // 当前视图:"brand" = 品牌选择,"series" = 车系选择
const currentView = ref<"brand" | "series">("brand"); const currentView = ref<"brand" | "series">("brand");
// 当前选中的品牌索引 // 当前选中的品牌索引
...@@ -156,33 +162,32 @@ const showBackButton = computed<boolean>(() => { ...@@ -156,33 +162,32 @@ const showBackButton = computed<boolean>(() => {
}); });
function close(): void { function close(): void {
if (carBrandListVisible.value != null) { visible.value = false;
(carBrandListVisible.value as ComponentPublicInstance).$callMethod("close");
}
carBrandListOff.value = false; carBrandListOff.value = false;
currentView.value = "brand"; // 重置为品牌视图 currentView.value = "brand"; // 重置为品牌视图
selectedBrandIndex.value = -1; // 重置选中状态 selectedBrandIndex.value = -1; // 重置选中状态
currentCarList.value = []; // 清空车系列表 currentCarList.value = []; // 清空车系列表
} }
// 处理 MessageBox 的 close 事件 // 处理弹窗关闭事件
function handleMessageBoxClose(): void { function handlePopupClose(): void {
// 如果当前是车系视图,点击返回按钮时切换到品牌视图 // 如果当前是车系视图,点击返回按钮时切换到品牌视图
if (currentView.value == "series") { if (currentView.value == "series") {
currentView.value = "brand"; currentView.value = "brand";
} else { } else {
// 如果是品牌视图,点击关闭按钮才真正关闭弹窗 // 如果是品牌视图,点击关闭按钮才真正关闭弹窗
visible.value = false;
emit("close"); emit("close");
} }
} }
// 处理自定义返回按钮点击 // 处理关闭按钮点击(不触发事件,只隐藏)
function handleBackClick(): void { function handleHide(): void {
currentView.value = "brand"; visible.value = false;
} }
function closeCarBoxVisible(): void { // 处理返回按钮点击
// 返回品牌选择 function handleBackClick(): void {
currentView.value = "brand"; currentView.value = "brand";
} }
function handleSelect(item: any): void { function handleSelect(item: any): void {
...@@ -219,9 +224,7 @@ function handleSelect(item: any): void { ...@@ -219,9 +224,7 @@ function handleSelect(item: any): void {
} }
// 关闭弹窗并发出选择事件 // 关闭弹窗并发出选择事件
if (carBrandListVisible.value != null) { visible.value = false;
(carBrandListVisible.value as ComponentPublicInstance).$callMethod("close");
}
emit("select", { ...item, ...selectItemVal }); emit("select", { ...item, ...selectItemVal });
} }
...@@ -300,6 +303,7 @@ function autoSelect(): void { ...@@ -300,6 +303,7 @@ function autoSelect(): void {
} }
function open(): void { function open(): void {
visible.value = true;
const userInfo: null | UserInfo = storage.get("userInfo") as null | UTSJSONObject; const userInfo: null | UserInfo = storage.get("userInfo") as null | UTSJSONObject;
if (userInfo == null) return; if (userInfo == null) return;
...@@ -327,11 +331,6 @@ function open(): void { ...@@ -327,11 +331,6 @@ function open(): void {
child.brandId = _brandId; child.brandId = _brandId;
carBrandListData.push(child); carBrandListData.push(child);
} }
// childs.forEach((i: any) => {
// i.brandName = _brandName
// i.brandId = _brandId
// carBrandListData.push(i)
// })
} }
} }
...@@ -339,9 +338,6 @@ function open(): void { ...@@ -339,9 +338,6 @@ function open(): void {
dispatch("setCarBrandsList", carBrandListData); dispatch("setCarBrandsList", carBrandListData);
storage.set("carBrandList", carBrandListData, 0); storage.set("carBrandList", carBrandListData, 0);
} }
} }
updateView.value = Date.now(); updateView.value = Date.now();
}); });
...@@ -359,17 +355,11 @@ function open(): void { ...@@ -359,17 +355,11 @@ function open(): void {
if (foundIndex != -1 && carBrandListVal.length == 1) { if (foundIndex != -1 && carBrandListVal.length == 1) {
selectBrand(carBrandListVal[foundIndex], foundIndex); selectBrand(carBrandListVal[foundIndex], foundIndex);
} else { } else {
if (carBrandListVisible.value != null) {
(carBrandListVisible.value as ComponentPublicInstance).$callMethod("open");
}
carBrandListOff.value = true; carBrandListOff.value = true;
} }
return; return;
} }
if (carBrandListVisible.value != null) {
(carBrandListVisible.value as ComponentPublicInstance).$callMethod("open");
}
carBrandListOff.value = true; carBrandListOff.value = true;
} }
...@@ -380,13 +370,60 @@ defineExpose({ open, close, autoSelect }); ...@@ -380,13 +370,60 @@ defineExpose({ open, close, autoSelect });
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.popup-wrapper {
background: #ffffff;
border-radius: 20px 20px 0 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.popup-header {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 56px;
flex-shrink: 0;
border-bottom: 1px solid #f0f0f0;
}
.popup-title {
font-size: 18px;
font-weight: 600;
color: #292d33;
}
.icon-back {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.icon-close-box {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.select-box { .select-box {
margin: 16px 0; flex: 1;
min-height: 0;
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 0;
flex: 1;
} }
.view-content { .view-content {
...@@ -395,6 +432,9 @@ defineExpose({ open, close, autoSelect }); ...@@ -395,6 +432,9 @@ defineExpose({ open, close, autoSelect });
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
padding: 16px 24px 24px;
box-sizing: border-box;
min-height: 100%;
} }
.select-item { .select-item {
......
<template> <template>
<MessageBox ref="employeeBoxVisible" <view>
:is-footer="false" <un-popup :show="visible"
position="bottom" mode="bottom"
:title="`请选择${title}`" :round="20"
:z-index="10076" :z-index="dynamicZIndex"
@close="handleClose"> @close="handlePopupClose">
<view class="popup-wrapper" :style="{ height: windowHeight * 0.6 + 'px' }">
<view class="popup-header">
<view class="icon-close-box" @click="handleHide">
<uni-icons color="#1A1A1A" :size="18" type="closeempty"></uni-icons>
</view>
<text class="popup-title">请选择{{ title }}</text>
</view>
<scroll-view class="select-box" <scroll-view class="select-box"
direction="vertical"
:show-scrollbar="false" :show-scrollbar="false"
:style="{ maxHeight: windowHeight * 0.6 + 'px' }"> :bounces="false"
:scroll-with-animation="false"
scroll-y>
<view v-if="employeeList.length === 0" style="padding: 40px 20px; text-align: center;">
<text style="color: #999; font-size: 14px;">暂无销售人员数据</text>
</view>
<view class="view-content"> <view class="view-content">
<template v-for="(item, index) in employeeList" :key="index"> <template v-for="(item, index) in employeeList" :key="index">
<view class="select-item" <view class="select-item"
...@@ -18,7 +31,9 @@ ...@@ -18,7 +31,9 @@
</template> </template>
</view> </view>
</scroll-view> </scroll-view>
</MessageBox> </view>
</un-popup>
</view>
</template> </template>
<script setup lang="uts"> <script setup lang="uts">
...@@ -29,8 +44,6 @@ import { resolutionState } from "@/services/adapter/index.uts"; ...@@ -29,8 +44,6 @@ import { resolutionState } from "@/services/adapter/index.uts";
import { dispatch, state } from "@/store/index.uts"; import { dispatch, state } from "@/store/index.uts";
import { storage } from "@/utils/storage.uts"; import { storage } from "@/utils/storage.uts";
import MessageBox from "./MessageBox.uvue";
type Props = { type Props = {
salesPropsUuid?: string salesPropsUuid?: string
title?: string title?: string
...@@ -45,7 +58,7 @@ const props = withDefaults(defineProps<Props>(), { ...@@ -45,7 +58,7 @@ const props = withDefaults(defineProps<Props>(), {
const emit = defineEmits(["close", "select"]); const emit = defineEmits(["close", "select"]);
const employeeBoxVisible = ref<ComponentPublicInstance | null>(null); const visible = ref<boolean>(false);
const watchStatus = computed<boolean>(() => { const watchStatus = computed<boolean>(() => {
const status = state.user?.historyStatus; const status = state.user?.historyStatus;
...@@ -65,20 +78,27 @@ const salesUuid = computed<string>(() => { ...@@ -65,20 +78,27 @@ const salesUuid = computed<string>(() => {
const val2 = props.salesPropsUuid; const val2 = props.salesPropsUuid;
return val1 !== null && val1 !== "" ? (val1 as string) : val2; return val1 !== null && val1 !== "" ? (val1 as string) : val2;
}); });
// 动态计算 z-index,确保始终在最上层(高于 ToolBox 的 10073)
const windowHeight = computed<number>(() => resolutionState.windowHeight); const dynamicZIndex = computed<number>(() => {
return 10090;
});
const windowHeight = computed<number>(() => {
const height = resolutionState.windowHeight;
return height > 0 ? height : uni.getWindowInfo().windowHeight;
});
const employeeList = ref<Array<any>>([]); const employeeList = ref<Array<any>>([]);
watch(updateView, () => { watch(updateView, () => {
console.log("updateView triggered, reading from storage");
const list = storage.get("employeeList") as UTSArray<Any>; const list = storage.get("employeeList") as UTSArray<Any>;
console.log("storage employeeList:", list, "length:", list != null ? (list as Array<any>).length : 0);
employeeList.value = list != null ? (list as Array<any>) : []; employeeList.value = list != null ? (list as Array<any>) : [];
console.log("employeeList.value updated, length:", employeeList.value.length);
}, { immediate: true, deep: true }); }, { immediate: true, deep: true });
function close(): void { function close(): void {
if (employeeBoxVisible.value != null) { visible.value = false;
(employeeBoxVisible.value as ComponentPublicInstance).$callMethod("close");
}
} }
watch(watchStatus, () => { watch(watchStatus, () => {
...@@ -89,21 +109,33 @@ function handleClose(): void { ...@@ -89,21 +109,33 @@ function handleClose(): void {
emit("close"); emit("close");
} }
function handlePopupClose(): void {
visible.value = false;
emit("close");
}
function handleHide(): void {
visible.value = false;
}
function open(): void { function open(): void {
if (employeeBoxVisible.value != null) { visible.value = true;
(employeeBoxVisible.value as ComponentPublicInstance).$callMethod("open");
}
const userInfo: null | UserInfo = storage.get("userInfo") as null | UTSJSONObject; const userInfo: null | UserInfo = storage.get("userInfo") as null | UTSJSONObject;
if (userInfo == null) return; if (userInfo == null) return;
const shopMerchantId = userInfo.shopMerchantId; const shopMerchantId = userInfo.shopMerchantId;
// 获取销售人员列表 // 获取销售人员列表
getEmployeeListApi({ merchantId: shopMerchantId }).then((res: any) => { getEmployeeListApi({ merchantId: shopMerchantId }).then((res: any) => {
console.log("getEmployeeListApi response:", res);
const list = res as Array<any>; const list = res as Array<any>;
console.log("list length:", list != null ? list.length : 0);
dispatch("setEmployeeList", list); dispatch("setEmployeeList", list);
const listToStore = list != null ? list : []; const listToStore = list != null ? list : [];
console.log("Saving to storage, length:", listToStore.length);
storage.set("employeeList", listToStore, 0); storage.set("employeeList", listToStore, 0);
console.log("Triggering updateView");
updateView.value = Date.now(); updateView.value = Date.now();
console.log("updateView triggered with:", updateView.value);
}); });
} }
...@@ -116,14 +148,48 @@ defineExpose({ open, close }); ...@@ -116,14 +148,48 @@ defineExpose({ open, close });
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.popup-wrapper {
background: #ffffff;
border-radius: 20px 20px 0 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.popup-header {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 56px;
flex-shrink: 0;
border-bottom: 1px solid #f0f0f0;
}
.popup-title {
font-size: 18px;
font-weight: 600;
color: #292d33;
}
.icon-close-box {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.select-box { .select-box {
margin: 16px 0; flex: 1;
min-height: 0;
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 0;
flex: 1;
padding-bottom: 30px;
} }
.view-content { .view-content {
...@@ -132,6 +198,9 @@ defineExpose({ open, close }); ...@@ -132,6 +198,9 @@ defineExpose({ open, close });
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
padding: 16px 24px 24px;
box-sizing: border-box;
min-height: 100%;
} }
.select-item { .select-item {
......
...@@ -128,12 +128,12 @@ function getIconUrl(icon: string): string { ...@@ -128,12 +128,12 @@ function getIconUrl(icon: string): string {
.entrance-item { .entrance-item {
width: calc(100% / 3); width: calc(100% / 3);
min-height: 120px; min-height: 90px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: var(--l-spacing-lg); padding: 2px;
border-radius: var(--l-radius-md); border-radius: var(--l-radius-md);
background: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.6);
transition-property: transform, background, box-shadow; transition-property: transform, background, box-shadow;
......
...@@ -358,6 +358,7 @@ function showError(key: string): boolean { ...@@ -358,6 +358,7 @@ function showError(key: string): boolean {
} }
function showSelectPopup(item: FormObjectItem): void { function showSelectPopup(item: FormObjectItem): void {
console.log("showSelectPopup", item);
if (props.customerType == 0 || (item.disabled == true)) return; if (props.customerType == 0 || (item.disabled == true)) return;
const popKey = item.popKey !== null ? item.popKey : ""; const popKey = item.popKey !== null ? item.popKey : "";
const refValue = getRefValue(popKey); const refValue = getRefValue(popKey);
...@@ -467,6 +468,7 @@ const open = (): void => { ...@@ -467,6 +468,7 @@ const open = (): void => {
recordService.getBusinessData().then((data: any) => { recordService.getBusinessData().then((data: any) => {
const customerInfo = (data != null ? data as UTSJSONObject : null); const customerInfo = (data != null ? data as UTSJSONObject : null);
console.log("customerInfo", customerInfo);
if (customerInfo != null) { if (customerInfo != null) {
// 填充表单数据 // 填充表单数据
formData.value = { formData.value = {
...@@ -478,6 +480,7 @@ const open = (): void => { ...@@ -478,6 +480,7 @@ const open = (): void => {
salesUuid: customerInfo.salesUuid != null && customerInfo.salesUuid != "null" ? customerInfo.salesUuid : "", salesUuid: customerInfo.salesUuid != null && customerInfo.salesUuid != "null" ? customerInfo.salesUuid : "",
}; };
console.log("formData", formData.value);
const _sceneType = props.sceneType; const _sceneType = props.sceneType;
const _customerType = props.customerType; const _customerType = props.customerType;
let stepValue = 1; let stepValue = 1;
...@@ -555,14 +558,13 @@ defineExpose({ open, close }); ...@@ -555,14 +558,13 @@ defineExpose({ open, close });
.portrait-wrapper { .portrait-wrapper {
width: 100%; width: 100%;
height: 85%; max-height: 85%;
border-radius: 20px 20px 0 0; border-radius: 20px 20px 0 0;
} }
.landscape-wrapper { .landscape-wrapper {
width: 400px; width: 400px;
height: 100%; /* 保证占满抽屉高度 */ height: 100%;
flex: 1; /* 让 wrapper 在容器内能完全伸展 */
} }
.popup-header { .popup-header {
...@@ -595,7 +597,7 @@ defineExpose({ open, close }); ...@@ -595,7 +597,7 @@ defineExpose({ open, close });
.popup-body { .popup-body {
flex: 1; flex: 1;
height: 0; /* 必须要有高度限制以便内部 scroll-view 滚动 */ min-height: 0;
padding: 0 20px; padding: 0 20px;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
// iPhone 14 Pro 竖屏 (393x816) - 产品介绍占 60% // iPhone 14 Pro 竖屏 (393x816) - 产品介绍占 60%
// 可用高度 = 816 - 44(状态栏) - 42(标题) - 60(TabBar) ≈ 670px // 可用高度 = 816 - 44(状态栏) - 42(标题) - 60(TabBar) ≈ 670px
'portrait-393x816': { 'portrait-393x816': {
'--module-box-height': '400px', '--module-box-height': '300px',
'--tool-box-min-height': '200px', '--tool-box-min-height': '200px',
'--common-title-height': '42px', '--common-title-height': '42px',
}, },
......
...@@ -551,15 +551,17 @@ defineExpose({ ...@@ -551,15 +551,17 @@ defineExpose({
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.35);
backdrop-filter: blur(8px);
z-index: 1000; z-index: 1000;
pointer-events: auto; pointer-events: auto;
transition: opacity 0.3s ease;
} }
.tool-panel { .tool-panel {
position: fixed; position: fixed;
z-index: 1001; z-index: 1001;
transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease; transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms ease;
} }
.tool-panel-open { .tool-panel-open {
...@@ -570,7 +572,7 @@ defineExpose({ ...@@ -570,7 +572,7 @@ defineExpose({
.tool-panel-landscape.tool-panel-close { .tool-panel-landscape.tool-panel-close {
opacity: 0; opacity: 0;
transform: translateX(calc(var(--panel-width) + 60px)); transform: translateX(calc(var(--panel-width) + 40px));
pointer-events: none; pointer-events: none;
} }
...@@ -626,22 +628,26 @@ defineExpose({ ...@@ -626,22 +628,26 @@ defineExpose({
padding: var(--fab-panel-padding-v) var(--fab-panel-padding-h); padding: var(--fab-panel-padding-v) var(--fab-panel-padding-h);
margin-bottom: 0; margin-bottom: 0;
align-items: stretch; align-items: stretch;
background: linear-gradient(145deg, rgba(30, 36, 48, 0.95), rgba(42, 50, 66, 0.92)); background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
box-shadow: -8px 24px 48px rgba(0, 0, 0, 0.4), inset 1px 1px 2px rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08); box-shadow:
-12px 32px 64px rgba(0, 0, 0, 0.12),
0 8px 24px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
border: 1px solid rgba(255, 255, 255, 0.6);
} }
.tool-panel-landscape .list-wrapper { .tool-panel-landscape .list-wrapper {
width: var(--panel-width); width: var(--panel-width);
height: var(--fab-panel-height); height: var(--fab-panel-height);
border-radius: 20px 0 0 20px; border-radius: 24px 0 0 24px;
border-right-width: 0; border-right-width: 0;
} }
.tool-panel-portrait .list-wrapper { .tool-panel-portrait .list-wrapper {
width: 100%; width: 100%;
height: auto; height: auto;
border-radius: 20px 20px 0 0; border-radius: 24px 24px 0 0;
border-bottom-width: 0; border-bottom-width: 0;
} }
...@@ -649,16 +655,16 @@ defineExpose({ ...@@ -649,16 +655,16 @@ defineExpose({
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
// justify-content: space-between; justify-content: flex-end;
height: 32px; height: 28px;
padding: 0 4px 0 8px; padding: 0 2px 0 8px;
margin-bottom: 4px; margin-bottom: 4px;
} }
.panel-title { .panel-title {
font-size: 13px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #e2e8f0; color: #1e293b;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
...@@ -669,14 +675,20 @@ defineExpose({ ...@@ -669,14 +675,20 @@ defineExpose({
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: rgba(255, 255, 255, 0.06); background: rgba(102, 126, 234, 0.08);
border: 1px solid rgba(255, 255, 255, 0.05); border: 1px solid rgba(102, 126, 234, 0.15);
transition: all 0.2s ease;
&:active {
background: rgba(102, 126, 234, 0.15);
transform: scale(0.95);
}
} }
.panel-close-text { .panel-close-text {
font-size: 16px; font-size: 16px;
font-weight: 300; font-weight: 300;
color: #94a3b8; color: #667eea;
line-height: 16px; line-height: 16px;
} }
...@@ -691,25 +703,26 @@ defineExpose({ ...@@ -691,25 +703,26 @@ defineExpose({
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: 100%; width: 100%;
font-size: 11px; font-size: 9px;
font-weight: 600; font-weight: 400;
letter-spacing: 0.5px; letter-spacing: 0.5px;
color: rgba(255, 255, 255, 0.45); color: #cbd5e1;
padding: 0 4px; padding: 0 6px;
margin-bottom: 2px;
text-transform: uppercase;
} }
.dynamic-group { .dynamic-group {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-bottom: 6px; padding-bottom: 8px;
width: 100%; width: 100%;
} }
.fixed-group { .fixed-group {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 8px 0 4px; padding: 6px 0 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
width: 100%; width: 100%;
} }
...@@ -718,7 +731,8 @@ defineExpose({ ...@@ -718,7 +731,8 @@ defineExpose({
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
width: 100%; width: 100%;
margin-top: 8px; margin-top: 10px;
gap: 4px;
} }
.action-item { .action-item {
...@@ -742,28 +756,39 @@ defineExpose({ ...@@ -742,28 +756,39 @@ defineExpose({
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
transition: transform 0.2s ease, opacity 0.2s ease; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
width: 100%; width: 100%;
padding: 6px 4px;
border-radius: 12px;
&:active {
transform: scale(0.95);
}
} }
.fab-item-active { .fab-item-active {
transform: scale(0.92); transform: scale(0.95);
opacity: 0.8; background: rgba(102, 126, 234, 0.08);
} }
.icon-box { .icon-box {
position: relative; position: relative;
width: 38px; width: 42px;
height: 38px; height: 42px;
border-radius: 12px; border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); box-shadow:
background: linear-gradient(180deg, rgba(240, 244, 255, 0.96), rgba(220, 230, 248, 0.92)); 0 4px 12px rgba(0, 0, 0, 0.08),
0 2px 6px rgba(0, 0, 0, 0.06),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
overflow: hidden; overflow: hidden;
flex-shrink: 0; flex-shrink: 0;
border: 1px solid rgba(255, 255, 255, 0.8);
transition: all 0.25s ease;
.btn-icon, .btn-icon,
.sprite-icon { .sprite-icon {
...@@ -772,7 +797,7 @@ defineExpose({ ...@@ -772,7 +797,7 @@ defineExpose({
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 50%; border-radius: 10px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -784,16 +809,34 @@ defineExpose({ ...@@ -784,16 +809,34 @@ defineExpose({
} }
} }
.fixed-item .icon-box {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.18) 0%, rgba(118, 75, 162, 0.18) 100%);
border: 1px solid rgba(102, 126, 234, 0.25);
box-shadow:
0 4px 12px rgba(102, 126, 234, 0.18),
0 2px 6px rgba(102, 126, 234, 0.12),
inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.fab-item:active .icon-box {
transform: scale(0.95);
box-shadow:
0 2px 8px rgba(0, 0, 0, 0.1),
0 1px 4px rgba(0, 0, 0, 0.08);
}
.item-text { .item-text {
margin-left: 0; margin-left: 0;
margin-top: 6px; margin-top: 8px;
font-size: 10px; font-size: 11px;
color: rgba(255, 255, 255, 0.85); color: #475569;
font-weight: 500; font-weight: 500;
line-height: 12px; line-height: 13px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
text-align: center;
max-width: 100%;
} }
.fixed-item { .fixed-item {
...@@ -805,11 +848,13 @@ defineExpose({ ...@@ -805,11 +848,13 @@ defineExpose({
} }
.fixed-pay { .fixed-pay {
background: linear-gradient(180deg, #f3f7ff, #cedcf1); background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
border: 1px solid rgba(59, 130, 246, 0.2);
} }
.fixed-finish { .fixed-finish {
background: linear-gradient(180deg, #fff7ee, #e7d7c6); background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border: 1px solid rgba(245, 158, 11, 0.2);
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!