Commit 918a88aa by 李伟康

feat(orderEntry): 拆分录单页面为多组件实现

- 将录单页面拆分为施工单、合同单、销售单三个独立组件
- 引入最近录单组件,展示最近录单项目信息
- 调整页面布局,使用动态组件渲染当前选中录单类型
- 修改tab栏配置,新增录单Tab项及对应图标
- 简化录单页面逻辑,移除冗余的数据结构与方法
- 增加公共样式文件,统一样式管理
- 更新pages.json,设置录单页面导航样式为自定义
- 优化tab切换逻辑,支持跳转录单页面对应Tab
1 parent 3303c75c
...@@ -61,6 +61,13 @@ export const HOME_FRAME_TABS: TabItem[] = [ ...@@ -61,6 +61,13 @@ export const HOME_FRAME_TABS: TabItem[] = [
iconSrcActive: "/static/images/tabbar/home-active.png", iconSrcActive: "/static/images/tabbar/home-active.png",
iconSrcInactive: "/static/images/tabbar/home.png" iconSrcInactive: "/static/images/tabbar/home.png"
}, },
{
label: "录单",
icon: "tasks",
name: "orderEntry",
iconSrcActive: "/static/images/tabbar/tasks-active.png",
iconSrcInactive: "/static/images/tabbar/tasks.png"
},
]; ];
function reLaunchPage(pagesJsonPath: string): void { function reLaunchPage(pagesJsonPath: string): void {
...@@ -108,6 +115,10 @@ export function navigateToTab(index: number, currentTabIndex: number): void { ...@@ -108,6 +115,10 @@ export function navigateToTab(index: number, currentTabIndex: number): void {
switchTabPage("pages/tasks/tasks"); switchTabPage("pages/tasks/tasks");
return; return;
} }
if (index == 3) {
switchTabPage("pages/common/orderEntry/index");
return;
}
} }
export function useHomeFrameTabbar(source: HomeFrameTabbarSource) { export function useHomeFrameTabbar(source: HomeFrameTabbarSource) {
......
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
{ {
"path": "pages/common/orderEntry/index", "path": "pages/common/orderEntry/index",
"style": { "style": {
"navigationStyle": "custom",
"navigationBarTitleText": "录单" "navigationBarTitleText": "录单"
} }
} }
...@@ -159,6 +160,12 @@ ...@@ -159,6 +160,12 @@
"text": "我的", "text": "我的",
"iconPath": "static/images/tabbar/study.png", "iconPath": "static/images/tabbar/study.png",
"selectedIconPath": "static/images/tabbar/study-active.png" "selectedIconPath": "static/images/tabbar/study-active.png"
},
{
"pagePath": "pages/common/orderEntry/index",
"text": "录单",
"iconPath": "static/images/tabbar/study.png",
"selectedIconPath": "static/images/tabbar/study-active.png"
} }
] ]
}, },
......
<template>
<view class="order-content">
<view class="order-box">
<view class="form-card">
<view class="form-item">
<text class="form-label">甲方(客户)</text>
<view class="form-select" >
<text class="form-select-text" :class="{ placeholder: contractForm.customer == '' }">
{{ contractForm.customer == "" ? "请选择" : contractForm.customer }}
</text>
<uni-icons type="down" size="12" color="#999999"></uni-icons>
</view>
</view>
<view class="form-item">
<text class="form-label">合同类型</text>
<view class="form-select" >
<text class="form-select-text" :class="{ placeholder: contractForm.contractType == '' }">
{{ contractForm.contractType == "" ? "请选择" : contractForm.contractType }}
</text>
<uni-icons type="down" size="12" color="#999999"></uni-icons>
</view>
</view>
<view class="form-item">
<text class="form-label">商品/服务</text>
<scroll-view class="product-list">
<view
v-for="product in productList"
:key="product.id"
:class="['product-item', { active: isProductSelected(product.id) }]"
@click="toggleProduct(product.id)"
>
<text class="product-name">{{ product.name }}</text>
<text class="product-price">¥{{ product.price }}</text>
</view>
</scroll-view>
</view>
<view class="form-item">
<text class="form-label">合同金额</text>
<view class="amount-input-wrap">
<text class="amount-symbol">¥</text>
<input
v-model="contractForm.contractAmount"
class="amount-input"
type="digit"
placeholder="请输入金额"
placeholder-class="form-placeholder"
/>
</view>
</view>
<view class="form-item form-item--last">
<text class="form-label">支付方式</text>
<view class="form-select" >
<text class="form-select-text" :class="{ placeholder: contractForm.paymentMethod == '' }">
{{ contractForm.paymentMethod == "" ? "请选择" : contractForm.paymentMethod }}
</text>
<uni-icons type="down" size="12" color="#999999"></uni-icons>
</view>
</view>
</view>
</view>
<view class="submit-wrap">
<view class="submit-btn" @click="submitOrder">
<view class="check-icon-box">
<text class="check-icon-text">✓</text>
</view>
<text class="submit-btn-text">提交</text>
</view>
</view>
</view>
</template>
<script setup lang="uts">
import { ref, computed } from "vue";
type ContractForm = {
customer: string;
contractType: string;
selectedProductIds: string[];
contractAmount: string;
paymentMethod: string;
};
type ProductItem = {
id: string;
name: string;
desc: string;
icon: string;
price: number;
};
const contractForm = ref<ContractForm>({
customer: "",
contractType: "",
selectedProductIds: [],
contractAmount: "",
paymentMethod: ""
});
const showPaymentMethod = ref<boolean>(false);
const productList = ref<ProductItem[]>([
{ id: "1", name: "发动机延保3年", desc: "原厂保修到期后再延3年", icon: "🔧", price: 3500 },
{ id: "2", name: "变速箱延保3年", desc: "CVT/DCT/AT全系适用", icon: "⚙️", price: 2800 },
{ id: "3", name: "3M全车贴膜", desc: "陶瓷膜,UV阻隔99%", icon: "🛡️", price: 4500 },
{ id: "4", name: "4K行车记录仪", desc: "前后双录,ADAS辅助", icon: "📹", price: 999 },
{ id: "5", name: "精致洗车", desc: "手工精洗+内饰清洁", icon: "⭐", price: 98 },
{ id: "6", name: "全车打蜡", desc: "进口棕榈蜡深度养护", icon: "💎", price: 450 }
]);
function isProductSelected(id: string): boolean {
return contractForm.value.selectedProductIds.indexOf(id) >= 0;
}
function toggleProduct(id: string): void {
const ids = contractForm.value.selectedProductIds;
const idx = ids.indexOf(id);
if (idx >= 0) {
ids.splice(idx, 1);
} else {
ids.push(id);
}
}
function submitOrder(): void {
uni.showToast({ title: "提交成功", icon: "none" });
}
</script>
<style scoped lang="scss">
// 引入拆分后的样式文件
@import "../styles/common.scss";
</style>
<template>
<view class="recent-section">
<view class="recent-header">
<view class="recent-title-row">
<uni-icons type="compose" size="16" color="#1a1a1a"></uni-icons>
<text class="recent-title">最近录单</text>
</view>
<view class="recent-more" @click="goAll">
<text class="recent-more-text">全部</text>
<uni-icons type="right" size="12" color="#999999"></uni-icons>
</view>
</view>
<view v-if="recentList.length == 0" class="recent-empty">
<text class="recent-empty-text">暂无最近录单</text>
</view>
<view v-else class="recent-list">
<view
v-for="(item, idx) in recentList"
:key="idx"
:class="['recent-item', { 'recent-item--last': idx == recentList.length - 1 }]"
@click="onRecentClick(item)"
>
<view class="recent-date">
<text class="date-day">{{ item.day }}</text>
<text class="date-month">{{ item.month }}</text>
</view>
<view class="recent-info">
<text class="info-name">{{ item.name }}</text>
<text class="info-desc">{{ item.desc }}</text>
</view>
<view class="recent-amount">
<text class="amount-text">{{ item.amount }}</text>
<text class="status-text" :class="item.statusClass">{{ item.status }}</text>
</view>
</view>
</view>
</view>
</template>
<script setup lang="uts">
import { ref, computed } from "vue";
type RecentItem = {
day: string;
month: string;
name: string;
desc: string;
amount: string;
status: string;
statusClass: string;
};
const recentList = ref<RecentItem[]>([
{
day: "10",
month: "07/10",
name: "刘先生",
desc: "发动机延保3年 · 销售单",
amount: "¥3500",
status: "已完成",
statusClass: "status-done"
},
{
day: "15",
month: "07/15",
name: "黄先生",
desc: "4K行车记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
{
day: "16",
month: "07/15",
name: "先生",
desc: "4K记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
{
day: "17",
month: "07/17",
name: "张先生",
desc: "4K行车记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
{
day: "18",
month: "07/18",
name: "李先生",
desc: "4K行车记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
{
day: "19",
month: "07/19",
name: "王先生",
desc: "4K行车记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
{
day: "20",
month: "07/20",
name: "张先生",
desc: "4K行车记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
{
day: "21",
month: "07/21",
name: "张先生",
desc: "4K行车记录仪 · 销售单",
amount: "¥999",
status: "已完成",
statusClass: "status-done"
},
]);
function goAll(): void {
uni.showToast({ title: "查看全部", icon: "none" });
}
function onRecentClick(item: RecentItem): void {
uni.showToast({ title: `${item.name} ${item.desc}`, icon: "none" });
}
</script>
<style scoped lang="scss">
// 引入拆分后的样式文件
@import "../styles/common.scss";
</style>
<template>
<view class="order-content">
<view class="order-box">
<view class="form-card">
<view class="form-item">
<text class="form-label">客户</text>
<view class="form-select" >
<text class="form-select-text" :class="{ placeholder: salesForm.customer == '' }">
{{ salesForm.customer == "" ? "请选择" : salesForm.customer }}
</text>
<uni-icons type="down" size="12" color="#999999"></uni-icons>
</view>
</view>
<view class="form-item">
<text class="form-label">选择商品</text>
<scroll-view class="sales-product-list" >
<view
v-for="product in productList"
:key="product.id"
:class="['sales-product-card', { active: isSalesProductSelected(product.id) }]"
@click="toggleSalesProduct(product.id)"
>
<view class="sales-product-icon">
<text class="sales-product-icon-text">{{ product.icon }}</text>
</view>
<view class="sales-product-info">
<text class="sales-product-name">{{ product.name }}</text>
<text class="sales-product-desc">{{ product.desc }}</text>
</view>
<view class="sales-product-price-wrap">
<text class="sales-product-price">¥{{ product.price }}</text>
</view>
<view v-if="isSalesProductSelected(product.id)" class="sales-product-check">
<text class="sales-product-check-text">✓</text>
</view>
</view>
</scroll-view>
</view>
<view class="form-item form-item--last">
<view class="sales-total">
<text class="sales-total-label">合计:{{ salesTotalCount }}件</text>
<text class="sales-total-price">¥{{ salesTotalPrice }}</text>
</view>
</view>
</view>
</view>
<view class="submit-wrap">
<view class="submit-btn" @click="submitOrder">
<view class="check-icon-box">
<text class="check-icon-text">✓</text>
</view>
<text class="submit-btn-text">提交</text>
</view>
</view>
</view>
</template>
<script setup lang="uts">
import { ref, computed } from "vue";
type SalesForm = {
customer: string;
selectedProductIds: string[];
remark: string;
};
type ProductItem = {
id: string;
name: string;
desc: string;
icon: string;
price: number;
};
const salesForm = ref<SalesForm>({
customer: "",
selectedProductIds: [],
remark: ""
});
const productList = ref<ProductItem[]>([
{ id: "1", name: "发动机延保3年", desc: "原厂保修到期后再延3年", icon: "🔧", price: 3500 },
{ id: "2", name: "变速箱延保3年", desc: "CVT/DCT/AT全系适用", icon: "⚙️", price: 2800 },
{ id: "3", name: "3M全车贴膜", desc: "陶瓷膜,UV阻隔99%", icon: "🛡️", price: 4500 },
{ id: "4", name: "4K行车记录仪", desc: "前后双录,ADAS辅助", icon: "📹", price: 999 },
{ id: "5", name: "精致洗车", desc: "手工精洗+内饰清洁", icon: "⭐", price: 98 },
{ id: "6", name: "全车打蜡", desc: "进口棕榈蜡深度养护", icon: "💎", price: 450 }
]);
const salesTotalCount = computed((): number => {
return salesForm.value.selectedProductIds.length;
});
const salesTotalPrice = computed((): number => {
let total = 0;
const ids = salesForm.value.selectedProductIds;
const list = productList.value;
for (let i = 0; i < ids.length; i++) {
const id = ids[i];
for (let j = 0; j < list.length; j++) {
if (list[j].id == id) {
total += list[j].price;
break;
}
}
}
return total;
});
function isSalesProductSelected(id: string): boolean {
return salesForm.value.selectedProductIds.indexOf(id) >= 0;
}
function toggleSalesProduct(id: string): void {
const ids = salesForm.value.selectedProductIds;
const idx = ids.indexOf(id);
if (idx >= 0) {
ids.splice(idx, 1);
} else {
ids.push(id);
}
}
function submitOrder(): void {
uni.showToast({ title: "提交成功", icon: "none" });
}
</script>
<style scoped lang="scss">
// 引入拆分后的样式文件
@import "../styles/common.scss";
</style>
<template>
<view class="order-content">
<view class="order-box">
<view class="form-card">
<view class="form-item">
<text class="form-label">客户</text>
<view class="form-select">
<text class="form-select-text" :class="{ placeholder: form.customer == '' }">
{{ form.customer == "" ? "请选择" : form.customer }}
</text>
<uni-icons type="down" size="12" color="#999999"></uni-icons>
</view>
</view>
<view class="form-item">
<text class="form-label">施工项目</text>
<view class="form-select">
<text class="form-select-text" :class="{ placeholder: form.project == '' }">
{{ form.project == "" ? "请选择" : form.project }}
</text>
<uni-icons type="down" size="12" color="#999999"></uni-icons>
</view>
</view>
<view class="form-item">
<text class="form-label">预约时间</text>
<view class="form-select" @click="openTimePicker">
<text class="form-select-text" :class="{ placeholder: form.appointmentTime == '' }">
{{ form.appointmentTime == "" ? "yyyy-mm日 --:--" : form.appointmentTime }}
</text>
<uni-icons type="calendar" size="14" color="#999999"></uni-icons>
</view>
</view>
<view class="form-item">
<text class="form-label">施工技师</text>
<input
v-model="form.technician"
class="form-input"
type="text"
placeholder="指派技师"
placeholder-class="form-placeholder"
/>
</view>
<view class="form-item form-item--last">
<text class="form-label">备注</text>
<textarea
v-model="form.remark"
class="form-textarea"
placeholder="施工备注..."
placeholder-class="form-placeholder"
/>
</view>
</view>
</view>
<view class="submit-wrap">
<view class="submit-btn" @click="submitOrder">
<view class="check-icon-box">
<text class="check-icon-text">✓</text>
</view>
<text class="submit-btn-text">提交</text>
</view>
</view>
<!-- 预约时间选择器 -->
<un-datetime-picker
:show="showTimePicker"
v-model="appointmentTimeValue"
mode="datetime"
title="选择预约时间"
valueFormat="YYYY-MM-DD HH:mm"
@confirm="onTimeConfirm"
@cancel="showTimePicker = false"
@close="showTimePicker = false"
/>
</view>
</template>
<script setup lang="uts">
import { ref, computed } from "vue";
type OrderForm = {
customer: string;
project: string;
appointmentTime: string;
technician: string;
remark: string;
};
const form = ref<OrderForm>({
customer: "",
project: "",
appointmentTime: "",
technician: "",
remark: ""
});
const showTimePicker = ref<boolean>(false);
const appointmentTimeValue = ref<string | number>("");
function openTimePicker(): void {
showTimePicker.value = true;
}
function onTimeConfirm(): void {
if (appointmentTimeValue.value != null && `${appointmentTimeValue.value}` != "") {
form.value.appointmentTime = `${appointmentTimeValue.value}`;
}
showTimePicker.value = false;
}
function submitOrder(): void {
uni.showToast({ title: "提交成功", icon: "none" });
}
</script>
<style scoped lang="scss">
// 引入拆分后的样式文件
@import "../styles/common.scss";
</style>
/* 施工单录入页样式:遵循 UniAppX 规范,px 单位、无 calc/伪元素、font-weight 仅 400|700 */ .order-entry-container {
.page-container { display: flex;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #096; flex-direction: var(--order-entry-direction);
display: flex;
flex-direction: var(--order-page-direction);
padding: var(--order-page-padding);
box-sizing: border-box;
}
/* 右侧内容区 */
.order-content {
display:flex;
flex-direction: column;
background-color: #ef4444;
flex: 1;
}
/* 顶部 Tab */ .tab-box {
.tab-bar { width: var(--order-tab-width);
height: var(--order-tab-height);
background-color: #fff;
display: flex; display: flex;
flex-direction: var(--order-tab-direction); flex-direction: var(--order-tab-direction);
align-items: var(--order-tab-align);
justify-content: var(--order-tab-justify);
width: var(--order-tab-width);
background-color: #ffffff;
padding: var(--order-tab-padding);
margin-right: var(--order-tab-margin-right, 0);
}
.tab-item { .tab-item {
width: var(--order-tab-item-width, auto); flex: 1;
height: var(--order-tab-item-height, auto);
display: flex; display: flex;
flex-direction: var(--order-tab-direction); flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative;
padding: var(--order-tab-item-padding);
}
.tab-item .tab-icon { .tab-text {
margin: var(--order-tab-icon-margin); color: #333;
} }
.tab-item .tab-text { .active {
font-size: 14px; color: #2c66f7;
font-weight: 400; font-weight: bold;
color: #666666; }
margin: var(--order-tab-text-margin); }
} }
.tab-item.active .tab-text { .form-box {
color: #1a1a1a; width: var(--order-form-width);
font-weight: 700; box-sizing: border-box;
padding: 16px;
flex: 1;
min-height: 0;
}
} }
.tab-item .tab-active-line { .order-box {
position: absolute; width: 100%;
bottom: var(--order-tab-line-bottom); border-radius: 8px;
left: var(--order-tab-line-left); background-color: #fff;
top: var(--order-tab-line-top);
margin: var(--order-tab-line-margin);
width: var(--order-tab-line-width);
height: var(--order-tab-line-height);
background-color: #2c66f7;
border-radius: 2px;
display: var(--order-tab-line-display, block);
} }
.form-card{
/* 表单卡片 */ width: 100%;
.form-card {
width: var(--order-form-width);
flex: var(--order-form-flex);
background-color: #ffffff;
padding: 16px;
box-sizing: border-box; box-sizing: border-box;
margin: var(--order-form-margin); padding: 16px 0;
display: var(--order-form-display, flex); display: flex;
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: var(--order-form-flex-direction, column); flex-direction: var(--order-entry-direction);
} }
.form-item { .form-item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: var(--order-form-item-width, 100%); width: var(--order-form-item-width);
margin: var(--order-form-item-margin); margin-bottom: 16px;
padding: 0 16px; padding: 0 16px;
box-sizing: border-box;
flex-shrink: 0;
} }
.form-item--last { .form-item--last {
...@@ -160,6 +127,7 @@ ...@@ -160,6 +127,7 @@
font-size: 14px; font-size: 14px;
} }
/* 商品/服务列表 */ /* 商品/服务列表 */
.product-list { .product-list {
width: 100%; width: 100%;
...@@ -341,16 +309,17 @@ ...@@ -341,16 +309,17 @@
color: #ef4444; color: #ef4444;
} }
/* 提交按钮 */ /* 提交按钮 */
.submit-wrap { .submit-wrap {
width: 100%; width: 100%;
padding:16px; margin-top: 16px;
} }
.submit-btn { .submit-btn {
width: 100%; width: 100%;
height: 48px; height: 48px;
background-color: #667eea; background-color: #2c66f7;
border-radius: 24px; border-radius: 24px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -382,15 +351,15 @@ ...@@ -382,15 +351,15 @@
color: #ffffff; color: #ffffff;
} }
/* 最近录单 */
/**最近录单*/
.recent-section { .recent-section {
width: var(--order-recent-width); width: 100%;
flex: var(--order-recent-flex);
background-color: #ffffff; background-color: #ffffff;
border-radius: 12px 12px 0 0; border-radius: 12px;
padding: 16px; padding: 16px;
box-sizing: border-box; box-sizing: border-box;
margin: var(--order-recent-margin); margin-top: 16px;
} }
.recent-header { .recent-header {
......
// orderEntry 响应式样式配置 - 横屏时 Tab 在左、表单在右 // orderEntry 响应式样式配置 - 横屏时 Tab 在左、表单在右
export default { export default {
common: { common: {
// 页面主容器 '--order-tab-width': '100%',
'--order-page-direction': 'column', '--order-form-width': '100%',
'--order-page-padding': '12px 0 0', '--order-tab-height': '60px',
'--order-page-overflow': 'auto',
// Tab 栏
'--order-tab-width': 'auto',
'--order-tab-flex': 'none',
'--order-tab-direction': 'row', '--order-tab-direction': 'row',
'--order-tab-align': 'center', '--order-form-item-width': '100%',
'--order-tab-justify': 'space-around',
'--order-tab-padding': '12px 0',
'--order-tab-item-padding': '4px 12px',
'--order-tab-icon-margin': '0 6px 0 0',
'--order-tab-text-margin': '0',
'--order-tab-line-left': '50%',
'--order-tab-line-bottom': '-8px',
'--order-tab-line-top': 'auto',
'--order-tab-line-width': '20px',
'--order-tab-line-height': '3px',
'--order-tab-line-margin': '0 0 0 -10px',
'--order-tab-border-radius':'12px'
// 右侧内容区
'--order-content-width': 'auto',
'--order-content-margin': '0',
'--order-content-flex': '1',
'--order-content-overflow': 'visible',
// 表单卡片
'--order-form-flex': 'none',
'--order-form-width': 'auto',
'--order-form-margin': '0 0 12px',
'--order-form-item-margin': '0 0 16px 0'
// 提交按钮
'--order-submit-margin': '20px 0 0 0',
// 最近录单
'--order-recent-flex': 'none',
'--order-recent-width': 'auto',
'--order-recent-margin': '0',
}, },
portrait: { portrait: {
// 竖屏:Tab 在顶部,表单在下,保持现有布局 '--order-entry-direction': 'column',
'--order-page-direction': 'column', '--order-form-width': '100%',
'--order-page-padding': '12px 0 0',
'--order-page-overflow': 'auto',
'--order-tab-width': 'auto',
'--order-tab-flex': 'none',
'--order-tab-direction': 'row',
'--order-tab-align': 'center',
'--order-tab-justify': 'space-around',
'--order-tab-padding': '12px 0',
'--order-tab-item-padding': '4px 12px',
'--order-tab-icon-margin': '0 6px 0 0',
'--order-tab-text-margin': '0',
'--order-tab-line-left': '50%',
'--order-tab-line-bottom': '-8px',
'--order-tab-line-top': 'auto',
'--order-tab-line-width': '20px',
'--order-tab-line-height': '3px',
'--order-tab-line-margin': '0 0 0 -10px',
'--order-content-width': 'auto',
'--order-content-margin': '0',
'--order-content-flex': 'none',
'--order-content-overflow': 'visible',
'--order-form-flex': 'none',
'--order-form-width': 'auto',
'--order-form-margin': '0 16px 12px',
'--order-submit-margin': '20px 0 0',
'--order-recent-flex': 'none',
'--order-recent-width': 'auto',
'--order-recent-margin': '0',
}, },
landscape: { landscape: {
// 横屏:Tab 在左,表单在右 '--order-entry-direction': 'row',
'--order-page-direction': 'row', '--order-tab-width': '15%',
'--order-page-padding': '12px 0 12px 0', '--order-form-width': '85%',
'--order-page-overflow': 'hidden', '--order-tab-height': '100%',
'--order-tab-width': '40px',
'--order-tab-flex': 'none',
'--order-tab-direction': 'column', '--order-tab-direction': 'column',
'--order-tab-align': 'flex-start',
'--order-tab-justify': 'flex-start',
'--order-tab-padding': '16px 0',
'--order-tab-margin-right': '16px',
'--order-tab-item-padding': '12px 16px',
'--order-tab-icon-margin': '0 0 6px 0',
'--order-tab-text-margin': '0 0 4px 0',
'--order-tab-line-left': '4px',
'--order-tab-line-bottom': 'auto',
'--order-tab-line-top': '50%',
'--order-tab-line-width': '3px',
'--order-tab-line-height': '20px',
'--order-tab-line-margin': '-10px 0 0 0',
'--order-content-width': '0',
'--order-content-margin': '0 16px 0 16px',
'--order-content-flex': '1',
'--order-content-overflow': 'auto',
'--order-form-flex': 'none',
'--order-form-width': 'auto',
'--order-form-margin': '0 0 12px',
'--order-submit-margin': '24px 0 0',
'--order-recent-flex': '1',
'--order-recent-width': '100%',
'--order-recent-margin': '0',
'--order-tab-item-width': '100%',
'--order-tab-border-radius':'12px 12px 12px 12px',
'--order-tab-line-display':'none',
'--order-form-display': 'flex',
'--order-form-item-width': '50%', '--order-form-item-width': '50%',
'--order-form-flex-direction': 'row',
'--order-form-item-margin': '0 16px 16px',
'--order-form-item-padding': '0 16px'
}, },
resolutions: { resolutions: {
// 大屏平板横屏 (1174x768)
'landscape-1174x768': {
'--order-tab-width': '100px',
'--order-tab-padding': '20px 0',
'--order-tab-item-padding': '14px 20px',
'--order-tab-item-height': '33%',
},
// 小屏 Pad 横屏 (816x393)
'landscape-816x393': {
'--order-tab-width': '120px',
'--order-tab-padding': '10px 0',
'--order-tab-item-padding': '8px 10px',
},
// 大屏平板竖屏 (768x1174)
'portrait-768x1174': { 'portrait-768x1174': {
'--order-tab-padding': '14px 0',
'--order-tab-item-padding': '6px 16px',
}, },
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!