<template>
	<view class="proinfo lamp">
		<text class="title">产品信息</text>
		<view class="itemcontent">
			<view class="item" @click="proDetail('productDes')">
				<image class="img" src="/static/images/6155/DeviceDetail/param.png" mode="aspectFit"></image>
				<text class="txt">产品参数</text>
			</view>
			<view class="item" @click="proDetail('operatingInstruct')">
				<image class="img" src="/static/images/6155/DeviceDetail/remark.png" mode="aspectFit"></image>
				<text class="txt">操作说明</text>
			</view>
			<view class="item" @click="proDetail('operationVideo')">
				<image class="img" src="/static/images/6155/DeviceDetail/video.png" mode="aspectFit"></image>
				<text class="txt">操作视频</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"ProParams",
		props:{
			id: {
				type: String,
				default: '0'
			},
		},
	
		methods:{
			proDetail: function(pgetpe) {
				let id=(this.id ? this.id : 0);
				if(id===0){
					console.error("id=0,不跳转")
					return;
				}
				let url = '/pages/common/' + pgetpe + '/index?id=' + id;
			
				uni.navigateTo({
					url: url,
					fail(ex) {
						console.error(ex);
					}
				});
			}
		}
	}
</script>

<style>
.proinfo .itemcontent {
		display: flex;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-content: center;
		justify-content: space-evenly;
	}

	.proinfo .item {
		width: 180rpx;
		height: 180rpx;
		box-sizing: border-box;
		padding: 40rpx;
		border-radius: 16rpx;
		background: rgba(26, 26, 26, 1);
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-content: center;
		justify-content: center;
		align-items: center;
	}

	.proinfo .item .img {
		width: 50rpx;
		height: 50rpx;


	}

	.proinfo .item .txt {
		color: rgba(255, 255, 255, 0.6);
		font-family: PingFang SC;
		font-size: 24rpx;
		font-weight: 400;
		margin-top: 20rpx;
		letter-spacing: 0.07px;
		text-align: left;
	}
	
	.lamp {
		margin-top: 24rpx;
	}
	
	.lamp .title {
		width: 100%;
		height: 60rpx;
		line-height: 60rpx;
		padding: 0rpx 28rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-content: center;
		justify-content: space-between;
		align-items: center;
		font-size: 28rpx;
		color: #FFFFFF;
	}
</style>