bottom.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php
  2. use frontend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . '/js/lunbo/jquery.SuperSlide.2.1.3.js');
  4. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/bottom.js");
  5. $bottom = \common\models\PushBottom::HomeGetList();
  6. $img_small = \common\models\PushBottom::Getimgsmall();
  7. ?>
  8. <style>
  9. .w_app_l {
  10. position: fixed;
  11. left: 0;
  12. bottom: 25%;
  13. z-index: 20;
  14. width: 150px;
  15. height: auto;
  16. }
  17. .w_app_l img {
  18. width: 100%;
  19. height: auto;
  20. }
  21. .public_signup {
  22. width: 100%;
  23. height: 120px;
  24. position: fixed;
  25. bottom: 0;
  26. left: 0;
  27. z-index: 300;
  28. min-width: 1200px;
  29. overflow: hidden;
  30. }
  31. .public_signup ul {
  32. height: auto;
  33. }
  34. .public_signup li {
  35. height: 120px;
  36. position: relative;
  37. }
  38. .public_signup li a img {
  39. width: 100%;
  40. display: block;
  41. height: 100%;
  42. }
  43. .public_signup .wadlabel {
  44. position: absolute;
  45. left: 10px;
  46. top: 10px;
  47. right: auto;
  48. }
  49. .signup_form {
  50. position: absolute;
  51. top: 15%;
  52. left: 59%;
  53. width: 21%;
  54. height: auto;
  55. }
  56. .signup_form form {
  57. width: 100%;
  58. position: relative;
  59. top: 25%;
  60. }
  61. .signup_form form input[name="mobile"] {
  62. display: inline-block;
  63. width: 62%;
  64. height: 48px;
  65. line-height: 48px;
  66. border: none;
  67. font-size: 15px;
  68. padding-left: 10px;
  69. background: #fff;
  70. color: #666;
  71. border-radius: 5px;
  72. }
  73. .signup_form form input[type="button"] {
  74. display: inline-block;
  75. width: 27%;
  76. height: 48px;
  77. line-height: 48px;
  78. text-align: center;
  79. font-size: 15px;
  80. color: #fff;
  81. background: #FBB60F;
  82. border: none;
  83. margin-left: 10px;
  84. border-radius: 5px;
  85. }
  86. .signup_form .text {
  87. display: block;
  88. font-size: 12px;
  89. color: #FFF;
  90. }
  91. .cls {
  92. position: absolute;
  93. top: 10px;
  94. right: 60px;
  95. z-index: 10;
  96. width: 25px;
  97. height: 25px;
  98. }
  99. .cls img {
  100. display: inline-block;
  101. width: 100%;
  102. height: 100%;
  103. }
  104. .public_signup .bd .prev {
  105. position: absolute;
  106. left: 8%;
  107. top: 50%;
  108. margin-top: -20px;
  109. display: block;
  110. width: 32px;
  111. height: 40px;
  112. background: url(/image/slider-arrow.png) -110px 5px no-repeat;
  113. filter: alpha(opacity=50);
  114. opacity: 0.8;
  115. }
  116. .public_signup .bd .next {
  117. position: absolute;
  118. top: 50%;
  119. margin-top: -20px;
  120. display: block;
  121. width: 32px;
  122. height: 40px;
  123. background: url(/image/slider-arrow.png) 8px 5px no-repeat;
  124. filter: alpha(opacity=50);
  125. opacity: 0.8;
  126. right: 8%;
  127. }
  128. .public_signup .bd .prev:hover, .bd .next:hover {
  129. filter: alpha(opacity=100);
  130. opacity: 1;
  131. }
  132. </style>
  133. <!-- 悬标 -->
  134. <?php if (!empty($img_small['img_small'])) { ?>
  135. <div class="w_app_l">
  136. <a target="_blank" href="<?= $img_small['url'] ?>"><img
  137. src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['bottom'], $img_small['img_small'] ?>"
  138. alt=""></a>
  139. </div>
  140. <?php } ?>
  141. <?php if (!empty($bottom)) { ?>
  142. <div class="public_signup">
  143. <div class="bd">
  144. <ul>
  145. <?php foreach ($bottom as $val) { ?>
  146. <li>
  147. <div class="wadlabel">广告</div>
  148. <?php if (!empty($val['url'])) { ?>
  149. <a target="_blank" href="<?= $val['url'] ?>">
  150. <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['bottom'], $val['img'] ?>"
  151. alt="">
  152. </a>
  153. <?php } else { ?>
  154. <a href="javascript:;">
  155. <img src="<?= Yii::$app->params['httpImg']['host'], Yii::$app->params['httpImg']['bottom'], $val['img'] ?>"
  156. alt="">
  157. </a>
  158. <?php } ?>
  159. <?php if ($val['state'] == 1) { ?>
  160. <div class="signup_form">
  161. <form class="submit_area" style="position:relative;top:25%;">
  162. <input type="hidden" name="hid" value="<?= $val['hid'] ?>">
  163. <!-- 0 为公共报名,其它为楼盘ID-->
  164. <input type="hidden" name="source" value="<?= $val['input'] ?>">
  165. <!--报名来源 具体查看applyVerify.js文件中SourceModule 标识说明-->
  166. <input type="hidden" name="equipment" value="2">
  167. <!--来源设备 ( PC端 2,手机端 1 )-->
  168. <input type="hidden" name="intention_city" value="<?= $val['city_name'] ?>">
  169. <input name="mobile" type="text" placeholder="请输入您的手机号">
  170. <input type="button" value="立即领取" class="m_wapply_su"
  171. style="background:<?= $val['button_color'] ?>;color:<?= $val['buttonfont_color'] ?>;">
  172. </form>
  173. <i class="text"
  174. style="color:<?= $val['font_color'] ?>; margin-top:10px"><?= $val['explain'] ?></i>
  175. </div>
  176. <?php } ?>
  177. <a class="cls" href="javascript:void(0);"><img src="/image/cla_2.png" alt=""></a>
  178. </li>
  179. <?php } ?>
  180. </ul>
  181. <a class="prev" href="javascript:void(0)" onclick="return false" style="position: absolute;top:50%;"></a>
  182. <a class="next" href="javascript:void(0)" style="position: absolute;top:50%;"></a>
  183. </div>
  184. </div>
  185. <?php } ?>