<template>
|
<view class="container">
|
<view class="head">
|
<u-navbar :is-fixed="false" :border-bottom="false" :is-back="false" back-icon-name="arrow-leftward"
|
back-icon-color="#fff" back-icon-size="35" :background="{ background: '#0BB9C8' }" title="工作台"
|
title-color="#fff"></u-navbar>
|
<view class="head-bg"></view>
|
<!-- 服务 start -->
|
<view class="card sub">
|
<!-- <view class="title">服务</view> -->
|
<view class="list">
|
<u-grid :col="4" :border="false">
|
<u-grid-item bg-color="transparent" v-for="(item, index) in subscribeList" :key="index">
|
<navigator :url="item.url" hover-class="none" class="nav-item">
|
<image :src="item.img" mode="widthFix" class="nav-item-img"></image>
|
<view class="nav-item-name">{{ item.name }}</view>
|
</navigator>
|
</u-grid-item>
|
</u-grid>
|
</view>
|
</view>
|
<!-- 服务 end -->
|
|
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
// 我的订阅
|
subscribeList: [{
|
img: '/static/images/service/b4.png',
|
name: '巡检任务',
|
url: '../taskinfo/list'
|
},
|
{
|
img: '/static/images/service/b5.png',
|
name: '维修任务',
|
url: '../repairsorder/list'
|
},
|
{
|
img: '/static/images/service/b1.png',
|
name: '事件上报',
|
url: '../eventgm/eventsReported'
|
}
|
],
|
// 服务列表
|
serviceList: [],
|
};
|
},
|
onLoad() {
|
|
}
|
};
|
</script>
|
|
<style lang="scss">
|
.container {
|
background-color: #f7f7f7;
|
min-height: 100vh;
|
overflow: hidden;
|
}
|
|
.head {
|
position: relative;
|
top: 0;
|
left: 0;
|
z-index: 1;
|
}
|
|
.head-bg {
|
position: absolute;
|
left: 0px;
|
top: 0px;
|
z-index: -1;
|
width: 750rpx;
|
height: 270rpx;
|
background: #0bb9c8;
|
}
|
|
.card {
|
margin: 30rpx;
|
background: #ffffff;
|
border-radius: 20rpx;
|
margin-top: 36rpx;
|
}
|
|
.sub {
|
.title {
|
padding-top: 36rpx;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
|
font-size: 30rpx;
|
font-family: Source Han Sans CN;
|
font-weight: 500;
|
color: #000000;
|
|
&::before {
|
content: '';
|
display: block;
|
width: 135rpx;
|
height: 1rpx;
|
background: #e4e7ed;
|
margin: 0 17rpx;
|
}
|
|
&::after {
|
content: '';
|
display: block;
|
width: 135rpx;
|
height: 1rpx;
|
background: #e4e7ed;
|
margin: 0 17rpx;
|
}
|
}
|
}
|
|
.list {
|
display: flex;
|
flex-wrap: wrap;
|
padding: 0 0 30rpx;
|
|
.nav-item {
|
width: 100%;
|
display: flex;
|
flex-direction: column;
|
justify-content: space-between;
|
align-items: center;
|
font-size: 30rpx;
|
font-family: Source Han Sans CN;
|
font-weight: 400;
|
color: #131313;
|
line-height: 48rpx;
|
opacity: 0.77;
|
|
&-img {
|
width: 54rpx;
|
height: 54rpx;
|
margin-bottom: 30rpx;
|
}
|
|
&-name {
|
font-size: 26rpx;
|
font-family: PingFang SC;
|
font-weight: 400;
|
color: #585b61;
|
}
|
}
|
}
|
|
.wrap {
|
.title {
|
padding: 36rpx 16rpx;
|
display: flex;
|
align-items: center;
|
font-size: 32rpx;
|
font-family: Source Han Sans CN;
|
font-weight: 500;
|
color: #000000;
|
|
&::before {
|
content: "";
|
display: block;
|
width: 5rpx;
|
height: 36rpx;
|
margin-right: 10rpx;
|
background: #3ac4d1;
|
}
|
}
|
}
|
</style>
|