杂务:整理文档并收口 YumiNail 修复
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
|
||||
<a-card v-for="order in filteredOrders" :key="order.id" class="order-card">
|
||||
<div class="order-head">
|
||||
<span>订单号:{{ order.orderNo }}</span>
|
||||
<span class="order-no">订单号:{{ order.orderNo }}</span>
|
||||
<a-button size="small" type="link" @click="copyOrderNo(order.orderNo)">复制</a-button>
|
||||
<span class="status" :class="statusClass(order.status)">{{ order.statusText }}</span>
|
||||
</div>
|
||||
<div v-if="order.shopName" class="order-shop">所属店铺:{{ order.shopName }}</div>
|
||||
@@ -132,6 +133,15 @@ const resetFilters = () => {
|
||||
filters.maxAmount = undefined
|
||||
}
|
||||
|
||||
const copyOrderNo = async (orderNo: string) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(orderNo)
|
||||
message.success('订单号已复制')
|
||||
} catch {
|
||||
message.warning('复制失败,请手动复制订单号')
|
||||
}
|
||||
}
|
||||
|
||||
/** loadOrders is an async page action. Trigger it from the template or lifecycle hook, then await the result. */
|
||||
const loadOrders = async () => {
|
||||
try {
|
||||
@@ -180,30 +190,34 @@ onMounted(loadOrders)
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page { min-height: 100vh; padding-top: 60px; background: #f5f5f5; }
|
||||
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; background: #fff; border-bottom: 1px solid #f0f0f0; }
|
||||
.header h1 { margin: 0; font-size: 18px; }
|
||||
.page { min-height: 100vh; padding-top: 60px; background: linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.92)), var(--theme-background-image), var(--theme-page-bg); background-size: cover, cover, auto; background-position: center top; color: var(--text-primary); }
|
||||
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 9px 15px; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--theme-border); backdrop-filter: blur(14px); }
|
||||
.header h1 { margin: 0; font-size: 18px; color: var(--text-primary); }
|
||||
.placeholder { width: 40px; height: 40px; }
|
||||
.content { padding: 15px; }
|
||||
.filter-panel { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px; border-radius: 8px; background: #fff; }
|
||||
.filter-panel { display: grid; gap: 10px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: var(--theme-card-bg); border: 1px solid var(--theme-border); box-shadow: 0 14px 34px rgba(122, 67, 88, 0.08); }
|
||||
.filter-row { display: flex; gap: 8px; align-items: center; }
|
||||
.filter-select, .filter-date, .filter-number { flex: 1; min-width: 0; }
|
||||
.filter-summary { color: #888; font-size: 12px; text-align: right; }
|
||||
.order-card { margin-bottom: 12px; border-radius: 12px; }
|
||||
.filter-summary { color: var(--text-secondary); font-size: 12px; text-align: right; }
|
||||
.order-card { margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--theme-border); background: var(--theme-card-bg); box-shadow: 0 14px 34px rgba(122, 67, 88, 0.08); }
|
||||
.order-card :deep(.ant-card-body) { padding: 16px; }
|
||||
.order-head, .footer { display: flex; align-items: center; justify-content: space-between; }
|
||||
.order-head { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
|
||||
.order-shop { margin: -4px 0 12px; color: #7a5262; font-size: 13px; }
|
||||
.order-head { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--theme-border); }
|
||||
.order-shop { margin: -4px 0 12px; color: var(--text-secondary); font-size: 13px; }
|
||||
.status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
|
||||
.pending { background: #fff7e6; color: #fa8c16; }
|
||||
.completed { background: #f6ffed; color: #52c41a; }
|
||||
.cancelled { background: #fff1f0; color: #ff4d4f; }
|
||||
.pending { background: var(--theme-primary-soft); color: var(--theme-primary); }
|
||||
.completed { background: var(--theme-primary-soft); color: var(--theme-primary); }
|
||||
.cancelled { background: var(--theme-primary-soft); color: var(--theme-accent); }
|
||||
.item { display: flex; gap: 12px; margin-bottom: 12px; }
|
||||
.thumb { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #eef3ff; }
|
||||
.thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--theme-primary-soft); color: var(--theme-primary); }
|
||||
.thumb img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.main { flex: 1; }
|
||||
.title { font-weight: 600; }
|
||||
.line { margin-top: 4px; color: #666; font-size: 13px; }
|
||||
.appointment { color: #1890ff; }
|
||||
.title { font-weight: 600; color: var(--text-primary); }
|
||||
.line { margin-top: 4px; color: var(--text-secondary); font-size: 13px; }
|
||||
.appointment { color: var(--theme-primary); }
|
||||
|
||||
:deep(.ant-btn-primary) { background: var(--theme-primary); border-color: var(--theme-primary); }
|
||||
:deep(.ant-btn-link) { color: var(--theme-primary); }
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.content {
|
||||
|
||||
Reference in New Issue
Block a user