修改访客列表

This commit is contained in:
zhouyanli
2026-04-18 17:32:17 +08:00
parent d97fdbe6a6
commit dc9e722b3f

View File

@@ -1,5 +1,14 @@
<template> <template>
<view class="visitor-page"> <view class="visitor-page">
<view class="status_bar"></view>
<!-- 顶部导航栏 -->
<view class="nav-bar">
<view class="nav-left" @tap="goBack">
<image src="/static/首页/arr-left.png" style="width: 48rpx; height: 48rpx;"></image>
</view>
<view class="nav-title">访客邀请</view>
<view class="nav-right"></view>
</view>
<!-- 标签切换栏 --> <!-- 标签切换栏 -->
<view class="tab-bar"> <view class="tab-bar">
@@ -112,7 +121,10 @@ const visitorList = ref([
const filterdList = computed(() => { const filterdList = computed(() => {
return visitorList.value.filter(item => item.status === activeTab.value) return visitorList.value.filter(item => item.status === activeTab.value)
}) })
// 返回上一页
const goBack = () => {
uni.navigateBack()
}
// 查看详情 // 查看详情
const viewDetail = (item) => { const viewDetail = (item) => {
@@ -134,19 +146,57 @@ const addInvitation = () => {
<style scoped> <style scoped>
/* 页面整体样式 */ /* 页面整体样式 */
.visitor-page { .visitor-page {
background-color: #f5f5f5; background: linear-gradient(to bottom left, #E2F0FF 0%, #f9f9f9 50%);
min-height: 100vh; min-height: 100vh;
padding: 0 40rpx;
}
.status_bar {
height: 32px;
width: 100%;
}
/* 顶部导航栏 */
.nav-bar {
height: 90rpx;
display: flex;
align-items: center;
/* padding: 0 30rpx; */
color: #fff;
position: sticky;
top: 44px;
z-index: 100;
margin-bottom: 20px;
}
.nav-left {
width: 60rpx;
display: flex;
align-items: center;
justify-content: center;
}
.nav-title {
flex: 1;
text-align: center;
font-size: 32rpx;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 20rpx;
color: #000;
}
.nav-right {
width: 60rpx;
} }
/* 标签切换栏 */ /* 标签切换栏 */
.tab-bar { .tab-bar {
display: flex; display: flex;
background-color: #fff;
border-bottom: 2px solid #f5f5f5;
} }
.tab-item { .tab-item {
flex: 1; flex: 1;
text-align: center; text-align: left;
padding: 12px 0; padding: 12px 0;
font-size: 16px; font-size: 16px;
color: #666; color: #666;
@@ -161,11 +211,13 @@ const addInvitation = () => {
content: ''; content: '';
position: absolute; position: absolute;
bottom: -2px; bottom: -2px;
left: 50%; left: 18%;
transform: translateX(-50%); transform: translateX(-50%);
width: 40px; width: 64px;
height: 2px; height: 4px;
background-color: #007aff; border-radius: 6rpx;
background-color: #2F77FD;
/* background-color: linear-gradient(to bottom, #2F77FD, #CEDFFF); */
} }
/* 列表容器 */ /* 列表容器 */
@@ -176,7 +228,7 @@ const addInvitation = () => {
/* 访客列表项 */ /* 访客列表项 */
.visitor-item { .visitor-item {
background-color: #fff; background-color: #fff;
margin: 10px 15px; margin: 10px 0px;
padding: 15px; padding: 15px;
border-radius: 8px; border-radius: 8px;
} }