File tree 2 files changed +42
-3
lines changed
2 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 11
11
target =" _blank"
12
12
>
13
13
<img
14
- width = " 34 "
14
+ height = " 51 "
15
15
src =" https://cdn.tipe.io/tipe/tipe-cat-no-text.svg"
16
16
alt =" tipe"
17
17
>
18
18
</a >
19
19
</li >
20
+ <li
21
+ v-if =" isEffective(effectiveTime.bmatch)"
22
+ class =" sponsorsItem"
23
+ >
24
+ <a
25
+ href =" https://www.bmatch.tech/?ref=ant-design-vue"
26
+ target =" _blank"
27
+ >
28
+ <img
29
+ height =" 61"
30
+ src =" https://cdn.nlark.com/yuque/0/2019/png/87084/1552279877057-assets/web-upload/48a6ba91-6750-478c-956f-57aedb632fe5.png"
31
+ alt =" bmatch"
32
+ >
33
+ </a >
34
+ </li >
20
35
</ul >
21
36
</div >
22
37
</div >
23
38
</template >
24
39
<script >
40
+ import moment from ' moment' ;
25
41
export default {
26
42
props: [' title' ],
43
+ data () {
44
+ return {
45
+ top: 50 ,
46
+ effectiveTime : {
47
+ bmatch: {
48
+ start: ' 2019-03-11' ,
49
+ end: ' 2019-06-11' ,
50
+ },
51
+ },
52
+ };
53
+ },
54
+ methods: {
55
+ isEffective ({start, end}){
56
+ return moment ().isBetween (start, end);
57
+ },
58
+ },
27
59
};
28
60
</script >
Original file line number Diff line number Diff line change 120
120
display : none ;
121
121
}
122
122
}
123
+ .snd-ad {
124
+ padding-bottom : 10px ;
125
+ }
123
126
.sponsorsWrap {
124
127
padding-left : 40px ;
125
128
position : relative ;
130
133
}
131
134
ul {
132
135
overflow : hidden ;
133
- margin-top : 5px ;
136
+ margin-top : 15px ;
137
+ li {
138
+ position : relative ;
139
+ }
134
140
}
135
141
.sponsorsItem {
136
142
display : inline-block ;
137
- margin-right : 8px ;
143
+ margin-right : 10px ;
144
+ height : 51px ;
138
145
}
139
146
}
140
147
#nav {
You can’t perform that action at this time.
0 commit comments