header.vue
1.52 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
<template>
<div class="detail-header-wrapper">
<div class="count-down-wrapper" v-if="statusDetail.status === 0">
<p class="status">{{ statusDetail.statuStr }}</p>
<count-down
class="count-down"
:leftTime="statusDetail.leftTime"
:isShowIcon="false"
/>
<p class="status-desc">{{ statusDetail.detailDesc }}</p>
</div>
<div class="status-info" v-else>
<p class="status">{{ statusDetail.statuStr }}</p>
<p class="status-desc">{{ statusDetail.detailDesc }}</p>
</div>
</div>
</template>
<script>
import { createNamespacedHelpers } from "vuex";
import CountDown from "../../components/count-down";
const { mapGetters } = createNamespacedHelpers("order/orderDetail");
export default {
components: {
CountDown
},
computed: {
...mapGetters(["statusDetail"])
}
};
</script>
<style lang="scss" scoped>
.detail-header-wrapper {
letter-spacing: 0;
margin-top: 10px;
margin-bottom: 40px;
.count-down-wrapper {
display: flex;
flex-direction: column;
align-items: center;
font-size: 24px;
.status {
font-size: 36px;
}
.count-down {
font-size: 72px;
}
.status-desc {
color: #999;
margin-top: 20px;
}
}
.status-info {
margin-bottom: 40px;
.status {
font-size: 68px;
color: #000;
letter-spacing: 0.82px;
line-height: 82px;
font-weight: bold;
}
.status-desc {
color: #999;
letter-spacing: 0;
margin-top: 30px;
}
}
}
</style>