优化首页、访客可视滚动布局
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="status-bar"></view>
|
<view class="status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
||||||
<!-- 顶部标题栏 固定 -->
|
<!-- 顶部标题栏 固定 -->
|
||||||
<view class="top-bar">
|
<view class="top-bar">
|
||||||
<uni-nav-bar left-icon="left" title="活动列表" backgroundColor="none" :border="false" :statusBar="false"
|
<uni-nav-bar left-icon="left" title="活动列表" backgroundColor="none" :border="false" :statusBar="false"
|
||||||
@@ -134,6 +134,7 @@ const currentPage = ref(1)
|
|||||||
const pageSize = ref(5)
|
const pageSize = ref(5)
|
||||||
const total = ref(0)
|
const total = ref(0)
|
||||||
const displayedActivities = ref([]) // 当前显示的活动列表
|
const displayedActivities = ref([]) // 当前显示的活动列表
|
||||||
|
const statusBarHeight = ref(uni.getSystemInfoSync().statusBarHeight || 0)
|
||||||
|
|
||||||
// 筛选条件
|
// 筛选条件
|
||||||
const filters = ref([
|
const filters = ref([
|
||||||
@@ -337,7 +338,7 @@ watch(() => myFilter.value, () => {
|
|||||||
/* 状态栏 - 自适应设备状态栏高度 */
|
/* 状态栏 - 自适应设备状态栏高度 */
|
||||||
.status-bar {
|
.status-bar {
|
||||||
/* height: var(--status-bar-height); */
|
/* height: var(--status-bar-height); */
|
||||||
height: 46px;
|
/* height: 46px; */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ const reLocate = () => {
|
|||||||
} else {
|
} else {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
uni.showToast({ title: '定位失败,请重试', icon: 'none' });
|
uni.showToast({ title: '定位失败,请重试', icon: 'none' });
|
||||||
console.error('定位失败:', err);
|
// console.error('定位失败:', err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -289,7 +289,8 @@ const submitStatus = async () => {
|
|||||||
.upload-btn {
|
.upload-btn {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
border: 1px dashed #ddd;
|
/* border: 1px dashed #ddd; */
|
||||||
|
background-color: #F3F3F3;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- 页面主容器 -->
|
<!-- 页面主容器 -->
|
||||||
<view class="door-open-page">
|
<view class="door-open-page">
|
||||||
<view class="status_bar"></view>
|
<view class="status_bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
||||||
<!-- 顶部标题栏 -->
|
<!-- 顶部标题栏 -->
|
||||||
<view class="top-bar">
|
<view class="top-bar">
|
||||||
<uni-nav-bar left-icon="left" title="远程开门" backgroundColor ="none" :border="false" @clickLeft="narBack" />
|
<uni-nav-bar left-icon="left" title="远程开门" backgroundColor ="none" :border="false" @clickLeft="narBack" />
|
||||||
@@ -60,6 +60,7 @@ import {getAccessDevices,getAccessOpen} from '../api/api.js'
|
|||||||
// 响应式数据:选中的门索引、开门成功提示
|
// 响应式数据:选中的门索引、开门成功提示
|
||||||
const selectedDoor = ref(-1) // -1表示未选中
|
const selectedDoor = ref(-1) // -1表示未选中
|
||||||
const showSuccess = ref(false)
|
const showSuccess = ref(false)
|
||||||
|
const statusBarHeight = ref(uni.getSystemInfoSync().statusBarHeight || 0)
|
||||||
|
|
||||||
// 门列表数据
|
// 门列表数据
|
||||||
const doorList = ref([])
|
const doorList = ref([])
|
||||||
@@ -163,7 +164,7 @@ onLoad(() =>{
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.status_bar {
|
.status_bar {
|
||||||
height: var(--status-bar-height);
|
/* height: var(--status-bar-height); */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="repair-page">
|
<view class="repair-page">
|
||||||
<view class="status_bar"></view>
|
<view class="status_bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
||||||
<!-- 顶部导航栏 -->
|
<!-- 顶部导航栏 -->
|
||||||
<view class="nav-bar">
|
<view class="nav-bar">
|
||||||
<view class="nav-left" @tap="goBack">
|
<view class="nav-left" @tap="goBack">
|
||||||
@@ -121,6 +121,7 @@ const loading = ref(false);
|
|||||||
const pageNum = ref(1);
|
const pageNum = ref(1);
|
||||||
const pageSize = ref(10);
|
const pageSize = ref(10);
|
||||||
const maintenanceItemId = ref('');
|
const maintenanceItemId = ref('');
|
||||||
|
const statusBarHeight = ref(uni.getSystemInfoSync().statusBarHeight || 0)
|
||||||
|
|
||||||
// 状态映射
|
// 状态映射
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
|
|||||||
@@ -1,14 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="visitor-page">
|
<view class="visitor-page">
|
||||||
<view class="status_bar"></view>
|
<!-- 状态栏占位 -->
|
||||||
<!-- 顶部导航栏 -->
|
<view class="status-bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
||||||
<view class="nav-bar">
|
|
||||||
<view class="nav-left" @tap="goBack">
|
<!-- 顶部导航栏 -->
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/arr-left.png" style="width: 18px; height: 18px;"></image>
|
<view class="nav-bar">
|
||||||
</view>
|
<view class="nav-left" @tap="goBack">
|
||||||
<view class="nav-title">访客邀请</view>
|
<image
|
||||||
<view class="nav-right"></view>
|
src="https://wuyeadmin.bugtc.com/images/home/arr-left.png"
|
||||||
</view>
|
class="back-icon"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view class="nav-title">访客邀请</view>
|
||||||
|
<view class="nav-right"></view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 标签切换栏 -->
|
<!-- 标签切换栏 -->
|
||||||
<view class="tab-bar">
|
<view class="tab-bar">
|
||||||
@@ -28,9 +33,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 访客列表 -->
|
<!-- 访客列表 - 固定高度,内部滚动 -->
|
||||||
<scroll-view class="list-container" scroll-y>
|
<scroll-view class="list-container" scroll-y :style="{ height: scrollHeight + 'px' }">
|
||||||
<!-- 列表项:根据标签切换显示对应数据 -->
|
|
||||||
<view
|
<view
|
||||||
class="visitor-item"
|
class="visitor-item"
|
||||||
v-for="(item, index) in filterdList"
|
v-for="(item, index) in filterdList"
|
||||||
@@ -38,14 +42,22 @@
|
|||||||
>
|
>
|
||||||
<!-- 访客基本信息 -->
|
<!-- 访客基本信息 -->
|
||||||
<view class="item-header">
|
<view class="item-header">
|
||||||
<text class="visitor-name" :class="item.status">来访者:{{ item.visitorName }}</text>
|
<text class="visitor-name" :class="item.status">
|
||||||
<text class="status-tag" :class="item.status">{{ item.statusText }}</text>
|
来访者:{{ item.visitorName }}
|
||||||
|
</text>
|
||||||
|
<text class="status-tag" :class="item.status">
|
||||||
|
{{ item.statusText }}
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 有效期/到访时间 -->
|
<!-- 有效期/到访时间 -->
|
||||||
<view class="item-row">
|
<view class="item-row">
|
||||||
<text class="label" :class="item.status">{{ item.status === 'waiting' ? '有效期' : '到访时间' }}:</text>
|
<text class="label" :class="item.status">
|
||||||
<text class="value" :class="item.status">{{ item.startTime }}至{{item.endTime}}</text>
|
{{ item.status === "waiting" ? "有效期" : "到访时间" }}:
|
||||||
|
</text>
|
||||||
|
<text class="value" :class="item.status">
|
||||||
|
{{ item.startTime }}至{{ item.endTime }}
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 联系方式 -->
|
<!-- 联系方式 -->
|
||||||
@@ -62,136 +74,132 @@
|
|||||||
|
|
||||||
<!-- 时间+查看详情 -->
|
<!-- 时间+查看详情 -->
|
||||||
<view class="item-footer">
|
<view class="item-footer">
|
||||||
<text class="time-text" :class="item.status">时间:{{ item.createTime }}</text>
|
<text class="time-text" :class="item.status">
|
||||||
|
时间:{{ item.createTime }}
|
||||||
|
</text>
|
||||||
<view class="detail-btn" @click="viewDetail(item)">
|
<view class="detail-btn" @click="viewDetail(item)">
|
||||||
<text>查看详情</text>
|
<text>查看详情</text>
|
||||||
<uni-icons type="arrowright" size="14"></uni-icons>
|
<uni-icons type="arrowright" size="14"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 空状态 -->
|
|
||||||
<view v-if="filterdList.length === 0" class="empty-state">
|
<!-- 空状态 -->
|
||||||
<uni-icons type="info" size="30" color="#ccc"></uni-icons>
|
<view v-if="filterdList.length === 0" class="empty-state">
|
||||||
<text class="empty-text">
|
<uni-icons type="info" size="30" color="#ccc"></uni-icons>
|
||||||
{{ activeTab === 'waiting' ? '暂无等待到访数据' : '暂无已到访数据' }}
|
<text class="empty-text">
|
||||||
</text>
|
{{ activeTab === "waiting" ? "暂无等待到访数据" : "暂无已到访数据" }}
|
||||||
</view>
|
</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 底部占位,防止最后一项贴底 -->
|
||||||
|
<view class="list-bottom-space"></view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
<!-- 新增邀请按钮 -->
|
<!-- 新增邀请按钮 -->
|
||||||
<view class="add-btn" @click="addInvitation">
|
<view class="add-btn-wrapper">
|
||||||
<!-- <uni-icons type="plus" size="18" color="#fff"></uni-icons> -->
|
<view class="add-btn" @click="addInvitation">
|
||||||
<text class="add-text">新增邀请+</text>
|
<text class="add-text">新增邀请+</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from "vue";
|
||||||
import { onLoad } from '@dcloudio/uni-app'
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import { getVisitorList } from '../api/api.js'
|
import { getVisitorList } from "../api/api.js";
|
||||||
|
|
||||||
// 激活的标签(waiting=等待来访,visited=已到访)
|
const activeTab = ref("waiting");
|
||||||
const activeTab = ref('waiting')
|
const statusBarHeight = ref(0);
|
||||||
|
const scrollHeight = ref(0);
|
||||||
|
const visitorList = ref([]);
|
||||||
|
|
||||||
// 访客列表数据
|
|
||||||
const visitorList = ref([])
|
|
||||||
|
|
||||||
// 后端数据映射到前端
|
|
||||||
const mapData = (list) => {
|
const mapData = (list) => {
|
||||||
if (!Array.isArray(list)) return []
|
if (!Array.isArray(list)) return [];
|
||||||
return list.map(item => {
|
return list.map((item) => {
|
||||||
const status = item.status === 1 || item.status === '1' ? 'visited' : 'waiting'
|
const status =
|
||||||
|
item.status === 1 || item.status === "1" ? "visited" : "waiting";
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
visitorName: item.visitorName,
|
|
||||||
status,
|
status,
|
||||||
statusText: status === 'visited' ? '已到访' : '等待来访',
|
statusText: status === "visited" ? "已到访" : "等待来访",
|
||||||
startTime: item.startTime,
|
|
||||||
endTime: item.endTime,
|
|
||||||
phone: item.visitorPhone,
|
phone: item.visitorPhone,
|
||||||
carNumber: item.carNum,
|
carNumber: item.carNum,
|
||||||
createTime: item.createTime || ''
|
createTime: item.createTime || "",
|
||||||
}
|
};
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
// 获取访客列表
|
|
||||||
const fetchVisitorList = async () => {
|
const fetchVisitorList = async () => {
|
||||||
const userId = uni.getStorageSync('userId')
|
const userId = uni.getStorageSync("userId");
|
||||||
let params = {userId:userId}
|
|
||||||
try {
|
try {
|
||||||
const res = await getVisitorList(params)
|
const res = await getVisitorList({ userId });
|
||||||
visitorList.value = mapData(res.data || [])
|
visitorList.value = mapData(res.data || []);
|
||||||
// console.log('222222',visitorList.value)
|
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
uni.showToast({title:err.msg,icon:'none'})
|
uni.showToast({ title: err.msg, icon: "none" });
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
fetchVisitorList()
|
const info = uni.getSystemInfoSync();
|
||||||
})
|
statusBarHeight.value = info.statusBarHeight || 0;
|
||||||
|
|
||||||
|
// rpx 转 px 比例
|
||||||
|
const scale = info.windowWidth / 750;
|
||||||
|
|
||||||
|
// 各固定区域高度(rpx 转 px)
|
||||||
|
const navPx = 90 * scale; // 导航栏
|
||||||
|
const tabPx = 88 * scale; // tab栏
|
||||||
|
const btnPx = 148 * scale; // 底部按钮区域
|
||||||
|
|
||||||
|
// 列表区域可用高度 = 窗口高度 - 状态栏 - 导航栏 - tab栏 - 底部按钮区
|
||||||
|
scrollHeight.value = info.windowHeight - statusBarHeight.value - navPx - tabPx - btnPx;
|
||||||
|
|
||||||
|
fetchVisitorList();
|
||||||
|
});
|
||||||
|
|
||||||
// 根据标签筛选列表
|
|
||||||
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 = () => {
|
const goBack = () => {
|
||||||
if(uni.getStorageSync('sourcePage') === "index"){
|
const source = uni.getStorageSync("sourcePage");
|
||||||
uni.switchTab({
|
if (source === "index") {
|
||||||
url:"/pages/index/index"
|
uni.switchTab({ url: "/pages/index/index" });
|
||||||
})
|
} else if (source === "serviceIndex") {
|
||||||
}else if(uni.getStorageSync('sourcePage') === "serviceIndex"){
|
uni.switchTab({ url: "/pages/serviceIndex/serviceIndex" });
|
||||||
uni.switchTab({
|
}
|
||||||
url:"/pages/serviceIndex/serviceIndex"
|
uni.removeStorageSync("sourcePage");
|
||||||
})
|
};
|
||||||
}
|
|
||||||
uni.removeStorageSync('sourcePage')
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查看详情
|
|
||||||
const viewDetail = (item) => {
|
const viewDetail = (item) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pageSubPack/visitor/visitor-detail?id=${item.id}` // 传 id 到详情页
|
url: `/pageSubPack/visitor/visitor-detail?id=${item.id}`,
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
// 新增邀请
|
|
||||||
const addInvitation = () => {
|
const addInvitation = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({ url: "/pageSubPack/visitor/visitor-add" });
|
||||||
url: '/pageSubPack/visitor/visitor-add'
|
};
|
||||||
})
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* 页面整体样式 */
|
/* 页面根容器 */
|
||||||
.visitor-page {
|
.visitor-page {
|
||||||
background: linear-gradient(to bottom left, #E2F0FF 0%, #f9f9f9 50%);
|
background: linear-gradient(135deg, #e2f0ff 0%, #f9f9f9 50%);
|
||||||
min-height: 100vh;
|
padding: 0 30rpx;
|
||||||
padding: 0 40rpx;
|
|
||||||
}
|
}
|
||||||
.status_bar {
|
|
||||||
height: var(--status-bar-height);
|
.status-bar {
|
||||||
/* height: 32px; */
|
width: 100%;
|
||||||
width: 100%;
|
}
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
/* 顶部导航栏 */
|
/* 顶部导航栏 */
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
height: 90rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
/* padding: 0 30rpx; */
|
height: 90rpx;
|
||||||
color: #fff;
|
|
||||||
position: sticky;
|
|
||||||
top: 44px;
|
|
||||||
z-index: 100;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-left {
|
.nav-left {
|
||||||
@@ -201,15 +209,16 @@ const addInvitation = () => {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.back-icon {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-title {
|
.nav-title {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
padding: 0 20rpx;
|
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,153 +229,163 @@ const addInvitation = () => {
|
|||||||
/* 标签切换栏 */
|
/* 标签切换栏 */
|
||||||
.tab-bar {
|
.tab-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
border-bottom: 1rpx solid rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-item {
|
.tab-item {
|
||||||
/* flex: 1; */
|
|
||||||
display: flex;
|
|
||||||
text-align: left;
|
|
||||||
padding: 20px 40px 0px 0px;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #666;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
padding: 24rpx 0;
|
||||||
|
margin-right: 48rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-item.active {
|
.tab-item.active {
|
||||||
color: #007aff;
|
color: #2f77fd;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
/* 激活标签下划线 */
|
|
||||||
.tab-item.active::after {
|
.tab-item.active::after {
|
||||||
content: '';
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -7px;
|
bottom: 8rpx;
|
||||||
left: 33%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
width: 64px;
|
width: 126rpx;
|
||||||
height: 4px;
|
height: 8rpx;
|
||||||
border-radius: 6rpx;
|
border-radius: 32rpx;
|
||||||
background-color: #2F77FD;
|
/* background-color: #2f77fd; */
|
||||||
/* background-color: linear-gradient(to bottom, #2F77FD, #CEDFFF); */
|
background: linear-gradient(to bottom, #2F77FD, #CEDFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 列表容器 */
|
/* 访客卡片 */
|
||||||
.list-container {
|
|
||||||
height: calc(100vh - 220px); /* 预留导航、标签、按钮高度 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 访客列表项 */
|
|
||||||
.visitor-item {
|
.visitor-item {
|
||||||
|
margin-top: 24rpx;
|
||||||
|
padding: 24rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 25px 0px;
|
border-radius: 16rpx;
|
||||||
padding: 15px;
|
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.04);
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
/* 列表项头部(姓名+状态) */
|
|
||||||
.item-header {
|
.item-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 16rpx;
|
||||||
}
|
|
||||||
.visitor-name {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #333;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.visitor-name.visited{
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
.status-tag {
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 2px 8px;
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
|
||||||
.status-tag.waiting {
|
|
||||||
color: #2F77FD;
|
|
||||||
/* background-color: #fff8e6; */
|
|
||||||
}
|
|
||||||
.status-tag.visited {
|
|
||||||
color: #999999;
|
|
||||||
/* background-color: #e6fffa; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 列表项行数据 */
|
.visitor-name {
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.visitor-name.visited {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-tag {
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-tag.waiting {
|
||||||
|
color: #2f77fd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-tag.visited {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 信息行 */
|
||||||
.item-row {
|
.item-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 12rpx;
|
||||||
font-size: 14px;
|
font-size: 26rpx;
|
||||||
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
color: #222;
|
min-width: 140rpx;
|
||||||
min-width: 80px;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
color: #333;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
color: #333;
|
||||||
}
|
}
|
||||||
.label.visited{
|
|
||||||
color: #999;
|
.label.visited,
|
||||||
|
.value.visited {
|
||||||
|
color: #999;
|
||||||
}
|
}
|
||||||
.value.visited{
|
|
||||||
color: #999;
|
/* 底部行 */
|
||||||
}
|
|
||||||
.time-text.visited{
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
/* 列表项底部(时间+查看详情) */
|
|
||||||
.item-footer {
|
.item-footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 10px;
|
margin-top: 16rpx;
|
||||||
padding-top: 10px;
|
padding-top: 16rpx;
|
||||||
/* border-top: 1px solid #f5f5f5; */
|
border-top: 1rpx solid #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-text {
|
.time-text {
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
/* color: #666; */
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.time-text.visited {
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
.detail-btn {
|
.detail-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 14px;
|
font-size: 26rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 空状态 */
|
/* 空状态 */
|
||||||
.empty-state {
|
.empty-state {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 100rpx 0;
|
padding: 120rpx 0;
|
||||||
color: #ccc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-text {
|
.empty-text {
|
||||||
font-size: 32rpx;
|
margin-top: 20rpx;
|
||||||
color: #999;
|
font-size: 28rpx;
|
||||||
margin-top: 20rpx;
|
color: #999;
|
||||||
margin-bottom: 10rpx;
|
}
|
||||||
|
|
||||||
|
/* 列表底部占位 */
|
||||||
|
.list-bottom-space {
|
||||||
|
height: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 新增邀请按钮 */
|
/* 新增邀请按钮 */
|
||||||
.add-btn {
|
.add-btn-wrapper {
|
||||||
position: fixed;
|
height: 148rpx;
|
||||||
bottom: 20px;
|
|
||||||
left: 15px;
|
|
||||||
right: 15px;
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
background-color: #007aff;
|
|
||||||
color: #fff;
|
|
||||||
border-radius: 8px;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 16px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.add-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 88rpx;
|
||||||
|
line-height: 88rpx;
|
||||||
|
background-color: #2f77fd;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
box-shadow: 0 8rpx 24rpx rgba(47, 119, 253, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
.add-text {
|
.add-text {
|
||||||
margin-left: 5px;
|
font-size: 30rpx;
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -1,160 +1,168 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content-class">
|
<view class="content-class">
|
||||||
<!-- 顶部渐变背景层(仅视觉,不参与文档流) -->
|
<!-- 固定头部 -->
|
||||||
<view class="nar-top"></view>
|
<view class="header-fixed">
|
||||||
<!-- 这里是状态栏占位 -->
|
<view class="nar-top"></view>
|
||||||
<view class="status_bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
<view class="header-content">
|
||||||
<!-- 导航栏 -->
|
<!-- 状态栏占位 -->
|
||||||
<view class="nav-bar">
|
<view class="status_bar" :style="{ height: statusBarHeight + 'px' }"></view>
|
||||||
<text class="nav-title">首页</text>
|
<!-- 导航栏 -->
|
||||||
</view>
|
<view class="nav-bar">
|
||||||
<!-- 小区选择 -->
|
<text class="nav-title">首页</text>
|
||||||
<view class="header-container" @click="navigateToPage">
|
|
||||||
<!-- 左侧小区选择区域 -->
|
|
||||||
<view class="location-area">
|
|
||||||
<!-- 定位图标 -->
|
|
||||||
<view class="location-icon">
|
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/adress.png" style="height: 100%;width: 100%;"></image>
|
|
||||||
</view>
|
</view>
|
||||||
<!-- 小区名称和下拉箭头 -->
|
<!-- 小区选择 -->
|
||||||
<view class="community-selector">
|
<view class="header-container" @click="navigateToPage">
|
||||||
<text class="community-name">{{ currentCommunity }}</text>
|
<!-- 左侧小区选择区域 -->
|
||||||
<u-icon
|
<view class="location-area">
|
||||||
name="arrow-down-fill"
|
<!-- 定位图标 -->
|
||||||
size="16"
|
<view class="location-icon">
|
||||||
:color="isDropdownOpen ? '#2979ff' : '#222222'"
|
<image src="https://wuyeadmin.bugtc.com/images/home/adress.png" style="height: 100%;width: 100%;"></image>
|
||||||
:class="['dropdown-arrow', { 'rotate': isDropdownOpen }]"
|
</view>
|
||||||
></u-icon>
|
<!-- 小区名称和下拉箭头 -->
|
||||||
|
<view class="community-selector">
|
||||||
|
<text class="community-name">{{ currentCommunity }}</text>
|
||||||
|
<u-icon
|
||||||
|
name="arrow-down-fill"
|
||||||
|
size="16"
|
||||||
|
:color="isDropdownOpen ? '#2979ff' : '#222222'"
|
||||||
|
:class="['dropdown-arrow', { 'rotate': isDropdownOpen }]"
|
||||||
|
></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- banner -->
|
<!-- 滚动内容区 -->
|
||||||
<view class="bannarClass">
|
<scroll-view class="main-scroll" scroll-y>
|
||||||
<up-swiper :list="bannerList" indicator indicatorMode="dot" ></up-swiper>
|
<!-- banner -->
|
||||||
</view>
|
<view class="bannarClass">
|
||||||
<view class="noticeClass" @click="getNoticeMore">
|
<up-swiper :list="bannerList" indicator indicatorMode="dot" ></up-swiper>
|
||||||
<uni-notice-bar show-icon :text="noticeText" type="line"
|
</view>
|
||||||
show-get-more scrollable color="#000" background-color="#fff" moreColor="#000">
|
<!-- 公告 -->
|
||||||
<template #noticebarIcon>
|
<view class="noticeClass" @click="getNoticeMore">
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/notice.png" style="width: 38px;height: 38px;"></image>
|
<uni-notice-bar show-icon :text="noticeText" type="line"
|
||||||
</template>
|
show-get-more scrollable color="#000" background-color="#fff" moreColor="#000">
|
||||||
</uni-notice-bar>
|
<template #noticebarIcon>
|
||||||
</view>
|
<image src="https://wuyeadmin.bugtc.com/images/home/notice.png" style="width: 38px;height: 38px;"></image>
|
||||||
<!-- 一键开门 -->
|
</template>
|
||||||
<view class="u-demo-block__content bg-card-open">
|
</uni-notice-bar>
|
||||||
<up-row justify="space-between" gutter="10">
|
</view>
|
||||||
<up-col span="3">
|
<!-- 一键开门 -->
|
||||||
<view class="demo-layout bg-purple openClass" @click="openDoorClick">
|
<view class="u-demo-block__content bg-card-open">
|
||||||
|
<up-row justify="space-between" gutter="10">
|
||||||
|
<up-col span="3">
|
||||||
|
<view class="demo-layout bg-purple openClass" @click="openDoorClick">
|
||||||
<view class="iconClass">
|
<view class="iconClass">
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/openDoor.png" class="iconClass-img"></image>
|
<image src="https://wuyeadmin.bugtc.com/images/home/openDoor.png" class="iconClass-img"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-dome-calss">一键开门</view>
|
<view class="title-dome-calss">一键开门</view>
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
<up-col span="3">
|
<up-col span="3">
|
||||||
<view class="demo-layout bg-purple-light openClass" @click="payMentClick">
|
<view class="demo-layout bg-purple-light openClass" @click="payMentClick">
|
||||||
<view class="iconClass">
|
<view class="iconClass">
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/lifePay.png" class="iconClass-img"></image>
|
<image src="https://wuyeadmin.bugtc.com/images/home/lifePay.png" class="iconClass-img"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-dome-calss">生活缴费</view>
|
<view class="title-dome-calss">生活缴费</view>
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
<up-col span="3">
|
<up-col span="3">
|
||||||
<view class="demo-layout bg-purple openClass" @click="onlineRepairClick">
|
<view class="demo-layout bg-purple openClass" @click="onlineRepairClick">
|
||||||
<view class="iconClass">
|
<view class="iconClass">
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/repair.png" class="iconClass-img"></image>
|
<image src="https://wuyeadmin.bugtc.com/images/home/repair.png" class="iconClass-img"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-dome-calss">在线报修</view>
|
<view class="title-dome-calss">在线报修</view>
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
<up-col span="3">
|
<up-col span="3">
|
||||||
<view class="demo-layout bg-purple-light openClass" @click="visitorClick">
|
<view class="demo-layout bg-purple-light openClass" @click="visitorClick">
|
||||||
<view class="iconClass">
|
<view class="iconClass">
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/visitorInvite.png" class="iconClass-img"></image>
|
<image src="https://wuyeadmin.bugtc.com/images/home/visitorInvite.png" class="iconClass-img"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-dome-calss">访客邀请</view>
|
<view class="title-dome-calss">访客邀请</view>
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
</up-row>
|
</up-row>
|
||||||
</view>
|
</view>
|
||||||
<!-- 广告卡片 -->
|
<!-- 广告卡片 -->
|
||||||
<view class="adCardClass">
|
<view class="adCardClass">
|
||||||
<!-- <uni-card :is-shadow="false" > -->
|
<!-- <uni-card :is-shadow="false" > -->
|
||||||
<view class="u-demo-block__content">
|
<view class="u-demo-block__content">
|
||||||
<up-row justify="space-between" customStyle="margin-bottom: 10px">
|
|
||||||
<up-col span="3">
|
|
||||||
<view class="demo-layout bg-purple iconRightClass">
|
|
||||||
<image src="https://wuyeadmin.bugtc.com/images/home/ad1.png" mode="" style="width: 100%;height: 100%;"></image>
|
|
||||||
</view>
|
|
||||||
</up-col>
|
|
||||||
<up-col span="8">
|
|
||||||
<view class="demo-layout bg-purple-light titleLeft">
|
|
||||||
<text style="color: #fff;font-size: 40rpx;font-weight: 700;">便民服务</text>
|
|
||||||
<view style="color: #fff;font-size: 28rpx;">邻里便民服务 全新上线</view>
|
|
||||||
</view>
|
|
||||||
</up-col>
|
|
||||||
|
|
||||||
</up-row>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- </uni-card> -->
|
|
||||||
</view>
|
|
||||||
<!-- 活动列表 -->
|
|
||||||
<uni-card class="activity-card">
|
|
||||||
<view class="eventListClass">
|
|
||||||
<view>
|
|
||||||
<text class="activity-name">活动列表</text>
|
|
||||||
<!-- <u-title>活动列表</u-title> -->
|
|
||||||
</view>
|
|
||||||
<view class="nav-more">
|
|
||||||
<!-- <up-button type="primary" shape="circle" size="small" text="查看更多" @click="moreClick"></up-button> -->
|
|
||||||
<text class="look-more-title" @click="moreClick">查看更多</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y">
|
|
||||||
<view class="eventListCard" v-for="(activity, index) in activityList" :key="activity.id">
|
|
||||||
<!-- 状态标签 -->
|
|
||||||
<view class="status-tag" :class="{}">
|
|
||||||
{{ activity.statusText }}
|
|
||||||
<!-- 进行中 -->
|
|
||||||
</view>
|
|
||||||
<view class="u-demo-block__content ">
|
|
||||||
<up-row justify="space-between" customStyle="margin-bottom: 10px">
|
<up-row justify="space-between" customStyle="margin-bottom: 10px">
|
||||||
<up-col span="4">
|
<up-col span="3">
|
||||||
<view class="demo-layout bg-purple-light activity-img">
|
<view class="demo-layout bg-purple iconRightClass">
|
||||||
<image :src="activity.coverImage" style="width: 100%;height: 100%;"></image>
|
<image src="https://wuyeadmin.bugtc.com/images/home/ad1.png" mode="" style="width: 100%;height: 100%;"></image>
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
<up-col span="8">
|
<up-col span="8">
|
||||||
<view class="demo-layout bg-purple activity-info">
|
<view class="demo-layout bg-purple-light titleLeft">
|
||||||
<view class="activity-title">{{activity.title}}</view>
|
<text style="color: #fff;font-size: 40rpx;font-weight: 700;">便民服务</text>
|
||||||
<view class="activity-time">{{formatDate(activity.startTime)}}-{{formatDate(activity.endTime)}}</view>
|
<view style="color: #fff;font-size: 28rpx;">邻里便民服务 全新上线</view>
|
||||||
<view class="activity-organizer">
|
|
||||||
<text>{{activity.createName}}</text>
|
|
||||||
</view>
|
|
||||||
<view class="activity-enrollment">
|
|
||||||
<text>活动名额{{activity.quota}}人,已报名{{activity.appliedCount}}人</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</up-col>
|
</up-col>
|
||||||
|
|
||||||
</up-row>
|
</up-row>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- </uni-card> -->
|
||||||
|
</view>
|
||||||
|
<!-- 活动列表 -->
|
||||||
|
<uni-card class="activity-card">
|
||||||
|
<view class="eventListClass">
|
||||||
|
<view>
|
||||||
|
<text class="activity-name">活动列表</text>
|
||||||
|
<!-- <u-title>活动列表</u-title> -->
|
||||||
|
</view>
|
||||||
|
<view class="nav-more">
|
||||||
|
<!-- <up-button type="primary" shape="circle" size="small" text="查看更多" @click="moreClick"></up-button> -->
|
||||||
|
<text class="look-more-title" @click="moreClick">查看更多</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 活动列表内容(去掉内层 scroll-view,由外层统一滚动) -->
|
||||||
|
<view class="activity-list">
|
||||||
|
<view class="eventListCard" v-for="(activity, index) in activityList" :key="activity.id">
|
||||||
|
<!-- 状态标签 -->
|
||||||
|
<view class="status-tag" :class="{}">
|
||||||
|
{{ activity.statusText }}
|
||||||
|
<!-- 进行中 -->
|
||||||
|
</view>
|
||||||
|
<view class="u-demo-block__content ">
|
||||||
|
<up-row justify="space-between" customStyle="margin-bottom: 10px">
|
||||||
|
<up-col span="4">
|
||||||
|
<view class="demo-layout bg-purple-light activity-img">
|
||||||
|
<image :src="activity.coverImage" style="width: 100%;height: 100%;"></image>
|
||||||
|
</view>
|
||||||
|
</up-col>
|
||||||
|
<up-col span="8">
|
||||||
|
<view class="demo-layout bg-purple activity-info">
|
||||||
|
<view class="activity-title">{{activity.title}}</view>
|
||||||
|
<view class="activity-time">{{formatDate(activity.startTime)}}-{{formatDate(activity.endTime)}}</view>
|
||||||
|
<view class="activity-organizer">
|
||||||
|
<text>{{activity.createName}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="activity-enrollment">
|
||||||
|
<text>活动名额{{activity.quota}}人,已报名{{activity.appliedCount}}人</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</up-col>
|
||||||
|
</up-row>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</view>
|
||||||
<!-- 空状态 -->
|
<!-- 空状态 -->
|
||||||
<view v-if="activityList.length === 0" class="empty-state">
|
<view v-if="activityList.length === 0" class="empty-state">
|
||||||
<uni-icons type="info" size="30" color="#ccc"></uni-icons>
|
<uni-icons type="info" size="30" color="#ccc"></uni-icons>
|
||||||
<text class="empty-text">暂无数据</text>
|
<text class="empty-text">暂无数据</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
</uni-card>
|
|
||||||
|
|
||||||
|
|
||||||
|
</uni-card>
|
||||||
|
|
||||||
|
<!-- 底部占位 -->
|
||||||
|
<view class="scroll-bottom-space"></view>
|
||||||
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@@ -172,7 +180,7 @@ const scrollTop = ref(0)
|
|||||||
const activityList = ref([]) // 活动列表数据
|
const activityList = ref([]) // 活动列表数据
|
||||||
const currentCommunity = ref('请认证小区')
|
const currentCommunity = ref('请认证小区')
|
||||||
const currentVillageId = ref('')
|
const currentVillageId = ref('')
|
||||||
const statusBarHeight = ref(uni.getSystemInfoSync().statusBarHeight || 0)
|
const statusBarHeight = ref(0)
|
||||||
const bannerList = ref([
|
const bannerList = ref([
|
||||||
// 'http://47.104.199.163:9090/images/home/banner.png',
|
// 'http://47.104.199.163:9090/images/home/banner.png',
|
||||||
// "http://47.104.199.163:9090/images/propertyImgs/serviceImg2.png"
|
// "http://47.104.199.163:9090/images/propertyImgs/serviceImg2.png"
|
||||||
@@ -277,6 +285,9 @@ onShow(() =>{
|
|||||||
|
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
|
const info = uni.getSystemInfoSync()
|
||||||
|
statusBarHeight.value = info.statusBarHeight || 0
|
||||||
|
|
||||||
// 绑定全局事件监听
|
// 绑定全局事件监听
|
||||||
uni.$on('confirm', slelctHomeData)
|
uni.$on('confirm', slelctHomeData)
|
||||||
|
|
||||||
@@ -391,247 +402,269 @@ const moreClick = () =>{
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content-class{
|
.content-class{
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
padding-bottom: 40rpx;
|
position: absolute;
|
||||||
box-sizing: border-box; /* 保证padding不会撑大容器 */
|
top: 0;
|
||||||
min-height: 100vh;
|
left: 0;
|
||||||
overflow-y: auto;
|
right: 0;
|
||||||
position: relative;
|
bottom: 0;
|
||||||
.nar-top{
|
display: flex;
|
||||||
height: 400rpx;
|
flex-direction: column;
|
||||||
width: 100%;
|
/* 固定头部 */
|
||||||
background: repeating-linear-gradient(to right, #EDF4FA , #C0E4FB);
|
.header-fixed {
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
.status_bar {
|
|
||||||
width: 100%;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
position: relative;
|
.nar-top{
|
||||||
z-index: 1;
|
height: 400rpx;
|
||||||
}
|
|
||||||
/* 导航栏 */
|
|
||||||
.nav-bar {
|
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
|
||||||
text-align: center;
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
.nav-title {
|
|
||||||
font-size: 32rpx;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.header-container{
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 4rpx 30rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
// border-bottom: 1rpx solid #f0f0f0;
|
|
||||||
position: relative;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
// 左侧区域
|
|
||||||
.location-area {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
position: relative;
|
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
|
||||||
.location-icon {
|
|
||||||
width: 45rpx;
|
|
||||||
height: 45rpx;
|
|
||||||
margin-right: 12rpx;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
.community-selector {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
max-width: 300rpx;
|
|
||||||
cursor: pointer;
|
|
||||||
.community-name {
|
|
||||||
font-size: 26rpx;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #000;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
max-width: 200rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.bannarClass{
|
|
||||||
position: relative;
|
|
||||||
padding: 20rpx 40rpx;
|
|
||||||
// margin-bottom: 20rpx;
|
|
||||||
height: 300rpx;
|
|
||||||
::v-deep .u-swiper{
|
|
||||||
height: 300rpx !important;
|
|
||||||
}
|
|
||||||
::v-deep .u-swiper__wrapper{
|
|
||||||
height: 300rpx !important;
|
|
||||||
}
|
|
||||||
::v-deep .u-swiper__wrapper__item__wrapper__image{
|
|
||||||
height: 300rpx !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.noticeClass{
|
|
||||||
padding: 0rpx 36rpx;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
// 修改通知栏样式
|
|
||||||
::v-deep .uni-noticebar__content-wrapper--scrollable{
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
::v-deep .uni-noticebar{
|
|
||||||
padding: 4px 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notice-bar::after {
|
|
||||||
color: #3E8EFF;
|
|
||||||
}
|
|
||||||
.bg-card-open{
|
|
||||||
padding: 20rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
margin: 0 18px 20rpx;
|
|
||||||
}
|
|
||||||
.openClass{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
.iconClass{
|
|
||||||
width: 88rpx;
|
|
||||||
height: 88rpx;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
// opacity: 0.4;
|
|
||||||
|
|
||||||
}
|
|
||||||
.iconClass-img{
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
background: repeating-linear-gradient(to right, #EDF4FA , #C0E4FB);
|
||||||
border-radius: 8px
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 0;
|
||||||
}
|
}
|
||||||
.title-dome-calss{
|
.header-content {
|
||||||
margin-top: 10rpx;
|
position: relative;
|
||||||
font-size: 28rpx;
|
z-index: 1;
|
||||||
color: #000;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.adCardClass{
|
/* 滚动区域 */
|
||||||
// width: 100%;
|
.main-scroll {
|
||||||
height: 200rpx;
|
flex: 1;
|
||||||
margin: 0 30rpx 20rpx;
|
min-height: 0;
|
||||||
background-color: #3E8EFF;
|
overflow: hidden;
|
||||||
// margin-top: 30rpx;
|
position: relative;
|
||||||
border-radius: 28rpx;
|
z-index: 1;
|
||||||
.titleLeft{
|
|
||||||
text-align: left;
|
|
||||||
line-height: 2;
|
|
||||||
// margin-top: 32rpx;
|
|
||||||
// margin-left: 30rpx;
|
|
||||||
}
|
|
||||||
.iconRightClass{
|
|
||||||
width: 120rpx;
|
|
||||||
height: 120rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
// margin-top: 20rpx;
|
|
||||||
margin: 36rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.activity-card{
|
.scroll-bottom-space {
|
||||||
}
|
height: 40rpx;
|
||||||
.uni-card{
|
|
||||||
margin: 0 18px 20rpx !important;
|
|
||||||
}
|
}
|
||||||
.eventListClass{
|
.status_bar {
|
||||||
margin: 10rpx 0;
|
width: 100%;
|
||||||
display: flex;
|
flex-shrink: 0;
|
||||||
justify-content: space-between;
|
position: relative;
|
||||||
align-items: center;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.activity-name{
|
/* 导航栏 */
|
||||||
font-size: 32rpx;
|
.nav-bar {
|
||||||
font-weight: 600;
|
height: 44px;
|
||||||
color: #222;
|
line-height: 44px;
|
||||||
|
text-align: center;
|
||||||
}
|
position: relative;
|
||||||
.eventListCard{
|
z-index: 1;
|
||||||
// min-height:200rpx ;
|
}
|
||||||
position: relative;
|
.nav-title {
|
||||||
margin: 30rpx 0rpx;
|
font-size: 32rpx;
|
||||||
// overflow: hidden;
|
font-weight: 500;
|
||||||
.status-tag {
|
}
|
||||||
position: absolute;
|
.header-container{
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
// padding: 6px 18px;
|
|
||||||
padding: 0px 7px 10px 11px;
|
|
||||||
border-radius: 10px 0px 10px 0px;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #fff;
|
|
||||||
font-weight: 500;
|
|
||||||
width: 80rpx;
|
|
||||||
height: 20rpx;
|
|
||||||
// background-color: #FD7373 ;
|
|
||||||
background: repeating-linear-gradient(to right, #FD7373 , #FB3F3F);
|
|
||||||
}
|
|
||||||
.activity-img{
|
|
||||||
width: 170rpx;
|
|
||||||
height: 230rpx;
|
|
||||||
// background-color: #333333;
|
|
||||||
}
|
|
||||||
.activity-title{
|
|
||||||
font-size: 32rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-time{
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 22rpx;
|
|
||||||
color: #999999;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
.activity-organizer{
|
|
||||||
font-size: 28rpx;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
color: #999999;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
.activity-enrollment{
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 28rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
color: #666666;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.empty-state {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: space-between;
|
||||||
padding: 100rpx 0;
|
padding: 4rpx 30rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
// border-bottom: 1rpx solid #f0f0f0;
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
// 左侧区域
|
||||||
|
.location-area {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
.location-icon {
|
||||||
|
width: 45rpx;
|
||||||
|
height: 45rpx;
|
||||||
|
margin-right: 12rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.community-selector {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
max-width: 300rpx;
|
||||||
|
cursor: pointer;
|
||||||
|
.community-name {
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #000;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
max-width: 200rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bannarClass{
|
||||||
|
position: relative;
|
||||||
|
padding: 20rpx 40rpx;
|
||||||
|
// margin-bottom: 20rpx;
|
||||||
|
height: 300rpx;
|
||||||
|
::v-deep .u-swiper{
|
||||||
|
height: 300rpx !important;
|
||||||
|
}
|
||||||
|
::v-deep .u-swiper__wrapper{
|
||||||
|
height: 300rpx !important;
|
||||||
|
}
|
||||||
|
::v-deep .u-swiper__wrapper__item__wrapper__image{
|
||||||
|
height: 300rpx !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.noticeClass{
|
||||||
|
padding: 0rpx 36rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
// 修改通知栏样式
|
||||||
|
::v-deep .uni-noticebar__content-wrapper--scrollable{
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
::v-deep .uni-noticebar{
|
||||||
|
padding: 4px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-bar::after {
|
||||||
|
color: #3E8EFF;
|
||||||
|
}
|
||||||
|
.bg-card-open{
|
||||||
|
padding: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin: 0 18px 20rpx;
|
||||||
|
}
|
||||||
|
.openClass{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
.iconClass{
|
||||||
|
width: 88rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
// opacity: 0.4;
|
||||||
|
|
||||||
|
}
|
||||||
|
.iconClass-img{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 8px
|
||||||
|
}
|
||||||
|
.title-dome-calss{
|
||||||
|
margin-top: 10rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.adCardClass{
|
||||||
|
// width: 100%;
|
||||||
|
height: 200rpx;
|
||||||
|
margin: 0 30rpx 20rpx;
|
||||||
|
background-color: #3E8EFF;
|
||||||
|
// margin-top: 30rpx;
|
||||||
|
border-radius: 28rpx;
|
||||||
|
.titleLeft{
|
||||||
|
text-align: left;
|
||||||
|
line-height: 2;
|
||||||
|
// margin-top: 32rpx;
|
||||||
|
// margin-left: 30rpx;
|
||||||
|
}
|
||||||
|
.iconRightClass{
|
||||||
|
width: 120rpx;
|
||||||
|
height: 120rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
// margin-top: 20rpx;
|
||||||
|
margin: 36rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.activity-card{
|
||||||
|
}
|
||||||
|
.uni-card{
|
||||||
|
margin: 0 18px 20rpx !important;
|
||||||
|
}
|
||||||
|
.eventListClass{
|
||||||
|
margin: 10rpx 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.activity-name{
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #222;
|
||||||
|
|
||||||
|
}
|
||||||
|
.eventListCard{
|
||||||
|
// min-height:200rpx ;
|
||||||
|
position: relative;
|
||||||
|
margin: 30rpx 0rpx;
|
||||||
|
// overflow: hidden;
|
||||||
|
.status-tag {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
// padding: 6px 18px;
|
||||||
|
padding: 0px 7px 10px 11px;
|
||||||
|
border-radius: 10px 0px 10px 0px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 500;
|
||||||
|
width: 80rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
// background-color: #FD7373 ;
|
||||||
|
background: repeating-linear-gradient(to right, #FD7373 , #FB3F3F);
|
||||||
|
}
|
||||||
|
.activity-img{
|
||||||
|
width: 170rpx;
|
||||||
|
height: 230rpx;
|
||||||
|
// background-color: #333333;
|
||||||
|
}
|
||||||
|
.activity-title{
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-text {
|
.activity-time{
|
||||||
font-size: 32rpx;
|
display: flex;
|
||||||
color: #999;
|
align-items: center;
|
||||||
margin-top: 20rpx;
|
font-size: 22rpx;
|
||||||
margin-bottom: 10rpx;
|
color: #999999;
|
||||||
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
.look-more-title{
|
.activity-organizer{
|
||||||
color: #3E8EFF;
|
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: #999999;
|
||||||
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
.activity-enrollment{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.empty-state {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 100rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-text {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #999;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.look-more-title{
|
||||||
|
color: #3E8EFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user