<template>
	<view class="page">
		<u-navbar title="设备故障" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
			height='38'></u-navbar>
		<view class="box">
			<view class="nav">
				<view class="top">
					<u-search placeholder="搜索" input-align="center" v-model="keyword"></u-search>
					<view class="yc" @click="btnyc">上报异常</view>
				</view>
				<view class="tab">
					<u-tabs :list="list" :is-scroll="false" active-color="#1DBE7B" :current="current" @change="change"></u-tabs>
				</view>
			</view>
			
			<view class="list">
				<view class="list_val">
					<view class="wz">设备编号</view> <view class="gl">1023</view>
				</view>
				<view class="list_val">
					<view class="wz">故障原因</view> <view class="gl">弹出失败</view>
				</view>
				<view class="list_val">
					<view class="wz">备注</view> <view class="gl">设备没有弹出 点击没有反应啊实打实大啊实打实大所阿达阿达是的阿达阿达是的啊实打实大师大师大阿达阿达是的</view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '全部'
				}, {
					name: '弹出失败'
				}, {
					name: '卡槽损坏'
				}, {
					name: '设备破坏'
				}, {
					name: '仓位异常'
				}],
				current: 0
			}
		},
		methods: {
			change(index) {
				this.current = index;
			},
			
			btnyc(){
				uni.navigateTo({
					url:'/pages/agentpages/devicemanagement/failure/yichang/index'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: linear-gradient(180deg, #25CE88 0%, rgba(255, 255, 255, 0) 100%);
	}

	.page {
		width: 750rpx;
		position: fixed;
		top: 0;
		left: 0;
		.box{
			width: 750rpx;
			height: 1624rpx;
			background: #F4F5F7;
			.list{
				width: 680rpx;
				padding: 20rpx 40rpx;
				box-sizing: border-box;
				background-color: #fff;
				margin: auto;
				margin-top: 30rpx;
				border-radius: 24rpx;
				padding-bottom: 40rpx !important;
				.list_val{
					display: flex;
					margin-top: 20rpx;
					.wz{
						font-size: 28rpx;
						color: #3D3D3D;
						width: 120rpx;
						margin-right: 30rpx;
					}
					.gl{
						width: 500rpx;
						font-size: 28rpx;
						color: #808080;
						flex-wrap: wrap;
					}
				}
			}
			.nav{
				width: 750rpx;
				height: 180rpx;
				background: #FFFFFF;
				padding: 32rpx 36rpx;
				box-sizing: border-box;
				.top{
					.yc{
						width: 178rpx;
						height: 68rpx;
						background: #1DBE7B;
						border-radius: 20rpx;
						color: #FFFFFF;
						line-height: 68rpx;
						text-align: center;
						margin-left: 28rpx;
					}
					display: flex;
					justify-content: space-between;
					/deep/ .u-content{
						border: 1px solid #ccc;
						border-radius: 50rpx 0 0 50rpx  !important;
					}
					/deep/ .u-action{
						border-radius:  0 50rpx 50rpx 0   !important;
						width: 112rpx;
						height: 65rpx;
						line-height: 65rpx;
						border: 2rpx solid #ccc;
						margin-left: 0;
						color: #3D3D3D;
						background-color: #f2f2f2;
					}
				}
				.tab{
					/deep/ .u-tab-item{
						font-size: 24rpx !important;
						color: #3D3D3D;
					}
				}
			}
		}
	}
</style>