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
| <template>
| <div class="header_history">
| <div class="header_content">
| <div class="left_back" @click="$router.go(-1)"><img src="../../../assets/img/back.png" alt=""></div>
| <div class="right_mess"><span>{{ '' }}</span></div>
| <div class="right_back" @click="goOnline()">
| <img :src="Service" alt />
| </div>
| </div>
| </div>
| </template>
|
| <script>
| import Service from "@/assets/home/icon_talk.png";
| import * as api from "@/axios/api";
| export default {
| name: 'headers',
| props: ['mess'],
| data() {
| return {
| Service,
| onlineService: "",
| }
| },
| methods: {
|
| goOnline() {
| window.location.href = this.onlineService;
| },
| async getInfoSite() {
| let data = await api.getInfoSite()
| if (data.status === 0) {
| this.onlineService = data.data.onlineService
| } else {
| Toast(data.msg)
| }
| },
| },
| mounted() {
| this.getInfoSite()
| }
| }
| </script>
|
| <style scope lang="less">
| .header_history {
| width: 100%;
| height: 1.6256rem;
| display: flex;
| align-items: center;
|
| >div {
| width: 100%;
| height: 80%;
| display: flex;
| align-items: center;
| justify-content: space-between;
| padding-left: 0.2rem;
| padding-right: 0.2rem;
| }
|
| .left_back {
| width: .6513rem;
| height: 1.0513rem;
| display: flex;
| align-items: center;
| justify-content: center;
|
| }
|
| .right_back {
| width: 1.0513rem;
| height: 1.0513rem;
| display: flex;
| align-items: center;
| justify-content: center;
| }
|
| .right_mess {
| width: 60%;
| height: 100%;
| display: flex;
| justify-content: flex-end;
| align-items: center;
|
| >span {
| margin-right: .5128rem;
| }
| }
|
| img {
| width: 50%;
| height: 50%;
| }
| }
| </style>
|
|