checkTemp.vue
2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<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>