首页细节调整
This commit is contained in:
@@ -1,34 +1,31 @@
|
||||
<template>
|
||||
<template>
|
||||
<view class="admin-page">
|
||||
<view class="filter-card">
|
||||
<view class="filter-row">
|
||||
<view class="filter-item">
|
||||
<text class="label">鎼滅储锛?/text>
|
||||
<input class="filter-input" placeholder="璇疯緭鍏ュ鍚嶃€乁ID" />
|
||||
<text class="label">代理商查询:</text>
|
||||
<input class="filter-input" placeholder="请输入姓名、手机号或UID" />
|
||||
</view>
|
||||
<view class="filter-btns">
|
||||
<button class="btn primary" @click="onSearch">鏌ヨ</button>
|
||||
<button class="btn primary" @click="onSearch">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="content-card">
|
||||
<view class="action-bar">
|
||||
<button class="btn primary small" @click="onAdd">娣诲姞浠g悊鍟?/button>
|
||||
<button class="btn primary small" @click="onAdd">添加代理商</button>
|
||||
</view>
|
||||
|
||||
<view class="table-container">
|
||||
<view class="table-header">
|
||||
<view class="col col-uid"><text>鐢ㄦ埛UID</text></view>
|
||||
<view class="col col-avatar"><text>澶村儚</text></view>
|
||||
<view class="col col-name"><text>鍚嶇О</text></view>
|
||||
<view class="col col-ratio"><text>鍒嗛攢姣斾緥</text></view>
|
||||
<view class="col col-count"><text>鍛樺伐鏁伴噺</text></view>
|
||||
<view class="col col-time"><text>鎴鏃堕棿</text></view>
|
||||
<view class="col col-status"><text>鐘舵€?/text></view>
|
||||
<view class="col col-ops"><text>鎿嶄綔</text></view>
|
||||
<view class="col col-uid"><text>用户UID</text></view>
|
||||
<view class="col col-avatar"><text>头像</text></view>
|
||||
<view class="col col-name"><text>名称</text></view>
|
||||
<view class="col col-ratio"><text>分佣比例</text></view>
|
||||
<view class="col col-count"><text>员工数量</text></view>
|
||||
<view class="col col-time"><text>过期时间</text></view>
|
||||
<view class="col col-status"><text>状态</text></view>
|
||||
<view class="col col-ops"><text>操作</text></view>
|
||||
</view>
|
||||
|
||||
<view class="table-body">
|
||||
<view v-for="item in agentList" :key="item.uid" class="table-row">
|
||||
<view class="col col-uid"><text>{{ item.uid }}</text></view>
|
||||
@@ -43,13 +40,13 @@
|
||||
<switch :checked="item.status" color="#1890ff" scale="0.8" />
|
||||
</view>
|
||||
<view class="col col-ops">
|
||||
<text class="op-link">娣诲姞鍛樺伐</text>
|
||||
<text class="op-link">编辑</text>
|
||||
<text class="op-divider">|</text>
|
||||
<text class="op-link">鏌ョ湅鍛樺伐</text>
|
||||
<text class="op-link">查看</text>
|
||||
<text class="op-divider">|</text>
|
||||
<text class="op-link">缂栬緫</text>
|
||||
<text class="op-link">员工</text>
|
||||
<text class="op-divider">|</text>
|
||||
<text class="op-link">鍒犻櫎</text>
|
||||
<text class="op-link">删除</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -57,28 +54,16 @@
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="uts">
|
||||
import { ref } from 'vue'
|
||||
|
||||
const agentList = ref([
|
||||
{ uid: '60569', name: 'cs2020', ratio: 50, staffCount: 1, endTime: '1970-01-01', status: true },
|
||||
{ uid: '60571', name: 'www', ratio: 19, staffCount: 1, endTime: '1970-01-01', status: true },
|
||||
{ uid: '60665', name: 'geyun', ratio: 15, staffCount: 1, endTime: '1970-01-01', status: true },
|
||||
{ uid: '60678', name: '鏍间簯', ratio: 0, staffCount: 0, endTime: '1970-01-01', status: true }
|
||||
{ uid: '60569', name: 'cs2020', ratio: 50, staffCount: 1, endTime: '2026-01-01', status: true },
|
||||
])
|
||||
|
||||
function onSearch() {
|
||||
uni.showToast({ title: '鏌ヨ涓?..', icon: 'none' })
|
||||
}
|
||||
|
||||
function onAdd() {
|
||||
uni.showToast({ title: '娣诲姞浠g悊鍟?, icon: 'none' })
|
||||
}
|
||||
function onSearch() { uni.showToast({ title: '查询中...', icon: 'none' }) }
|
||||
function onAdd() { uni.showToast({ title: '添加中...', icon: 'none' }) }
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.admin-page { /* padding removed */ }
|
||||
.admin-page { padding: 0; }
|
||||
.filter-card { background: #fff; padding: 24px; margin-bottom: 16px; border-radius: 4px; }
|
||||
.filter-row { display: flex; flex-direction: row; align-items: center; gap: 24px; }
|
||||
.label { font-size: 14px; color: #333; }
|
||||
@@ -91,17 +76,8 @@ function onAdd() {
|
||||
.table-header { display: flex; flex-direction: row; background: #f8faff; border-bottom: 1px solid #f0f0f0; padding: 12px 0; }
|
||||
.table-row { display: flex; flex-direction: row; border-bottom: 1px solid #f0f0f0; padding: 12px 0; align-items: center; &:hover { background: #fafafa; } }
|
||||
.col { padding: 0 8px; font-size: 14px; color: #333; display: flex; align-items: center; }
|
||||
.col-uid { width: 80px; }
|
||||
.col-avatar { width: 80px; justify-content: center; }
|
||||
.col-name { width: 120px; }
|
||||
.col-ratio { width: 100px; justify-content: center; }
|
||||
.col-count { width: 100px; justify-content: center; }
|
||||
.col-time { width: 120px; justify-content: center; }
|
||||
.col-status { width: 80px; justify-content: center; }
|
||||
.col-ops { flex: 1; justify-content: flex-end; }
|
||||
.col-uid { width: 80px; } .col-avatar { width: 80px; justify-content: center; } .col-name { width: 120px; } .col-ratio { width: 100px; justify-content: center; } .col-count { width: 100px; justify-content: center; } .col-time { width: 120px; justify-content: center; } .col-status { width: 80px; justify-content: center; } .col-ops { flex: 1; justify-content: flex-end; }
|
||||
.avatar-img { width: 32px; height: 32px; border-radius: 2px; }
|
||||
.op-link { color: #1890ff; cursor: pointer; }
|
||||
.op-divider { color: #e8e8e8; margin: 0 8px; }
|
||||
</style>
|
||||
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user