...
|
...
|
@@ -20,12 +20,18 @@ |
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<!-- 侧边 -->
|
|
|
<div class="index_sidebar">
|
|
|
<img src="__TMPL__/public/assets/starImg/aicon_24.png" alt="">
|
|
|
<img class="index_scrollTop" src="__TMPL__/public/assets/starImg/aicon_25.png" alt="">
|
|
|
</div>
|
|
|
<!-- 头部 -->
|
|
|
<include file="public@header"/>
|
|
|
<!-- banner -->
|
|
|
<div id="banner">
|
|
|
<img src="__TMPL__/public/assets/starImg/aicon_01.png" alt="">
|
|
|
</div>
|
|
|
|
|
|
<!-- 首页主体内容 -->
|
|
|
<div id="star_main">
|
|
|
<!-- 星球奇境 -->
|
...
|
...
|
@@ -717,14 +723,28 @@ |
|
|
<script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/public.js"></script>
|
|
|
<script>
|
|
|
// 点击返回头部
|
|
|
$(window).scroll(function() {
|
|
|
if ($(window).scrollTop() > 2000) {
|
|
|
$('.index_scrollTop').fadeIn();
|
|
|
} else {
|
|
|
$('.index_scrollTop').fadeOut();
|
|
|
}
|
|
|
})
|
|
|
$('.index_scrollTop').click(function() {
|
|
|
$('html,body').animate({
|
|
|
scrollTop: 0
|
|
|
}, 'slow')
|
|
|
});
|
|
|
|
|
|
// 星球奇景
|
|
|
$('.africa p,.asia p,.north p,.south p,.antarctica p,.europe p,.oceania p').click(function() {
|
|
|
if ($(this).prev('img').attr('src') == "__TMPL__/public/assets/starImg/aicon_41.png") {
|
|
|
$(this).prev('img').attr('src', "__TMPL__/public/assets/starImg/aicon_42.png");
|
|
|
$(this).next('ul').show();
|
|
|
$('.star_happy em').hover(function() {
|
|
|
if ($(this).children('img').attr('src') == "__TMPL__/public/assets/starImg/aicon_41.png") {
|
|
|
$(this).children('img').attr('src', "__TMPL__/public/assets/starImg/aicon_42.png");
|
|
|
$(this).children('.star_happy_box').show();
|
|
|
} else {
|
|
|
$(this).prev('img').attr('src', "__TMPL__/public/assets/starImg/aicon_41.png");
|
|
|
$(this).next('ul').hide();
|
|
|
$(this).children('img').attr('src', "__TMPL__/public/assets/starImg/aicon_41.png");
|
|
|
$(this).children('.star_happy_box').hide();
|
|
|
}
|
|
|
});
|
|
|
// tab切换
|
...
|
...
|
|