modal-input-line.vue
3.44 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
138
139
<template>
<tui-modal :show="visible" padding="0px" background-color="transparent" @cancel="onCancel" :custom="true">
<view class="modal-input-line">
<view class="modal-input-line__content">
<view v-for="(item, index) in orderStationList" class="line-item">
<view>
<view class="tip tip-s" v-if="index === 0">起</view>
<view class="tip tip-e" v-else-if="index === orderStationList.length - 1">终</view>
<view class="tip tip-p" v-else>经</view>
<view class="tip-border" v-if="index !== orderStationList.length - 1"></view>
</view>
<view class="info">
<view class="address"> {{ item.address || '' }} </view>
<view class="node">
<text>{{ item.thruDeptName || '' }}</text>
<text v-if="item.workType === 1" class="n-tag n-tag-b">装</text>
<text v-if="item.workType === 2" class="n-tag n-tag-y">卸</text>
<view v-if="item.workType === 3" class="more-n">
<text class="n-tag n-tag-b">装</text>
<text class="n-tag n-tag-y">卸</text>
</view>
</view>
</view>
</view>
</view>
<view class="modal-input-line__footer">
<view class="btn" @click="onCancel">知道了</view>
</view>
</view>
</tui-modal>
</template>
<script>
export default {
name: 'modal-input-line',
props: {
orderStationList: {
type: Array,
default: [],
},
visible: Boolean,
},
methods: {
onCancel: function () {
this.$emit('update:visible', false);
},
},
};
</script>
<style lang="scss">
.modal-input-line {
background-color: #ffffff;
border-radius: 20upx;
padding: 49rpx 0 30rpx 0;
&__content {
padding: 0 20rpx 0 36rpx;
.line-item {
display: flex;
.tip {
width: 34rpx;
height: 34rpx;
border-radius: 50%;
text-align: center;
line-height: 34rpx;
font-size: 22rpx;
}
.tip-s {
background-color: #09acfe;
color: #ffffff;
}
.tip-e {
background-color: #fd7d07;
color: #ffffff;
}
.tip-p {
border: 2rpx solid #dddddd;
color: #999999;
}
.tip-border {
width: 1rpx;
height: 68rpx;
border: 3rpx solid #eef0f1;
margin: 8rpx 0 8rpx 15rpx;
}
.info {
margin-left: 15rpx;
.address {
margin-bottom: 12rpx;
color: #2b2a27;
font-size: 26rpx;
font-weight: 700;
}
.node {
color: #2b2a27;
font-size: 24rpx;
display: flex;
.more-n {
display: flex;
}
.n-tag {
display: flex;
justify-content: center;
align-items: center;
margin-left: 15rpx;
width: 32rpx;
height: 32rpx;
font-size: 22rpx;
border-radius: 8rpx;
}
}
}
}
}
&__footer {
display: flex;
justify-content: center;
margin-top: 32rpx;
.btn {
width: 564rpx;
height: 82rpx;
background: #2673fb;
border-radius: 14rpx;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
}
}
.n-tag-y {
color: #fd7d07;
background-color: #ffe9d6;
}
.n-tag-b {
color: #09acfe;
background-color: #ddf4ff;
}
}
</style>