You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

162 lines
3.4 KiB

4 years ago
<template>
4 years ago
<view class="wrap">
4 years ago
<u-row gutter="16" justify="space-between">
<u-col span="12">
4 years ago
<view class="demo-layout bg-blue" style="text-align: left;padding-left: 20rpx;">当前登录人{{userInfo.name}}
</view>
4 years ago
</u-col>
</u-row>
4 years ago
<u-row gutter="16">
4 years ago
<u-col span="6">
<view class="demo-layout bg-purple-light" @click="toview(5)">
4 years ago
<text class="iconfont icon-guanxianxuncha"></text>
<text class="navtxt">雨管巡查</text>
4 years ago
</view>
</u-col>
4 years ago
<u-col span="6">
<view class="demo-layout bg-purple" @click="toview(4)">
4 years ago
<text class="iconfont icon-guanxianyanghu"></text>
<text class="navtxt">雨管养护</text>
</view>
4 years ago
</u-col>
3 years ago
</u-row>
3 years ago
<!-- <u-row gutter="16">
3 years ago
<u-col span="12">
<view class="demo-layout bg-purple-light" @click="toview(6)">
<text class="iconfont icon-gongnengxingquexianshuju"></text>
<text class="navtxt">工单执行</text>
</view>
</u-col>
3 years ago
</u-row> -->
4 years ago
<u-row gutter="16">
<u-col span="12">
4 years ago
<view class="demo-layout bg-purple-light" @click="toview(3)">
4 years ago
<text class="iconfont icon-zaixianjiance"></text>
4 years ago
<text class="navtxt">日常监管巡查</text>
4 years ago
</view>
4 years ago
</u-col>
</u-row>
<u-row gutter="16" justify="space-between">
4 years ago
<u-col span="8">
<view class="demo-layout bg-purple" @click="toview(1)">
<text class="iconfont icon-caidanguanli"></text>
<text class="navtxt">通用巡查</text>
</view>
4 years ago
</u-col>
4 years ago
<u-col span="4">
<view class="demo-layout bg-purple-light" @click="toview(2)">
<text class="iconfont icon-yonghugerenzhongxin"></text>
<text class="navtxt">我的</text>
</view>
4 years ago
</u-col>
</u-row>
4 years ago
</view>
</template>
<script>
export default {
data() {
return {
4 years ago
title: '',
userInfo: {}
4 years ago
}
},
onLoad() {
4 years ago
this.loadInfo();
3 years ago
},
mounted() {
var a = document.getElementsByClassName('uni-page-head-btn')[0]
a.style.display = 'none';
},
onNavigationBarButtonTap(val) {
uni.navigateBack()
4 years ago
},
methods: {
4 years ago
loadInfo() {
let that = this;
this.util.request({
api: '/api/mobile/auth/me',
method: 'POST',
utilSuccess: function(res) {
that.userInfo = res;
},
utilFail: function(res) {
that.util.alert(res);
}
});
},
4 years ago
toview(type) {
let url = "/packageA/pages/generalPatrol/generalPatrol";
if (type == 2) {
url = "/pages/mine/mine"
4 years ago
}
if (type == 3) {
url = "/packageB/pages/dailyInspection/dailyInspection"
}
if (type == 4) {
url = "/rainmaintain/rainmaintain/rainmaintain"
}
if (type == 5) {
url = "/raininspection/raininspection/raininspection"
3 years ago
}
if (type == 6) {
url = "/order/order/order/order"
4 years ago
}
4 years ago
uni.navigateTo({
4 years ago
url: url
4 years ago
})
}
4 years ago
}
}
</script>
4 years ago
<style scoped lang="scss">
.wrap {
padding: 24rpx;
}
.u-row {
margin: 40rpx 0;
}
.demo-layout {
border-radius: 8rpx;
text-align: center;
4 years ago
display: flex;
flex-direction: column;
padding: 20rpx 0rpx;
}
.navtxt {
margin-top: 20rpx;
color: #000000;
}
.iconfont {
color: #338de3;
font-size: 64rpx;
4 years ago
}
4 years ago
.bg-purple {
background: #d3dce6;
4 years ago
}
4 years ago
.bg-blue {
background: #338de3;
color: #fff;
}
4 years ago
.bg-purple-light {
background: #e5e9f2;
4 years ago
}
4 years ago
.bg-purple-dark {
background: #99a9bf;
4 years ago
}
</style>