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.

309 lines
8.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view class="indexcontent">
<u-navbar :leftText="'驾驶舱'+navbarValue" :safeAreaInsetTop="false" @rightClick="rightClick" :autoBack="true"
:placeholder="true" leftIconColor="#ffffff">
<view class="u-nav-slot" slot="right">
欢迎您审核员
</view>
</u-navbar>
<view class="indexcontent-tab">
<u-tabs :list="list1" :scrollable="false" lineWidth="30" @change="utabschange"
:current='tabscurrent'></u-tabs>
</view>
<view class="indexcontent-box">
<view class="indexcontent-bottom">
<u-search placeholder="请输入搜索内容" v-model="searchkeyword" @search="searchSou" @clear="qingkong"
:showAction="false"></u-search>
<view class="indexcontentbttom-item" v-for="item in contentList">
<view class="indexcontentbttom-item-left">
<view class="indexcontentbttom-item-left-1 indexcontentbttom-item-left-jiti">
<view class="indexcontentbttom-item-left-1-left">
{{navbarValue}}
</view>
<view class="indexcontentbttom-item-left-1-right">
{{item.title}}
</view>
</view>
<view class="indexcontentbttom-item-left-2 indexcontentbttom-item-left-jiti">
<view class="indexcontentbttom-item-left-1-icon">
<u-icon name="map" size="18" color="#AEBAC8" class="icon"></u-icon>
</view>
<view class="smofontsiez">
{{item.diqu}}
</view>
</view>
<view class="indexcontentbttom-item-left-2 indexcontentbttom-item-left-jiti">
<view class="indexcontentbttom-item-left-1-icon ">
<u-icon name="clock" size="18" color="#AEBAC8" class="" class="icon"></u-icon>
</view>
<view class="smofontsiez">
{{item.shijian}}
</view>
</view>
</view>
<view class="indexcontentbttom-item-rigth" @click="nextblack(item)">
审核
</view>
</view>
</view>
<u-tabbar :value="navbarValue" @change="change1" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
<u-tabbar-item text="群体事件" name="群体事件">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-0.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-0.png"></image>
</u-tabbar-item>
<u-tabbar-item text="紧急事件" name="紧急事件">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-1.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-1.png"></image>
</u-tabbar-item>
<u-tabbar-item text="一人多诉" name="一人多诉">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-2.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-2.png"></image>
</u-tabbar-item>
<u-tabbar-item text="同人同诉" name="同人同诉">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-3.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-3.png"></image>
</u-tabbar-item>
<u-tabbar-item text="重点人员" name="重点人员">
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-4.png">
</image>
<image class="u-page__item__slot-icon" slot="inactive-icon"
src="@/static/images/contimg/icon-0-4.png"></image>
</u-tabbar-item>
</u-tabbar>
</view>
</view>
</template>
<script>
export default {
data() {
return {
searchkeyword: "",
tabscurrent: 0,
navbarValue: "群体事件",
list1: [{
name: '已退回',
badge: {
value: 5,
}
}, {
name: '已提级',
badge: {
value: 0,
}
}, {
name: '重训练',
badge: {
value: 0,
}
}, ],
contentList: [
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
{
title: "太阳山拥堵问题",
diqu: "高新区何山路124号四季花园小区",
shijian: "2023-07-30 14:25:3"
},
]
}
},
methods: {
// 顶部导航栏
utabschange(e) {
this.tabscurrent = e.index
console.log(e);
},
//搜索
searchSou() {
console.log(this.searchkeyword);
},
//清空
qingkong() {},
// 跳转
nextblack(item) {
console.log(item);
uni.navigateTo({
url:`/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}`
})
},
//切换
change1(e) {
this.navbarValue = e
this.tabscurrent = 0
console.log(e);
}
},
onLoad: function() {}
}
</script>
<style lang="scss" scoped>
.indexcontent {
width: 100%;
.indexcontent-tab {
width: 100%;
height: 85rpx;
background: #ffffff;
position: sticky;
top: 0;
left: 0;
}
.indexcontent-box {
padding: 20rpx 20rpx 0 20rpx;
max-height: 85vh;
overflow: auto;
.indexcontent-bottom {
width: 100%;
padding: 20rpx;
border-radius: 10rpx;
background: #ffffff;
.indexcontentbttom-item {
padding: 25rpx;
width: 100%;
background: #f7f7f7fa;
border-radius: 10rpx;
display: grid;
grid-template-columns: 85% 15%;
margin: 20rpx 0;
.indexcontentbttom-item-left {
.indexcontentbttom-item-left-jiti {
width: 100%;
display: grid;
grid-template-columns: 13% auto;
align-items: center;
/* 设置垂直居中对齐 */
margin-bottom: 10rpx;
.indexcontentbttom-item-left-1-icon {
width: 60rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
color: #AEBAC8;
}
.smofontsiez {
color: #AEBAC8;
font-size: 25rpx;
}
}
.indexcontentbttom-item-left-1 {
.indexcontentbttom-item-left-1-left {
width: 60rpx;
height: 60rpx;
padding-top: 6rpx;
border-radius: 6rpx;
font-weight: bold;
font-size: 25rpx;
color: #F43147;
background-color: #f4c9c5;
line-height: 27rpx;
text-align: center;
}
.indexcontentbttom-item-left-1-right {
text-align: left;
font-weight: 500;
font-size: 30rpx;
font-weight: bold;
color: #35393D;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
.indexcontentbttom-item-rigth {
width: 85rpx;
height: 85rpx;
border-radius: 50%;
color: #ffffff;
text-align: center;
line-height: 85rpx;
background: #4379D6;
margin-top: 60rpx;
box-shadow: 0rpx 0rpx 19rpx 0rpx rgba(67, 121, 214, 0.3);
}
}
}
}
}
.u-nav-slot {
font-size: 22rpx;
}
.u-page__item__slot-icon {
width: 50rpx;
height: 50rpx;
}
// /deep/.u-tabs__wrapper__nav__item {
// position: relative;
// .u-badge--not-dot {
// position: absolute;
// top: 10rpx;
// right: 50rpx;
// }
// }
</style>