foot_pinduoduo.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <footer>
  2. <?php
  3. $openhaitao = M('config')->where( array('name'=>'openhaitao') )->find();
  4. $is_openhaitao = $openhaitao['value'];
  5. $is_openhaitao = 0;
  6. ?>
  7. <?php if($is_openhaitao ==0 ){ ?>
  8. <style>
  9. .footer li{width:25%;}
  10. .footer {
  11. z-index: 10000!important;
  12. }
  13. .footer {
  14. width: 100%;
  15. max-width: 640px;
  16. height: 49px;
  17. position: fixed;
  18. bottom: 0;
  19. left: 50%;
  20. -webkit-transform: translate3d(-50%,0,0);
  21. transform: translate3d(-50%,0,0);
  22. overflow: hidden;
  23. background-color: #fff;
  24. }
  25. .footer:before {
  26. position: absolute;
  27. content: '';
  28. width: 100%;
  29. left: 0;
  30. top: 0;
  31. height: 1px;
  32. background-color: #e0e0e0;
  33. -webkit-transform: scaleY(.5);
  34. transform: scaleY(.5);
  35. -webkit-transform-origin: center bottom;
  36. transform-origin: center bottom;
  37. }
  38. .footer li {
  39. float: left;
  40. width: 20%;
  41. text-align: center;
  42. margin: auto;
  43. height: 100%;
  44. }
  45. .footer li {
  46. width: 25%;
  47. }
  48. .footer a, .footer a:focus, .footer a:hover {
  49. color: #777;
  50. font-size: 10px;
  51. }
  52. .footer .nav-controller {
  53. position: relative;
  54. height: 100%;
  55. display: block;
  56. }
  57. .fb {
  58. position: relative;
  59. }
  60. .footer .nav-controller i {
  61. display: block;
  62. font-size: 1.5em;
  63. margin-bottom: 3px;
  64. }
  65. .active .fb-class, .active .fb-home, .active .fb-oversea, .active .fb-rank, .active .fb-user, .fb-class, .fb-home, .fb-oversea, .fb-rank, .fb-user {
  66. background-size: auto 23px;
  67. content: "";
  68. height: 23px;
  69. margin: auto;
  70. width: 23px;
  71. margin-top: 6px;
  72. }
  73. </style>
  74. <?php } ?>
  75. <ul class="footer">
  76. <li onclick="location.href='{:U('Index/index')}';">
  77. <a id="footer_home" class="nav-controller <?php if($cur_page == 'index'){ ?>active<?php } ?>">
  78. <i class="fb fb-home" style="<?php if($cur_page == 'index'){ ?>background:url(__PUBLIC__/mogu/image/upload_29e515a6k59k937a3ej3l5e6bfji2_36x39.png) no-repeat 0 0;<?php }else{ ?> background:url(__PUBLIC__/mogu/image/upload_439ak5453ih43h5d2a109dhe71agg_36x39.png) no-repeat 0 0;<?php } ?>background-size:23px;"></i>
  79. 首页
  80. </a>
  81. </li>
  82. <?php if($is_openhaitao ==1 ){ ?>
  83. <li onclick="location.href='{:U('Haitao/index')}';">
  84. <a id="footer_oversea" class="nav-controller <?php if($cur_page == 'haitao'){ ?>active<?php } ?>">
  85. <i class="fb fb-oversea">
  86. </i>
  87. 海淘
  88. </a>
  89. </li>
  90. <?php } ?>
  91. <li onclick="location.href='{:U('Search/index')}';">
  92. <a id="footer_class" class="nav-controller <?php if($cur_page == 'search'){ ?>active<?php } ?>">
  93. <i class="fb fb-class" <?php if($cur_page == 'search'){ ?>style="background-position:0 0; background-image:url(__PUBLIC__/mogu/image/upload_488lbkj7ll3e92bg3ld1kh5k73l87_34x34.png);"<?php }else{ ?> style="background-position:0 0; background-image:url(__PUBLIC__/mogu/image/upload_3egkhdd8460el241d98kcl706ke65_34x34.png);" <?php } ?>></i>分类
  94. </a>
  95. </li>
  96. <li onclick="location.href='{:U('Cart/show_cart_goods')}';">
  97. <a id="footer_rank" class="nav-controller ">
  98. <i class="fb fb-rank" <?php if($cur_page == 'cart'){ ?>style="background-position:0 0; background-image:url(__PUBLIC__/mogu/image/upload_565i382k0hi45ek6chhj5603d41a8_40x38.png);"<?php }else{ ?> style="background-position:0 0; background-image:url(__PUBLIC__/mogu/image/upload_0eabagglh39aggl8jihfakfbf70a9_40x38.png);" <?php } ?>></i>购物车
  99. </a>
  100. </li>
  101. <li onclick="location.href='{:U('User/index')}';">
  102. <a id="footer_personal" class="nav-controller <?php if($cur_page == 'user'){ ?>active<?php } ?>">
  103. <i class="fb fb-user" <?php if($cur_page == 'user'){ ?>style="background-position:0 0; background-image:url(__PUBLIC__/mogu/image/idid_ifqtkztcgjstazrumezdambqgyyde_38x38.png);"<?php }else{ ?> style="background-position:0 0; background-image:url(__PUBLIC__/mogu/image/upload_5g85l55d280l94lfg678lcleegf5e_38x38.png);" <?php } ?>></i>个人中心
  104. </a>
  105. </li>
  106. </ul>
  107. </footer>
  108. <div class="go-top go_top_goods go_top_goods_list" style="bottom: -25%; opacity: 0;"><span>顶部</span></div>
  109. <script language="javascript">
  110. $(function(){
  111. var e = $(".go_top_goods"),
  112. o = $("body"),
  113. t = parseInt(.5 * o.height()),
  114. r = "-25%",
  115. n = "115px";
  116. e.click(function() {
  117. console.log(32);
  118. $("html,body").animate({
  119. scrollTop: 0
  120. }, 300)
  121. }), e.css({
  122. bottom: r,
  123. opacity: 0
  124. }), $(window).scroll(function() {
  125. if($(window).scrollTop() < t)
  126. {
  127. e.css({
  128. bottom: r,
  129. opacity: 0
  130. })
  131. } else{
  132. e.css({
  133. bottom: n,
  134. opacity: 1
  135. })
  136. }
  137. })
  138. })
  139. </script>
  140. </body>
  141. <html>