bannerView.html
4.15 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<div class="wrapper screen wrapper-goods">
</div>
<script type="text/template" id="kewwordTemplate">
<div class="clear goods-main">
<div class="left goods-left">
</div>
<div class="right goods-right">
<!--三类广告形式,第三类里有推荐品牌-->
<div class="goods-ad" id="ten_template_id">
<!--<?php if ($this->row['templet_id'] == 10){?> -->
[[if templetId == 10]]
<div>
<a href="[[url]]" target="_blank">
<img class="ad-img" src="[[bannerData.logo]]" /></a></div>
</div>
[[else if templetId == 11]]
<!--<?php }else if ($this->row['templet_id'] == 11){?>-->
<div class="goods-ad">
<div class="ad-text">
<div class="text-title center">
<p class="title">[[bannerData.title]]</p>
<p class="sub-title">[[bannerData.subtitle]]</p>
<p class="description">[[bannerData.intro]]</p>
</div>
<div class="text-list">
[[each bannerData.keyword as item index ]]
<a target="_blank" href="[[item.url]]">[[item.word]]</a>
[[/each]]
</div>
</div>
</div>
<!--<?php }else if ($this->row['templet_id'] == 12){?>-->
[[else if templetId == 12 ]]
<div class="goods-ad">
<div class="clear">
<div class="left ad-half">
<div class="ad-text">
<div class="text-title center">
<p class="title">[[bannerData.title]]</p>
<p class="sub-title">[[bannerData.subtitle]]</p>
<p class="description">[[bannerData.intro]]</p>
</div>
<div class="text-list">
[[each bannerData.keyword as item index ]]
<a target="_blank" href="[[item.url]]">[[item.word]]</a>
[[/each]]
</div>
</div>
</div>
<div class="right">
<a href="[[url]]" target="_blank">
<img class="ad-half-img" src="[[bannerData.logo]]" />
</a>
</div>
</div>
</div>
<!--<?php }?>-->
[[/if]]
</div>
</div>
</script>
<style type="text/css">
.wrapper-goods{
margin: 0 auto;
color: #222;
padding-bottom: 30px;
}
.goods-main {
margin-top: 15px;
}
.clear {
zoom: 1;
}
.goods-left {
width: 160px;
}
.left {
float: left;
}
.goods-right {
width: 970px;
}
.right {
float: right;
}
.goods-right .goods-ad {
margin-bottom: 20px;
}
.goods-right .goods-ad .ad-text {
width: 868px;
height: 298px;
padding: 0px 50px;
border: 1px solid #eaeceb;
}
.center {
text-align: center;
}
.goods-right .goods-ad .text-title .title {
font-size: 30px;
line-height: 30px;
font-weight: bold;
margin-top: 60px;
}
.goods-right .goods-ad .text-title .sub-title {
font-size: 14px;
font-weight: bold;
}
.goods-right .goods-ad .text-title .description {
margin-top: 15px;
color: #666;
}
.goods-right .goods-ad .text-list {
width: 440px;
margin: 30px auto 0 auto;
}
.goods-right .goods-ad .text-list a {
display: inline-block;
width: 110px;
height: 14px;
line-height: 14px;
margin-bottom: 4px;
color: #006699;
text-decoration: underline;
}
body {
font-family: arial,"Microsoft YaHei";
font-size: 12px;
background: #fff;
margin: 0;
color: #000;
text-align: left;
line-height: 150%;
}
.wrapper-goods {
margin: 0 auto;
color: #222;
padding-bottom: 30px;
}
@media (min-width: 1180px) {
.screen {
width: 1150px;
margin-left: auto;
margin-right: auto;
}
.goods-right .goods-ad .ad-half .ad-text {
width: 388px;
height: 298px;
}
.goods-right .goods-ad .ad-img {
width: 970px;
height: 300px;
}
.goods-right .goods-ad .ad-half-img {
width: 480px;
height: 300px;
}
}
.wrapper {
margin: 0 auto 15px auto;
}
html, body, div, ul, ol, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, input, p, blockquote, th, td, button, blockquote {
margin: 0;
padding: 0;
}
div {
display: block;
}
.goods-right .goods-ad {
margin-bottom: 20px;
}
a {
text-decoration: none;
color: #666;
outline: none;
}
a:-webkit-any-link {
color: -webkit-link;
text-decoration: underline;
cursor: auto;
}
</style>