222 lines
3.6 KiB
Vue
222 lines
3.6 KiB
Vue
<template>
|
||
<view class="page-container">
|
||
<!-- 顶部状态栏(模拟原生手机状态栏) -->
|
||
|
||
|
||
<!-- 导航栏 -->
|
||
<view class="navbar">
|
||
|
||
<view class="nav-tabs">
|
||
<view class="tab-item active">全部事件</view>
|
||
<view class="tab-item">只看订单</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 搜索与筛选区 -->
|
||
<view class="search-section">
|
||
<view class="search-box">
|
||
<text class="search-icon">🔍</text>
|
||
<input class="search-input" placeholder="稽查单/事件/订单/商品名/用户" />
|
||
<text class="split-icon">☰</text>
|
||
</view>
|
||
<view class="filter-btn">
|
||
<text class="filter-icon">🔍</text>
|
||
<text class="filter-text">筛选</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 内容区 -->
|
||
<view class="content">
|
||
<view class="empty-card">
|
||
<view class="empty-icon-wrapper">
|
||
<view class="empty-icon">📄⚙️</view>
|
||
</view>
|
||
<text class="empty-text">暂无数据</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
methods: {
|
||
goBack() {
|
||
uni.navigateBack();
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style scoped>
|
||
/* 页面基础容器 */
|
||
.page-container {
|
||
width: 100%;
|
||
min-height: 100vh;
|
||
background-color: #f5f5f5;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
/* 状态栏 */
|
||
.status-bar {
|
||
height: 44px;
|
||
background-color: #e62318;
|
||
color: white;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 0 16px;
|
||
font-size: 17px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.status-icons {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
/* 导航栏 */
|
||
.navbar {
|
||
height: 48px;
|
||
background-color: #e62318;
|
||
color: white;
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 16px;
|
||
position: relative;
|
||
}
|
||
|
||
.nav-back {
|
||
width: 44px;
|
||
height: 44px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.back-icon {
|
||
font-size: 20px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.nav-tabs {
|
||
flex: 1;
|
||
display: flex;
|
||
justify-content: center;
|
||
gap: 40px;
|
||
}
|
||
|
||
.tab-item {
|
||
font-size: 17px;
|
||
padding: 0 8px;
|
||
position: relative;
|
||
}
|
||
|
||
.tab-item.active {
|
||
font-weight: bold;
|
||
}
|
||
|
||
.tab-item.active::after {
|
||
content: '';
|
||
position: absolute;
|
||
bottom: -8px;
|
||
left: 0;
|
||
right: 0;
|
||
height: 3px;
|
||
background-color: white;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
/* 搜索与筛选区 */
|
||
.search-section {
|
||
background-color: white;
|
||
padding: 12px 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.search-box {
|
||
flex: 1;
|
||
height: 36px;
|
||
background-color: #f5f5f5;
|
||
border-radius: 6px;
|
||
border: 1px solid #e5e5e5;
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 12px;
|
||
}
|
||
|
||
.search-icon {
|
||
font-size: 16px;
|
||
color: #999;
|
||
margin-right: 8px;
|
||
}
|
||
|
||
.search-input {
|
||
flex: 1;
|
||
font-size: 15px;
|
||
color: #333;
|
||
background: transparent;
|
||
border: none;
|
||
outline: none;
|
||
}
|
||
|
||
.split-icon {
|
||
font-size: 16px;
|
||
color: #999;
|
||
margin-left: 8px;
|
||
}
|
||
|
||
.filter-btn {
|
||
height: 36px;
|
||
background-color: #f5f5f5;
|
||
border-radius: 6px;
|
||
padding: 0 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
font-size: 15px;
|
||
color: #333;
|
||
}
|
||
|
||
.filter-icon {
|
||
font-size: 16px;
|
||
}
|
||
|
||
/* 内容区 */
|
||
.content {
|
||
flex: 1;
|
||
padding: 24px 16px;
|
||
}
|
||
|
||
.empty-card {
|
||
background-color: white;
|
||
border-radius: 12px;
|
||
padding: 60px 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
.empty-icon-wrapper {
|
||
width: 80px;
|
||
height: 80px;
|
||
background-color: #fff5f5;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.empty-icon {
|
||
font-size: 32px;
|
||
color: #ffb3b3;
|
||
}
|
||
|
||
.empty-text {
|
||
font-size: 16px;
|
||
color: #666;
|
||
}
|
||
</style> |