Commit 661e25fd by 梁建民

css

parent c82f6320
......@@ -15,7 +15,7 @@
<div class="content">
<div class="user_info clr user_home">
<div class="fl info_detail boxsiz">
<img src="__PUBLIC__/images/test.jpg" alt="IC" class="fl info_logo">
<img src="__PUBLIC__/images/default.jpg" alt="IC" class="fl info_logo">
<div class="info_desc fl">
<p>Hi,</p>
<h3 class="ellipsis company">--</h3>
......@@ -31,15 +31,15 @@
</div>
<div class="fr price_info">
<div class="fl xj">
<p class="num xj_num">51116</p>
<p class="num xj_num">--</p>
<p class="num_desc">我的询价</p>
</div>
<div class="fl hf">
<p class="num hf_num">85111</p>
<p class="num hf_num">--</p>
<p class="num_desc">我的回复</p>
</div>
<div class="fl sp">
<p class="num sp_num">85110</p>
<p class="num sp_num">--</p>
<p class="num_desc">我的商品</p>
</div>
</div>
......
......@@ -2,90 +2,64 @@
<html lang="zh-CN">
<head>
<include file="public/header" />
<include file="public/header"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/notice.css">
</head>
<body>
<div class="wrapper">
<include file="public/navleft" />
<div class="wrapper_right">
<include file="public/top" />
<div class="right_content notice_content">
<div class="content">
<div class="content_div">
<div class="notice_left boxsiz">
<div class="notice_classify clr active">
<span class="icon iconfont iconjuxing1 fl"></span>
<span class="title fl">系统通知</span>
<span class="num fr">23</span>
</div>
<!-- <div class="notice_classify clr">
<span class="icon iconfont iconjuxing7 fl"></span>
<span class="title fl">业务通知</span>
<span class="num fr">23</span>
</div>-->
<div class="notice_classify clr">
<span class="icon iconfont iconjuxing19 fl"></span>
<span class="title fl">活动通知</span>
<span class="num fr">23</span>
</div>
<div class="wrapper">
<include file="public/navleft"/>
<div class="wrapper_right">
<include file="public/top"/>
<div class="right_content notice_content">
<div class="content">
<div class="content_div">
<div class="notice_left boxsiz">
<div class="notice_classify clr sysmsg active">
<span class="icon iconfont iconjuxing1 fl"></span>
<span class="title fl">系统通知</span>
<span class="num fr" style="display: none">0</span>
</div>
<div class="notice_right boxsiz">
<div id="page" class="page"></div>
<div class="notice_list">
<div class="notice_item clr">
<div class="item_right fr">
<p>2019-05-30 10:22</p>
</div>
<div class="item_left boxsiz">
<h3 class="bold">活动通知</h3>
<p>尊敬的会员,积分兑换1:80即将开始,请关注公众号推送通知</p>
</div>
</div>
<div class="notice_item clr">
<div class="item_right fr">
<p>2019-05-30 10:22</p>
</div>
<div class="item_left boxsiz">
<h3 class="bold">活动通知</h3>
<p>尊敬的会员,积分兑换1:80即将开始,请关注公众号推送通知</p>
</div>
</div>
</div>
<div class="notice_classify actmsg clr">
<span class="icon iconfont iconjuxing19 fl"></span>
<span class="title fl">活动通知</span>
<span class="num fr" style="display: none;">0</span>
</div>
</div>
<div class="notice_right boxsiz" id="notice"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<include file="public/foot"/>
<script src="__PUBLIC__/js/global/observer.js"></script>
<script src="__PUBLIC__/js/notice/index.js"></script>
<script type="text/html" id="msgHtml">
<div class="notice_list">
{{# layui.each(d, function(index, item){ }}
<div class="notice_item clr" data-status="{{item.status}}">
<div class="item_right fr">
<p>{{item.create_time}}</p>
</div>
<div class="item_left boxsiz">
<h3 class="bold">活动通知</h3>
{{item.content}}
</div>
</div>
{{# }); }}
{{# if(d.length === 0){ }}
<div class="no_data">
<img src="__PUBLIC__/images/msg.png" alt="">
<p class="bold">暂无消息通知</p>
</div>
{{# } }}
</div>
<include file="public/foot" />
<script>
layui.use('laypage', function () {
var laypage = layui.laypage;
//执行一个laypage实例
laypage.render({
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
,
count: 50 ,//数据总数,从服务端得到
theme:"#0D84D1"
});
});
</script>
{{# if(d.length > 0){ }}
<div id="pagination" class="page"></div>
{{# } }}
</script>
</body>
</html>
\ No newline at end of file
......@@ -849,3 +849,4 @@ body {
color: #ADB6BF;
cursor: pointer;
}
/*# sourceMappingURL=base.css.map */
\ No newline at end of file
{"version":3,"sources":["base.less","fonts.less","navleft.less","top.less"],"names":[],"mappings":"AAAA;EACE,qBAAA;;AAGF;EACE,8BAAA;EACA,0BAAA;;AAGF;AACA;EACE,iBAAA;EACA,YAAA;EACA,WAAA;EACA,eAAe,mBAAmB,oBAAoB,iEAAiE,uBAAuB,YAA9I;EACA,iCAAA;;AAGF,IAAK;EACH,aAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAA;EACA,UAAA;;AAGF;AACA;AACA;AACA;EACE,eAAA;EACA,YAAA;EACA,wBAAA;;AAGF,KAAK;AACL,KAAK;AACL,KAAK;EACH,eAAA;;AAGF;EACE,yBAAA;EACA,iBAAA;;AAGF;AACA;AACA;EACE,gBAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;EACE,eAAA;EACA,gBAAA;;AAGF;AACA;AACA;EACE,kBAAA;;AAGF;EACE,qBAAA;;AAGF;EACE,YAAA;;AAGF;EACE,QAAA;EACA,WAAA;;AAGF,IAAI;EACF,SAAS,GAAT;EACA,WAAA;EACA,SAAA;EACA,kBAAA;EACA,cAAA;;AAGF;EACE,WAAA;EACA,gBAAA;;AAGF;EACE,YAAA;EACA,gBAAA;;AAGF;EACE,mBAAA;;AAGF;EACE,sBAAA;;AAGF;EACE,sBAAA;;AAGF;EACE,aAAA;;AAGF;EACE,cAAA;;AAGF;EACE,qBAAA;EACA,gBAAA;EACA,OAAA;EACA,sBAAA;EACA,oBAAA;;AAGF;EACE,gBAAA;;AAGF;EACE,uBAAA;EACA,mBAAA;;AAGF;EACE,8BAAA;EACA,sBAAA;;AAGF;EACE,cAAA;EACA,0BAAA;;AAGF;EACE,iBAAA;EACA,UAAA;EACA,YAAA;EACA,YAAA;EACA,sBAAA;;AAGF;EACE,yBAAA;EACA,oDAAA;;AAGF;EACE,sBAAA;;AAGF;EACE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,cAAA;EACA,kBAAA;EACA,UAAA;EACA,WAAA;;AApCZ,aAwCI;EACI,kBAAA;EACA,YAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;;AAhDR,aAwCI,WAUI;EACI,yBAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,YAAA;EACA,cAAA;EACA,iBAAA;;AAzDZ,aAwCI,WAoBI;EACI,eAAA;EACA,kBAAA;EACA,WAAA;EACA,QAAA;EACA,YAAA;EACA,iBAAA;EACA,cAAA;EACA,eAAA","file":"base.css"}
\ No newline at end of file
{"version":3,"sources":["base.less","fonts.less","navleft.less","top.less"],"names":[],"mappings":"AAAA;EACE,qBAAA;;AAGF;EACE,8BAAA;EACA,0BAAA;;AAGF;AACA;EACE,iBAAA;EACA,YAAA;EACA,WAAA;EACA,eAAe,mBAAmB,oBAAoB,iEAAiE,uBAAuB,YAA9I;EACA,iCAAA;;AAGF,IAAK;EACH,aAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAA;EACA,UAAA;;AAGF;AACA;AACA;AACA;EACE,eAAA;EACA,YAAA;EACA,wBAAA;;AAGF,KAAK;AACL,KAAK;AACL,KAAK;EACH,eAAA;;AAGF;EACE,yBAAA;EACA,iBAAA;;AAGF;AACA;AACA;EACE,gBAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;EACE,eAAA;EACA,gBAAA;;AAGF;AACA;AACA;EACE,kBAAA;;AAGF;EACE,qBAAA;;AAGF;EACE,YAAA;;AAGF;EACE,QAAA;EACA,WAAA;;AAGF,IAAI;EACF,SAAS,GAAT;EACA,WAAA;EACA,SAAA;EACA,kBAAA;EACA,cAAA;;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GhB,SAyBE,aAsFE;EACE,kBAAA;EACA,YAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA,iBAAA;EACA,eAAA;EACA,eAAA;EACA,cAAA;EACA,6BAAA;EACA,qDAAA;;AC1HN;EACI,aAAA;EACA,sBAAA;EACA,iBAAA;;AAHJ,aAKI;EACI,kBAAA;EACA,gBAAA;EACA,eAAA;;AARR,aAKI,WAII;EACI,sBAAA;EACA,YAAA;EACA,WAAA;;AAZZ,aAgBI;EACI,kBAAA;EACA,gBAAA;EACA,eAAA;;AAnBR,aAgBI,cAKI;EACI,eAAA;EACA,cAAA;;AAvBZ,aAgBI,cAUI;EACI,eAAA;EACA,WAAA;EACA,kBAAA;EACA,mBAAA;EACA,YAAA;EACA,iBAAA;EACA,cAAA;EACA,kBAAA;EACA,UAAA;EACA,WAAA;;AApCZ,aAwCI;EACI,kBAAA;EACA,YAAA;EACA,YAAA;EACA,gBAAA;EACA,eAAA;EACA,mBAAA;EACA,yBAAA;EACA,kBAAA;;AAhDR,aAwCI,WAUI;EACI,yBAAA;EACA,eAAA;EACA,cAAA;EACA,YAAA;EACA,YAAA;EACA,cAAA;EACA,iBAAA;;AAzDZ,aAwCI,WAoBI;EACI,eAAA;EACA,kBAAA;EACA,WAAA;EACA,QAAA;EACA,YAAA;EACA,iBAAA;EACA,cAAA;EACA,eAAA","file":"base.css"}
\ No newline at end of file
......@@ -95,5 +95,6 @@
}
.notice_content .content .content_div .notice_right .notice_list .notice_item .item_right {
color: #ADB6BF;
width: 112px;
width: 170px;
}
/*# sourceMappingURL=notice.css.map */
\ No newline at end of file
{"version":3,"sources":["notice.less"],"names":[],"mappings":"AAAA,eACI;EACI,kBAAA;;AAFR,eACI,SAGI;EACI,kBAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,YAAA;EACA,gBAAA;;AAVZ,eACI,SAGI,aAQI;EACI,YAAA;EACA,+BAAA;EACA,YAAA;EACA,kBAAA;;AAhBhB,eACI,SAGI,aAQI,aA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I,cAAA;EACA,YAAA","file":"notice.css"}
\ No newline at end of file
......@@ -107,7 +107,7 @@
.item_right {
color: #ADB6BF;
width: 112px;
width: 170px;
}
}
......
......@@ -446,8 +446,8 @@ $(function () {
// open,登录;
var options = {
apiUrl: WebIM.config.apiURL,
user: '18271408717',
pwd: '123456',
user: user,
pwd: password,
appKey: WebIM.config.appkey
};
try {
......
......@@ -161,7 +161,19 @@
/**
* 批量上传商品列表
*/
uploadList: goods_url + '/goods/upload/list'
uploadList: goods_url + '/goods/upload/list',
/**
* 数量统计
*/
countBusiness: user_url + '/count/business',
/**
* 获取会员系统通知
*/
userSysmsg: user_url + '/user/sysmsg',
/**
* 获取会员活动通知
*/
userActmsg: user_url + '/user/actmsg'
};
if (typeof define === "function" && define.amd) {
return apis;
......
! function () {
!function () {
window.IcController = {
init: function () {
this.created(this).mounted(this).handleBind(this);
},
getData: function (url, type, param, callback, isload, isheader) {
//是否启动loadin效果
if (isload == undefined) {
var index = layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
}
var platform = {
source: 2
};
var params = $.extend({}, platform, param);
//跨域模式切换 兼容
var dataTypeXpx = "json";
if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) {
dataTypeXpx = "jsonp";
}
if (isheader) {
$.ajaxSetup({
headers: {
......@@ -33,7 +34,7 @@
},
});
}
$.ajax({
type: type,
url: url,
......@@ -43,144 +44,160 @@
withCredentials: true
},
success: function (data) {
//处理token失效的情况
if (data.errcode === 501 || data.err_code === 501) {
layer.msg('登录已失效,请重新登录', {
time: 600
}, function () {
window.location.href = passport_url + '/login';
});
} else {
typeof callback == 'function' && callback(data);
layer.close(index);
}
return false;
},
error: function () {
layer.close(index);
layer.msg('网络出现问题,请重试!');
return false;
}
});
},
created: function (opt) {
if ($('#head_pic').length > 0) {
//获取用户信息
this.getData(apis.userInfo, 'GET', {
token: Util.getCookie('token') || ''
}, function (res) {
this.getData(apis.userInfo, 'GET', {token: Util.getCookie('token') || ''}, function (res) {
if (res.errcode === 0) {
//消息数量
$("#count_num").empty().html(res.data['msg_notification']);
//设置头像
if (res.data.avatar) {
$("#head_pic").find('img').attr('src', res.data['avatar']);
$(".info_logo").attr('src', res.data['avatar']);
}
//首页
//首页信息
if ($(".user_home").length > 0) {
$(".user_home").find(".company").empty().html(res.data['company_name']);
$(".user_home").find(".tel").empty().html(res.data['mobile']);
$(".user_home").find(".last_login_time").empty().html(res.data['last_login_time']);
$(".user_home").find(".info_desc").children('p').empty().html('Hi,' + Util.getTimeState());
}
//首页统计
if ($(".price_info").length > 0) {
IcController.getData(apis.countBusiness, 'GET', {token: Util.getCookie('token') || ''}, function (res) {
$(".price_info").find('.xj').children('.xj_num').text(res.data.inquiry); //我的询价
$(".price_info").find('.hf').children('.hf_num').text(res.data.offer); //我的回复
$(".price_info").find('.sp').children('.sp_num').text(res.data.goods);//我的商品
});
}
}
});
}
return this;
},
mounted: function (opt) {
//导航栏
var isShow = $('.xbj_li').find('dl').css('display');
if (isShow == 'none') {
$('.xbj_li').find('.li_right').removeClass('iconjuxing15').addClass('iconjuxing12');
} else {
$('.xbj_li').find('.li_right').removeClass('iconjuxing12').addClass('iconjuxing15');
}
return this;
},
handleBind: function (opt) {
//导航栏
$('.xbj_li').on('click', function () {
var isShow = $(this).find('dl').css('display');
if (isShow == 'none') {
$(this).find('dl').slideDown();
$('.xbj_li').find('.li_right').removeClass('iconjuxing12').addClass('iconjuxing15');
} else {
$(this).find('dl').slideUp();
$('.xbj_li').find('.li_right').removeClass('iconjuxing15').addClass('iconjuxing12');
}
});
//退出
$(".nav_end").on('click', function () {
layer.confirm('您确定退出系统嘛', {
icon: 3,
title: '提示',
move: false
}, function (index) {
opt.getData(apis.authLogout, 'POST', null, function (res) {
if (res.err_code === 0) {
Util.delCookie('token', cookieHostname);
window.location.href = index_url;
} else {
layer.msg(res.err_msg);
}
}, undefined, true);
layer.close(index);
})
});
return this;
},
}, $(function () {
......@@ -200,17 +217,17 @@
* @returns {boolean}
*/
setCookie: function (name, value, time, domain) {
domain = domain ? ";domain=" + domain : "";
var Days = time;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = name + "=" + value + ";expires=" + exp.toGMTString() + ";path=/" + domain;
return true;
},
/**
......@@ -219,19 +236,19 @@
* @returns {*}
*/
getCookie: function (name) {
var strCookie = document.cookie;
var arrCookie = strCookie.split("; ");
for (var i = 0; i < arrCookie.length; i++) {
var arr = arrCookie[i].split("=");
if (name == arr[0]) {
return arr[1];
}
}
return "";
......@@ -241,17 +258,17 @@
* @param name
*/
delCookie: function (name, domain) {
domain = domain ? ";domain=" + domain : "";
var exp = new Date();
exp.setTime(exp.getTime() - 10000);
document.cookie = name + "=" + '' + ";expires=" + exp.toGMTString() + ";path=/" + domain;
return true;
},
/**
* 获取参数
......@@ -259,28 +276,28 @@
* @returns {*}
*/
getRequest: function (value) {
if (window.location.pathname == "/s/") {
var url = unescape(location.search);
} else {
var url = decodeURI(location.search);
}
var object = {};
if (url.indexOf("?") != -1) {
var str = url.substr(1);
var strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
object[strs[i].split("=")[0]] = strs[i].split("=")[1];
}
}
return object[value];
......@@ -291,128 +308,134 @@
* @returns {string}
*/
getDateStr: function (val) {
var dd = new Date();
dd.setDate(dd.getDate() + val);
var y = dd.getFullYear();
var m = (dd.getMonth() + 1) < 10 ? "0" + (dd.getMonth() + 1) : (dd.getMonth() + 1);
var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();
return y + "-" + m + "-" + d;
},
/**
* 时间问候语
*/
getTimeState: function () {
var timeNow = new Date();
// 获取当前小时
var hours = timeNow.getHours();
// 设置默认文字
var text = '';
// 判断当前时间段
if (hours >= 0 && hours <= 10) {
text = '早上好';
} else if (hours > 10 && hours <= 14) {
text = '中午好';
} else if (hours > 14 && hours <= 18) {
text = '下午好';
} else if (hours > 18 && hours <= 24) {
text = '晚上好';
}
return text;
},
/**获取前几天的日期 */
/**
* 获取前几天的日期
* @param day
* @returns {string}
*/
getDay: function (day) {
var today = new Date();
var targetday_milliseconds = today.getTime() + 1000 * 60 * 60 * 24 * day;
today.setTime(targetday_milliseconds); //注意,这行是关键代码
var tYear = today.getFullYear();
var tMonth = today.getMonth();
var tDate = today.getDate();
tMonth = this.doHandleMonth(tMonth + 1);
tDate = this.doHandleMonth(tDate);
return tYear + "-" + tMonth + "-" + tDate + ' 00:00:00';
},
/**对月份进行处理 */
/**
* 对月份进行处理
* @param month
* @returns {*|string}
*/
doHandleMonth: function (month) {
var m = month;
if (month.toString().length == 1) {
m = "0" + month;
52
}
return m;
}
};
if (typeof define === "function" && define.amd) {
return Util;
} else {
window.Util = Util;
}
})(window);
//form序列化json
$.fn.serializeJson = function () {
var serializeObj = {};
var array = this.serializeArray();
var str = this.serialize();
$(array).each(function () {
if (serializeObj[this.name]) {
if ($.isArray(serializeObj[this.name])) {
serializeObj[this.name].push(this.value);
} else {
serializeObj[this.name] = [serializeObj[this.name], this.value];
}
} else {
serializeObj[this.name] = this.value;
}
});
return serializeObj;
......
!function () {
window.NoticeController = {
token: Util.getCookie('token') || '',
init: function () {
this.created(this).mounted(this).render(this, {token: this.token, page: 1, limit: 10}, 1, apis.userSysmsg).handleBind(this);
},
created: function (opt, params, curr) {
return this;
},
mounted: function (opt) {
return this;
},
render: function (opt, params, curr, url) {
var getTpl = msgHtml.innerHTML;
IcController.getData(url, 'GET', params, function (res) {
if (res.errcode == 0) {
var data = null;
url == apis.userSysmsg ? data = res.data.sys_msg : data = res.data.act_msg;
//系统通知
if (res.data['sys_unread_msg'] > 0) {
$(".sysmsg").find(".num").text(res.data['sys_unread_msg']).show();
}
//活动通知
if (res.data['act_unread_msg'] > 0) {
$(".actmsg").find(".num").text(res.data['act_unread_msg']).show();
}
layui.laytpl(getTpl).render(data.data, function (html) {
$("#notice").empty().html(html);
layui.laypage.render({
elem: 'pagination',
theme: '#1080d0',
count: data.count,
limit: 10,
curr: curr,
jump: function (obj, first) {
if (!first) {
//分页回调调用
var json = {
page: obj.curr
};
var param = $.extend({}, params, json);
NoticeController.render(opt, param, obj.curr, url);
}
}
});
});
} else {
layer.msg(res.msg);
}
});
return this;
},
handleBind: function (opt) {
//切换系统通知
$(".notice_left").find(".notice_classify").on('click', function () {
var index = $(this).index();
$(this).addClass("active").siblings('.notice_classify').removeClass('active');
if (index == 0) {
opt.render(opt, {token: opt.token, page: 1, limit: 10}, 1, apis.userSysmsg);
} else if (index == 1) {
opt.render(opt, {token: opt.token, page: 1, limit: 10}, 1, apis.userActmsg);
}
});
return this;
},
}, $(function () {
NoticeController.init();
})
}();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment