-
Notifications
You must be signed in to change notification settings - Fork 0
/
product1_modal.html
317 lines (239 loc) · 9.52 KB
/
product1_modal.html
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<section class="modal" id="product_modal">
<div class="modal_data custom_scroll_wrap">
<div class="custom_scroll">
<div class="product_info">
<div class="images">
<div class="stickers">
<div class="sticker new">новинка</div>
<div class="sticker popular">популярная</div>
<div class="sticker status_yes">в наличие</div>
<div class="sticker status_no">под заказ</div>
<div class="sticker sale">sale</div>
</div>
<div class="big">
<div class="slider owl-carousel carousel">
<div class="slide">
<a href="images/tmp/product_img.jpg" class="fancy_img" data-fancybox="product">
<img data-src="images/tmp/product_img.jpg" alt="" class="lozad">
</a>
</div>
<div class="slide">
<a href="images/tmp/product_img.jpg" class="fancy_img" data-fancybox="product">
<img data-src="images/tmp/product_img.jpg" alt="" class="lozad">
</a>
</div>
<div class="slide">
<a href="images/tmp/product_img.jpg" class="fancy_img" data-fancybox="product">
<img data-src="images/tmp/product_img.jpg" alt="" class="lozad">
</a>
</div>
<div class="slide">
<a href="images/tmp/product_img.jpg" class="fancy_img" data-fancybox="product">
<img data-src="images/tmp/product_img.jpg" alt="" class="lozad">
</a>
</div>
</div>
</div>
<div class="thumbs">
<button data-slide-index="0" class="active">
<div class="img">
<img data-src="images/tmp/product_thumbs_img.jpg" alt="" class="lozad">
</div>
</button>
<button data-slide-index="1">
<div class="img">
<img data-src="images/tmp/product_thumbs_img2.jpg" alt="" class="lozad">
</div>
</button>
<button data-slide-index="2">
<div class="img">
<img data-src="images/tmp/product_thumbs_img3.jpg" alt="" class="lozad">
</div>
</button>
<button data-slide-index="3">
<div class="img">
<img data-src="images/tmp/product_thumbs_img4.jpg" alt="" class="lozad">
</div>
</button>
</div>
</div>
<div class="data">
<div class="name">Напольная</div>
<div class="features2">
<div>Размер: <b>160x80x76</b></div>
<div>Материал: <b>береза, бук, дуб.</b></div>
<div>Срок изготовления: <b>7 дней</b></div>
<div>Размер: <b>160x80x76</b></div>
<div>Материал: <b>береза, бук, дуб.</b></div>
</div>
<div class="color">
<div>Цвет:</div>
<div class="items">
<input type="radio" name="color" id="color_check1" checked>
<label for="color_check1">
<img src="images/tmp/product_color1.jpg" alt="">
</label>
<input type="radio" name="color" id="color_check2">
<label for="color_check2">
<img src="images/tmp/product_color2.jpg" alt="">
</label>
<input type="radio" name="color" id="color_check3">
<label for="color_check3">
<img src="images/tmp/product_color3.jpg" alt="">
</label>
<input type="radio" name="color" id="color_check4">
<label for="color_check4">
<img src="images/tmp/product_color4.jpg" alt="">
</label>
</div>
</div>
<div class="information">
<div>
<div class="link">3Д-модель</div>
<div class="tooltip">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod</div>
</div>
<div>
<div class="link">Оплата</div>
<div class="tooltip">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod</div>
</div>
<div>
<div class="link">Обзор</div>
<div class="tooltip">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod</div>
</div>
<div>
<div class="link">Доставка</div>
<div class="tooltip">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod</div>
</div>
</div>
<div class="consult">
Мы можем вас проконсультировать, звоните <a href="tel:84957050861">84957050861</a>
</div>
<div class="price">
<div>Цена:</div>
<div class="old">от <span>14.999</span> руб.</div>
<div class="new">от <span>12.999</span> руб.</div>
<div class="economy">Экономия <span>2.000 руб.</span></div>
</div>
</div>
</div>
<div class="calc" id="calc">
<div class="block_title">Калькулятор</div>
<form action="">
<input type="hidden" name="total_price" value="12.999">
<input type="hidden" name="product_name" value="Напольная">
<div class="line">
<div class="field">
<select name="" id="material">
<option value="1" data-content="Береза <span>+0 руб.</span>" data-price="0" data-material="1" selected></option>
<option value="2" data-content="Вариант 1 <span>+2500 руб.</span>" data-price="2500" data-material="2"></option>
<option value="3" data-content="Вариант 2 <span>+3500 руб.</span>" data-price="3500" data-material="3">
</select>
<div class="label">Материал</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Не нужны</option>
<option value="1" data-content="Нужны <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
</select>
<div class="label">Выдвижные ящики</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Выбрать</option>
<option value="1" data-content="Вариант 1 <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
<option value="2" data-content="Вариант 2 <span>+3500 руб.</span>" data-price="3500" data-material="2">
</select>
<div class="label">Размер</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Не нужны</option>
<option value="1" data-content="Нужны <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
</select>
<div class="label">Борта</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Выбрать</option>
<option value="1" data-content="Вариант 1 <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
<option value="2" data-content="Вариант 2 <span>+3500 руб.</span>" data-price="3500" data-material="2">
</select>
<div class="label">Цвет</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Не нужен</option>
<option value="1" data-content="Нужен <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
</select>
<div class="label">Матрас</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Не нужны</option>
<option value="1" data-content="Нужны <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
</select>
<div class="label">Выдвижные ящики</div>
</div>
</div>
<div class="line">
<div class="field">
<select name="">
<option value="0" data-price="0" data-material="any">Не нужна</option>
<option value="1" data-content="Нужна <span>+2500 руб.</span>" data-price="2500" data-material="1"></option>
</select>
<div class="label">Сборка</div>
</div>
</div>
</form>
<div class="bottom">
<div class="total_price">Итого: <span>12 999</span> руб.</div>
<button class="link modal_link" data-content="#order_modal">
<span>Заказать</span>
</button>
</div>
</div>
</div>
</div>
<script>
$(function() {
// Карточка товара
$product_info = $('.product_info .images .big .slider').owlCarousel({
items: 1,
margin: 20,
loop: true,
dots: false,
nav: true,
smartSpeed: 500,
onTranslate: function(event){
let currentIndex = event.item.index - event.relatedTarget._clones.length / 2
$('.product_info .images .thumbs > *').removeClass('active')
$('.product_info .images .thumbs > *:eq('+ currentIndex +')').addClass('active')
}
})
$('.product_info .images .thumbs > *').click(function(e) {
e.preventDefault()
$('.product_info .images .thumbs > *').removeClass('active')
$product_info.trigger('to.owl.carousel', $(this).data('slide-index'))
$(this).addClass('active')
})
// Кастомный select
$('select').niceSelect()
// Калькулятор
initCalc()
// Заголовок для всплывашки заказа
$('#order_modal .modal_title span').text('"' + $('#product_modal .calc input[name="product_name"]').val() + '"')
})
</script>
</section>