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
| <!--
| * @Author: 张嘉彬
| * @Date: 2021-09-28 14:42:15
| * @Description:
| -->
| <template>
| <div>
| <!-- <div
| class="new_header"
| :style="{
| background: infoData.titleColor,
| height: infoData.height,
| zIndex: '99999',
| position: !infoData.fixedPosition ? 'fixed' : 'absolute',
| top: infoData.codeY,
| left: infoData.codeX,
| width: '100%',
| }"
| >
| <img
| v-if="infoData.titleImg"
| :src="infoData.titleImg"
| alt=""
| :style="{
| maxWidth: '100%',
| maxHeight: $setVw(44),
| zIndex: infoData.z,
| marginLeft: $setVw(10),
| }"
| />
| <div class="right_box">
| <img
| src="@/assets/images/product/header-scan.png"
| alt=""
| class="right_icon scan_img"
| :style="{
| marginRight: $setVw(10),
| }"
| />
| <img
| src="@/assets/images/product/header-msg.png"
| alt=""
| class="right_icon msg_img"
| :style="{
| marginRight: $setVw(10),
| }"
| />
| </div>
| </div> -->
| </div>
| </template>
|
| <script>
| export default {
| name: 'NewHeader',
| props: {
| infoData: {
| type: Object,
| default: () => {
| return {}
| }
| }
| },
| data () {
| return {}
| },
| created () {
| const params = {
| logoData: this.infoData
| }
| // 首页头部数据
| if (this.$root.isIos) {
| if (window.webkit) {
| window.webkit.messageHandlers.setMainLogo.postMessage(
| JSON.stringify(params.logoData)
| )
| }
| } else {
| if (window.wlyxls) {
| window.wlyxls.setMainLogo(JSON.stringify(params))
| }
| }
| }
| }
| </script>
|
| <style scoped>
| .new_header {
| display: flex;
| justify-content: space-between;
| align-items: center;
| }
| .right_icon {
| width: 38px;
| height: 38px;
| }
| </style>
|
|