@@ -184,4 +184,20 @@ onMounted(() => {
color: #606266;
line-height: 1.8;
}
+
+@media (max-width: 768px) {
+ .welcome-card {
+ padding: 24px;
+ }
+
+ .stat-icon {
+ width: 48px;
+ height: 48px;
+ margin-right: 10px;
+ }
+
+ .stat-value {
+ font-size: 20px;
+ }
+}
diff --git a/frontend/src/views/Dealer.vue b/frontend/src/views/Dealer.vue
index db80bdc..bd8cb7c 100644
--- a/frontend/src/views/Dealer.vue
+++ b/frontend/src/views/Dealer.vue
@@ -12,7 +12,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
@@ -57,13 +57,36 @@
+
+
+
+
+
+ {{ row.name }}
+
+ {{ row.status === 1 ? '启用' : '禁用' }}
+
+
+
账号{{ row.code }}
+
联系人{{ row.contactPerson || '-' }}
+
联系电话{{ row.contactPhone || '-' }}
+
邮箱{{ row.email || '-' }}
+
创建时间{{ row.createdAt }}
+
+ 编辑
+ 重置密码
+ 删除
+
+
+
+
@@ -110,7 +133,7 @@
@@ -149,6 +172,9 @@ import { getDealerList, createDealer, updateDealer, deleteDealer } from '@/api/d
import { resetPassword } from '@/api/auth'
import { hashPassword } from '@/utils/crypto'
import type { Dealer } from '@/types'
+import { useResponsive } from '@/composables/useResponsive'
+
+const { isMobile } = useResponsive()
const loading = ref(false)
const tableData = ref([])
@@ -383,4 +409,59 @@ onMounted(() => {
.query-form {
margin-bottom: 20px;
}
+
+/* ===== 移动端卡片视图 ===== */
+.mobile-card-list {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.mobile-card {
+ background: #fff;
+ border: 1px solid #ebeef5;
+ border-radius: 8px;
+ padding: 12px;
+}
+
+.card-top {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 8px;
+}
+
+.card-title {
+ font-size: 15px;
+ font-weight: 600;
+ color: #303133;
+}
+
+.card-row {
+ display: flex;
+ font-size: 13px;
+ color: #606266;
+ line-height: 1.8;
+}
+
+.card-row .label {
+ width: 76px;
+ color: #909399;
+ flex-shrink: 0;
+}
+
+.card-actions {
+ display: flex;
+ gap: 8px;
+ margin-top: 8px;
+ padding-top: 8px;
+ border-top: 1px solid #f0f0f0;
+}
+
+@media (max-width: 768px) {
+ .card-header {
+ flex-wrap: wrap;
+ gap: 10px;
+ }
+}
diff --git a/frontend/src/views/Layout.vue b/frontend/src/views/Layout.vue
index 474c2ac..57836ba 100644
--- a/frontend/src/views/Layout.vue
+++ b/frontend/src/views/Layout.vue
@@ -1,7 +1,7 @@
-
- 泊云智销通
+
+ {{ APP_TITLE }}