11bc063b by 任超

style:线上预约

1 parent 53b8fddd
......@@ -57,6 +57,7 @@
}
.swiper-wrapper {
box-sizing: border-box;
background: #F7F9FB;
}
.swiper-slide li:nth-child(1) {
margin-top: 23px;
......
......@@ -9,7 +9,6 @@ function removeTabs(id) {
}
//设置ajax调取服务接口
function SetServicesPath() {
return "http://192.168.2.108"
}
......
......@@ -3,7 +3,11 @@ $(function () {
if (getItem('myCookie') && getItem('myCookie').userid) {
fetchNewsData(getItem('myCookie').userid, 5);
}
$('.head-time').html(getDateWeek())
$('.head-time').html(getDateWeek());
// 设置导航首页跳转地址
if ($(".navigation_crumbs").length > 0 && getItem('indexUrl')) {
$('.layui-breadcrumb a').attr('href',getItem('indexUrl'))
}
})
function newsCenterData() {
$(document).on("mouseover", ".sysNewsList .newsDetail", function (e) {
......
......@@ -2,6 +2,13 @@
layui.use('element', function () {
var element = layui.element;
});
layui.use('util', function () {
var util = layui.util;
//执行
util.fixbar({
top: true
});
});
var recentlyDay;
function getDate() {
var date = new Date();
......@@ -34,6 +41,8 @@ $(function () {
policiesData();
});
function initData() {
// 获取当前页面的url
setItem('indexUrl',window.location.pathname)
// 新闻模块
if ($('.hotspot-list li').eq(0).attr('url')) {
$('.news-img').attr('src', $('.hotspot-list li').eq(0).attr('url'));
......