用户管理.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>叁强鲜配 - 运营端原型图(详细页面)</title>
  7. <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  8. <style>
  9. * { margin: 0; padding: 0; box-sizing: border-box; }
  10. body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #303133; }
  11. .topbar { height: 60px; background: linear-gradient(135deg, #1989fa 0%, #07c160 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: white; }
  12. .topbar-logo h1 { font-size: 22px; font-weight: 600; }
  13. .topbar-logo span { font-size: 13px; opacity: 0.85; }
  14. .topbar-user { display: flex; align-items: center; gap: 16px; }
  15. .main-container { display: flex; min-height: calc(100vh - 60px); }
  16. .sidebar { width: 220px; background: #fff; border-right: 1px solid #e4e7ed; padding: 16px 0; }
  17. .menu-item { padding: 14px 24px; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #606266; font-size: 14px; }
  18. .menu-item:hover { background: #f5f7fa; color: #1989fa; }
  19. .menu-item.active { background: #ecf5ff; color: #1989fa; border-right: 3px solid #1989fa; }
  20. .content { flex: 1; padding: 24px; }
  21. .breadcrumb { font-size: 13px; color: #909399; margin-bottom: 8px; }
  22. .card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  23. .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
  24. .card-title { font-size: 16px; font-weight: 600; }
  25. .status-tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; }
  26. .status-tag.primary { background: #ecf5ff; color: #1989fa; }
  27. .status-tag.success { background: #f0f9eb; color: #07c160; }
  28. .status-tag.warning { background: #fdf6ec; color: #ff976a; }
  29. .status-tag.danger { background: #fef0f0; color: #ee0a24; }
  30. .status-tag.info { background: #f4f4f5; color: #909399; }
  31. .form-section { margin-bottom: 24px; }
  32. .form-section-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #1989fa; }
  33. .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  34. .page-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
  35. .nav-tabs { display: flex; gap: 4px; background: #f5f7fa; padding: 4px; border-radius: 8px; margin-bottom: 20px; }
  36. .nav-tab { padding: 10px 20px; cursor: pointer; border-radius: 6px; font-size: 14px; color: #606266; }
  37. .nav-tab.active { background: #fff; color: #1989fa; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  38. .detail-header { display: flex; gap: 20px; margin-bottom: 24px; }
  39. .detail-card { flex: 1; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
  40. .detail-card h3 { font-size: 15px; color: #909399; margin-bottom: 8px; }
  41. .detail-card p { font-size: 20px; font-weight: 600; color: #303133; }
  42. .timeline { padding: 20px 0; }
  43. .timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
  44. .timeline-dot { width: 12px; height: 12px; background: #1989fa; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
  45. .timeline-line { position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: #e4e7ed; }
  46. .timeline-content h4 { font-size: 14px; color: #303133; margin-bottom: 4px; }
  47. .timeline-content p { font-size: 13px; color: #909399; }
  48. </style>
  49. </head>
  50. <body>
  51. <!-- 顶部导航 -->
  52. <div class="topbar">
  53. <div class="topbar-logo">
  54. <h1>叁强鲜配</h1>
  55. <span>运营管理后台</span>
  56. </div>
  57. <div class="topbar-user">
  58. <el-avatar :size="32" style="background:#fff;color:#1989fa;">管</el-avatar>
  59. <span>管理员</span>
  60. </div>
  61. </div>
  62. <div class="main-container">
  63. <!-- 左侧菜单 -->
  64. <div class="sidebar">
  65. <div class="menu-item"><el-icon><DataAnalysis /></el-icon><span>首页</span></div>
  66. <div class="menu-item active"><el-icon><User /></el-icon><span>用户管理</span></div>
  67. <div class="menu-item"><el-icon><Location /></el-icon><span>区域管理</span></div>
  68. <div class="menu-item"><el-icon><Goods /></el-icon><span>商品管理</span></div>
  69. <div class="menu-item"><el-icon><Search /></el-icon><span>询价管理</span></div>
  70. <div class="menu-item"><el-icon><Ticket /></el-icon><span>报价管理</span></div>
  71. <div class="menu-item"><el-icon><PriceTag /></el-icon><span>价格管理</span></div>
  72. <div class="menu-item"><el-icon><ShoppingCart /></el-icon><span>订单管理</span></div>
  73. <div class="menu-item"><el-icon><Van /></el-icon><span>配送管理</span></div>
  74. <div class="menu-item"><el-icon><Wallet /></el-icon><span>结算管理</span></div>
  75. </div>
  76. <!-- 内容区 -->
  77. <div class="content">
  78. <div class="breadcrumb">用户管理 / 账号列表</div>
  79. <!-- 搜索筛选 -->
  80. <div class="card">
  81. <div class="form-section-title">筛选条件</div>
  82. <div class="form-row">
  83. <el-input placeholder="输入用户名/姓名搜索" />
  84. <el-select placeholder="选择角色" style="width:100%">
  85. <el-option label="全部角色" value="" />
  86. <el-option label="运营人员" value="admin" />
  87. <el-option label="供应商" value="supplier" />
  88. <el-option label="客户" value="client" />
  89. <el-option label="配送员" value="deliver" />
  90. </el-select>
  91. <el-select placeholder="选择区域" style="width:100%">
  92. <el-option label="全部区域" value="" />
  93. <el-option label="城东区域" value="CD" />
  94. <el-option label="城西区域" value="CX" />
  95. <el-option label="城南区域" value="CN" />
  96. </el-select>
  97. </div>
  98. <div style="margin-top:16px;text-align:right;">
  99. <el-button>重置</el-button>
  100. <el-button type="primary">搜索</el-button>
  101. <el-button type="success">+ 新增账号</el-button>
  102. </div>
  103. </div>
  104. <!-- 账号列表 -->
  105. <div class="card">
  106. <div class="card-header">
  107. <span class="card-title">账号列表</span>
  108. <span style="color:#909399;font-size:13px;">共 128 条记录</span>
  109. </div>
  110. <el-table :data="userList" style="width:100%">
  111. <el-table-column prop="username" label="用户名" width="120" />
  112. <el-table-column prop="realName" label="姓名" width="100" />
  113. <el-table-column prop="phone" label="手机号" width="130" />
  114. <el-table-column prop="role" label="角色" width="100">
  115. <template #default="{row}">
  116. <span :class="'status-tag '+row.roleClass">{{row.roleText}}</span>
  117. </template>
  118. </el-table-column>
  119. <el-table-column prop="region" label="所属区域" width="100" />
  120. <el-table-column prop="isActive" label="状态" width="80">
  121. <template #default="{row}">
  122. <span :class="'status-tag '+(row.isActive?'success':'info')">{{row.isActive?'正常':'禁用'}}</span>
  123. </template>
  124. </el-table-column>
  125. <el-table-column prop="createTime" label="创建时间" width="160" />
  126. <el-table-column label="操作" width="200">
  127. <template #default>
  128. <el-button type="primary" link>查看</el-button>
  129. <el-button type="primary" link>编辑</el-button>
  130. <el-button type="warning" link>重置密码</el-button>
  131. <el-button type="danger" link>删除</el-button>
  132. </template>
  133. </el-table-column>
  134. </el-table>
  135. <div class="page-nav">
  136. <el-pagination background layout="prev, pager, next" :total="100" />
  137. </div>
  138. </div>
  139. <!-- 新增账号弹窗 -->
  140. <div class="card" style="margin-top:24px;">
  141. <div class="form-section-title">新增账号</div>
  142. <div class="form-row">
  143. <el-input placeholder="用户名(必填)">
  144. <template #prepend>用户名</template>
  145. </el-input>
  146. <el-input placeholder="姓名">
  147. <template #prepend>姓名</template>
  148. </el-input>
  149. <el-input placeholder="手机号">
  150. <template #prepend>手机号</template>
  151. </el-input>
  152. </div>
  153. <div class="form-row" style="margin-top:16px;">
  154. <el-select placeholder="选择角色" style="width:100%">
  155. <el-option label="供应商" value="supplier" />
  156. <el-option label="客户" value="client" />
  157. <el-option label="配送员" value="deliver" />
  158. </el-select>
  159. <el-select placeholder="选择区域" style="width:100%">
  160. <el-option label="城东区域" value="CD" />
  161. <el-option label="城西区域" value="CX" />
  162. <el-option label="城南区域" value="CN" />
  163. </el-select>
  164. <div></div>
  165. </div>
  166. <div style="margin-top:16px;text-align:center;">
  167. <el-button>取消</el-button>
  168. <el-button type="primary">保存</el-button>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  174. <script src="https://unpkg.com/element-plus"></script>
  175. <script src="https://unpkg.com/@element-plus/icons-vue"></script>
  176. <script>
  177. const { createApp, ref } = Vue;
  178. const app = createApp({
  179. setup() {
  180. const userList = ref([
  181. { username: 'supplier001', realName: '张伟', phone: '13800138001', role: 'supplier', roleClass: 'warning', roleText: '供应商', region: '城东', isActive: true, createTime: '2026-01-15 10:23:45' },
  182. { username: 'client001', realName: '李娜', phone: '13800138002', role: 'client', roleClass: 'success', roleText: '客户', region: '城东', isActive: true, createTime: '2026-01-16 14:30:22' },
  183. { username: 'deliver001', realName: '王强', phone: '13800138003', role: 'deliver', roleClass: 'danger', roleText: '配送员', region: '城东', isActive: true, createTime: '2026-01-18 09:15:30' },
  184. { username: 'supplier002', realName: '赵敏', phone: '13800138004', role: 'supplier', roleClass: 'warning', roleText: '供应商', region: '城西', isActive: true, createTime: '2026-02-01 11:20:18' },
  185. { username: 'client002', realName: '刘洋', phone: '13800138005', role: 'client', roleClass: 'success', roleText: '客户', region: '城西', isActive: false, createTime: '2026-02-05 16:45:30' },
  186. ]);
  187. return { userList };
  188. }
  189. });
  190. app.use(ElementPlus);
  191. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  192. app.component(key, component);
  193. }
  194. app.mount('#app');
  195. </script>
  196. </body>
  197. </html>