...
|
...
|
@@ -40,14 +40,21 @@ |
|
|
<!--</volist>-->
|
|
|
<!--</select>-->
|
|
|
<div class="select">
|
|
|
<input type="text" value="中国" readonly="readonly">
|
|
|
<img src="__TMPL__/public/assets/starImg/down.png" alt="">
|
|
|
<ul style="height:300px;overflow-y: scroll;width:240px;">
|
|
|
<li>所有</li>
|
|
|
<volist name="city_name" id="vo">
|
|
|
<li value="{$vo.id}" <eq name="$vo.id" value="$city_id">selected</eq>>{$vo.name}</li>
|
|
|
</volist>
|
|
|
</ul>
|
|
|
<input type="hidden" value="{$cityName}" id="cityName">
|
|
|
<form method="GET" action="/portal/enjoy/index">
|
|
|
<input class="show_city" type="text" value="所有" readonly="readonly">
|
|
|
<img src="__TMPL__/public/assets/starImg/down.png" alt="">
|
|
|
<ul style="height:300px;overflow-y: scroll;width:240px;">
|
|
|
<li>所有</li>
|
|
|
<volist name="city_name" id="vo">
|
|
|
<li value="{$vo.id}">{$vo.name}</li>
|
|
|
</volist>
|
|
|
</ul>
|
|
|
<input type="hidden" value="0" name="city_id" id="city_id">
|
|
|
<div style="display:none;">
|
|
|
<input type="submit" id="city_submit"/>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--亲临现场-->
|
...
|
...
|
@@ -266,64 +273,70 @@ |
|
|
<script src="__TMPL__/public/assets/js/public.js"></script>
|
|
|
|
|
|
<script>
|
|
|
$('.select input').click(function() {
|
|
|
if ($(this).next('img').attr('src') == "__TMPL__/public/assets/starImg/down.png") {
|
|
|
$(this).next('img').attr('src', "__TMPL__/public/assets/starImg/up.png")
|
|
|
$('.select ul').toggle();
|
|
|
} else {
|
|
|
$(this).next('img').attr('src', "__TMPL__/public/assets/starImg/down.png")
|
|
|
$('.select ul').toggle();
|
|
|
$(function(){
|
|
|
var value = $('#cityName').val();
|
|
|
if(value != ''){
|
|
|
$('.show_city').val(value);
|
|
|
}else{
|
|
|
$('.show_city').val('所有');
|
|
|
}
|
|
|
|
|
|
});
|
|
|
$('.select input').click(function() {
|
|
|
if ($(this).next('img').attr('src') == "__TMPL__/public/assets/starImg/down.png") {
|
|
|
$(this).next('img').attr('src', "__TMPL__/public/assets/starImg/up.png")
|
|
|
$('.select ul').toggle();
|
|
|
} else {
|
|
|
$(this).next('img').attr('src', "__TMPL__/public/assets/starImg/down.png")
|
|
|
$('.select ul').toggle();
|
|
|
}
|
|
|
|
|
|
$('.select ul li').click(function() {
|
|
|
$('.select input').val($(this).text());
|
|
|
$('.select ul').hide();
|
|
|
var index = $(this).index();
|
|
|
$('.curren').eq(index).addClass('video_active').siblings().removeClass('video_active');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
var val = $('.select input').val();
|
|
|
var val2 = $('.select ul li:first-child').text();
|
|
|
val = val2;
|
|
|
$('.select input').val(val)
|
|
|
});
|
|
|
//点击下拉框事件
|
|
|
$('.select ul li').click(function() {
|
|
|
$('.show_city').val($(this).text());
|
|
|
$('.select ul').hide();
|
|
|
var index = $(this).index();
|
|
|
|
|
|
$('#city_id').val($(this).val());
|
|
|
$('.curren').eq(index).addClass('video_active').siblings().removeClass('video_active');
|
|
|
|
|
|
var swiper = new Swiper('.Spot_main .swiper-container', {
|
|
|
slidesPerView: 2,
|
|
|
spaceBetween: 50,
|
|
|
navigation: {
|
|
|
nextEl: '.Spot_main .swiper-button-next',
|
|
|
prevEl: '.Spot_main .swiper-button-prev',
|
|
|
},
|
|
|
$('form').submit();
|
|
|
});
|
|
|
|
|
|
});
|
|
|
var swipe = new Swiper('.Walker_main .swiper-container', {
|
|
|
navigation: {
|
|
|
nextEl: '.Walker .swiper-button-next',
|
|
|
prevEl: '.Walker .swiper-button-prev',
|
|
|
},
|
|
|
});
|
|
|
var swi = new Swiper('.Feast .swiper-container', {
|
|
|
slidesPerView: 3,
|
|
|
spaceBetween: 50,
|
|
|
navigation: {
|
|
|
nextEl: '.Feast .swiper-button-next',
|
|
|
prevEl: '.Feast .swiper-button-prev',
|
|
|
},
|
|
|
var swiper = new Swiper('.Spot_main .swiper-container', {
|
|
|
slidesPerView: 2,
|
|
|
spaceBetween: 50,
|
|
|
navigation: {
|
|
|
nextEl: '.Spot_main .swiper-button-next',
|
|
|
prevEl: '.Spot_main .swiper-button-prev',
|
|
|
},
|
|
|
|
|
|
});
|
|
|
var sw = new Swiper('.Sport .swiper-container', {
|
|
|
slidesPerView: 2,
|
|
|
spaceBetween: 50,
|
|
|
navigation: {
|
|
|
nextEl: '.Sport .swiper-button-next',
|
|
|
prevEl: '.Sport .swiper-button-prev',
|
|
|
},
|
|
|
});
|
|
|
var swipe = new Swiper('.Walker_main .swiper-container', {
|
|
|
navigation: {
|
|
|
nextEl: '.Walker .swiper-button-next',
|
|
|
prevEl: '.Walker .swiper-button-prev',
|
|
|
},
|
|
|
});
|
|
|
var swi = new Swiper('.Feast .swiper-container', {
|
|
|
slidesPerView: 3,
|
|
|
spaceBetween: 50,
|
|
|
navigation: {
|
|
|
nextEl: '.Feast .swiper-button-next',
|
|
|
prevEl: '.Feast .swiper-button-prev',
|
|
|
},
|
|
|
|
|
|
});
|
|
|
var sw = new Swiper('.Sport .swiper-container', {
|
|
|
slidesPerView: 2,
|
|
|
spaceBetween: 50,
|
|
|
navigation: {
|
|
|
nextEl: '.Sport .swiper-button-next',
|
|
|
prevEl: '.Sport .swiper-button-prev',
|
|
|
},
|
|
|
|
|
|
});
|
|
|
});
|
|
|
|
|
|
</script>
|
...
|
...
|
|