order.vue
1.56 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
<template>
<div class="orders">
<div v-for="(value, key) in getOrderNums" :key="key" @click="goPage(value.page)" class="order-cell">
<p class="order-num">{{value.num}}</p>
<p class="order-text">{{value.name}}</p>
</div>
</div>
</template>
<script>
import {createNamespacedHelpers} from 'vuex';
const {mapGetters, mapActions} = createNamespacedHelpers('home/mine');
export default {
name: 'order',
props: {
},
data() {
return {
};
},
computed: {
...mapGetters(['getOrderNums'])
},
mounted() {
},
methods: {
goPage({name, status}) {
this.$router.push({
name,
params: {
owner: 'buy',
status
}
})
}
}
};
</script>
<style lang="scss" scoped>
.orders {
display: flex;
height: 100px;
justify-content: space-between;
}
.order-cell {
flex: 1;
justify-content: center;
align-items: center;
&:not(:last-child) {
position: relative;
&::after {
content: '';
position: absolute;
width: 1px;
height: 80px;
top: 10px;
right: 0;
background: linear-gradient(#fff, #F0F0F0,#fff)
}
}
}
.order-num {
font-family: 'Alte DIN 1451 Mittelschrift';
font-size: 32px;
text-align: center;
}
.order-text {
padding-top: 10px;
font-size: 24;
color: #444;
text-align: center;
}
</style>