<template>

	<view class="">
		<view class="cu-list menu-avatar">
			<view class="cu-item deviceTypeItem" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in deviceData"
			 :key="index" :data-target="'move-box-' + index" @tap="goDeviceDetail">
				<view class="cu-avatar round lg" :style="`background-image:url(${item.imgUrl})`"></view>
				<view class="content" >
					<view class="">{{item.title}}</view>
				</view>
				<view class="nav-right num">
					<view class="text-grey">
						<text class="icon iconfont margin-right-xs margin-left-lg">&#xe629;</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				deviceData: [{
						imgUrl: '../../static/jx.png',
						title: '进线一',
					}, {
						imgUrl: '../../static/jx.png',
						title: '进线二',
					}
				],
				modalName: null,
			};
		},
		methods: {
			
			// 页面跳转
			goDeviceDetail() {
				uni.navigateTo({
					url: '/pages/deviceManage/deviceDetail/deviceDetail',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			},
			



		}

	}
</script>

<style lang="scss">
	.cu-list.menu-avatar>.cu-item .content>uni-view:first-child {
		font-size: 32rpx;
	}

	.num {
		font-size: 30rpx;
		color: #666;
	}
</style>
