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
<template>
<div class="page-data">
<div class="page-title">
<slot name="header-left">
<div></div>
</slot>
<span class="header">{{ $route.meta.title }}</span>
<div class="header-right">
<slot name="header-right">
<header-button icon="arrow-left" type="no-line" @click="goBack()">
返回
</header-button>
</slot>
</div>
</div>
<div class="page-box">
<div class="box-card" shadow="never">
<template v-if="$slots.tab && $slots.tab.length">
<div class="tabList mb10">
<slot name="tab"> </slot>
</div>
</template>
<slot> </slot>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'standard',
props: {
total: {}
},
data() {
return {}
},
methods: {
goBack() {
this.$router.back()
}
}
}
</script>
<style lang="scss" scoped>
.page-data {
padding: 0 24px;
padding-bottom: 24px;
}
.card-box {
// background: #303133;
}
.header .box-card {
min-height: 80vh;
// background-color: #000;
}
.header {
font-size: 20px;
font-weight: 700;
color: #303133;
}
.page-title {
padding: 40px 0;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.header-right {
::v-deep .header-button {
margin-left: 24px;
}
}
</style>