_Layout.cshtml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1, user-scalable=no">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <link rel="icon" type="image/x-icon" href="/favicon.ico">
  8. @CZKJ.GBRS2.WebMVC.Helper.ShareExtendion.CZSEO(Model as object)
  9. <!-- 公用代码 -->
  10. <!--[if lt IE 9]>
  11. <script src="/assets/plugins/html5shiv.min.js"></script>
  12. <script src="/assets/plugins/respond.min.js"></script>
  13. <![endif]-->
  14. <!-- public css -->
  15. <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/plugins/bootstrap/css/bootstrap.min.css">
  16. <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/css/base.css">
  17. <link rel="stylesheet" href="@ConfigHelper.GetCDNPrefix()/assets/plugins/wow/animate.css">
  18. @RenderSection("style", false)
  19. <style>
  20. .rightPopUp {
  21. position: fixed;
  22. top: 50%;
  23. right: -50px;
  24. z-index: 88;
  25. margin-top: -82.5px;
  26. transition: all .5s ease;
  27. -webkit-transition: all .5s ease;
  28. }
  29. .rightPopUp ul {
  30. position: relative;
  31. }
  32. .rightPopUp li {
  33. width: 50px;
  34. height: 50px;
  35. text-align: center;
  36. line-height: 50px;
  37. background: #f15558;
  38. margin-bottom: 5px;
  39. position: relative;
  40. cursor: pointer;
  41. }
  42. .rightPopUp .leftPopUp {
  43. display: none;
  44. position: absolute;
  45. top: 0;
  46. right: 55px;
  47. width: 225px;
  48. height: 83px;
  49. background: transparent;
  50. transition: all .5s ease;
  51. -webkit-transition: all .5s ease;
  52. }
  53. .rightPopUp .leftPopUp img {
  54. width: 100%;
  55. height: 100%;
  56. }
  57. .rightPopUp .leftPopUp .emailTxt {
  58. padding-right: 12px;
  59. position: absolute;
  60. top: 0;
  61. left: 0;
  62. text-align: left;
  63. padding-left: 15px;
  64. padding-top: 10px;
  65. }
  66. .rightPopUp .leftPopUp h3 {
  67. font-size: 14px;
  68. color: #333;
  69. margin-top: 18px;
  70. line-height: 0px !important;
  71. }
  72. .rightPopUp .leftPopUp span {
  73. font-size: 14px;
  74. color: #f15558;
  75. line-height: 0;
  76. line-height: 0px !important;
  77. }
  78. .rightPopUp .leftPopUp a {
  79. width: 77px;
  80. height: 34px;
  81. line-height: 34px !important;
  82. text-align: center;
  83. border-radius: 2px;
  84. border: 1px solid #f15558;
  85. color: #f15558;
  86. font-size: 14px;
  87. line-height: 0px;
  88. display: inline-block;
  89. }
  90. /*二维码*/
  91. .showQRIcon {
  92. position: relative;
  93. }
  94. .showQRIcon .qrLeftPopUp {
  95. display: none;
  96. position: absolute;
  97. top: 0;
  98. right: 55px;
  99. width: 173px;
  100. height: 195px;
  101. transition: all .5s ease;
  102. -webkit-transition: all .5s ease;
  103. }
  104. .showQRIcon .qrLeftPopUp .qr_code {
  105. position: absolute;
  106. top: 41%;
  107. margin-top: -71.5px;
  108. left: 47%;
  109. margin-left: -71.5px;
  110. width: 143px;
  111. height: 143px;
  112. }
  113. .showTelIcon:hover .leftPopUp {
  114. display: block;
  115. }
  116. .showQRIcon:hover .qrLeftPopUp {
  117. display: block;
  118. }
  119. .rightPopUp .leftPopUp .telTxt {
  120. width: 100%;
  121. text-align: center;
  122. padding-right: 25px;
  123. }
  124. </style>
  125. </head>
  126. <body>
  127. @await Component.InvokeAsync("Header")
  128. @RenderBody()
  129. @await Component.InvokeAsync("Footer")
  130. @*<div class="toTop">
  131. <img src="/assets/image/top.png" alt="">
  132. </div>*@
  133. @*右侧浮栏*@
  134. @*<div class="rightPopUp">
  135. <ul>
  136. <li class="showTelIcon">
  137. <img src="/assets/image/rightPopUp/telIcon.png" alt="" />
  138. <div class="leftPopUp" style="right:15px;">
  139. <img style="width:145px" src="/assets/image/rightPopUp/telBg.png" alt="" />
  140. <div class="emailTxt telTxt">
  141. <h3>客户服务热线</h3>
  142. <span>957-95200</span>
  143. </div>
  144. </div>
  145. </li>
  146. <li class="showTelIcon">
  147. <img src="/assets/image/rightPopUp/emailIcon.png" alt="" />
  148. <div class="leftPopUp">
  149. <img src="/assets/image/rightPopUp/emailBg.png" alt="" />
  150. <div class="emailTxt">
  151. <h3>咨诉邮箱</h3>
  152. <span>service@guobaojinrong.com</span>
  153. </div>
  154. </div>
  155. </li>
  156. <li class="showQRIcon">
  157. <img src="/assets/image/rightPopUp/qrIcon.png" alt="" />
  158. <div class="qrLeftPopUp">
  159. <img src="/assets/image/rightPopUp/qrBg.png" alt="" />
  160. <div class="qr_code">
  161. <img src="/assets/image/rightPopUp/qrCode.png" alt="" />
  162. </div>
  163. </div>
  164. </li>
  165. <li onclick="window.scrollTo(0,0)">
  166. <img src="/assets/image/rightPopUp/returnTop.png" alt="" />
  167. </li>
  168. </ul>
  169. </div>*@
  170. <!-- public js -->
  171. <script src="/assets/plugins/jquery.js"></script>
  172. <script src="/assets/js/common.js"></script>
  173. <script src="/assets/plugins/wow/wow.min.js"></script>
  174. <script>
  175. var wow = new WOW({
  176. boxClass: 'wow',
  177. animateClass: 'animated',
  178. offset: 50,
  179. mobile: true,
  180. live: true
  181. });
  182. wow.init();
  183. //屏幕滑到快速通道时显示右边栏
  184. $(window).scroll(function () {
  185. var reg = new RegExp('/Home')
  186. if (reg.test(window.location.href)) {
  187. if ($('.fast-track').offset().top - $(document).scrollTop() < 50) {
  188. $('.rightPopUp').css('right', 0);
  189. }
  190. if ($(document).scrollTop() < 300) {
  191. $('.rightPopUp').css('right', '-50px');
  192. }
  193. } else {
  194. if ($(document).scrollTop() < 400) {
  195. $('.rightPopUp').css('right', '-50px');
  196. }
  197. if ($(document).scrollTop() > 400) {
  198. $('.rightPopUp').css('right', 0);
  199. }
  200. }
  201. })
  202. </script>
  203. @RenderSection("script", false)
  204. </body>
  205. </html>