<template>
	<view class="container">
		<u-navbar leftIconColor="#fff" titleStyle="color:#fff;fontSize:36rpx;" :autoBack="true" bgColor="#2C6FF3"
			:placeholder="true" title="常见错误码"></u-navbar>
		<scroll-view scroll-y="true" scroll-with-animation="true" lower-threshold="100">
			<view class="log-item" v-for="(item,index) in logs" :key="index">
				<view class="logs">
					<view class="name">错误码</view>
					<view class="val">{{item.code}}</view>
				</view>
				<view class="logs">
					<view class="name">错误描述</view>
					<view class="val">{{item.describe}}</view>
				</view>
				<view class="logs">
					<view class="name">建议处理方案</view>
					<view class="val">{{item.deal}}</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	import {
		byId,
		orderLogs,
		refundDetail
	} from "@/api/order/order.js"
	export default {
		data() {
			return {
				logs: [
					{
						code:'IPC1001',
						describe:'IPC子板无法连接',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'IPC1002',
						describe:'IPC子板网络连接正常，但无法通讯',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'IPC1101',
						describe:'IPC无法识别摄像头',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'CTRL1001',
						describe:'控制板无法连接',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'CTRL1002',
						describe:'控制板网络连接正常，但无法通讯',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'CTRL1102',
						describe:'电插锁发送关门命令后锁芯无法落下',
						deal:'请检查柜门是否关到位，如无法顺畅关门，请报修；'
					},
					{
						code:'TRA1001',
						describe:'在非交易状态下检测到门处于开启状态',
						deal:'请检查柜门是否关到位，如无法顺畅关门，请报修；'
					},
					{
						code:'Z1002',
						describe:'刷脸摄像头异常，请重启设备后再试（Z1002）',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'Z1020',
						describe:'刷脸摄像头异常，请重启设备后再试（Z1020）',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'Z1021',
						describe:'刷脸摄像头异常，请重启设备后再试（Z1021）',
						deal:'请重启设备，若故障未恢复，请报修；'
					},
					{
						code:'LCN1001',
						describe:'网络问题/后台服务器无法连接',
						deal:'请检查网络连接，切换可用网络；'
					},
					{
						code:'HRD1002',
						describe:'设备断电',
						deal:'设备断电，请到现场恢复供电'
					},
					{
						code:'33019',
						describe:'用户授权异常（上一笔交易未结束，或存在未解约的协议）',
						deal:'账号存在未解约协议，请联系商户处理'
					},
					{
						code:'33004',
						describe:'找不到商品列表',
						deal:'设备未配置商品'
					},
					{
						code:'33005',
						describe:'商品列表下没有商品',
						deal:''
					},
					{
						code:'33015',
						describe:'授权处理超时',
						deal:''
					}
				]
			}
		},
		onLoad(o) {
			
		},
		methods: {

		},
	}
</script>

<style scoped lang="scss">
	.container {
		padding: 24rpx;
		line-height: 50rpx;

		.text {
			color: #2C6FF3;
		}

		.log-item {
			width: 702rpx;
			margin-bottom: 50rpx;

			.logs {
				overflow: hidden;
				width: 100%;
			}

			.name {
				float: left;
				margin-right: 24rpx;
				width: 26%;
				color: gray;
			}

			.val {
				float: left;
				word-wrap: break-word;
				word-break: break-all;
				width: 70%;
			}
		}
	}
</style>