|
@@ -20,12 +20,18 @@ |
|
@@ -20,12 +20,18 @@ |
20
|
</head>
|
20
|
</head>
|
21
|
|
21
|
|
22
|
<body>
|
22
|
<body>
|
|
|
23
|
+ <!-- 侧边 -->
|
|
|
24
|
+ <div class="index_sidebar">
|
|
|
25
|
+ <img src="__TMPL__/public/assets/starImg/aicon_24.png" alt="">
|
|
|
26
|
+ <img class="index_scrollTop" src="__TMPL__/public/assets/starImg/aicon_25.png" alt="">
|
|
|
27
|
+ </div>
|
23
|
<!-- 头部 -->
|
28
|
<!-- 头部 -->
|
24
|
<include file="public@header"/>
|
29
|
<include file="public@header"/>
|
25
|
<!-- banner -->
|
30
|
<!-- banner -->
|
26
|
<div id="banner">
|
31
|
<div id="banner">
|
27
|
<img src="__TMPL__/public/assets/starImg/aicon_01.png" alt="">
|
32
|
<img src="__TMPL__/public/assets/starImg/aicon_01.png" alt="">
|
28
|
</div>
|
33
|
</div>
|
|
|
34
|
+
|
29
|
<!-- 首页主体内容 -->
|
35
|
<!-- 首页主体内容 -->
|
30
|
<div id="star_main">
|
36
|
<div id="star_main">
|
31
|
<!-- 星球奇境 -->
|
37
|
<!-- 星球奇境 -->
|
|
@@ -717,14 +723,28 @@ |
|
@@ -717,14 +723,28 @@ |
717
|
<script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script>
|
723
|
<script src="__TMPL__/public/assets/js/swiper4/swiper.min.js"></script>
|
718
|
<script src="__TMPL__/public/assets/js/public.js"></script>
|
724
|
<script src="__TMPL__/public/assets/js/public.js"></script>
|
719
|
<script>
|
725
|
<script>
|
|
|
726
|
+ // 点击返回头部
|
|
|
727
|
+ $(window).scroll(function() {
|
|
|
728
|
+ if ($(window).scrollTop() > 2000) {
|
|
|
729
|
+ $('.index_scrollTop').fadeIn();
|
|
|
730
|
+ } else {
|
|
|
731
|
+ $('.index_scrollTop').fadeOut();
|
|
|
732
|
+ }
|
|
|
733
|
+ })
|
|
|
734
|
+ $('.index_scrollTop').click(function() {
|
|
|
735
|
+ $('html,body').animate({
|
|
|
736
|
+ scrollTop: 0
|
|
|
737
|
+ }, 'slow')
|
|
|
738
|
+ });
|
|
|
739
|
+
|
720
|
// 星球奇景
|
740
|
// 星球奇景
|
721
|
- $('.africa p,.asia p,.north p,.south p,.antarctica p,.europe p,.oceania p').click(function() {
|
|
|
722
|
- if ($(this).prev('img').attr('src') == "__TMPL__/public/assets/starImg/aicon_41.png") {
|
|
|
723
|
- $(this).prev('img').attr('src', "__TMPL__/public/assets/starImg/aicon_42.png");
|
|
|
724
|
- $(this).next('ul').show();
|
741
|
+ $('.star_happy em').hover(function() {
|
|
|
742
|
+ if ($(this).children('img').attr('src') == "__TMPL__/public/assets/starImg/aicon_41.png") {
|
|
|
743
|
+ $(this).children('img').attr('src', "__TMPL__/public/assets/starImg/aicon_42.png");
|
|
|
744
|
+ $(this).children('.star_happy_box').show();
|
725
|
} else {
|
745
|
} else {
|
726
|
- $(this).prev('img').attr('src', "__TMPL__/public/assets/starImg/aicon_41.png");
|
|
|
727
|
- $(this).next('ul').hide();
|
746
|
+ $(this).children('img').attr('src', "__TMPL__/public/assets/starImg/aicon_41.png");
|
|
|
747
|
+ $(this).children('.star_happy_box').hide();
|
728
|
}
|
748
|
}
|
729
|
});
|
749
|
});
|
730
|
// tab切换
|
750
|
// tab切换
|