style:线上预约
Showing
4 changed files
with
15 additions
and
2 deletions
... | @@ -57,6 +57,7 @@ | ... | @@ -57,6 +57,7 @@ |
57 | } | 57 | } |
58 | .swiper-wrapper { | 58 | .swiper-wrapper { |
59 | box-sizing: border-box; | 59 | box-sizing: border-box; |
60 | background: #F7F9FB; | ||
60 | } | 61 | } |
61 | .swiper-slide li:nth-child(1) { | 62 | .swiper-slide li:nth-child(1) { |
62 | margin-top: 23px; | 63 | margin-top: 23px; | ... | ... |
... | @@ -3,7 +3,11 @@ $(function () { | ... | @@ -3,7 +3,11 @@ $(function () { |
3 | if (getItem('myCookie') && getItem('myCookie').userid) { | 3 | if (getItem('myCookie') && getItem('myCookie').userid) { |
4 | fetchNewsData(getItem('myCookie').userid, 5); | 4 | fetchNewsData(getItem('myCookie').userid, 5); |
5 | } | 5 | } |
6 | $('.head-time').html(getDateWeek()) | 6 | $('.head-time').html(getDateWeek()); |
7 | // 设置导航首页跳转地址 | ||
8 | if ($(".navigation_crumbs").length > 0 && getItem('indexUrl')) { | ||
9 | $('.layui-breadcrumb a').attr('href',getItem('indexUrl')) | ||
10 | } | ||
7 | }) | 11 | }) |
8 | function newsCenterData() { | 12 | function newsCenterData() { |
9 | $(document).on("mouseover", ".sysNewsList .newsDetail", function (e) { | 13 | $(document).on("mouseover", ".sysNewsList .newsDetail", function (e) { | ... | ... |
... | @@ -2,6 +2,13 @@ | ... | @@ -2,6 +2,13 @@ |
2 | layui.use('element', function () { | 2 | layui.use('element', function () { |
3 | var element = layui.element; | 3 | var element = layui.element; |
4 | }); | 4 | }); |
5 | layui.use('util', function () { | ||
6 | var util = layui.util; | ||
7 | //执行 | ||
8 | util.fixbar({ | ||
9 | top: true | ||
10 | }); | ||
11 | }); | ||
5 | var recentlyDay; | 12 | var recentlyDay; |
6 | function getDate() { | 13 | function getDate() { |
7 | var date = new Date(); | 14 | var date = new Date(); |
... | @@ -34,6 +41,8 @@ $(function () { | ... | @@ -34,6 +41,8 @@ $(function () { |
34 | policiesData(); | 41 | policiesData(); |
35 | }); | 42 | }); |
36 | function initData() { | 43 | function initData() { |
44 | // 获取当前页面的url | ||
45 | setItem('indexUrl',window.location.pathname) | ||
37 | // 新闻模块 | 46 | // 新闻模块 |
38 | if ($('.hotspot-list li').eq(0).attr('url')) { | 47 | if ($('.hotspot-list li').eq(0).attr('url')) { |
39 | $('.news-img').attr('src', $('.hotspot-list li').eq(0).attr('url')); | 48 | $('.news-img').attr('src', $('.hotspot-list li').eq(0).attr('url')); | ... | ... |
-
Please register or sign in to post a comment