checkTemp.vue 2.4 KB
<template>
	<view>
		<view class="checkTemp" :class="{noTop:checkIndex == 0}" v-for="(item,index) in keyList" :key="index">
			<view class="bottomWrap">
				<view class="bottomItem" :class="{bottomLine:(!item.show &&  index + 1 < keyList.length) || (!item.show && checkIndex + 1 < checkLength)}" @click="item.show = !item.show">
					<view class="bottomLeft">
						{{item.title}}
					</view>
					<view class="bottomRight">
						<image v-if="item.show" src="../static/image/icon_arrow_up.png" mode=""></image>
						<image v-if="!item.show" src="../static/image/icon_arrow.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="subCheckWrap" :id="'check_'+subItem.id" v-if="item.show" v-for="(subItem,subIndex) in item.subKeyList" :key="subIndex">
				<navigator class="subCheckItem" :url="'/pages/index/license/checkDetail?param='+subItem.param+'&companyid='+companyid" hover-class="none">
					<view style="display: flex;align-items: center;">
						<image class="jcnrImg" v-if="subItem.saved == 1" src="../static/image/icon_complete2.png" mode=""></image>
						{{subIndex+1+'.'}}{{subItem.title}}
					</view>
					<view class="subCheckRight">
						{{subItem.name}}
						<image src="../static/image/icon_arrow.png" mode=""></image>
					</view>
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:{
			keyList:{
				type:Array
			},
			checkIndex:{
				type:Number
			},
			checkLength:{
				type:Number
			},
			companyid:{
				type:String
			}
		},
		watch:{
			keyList(){
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.checkTemp{margin-top: 16rpx;}
	.checkTemp.noTop{margin-top: 0;}
	.bottomWrap{padding: 0 32rpx;background: #fff;}
	.bottomWrap .bottomItem{display: flex;justify-content: space-between;align-items: center;height: 104rpx;font-size: 30rpx;}
	.bottomItem.bottomLine{border-bottom: 2rpx solid #f2f3f5;}
	.bottomItem .bottomLeft{display: flex;align-items: center;}
	.bottomRight image{width: 32rpx;height: 32rpx;}
	.subCheckWrap{padding: 0 32rpx 0 64rpx;}
	.subCheckWrap .subCheckItem{display: flex;justify-content: space-between;align-items: center;height: 96rpx;color: #646566;font-size: 28rpx;}
	.subCheckItem .jcnrImg{width: 40rpx;height: 40rpx;margin-right: 10rpx;}
	.subCheckItem .subCheckRight{display: flex;align-items: center;}
	.subCheckRight image{width: 32rpx;height: 32rpx;}
</style>