index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <extend name="Public:pinduoduobase" />
  2. <block name="content">
  3. <link rel="stylesheet" href="__PUBLIC__/pinduoduo/assets/css/index.css">
  4. <div id="main">
  5. <div id="index-content" class="container">
  6. {$item_content_html}
  7. </div>
  8. </div>
  9. <style>
  10. <?php if(!empty($special_info['special_bgcolor'])){ ?>
  11. .container{background-color:<?php echo $special_info['special_bgcolor']; ?>; }
  12. <?php } ?>
  13. <?php if(!empty($special_info['special_bgimage'])){ ?>
  14. .container{background:url(/Uploads/image/<?php echo $special_info['special_bgimage']; ?>) repeat 0 0; }
  15. <?php } ?>
  16. .index_ad_list{margin-top:1px;}
  17. .m-component-download {
  18. padding: 10px;
  19. background: #fff;
  20. position: relative;
  21. overflow: hidden;
  22. }
  23. .pull-left {
  24. float: left;
  25. }
  26. .m-component-download .m-img {
  27. display: inline;
  28. width: 50px;
  29. height: 50px;
  30. }
  31. .m-component-download .m-tips {
  32. float: left!important;
  33. margin: 4px 0 0 10px;
  34. font-size:15px;
  35. }
  36. .pull-right {
  37. float: right;
  38. }
  39. .m-component-download .m-btn {
  40. margin: 4px 0 0 10px;
  41. }
  42. .m-component-download .app_btn, .m-component-download .tf_app_btn {
  43. color: #fff;
  44. background-color: #5cb85c;
  45. border-color: #4cae4c;
  46. display: inline-block;
  47. margin-bottom: 0;
  48. font-weight: 400;
  49. text-align: center;
  50. vertical-align: middle;
  51. -ms-touch-action: manipulation;
  52. touch-action: manipulation;
  53. cursor: pointer;
  54. background-image: none;
  55. border: 1px solid transparent;
  56. white-space: nowrap;
  57. font-size: 14px;
  58. line-height: 1.42857143;
  59. border-radius: 4px;
  60. }
  61. .m-component-download .app_btn {
  62. padding: 6px 12px;
  63. }
  64. #banner{height:auto;}
  65. .banner-focus {
  66. width: 100%;
  67. height: 10px;
  68. position: absolute;
  69. bottom: 15px;
  70. overflow: hidden;
  71. z-index: 10000
  72. }
  73. .banner-focus .banner-hd {
  74. width: 100%;
  75. height: 10px;
  76. bottom: 0;
  77. position: absolute;
  78. content: "";
  79. text-align: right;
  80. z-index: 100000
  81. }
  82. .banner-focus .banner-hd ul,.banner-focus .banner-hd ul li {
  83. display: inline-block;
  84. height: 10px;
  85. vertical-align: top
  86. }
  87. .banner-focus .banner-hd ul li {
  88. width: 10px;
  89. background: #fff;
  90. margin: 0 3px;
  91. overflow: hidden;
  92. border-radius: 100%;
  93. -moz-border-radius: 100%;
  94. -webkit-border-radius: 100%;
  95. -o-border-radius: 100%;
  96. color: #fff
  97. }
  98. .banner-focus .banner-hd ul .on {
  99. background: red;
  100. color: red
  101. }
  102. .home2_box:after {
  103. content: ".";
  104. display: block;
  105. height: 0;
  106. clear: both;
  107. visibility: hidden;
  108. }
  109. .home_3_box:after {
  110. content: ".";
  111. display: block;
  112. height: 0;
  113. clear: both;
  114. visibility: hidden;
  115. }
  116. .home4_box:after {
  117. content: ".";
  118. display: block;
  119. height: 0;
  120. clear: both;
  121. visibility: hidden;
  122. }
  123. .index_ad_list:after {
  124. content: ".";
  125. display: block;
  126. height: 0;
  127. clear: both;
  128. visibility: hidden;
  129. }
  130. .home2_box{margin-top:1px;}
  131. .home_3_box{margin-top:1px;}
  132. .home4_box{margin-top:1px;}
  133. .half_left{width:50%;float:left;}
  134. .half_left img{width:100%;}
  135. .half_right{width:50%;float:left;}
  136. .half_half_div img{width:100%;}
  137. .half_half_div{}
  138. .home_3_div{width:50%;float:left;}
  139. .home_3_div img{width:100%:}
  140. </style>
  141. <include file="Widget:pin_notify" />
  142. {~W('Share/common_special_share',array($special_info['special_id']))}
  143. <include file="Widget:pin_toast" />
  144. <include file="Public:foot_lazy" />
  145. <include file="Public:foot_pinduoduo" />
  146. <script src="__PUBLIC__/pinduoduo/js/TouchSlide.1.1.js"></script>
  147. <script>
  148. if($('#banner').length > 0)
  149. {
  150. TouchSlide({
  151. slideCell:"#banner",
  152. titCell:".banner-hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
  153. mainCell:".bd ul",
  154. delayTime:200,
  155. interTime:5000,
  156. autoPlay:true,
  157. effect:"leftLoop",
  158. autoPage:true //自动分页
  159. });
  160. }
  161. </script>
  162. </block>