144 lines
3.0 KiB
Vue
144 lines
3.0 KiB
Vue
<template>
|
|
<crud-layout bg="/static/page/blue-bg.png">
|
|
<div class="integrated-title-card">
|
|
<div class="integrated-title">综合服务</div>
|
|
</div>
|
|
<div class="service-container-card">
|
|
<div class="service-container">
|
|
<div class="service-grid">
|
|
<div v-for="item in services" :key="item.name" class="service-item" @click="goPage(item)">
|
|
<image :src="item.icon" class="service-icon" />
|
|
<div class="service-label">{{ item.label }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</crud-layout>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { onLoad } from "@dcloudio/uni-app"
|
|
|
|
const services = [
|
|
{
|
|
name: "todo",
|
|
label: "工作待办",
|
|
icon: "/src/static/icon/todo.png",
|
|
url: "/pages/integrated/todo/index",
|
|
},
|
|
{
|
|
name: "meeting-booking",
|
|
label: "会议预定",
|
|
icon: "/src/static/icon/meeting-booking.png",
|
|
url: "/pages/integrated/meeting/index",
|
|
},
|
|
{
|
|
name: "lost-and-found",
|
|
label: "失物招领",
|
|
icon: "/src/static/icon/lost-and-found.png",
|
|
url: "/pages/integrated/lostAndFound/index",
|
|
},
|
|
{
|
|
name: "feedback",
|
|
label: "意见反馈",
|
|
icon: "/src/static/icon/feedback.png",
|
|
url: "/pages/integrated/feedback/index",
|
|
},
|
|
{
|
|
name: "repair-report",
|
|
label: "维修上报",
|
|
icon: "/src/static/icon/repair-report.png",
|
|
url: "/pages/integrated/repair/index",
|
|
},
|
|
{
|
|
name: "notice",
|
|
label: "通知公告",
|
|
icon: "/src/static/icon/notice.png",
|
|
url: "/pages/integrated/notice/index",
|
|
},
|
|
{
|
|
name: "visitor",
|
|
label: "访客邀约",
|
|
icon: "/src/static/icon/visitor.png",
|
|
url: "/pages/integrated/visitor/invitation",
|
|
},
|
|
]
|
|
|
|
onLoad(() => {
|
|
const app = getApp()
|
|
app._initTabbar()
|
|
})
|
|
|
|
function goPage(item) {
|
|
if (item.url) {
|
|
uni.navigateTo({ url: item.url })
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="less">
|
|
.integrated-title-card {
|
|
background: #fff;
|
|
border-radius: 20rpx;
|
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
|
|
margin: 32rpx 24rpx 0 24rpx;
|
|
padding: 0 0 8rpx 0;
|
|
}
|
|
.integrated-title {
|
|
font-size: 38rpx;
|
|
font-weight: bold;
|
|
color: #222;
|
|
text-align: center;
|
|
padding: 36rpx 0 24rpx 0;
|
|
letter-spacing: 2rpx;
|
|
}
|
|
.service-container-card {
|
|
background: #fff;
|
|
border-radius: 24rpx;
|
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
|
|
margin: 24rpx;
|
|
padding-bottom: 32rpx;
|
|
}
|
|
.service-container {
|
|
padding: 32rpx 0 0 0;
|
|
background: transparent;
|
|
border-radius: 16rpx;
|
|
}
|
|
.service-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
padding: 0 24rpx;
|
|
}
|
|
.service-item {
|
|
width: 25%;
|
|
margin-bottom: 40rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
transition: transform 0.2s;
|
|
}
|
|
.service-item:hover {
|
|
transform: translateY(-6rpx) scale(1.06);
|
|
box-shadow: 0 2rpx 12rpx rgba(25, 118, 210, 0.08);
|
|
}
|
|
.service-icon {
|
|
width: 92rpx;
|
|
height: 92rpx;
|
|
margin-bottom: 14rpx;
|
|
border-radius: 16rpx;
|
|
background: #f5f7fa;
|
|
box-shadow: 0 2rpx 8rpx rgba(25, 118, 210, 0.04);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
.service-label {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
text-align: center;
|
|
letter-spacing: 1rpx;
|
|
}
|
|
body {
|
|
background: #f5f6fa;
|
|
}
|
|
</style>
|