2025-04-23 15:25:54 +08:00

300 lines
6.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="container">
<view class="contnet">
<!-- 服务中心图片 -->
<view class="content_swiper">
<image src="/static/imgs/service/service_bg.png"></image>
</view>
</view>
<!-- 内容部分 -->
<view class="content_wapper">
<view class="text-with-block">
<text class="text">社区服务</text>
<view class="slanted-block"></view>
<view class="function-area">
<view class="function-item">
<view class="icon">
<image src="/static/imgs/service/service_workorder.png"></image>
</view>
<text class="label">智能工单</text>
</view>
<view class="function-item">
<view class="icon">
<image src="/static/imgs/service/service_vote.png"></image>
</view>
<text class="label">社区投票</text>
</view>
<view class="function-item">
<view class="icon">
<image src="/static/imgs/service/service_relation.png"></image>
</view>
<text class="label">一键联系</text>
</view>
</view>
</view>
</view>
<view class="content_wapper">
<view class="text-with-block notice">
<view class="left">
<text class="text">社区公告</text>
<view class="slanted-block"></view>
</view>
<view class="right">
查看更多
</view>
</view>
<view class="notice-list">
<view class="notice_item">
<image src="/static/imgs/service/service_test.png" class="notice-image"></image>
<view class="notice-content">
<view class="notice-title">小区电梯维修通知</view>
<view class="notice-description">3号楼电梯将于明日上午9:00-12:00进行例行维护请居民提前安排出行以免带来不便</view>
<view class="notice-date">2025-03-29</view>
</view>
</view>
<view class="notice_item">
<image src="/static/imgs/service/service_test.png" class="notice-image"></image>
<view class="notice-content">
<view class="notice-title">小区电梯维修通知</view>
<view class="notice-description">3号楼电梯将于明日上午9:00-12:00进行例行维护请居民提前安排出行以免带来不便</view>
<view class="notice-date">2025-03-29</view>
</view>
</view>
</view>
</view>
<!-- 引入底部 -->
<Footer></Footer>
</view>
</template>
<script>
import Footer from '@/components/footer_common.vue';
export default {
components: {
Footer
},
data() {
return {
list1: [
"/static/imgs/index/swiper.png",
"/static/imgs/index/swiper.png",
"/static/imgs/index/swiper.png",
],
}
},
onLoad() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
align-items: center;
background: #f8faff;
height: 100vh;
padding: 70rpx 0;
margin-top: 90rpx;
.contnet {
width: 90%;
margin: 0 auto;
border-radius: 20rpx;
.content_swiper {
width: 100%;
height: 220rpx;
image {
width: 100%;
height: 100%;
}
}
}
.content_wapper {
width: 100%;
background-color: #fff;
margin-top: 30rpx;
padding-bottom: 30rpx;
.text-with-block {
position: relative;
height: 260rpx;
background-color: #fff;
// margin-top: 36rpx;
padding: 20rpx;
.text {
font-size: 34rpx;
font-weight: bold;
color: #333;
position: relative;
z-index: 2;
padding-left: 30rpx;
}
.slanted-block {
position: absolute;
left: 120rpx;
top: 46rpx;
transform: translateX(-50%) skewX(-40deg);
width: 166rpx;
height: 24rpx;
background-color: #80B3FF;
z-index: 1;
}
.function-area {
display: flex;
justify-content: center;
gap: 70rpx;
width: 100%;
padding: 0 20rpx;
box-sizing: border-box;
margin-top: 30px;
.function-item {
display: flex;
flex-direction: column;
align-items: center;
flex: 0 0 auto;
.icon {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
background-color: #f0f8ff;
display: flex;
align-items: center;
justify-content: center;
image {
width: 50rpx;
height: 50rpx;
}
}
.label {
margin-top: 10rpx;
color: #333;
font-size: 24rpx;
font-weight: 500;
}
}
}
}
.text-with-block.notice {
display: flex;
justify-content: space-between;
padding: 20rpx 0;
height: 50rpx;
.left {
.text {
font-size: 34rpx;
font-weight: bold;
color: #333;
position: relative;
z-index: 2;
padding-left: 50rpx;
}
.slanted-block {
position: absolute;
left: 120rpx;
top: 46rpx;
transform: translateX(-50%) skewX(-40deg);
width: 166rpx;
height: 24rpx;
background-color: #80B3FF;
z-index: 1;
}
}
.right {
font-size: 26rpx;
color: #3B8CFF;
text-decoration: none;
cursor: pointer;
margin-top: 20rpx;
margin-right: 20rpx;
}
}
.notice-list {
display: flex;
flex-direction: column;
gap: 20rpx;
.notice_item {
width: 90%;
margin: 0 auto;
display: flex;
border-radius: 10rpx;
overflow: hidden;
background: rgba(255, 255, 255, 1);
border: 1rpx solid rgba(59, 140, 255, 1);
box-shadow: 2rpx 2rpx 4rpx rgba(59, 140, 255, 0.25);
.notice-image {
width: 180rpx;
height: 178rpx;
object-fit: cover;
}
.notice-content {
flex: 1;
padding: 20rpx;
background-color: #fff;
.notice-title {
font-size: 30rpx;
font-weight: bold;
color: #4a90e2;
margin-bottom: 10rpx;
}
.notice-description {
font-size: 24rpx;
color: #7D7D7D;
margin-bottom: 10rpx;
height: 80rpx;
line-height: 40rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
}
.notice-date {
font-size: 24rpx;
color: #7D7D7D;
text-align: right;
}
}
}
}
}
}
</style>