receive-task.vue
2.2 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<template>
<view class="">
<block v-for="(it,i) in taskList" :key="i">
<view class="receive-task" :style="{background:activebg }" :class="{ active: nycolor,f_a :actv }">
<view class="left-task">
<text class="task-tit title_content1">{{it.taskname}}</text>
<text class="task-label title_content1">{{it.applydata[0].enterprisename}}</text>
</view>
<u-icon name="arrow-right" size="14" :color="nycolor?'#fff':'#666'"></u-icon>
</view>
</block>
</view>
</template>
<script>
export default {
props: {
iscolor: {
type: Boolean,
default: false,
},
actived: {
type: Boolean,
default: false,
},
list: {
type: Array,
default () {
return []
}
}
},
data() {
return {
nycolor: this.iscolor,
actv: this.actived,
activebg: '',
}
},
created() {
this.activebg = this.$store.state.txtcor || '#106FFF'
},
mounted() {
},
watch: {
iscolor(val, old) {
console.log(val);
this.nycolor = val
},
actived(val, old) {
this.actv = val
}
},
computed: {
taskList() {
return this.list
}
},
components: {
},
methods: {
},
}
</script>
<style scoped lang="scss">
.receive-task {
width: 100%;
display: flex;
align-items: center;
padding: 16px 0;
box-sizing: border-box;
border-top: 0.1px solid #EBEDF0;
.left-task {
flex: 1;
display: flex;
flex-direction: column;
.task-tit {
opacity: 1;
color: #000000;
font-size: 14px;
font-weight: 400;
font-family: "PingFang SC";
text-align: left;
line-height: 20px;
letter-spacing: 0;
}
.task-label {
opacity: 1;
color: rgba(0, 0, 0, 0.4);
font-size: 10px;
font-weight: 400;
font-family: "PingFang SC";
text-align: left;
line-height: 14px;
}
}
}
.active {
// background-color: #428DFF;
padding: 16px;
// border-radius: 6p
&:first-child {
border-radius: 6px 6px 0 0;
}
.left-task {
.task-tit,
.task-label {
color: #fff;
}
}
}
.f_a {
background-color: #fff !important;
}
</style>
<style>
</style>