Result.vue
3.37 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
140
141
142
143
144
<template>
<div class="result">
<div>
<a-icon :class="[isSuccess ? 'success' : 'error' ,'icon']" :type="isSuccess ? 'check-circle' : 'close-circle'"/>
</div>
<div class="title" v-if="title">{{ title }}</div>
<div class="description" v-if="description">{{ description }}</div>
<div class="content" v-if="content">
<div align="left" v-if="time">预约时间: {{ time }}</div>
<!-- <div align="left">预约时间:2022-05-10 3:00-4:00</div>-->
<div align="left" v-if="orderCode">订单编码: {{ orderCode }}</div>
<div align="left" v-if="contactNumber">联系电话: {{ contactNumber }}</div>
<div align="left" v-if="railwayPlatform">月台分组: {{ railwayPlatform }}</div>
<div align="left" v-if="railwayPlatformDetails">月台详情: {{ railwayPlatformDetails }}</div>
<div align="left" v-if="carNumber">车牌号码: {{ carNumber }}</div>
<div align="left" v-if="itemName">货物名称: {{ itemName }}</div>
</div>
<div class="action">
<slot name="action"></slot>
</div>
</div>
</template>
<script>
export default {
name: "Result",
props: {
isSuccess: {
type: Boolean,
default: false
},
title: {
type: String,
default: ''
},
description: {
type: String,
default: ''
},
content: {
type: Boolean,
default: true
},
orderCode: {
type: String,
default: ''
},
contactNumber: {
type: String,
default: ''
},
time: {
type: String,
default: ''
},
railwayPlatform: {
type: String,
default: ''
},
railwayPlatformDetails:{
type: String,
default: ''
},
carNumber:{
type: String,
default: ''
}
,itemName:{
type: String,
default: ''
}
},
created(){
this.description = this.$route.query.description;
this.orderCode = this.$route.query.orderCode;
this.contactNumber = this.$route.query.contactNumber;
this.time = this.$route.query.time;
this.railwayPlatform = this.$route.query.railwayPlatform;
this.title = this.$route.query.title;
this.railwayPlatformDetails = this.$route.query.railwayPlatformDetails;
this.carNumber = this.$route.query.carNumber;
this.itemName = this.$route.query.itemName;
},
methods:{
loadData(data){
debugger
},
close(){
window.close();
}
}
}
</script>
<style lang="less" scoped>
.result {
text-align: center;
width: 72%;
margin: 0 auto;
padding: 24px 0 8px;
.icon {
font-size: 72px;
line-height: 72px;
margin-bottom: 24px;
}
.success {
color: #52c41a;
}
.error {
color: red;
}
.title {
font-size: 24px;
color: rgba(0, 0, 0, .85);
font-weight: 500;
line-height: 32px;
margin-bottom: 16px;
}
.description {
font-size: 14px;
line-height: 22px;
color: rgba(0, 0, 0, 0.45);
margin-bottom: 24px;
}
.content {
background: #fafafa;
padding: 24px 10px;
border-radius: 2px;
text-align: left;
}
.action {
margin-top: 32px;
}
}
.mobile {
.result {
width: 100%;
margin: 0 auto;
padding: unset;
}
}
</style>