Commit 2b272025 by 施宇

111

parent 14c30c9c
Showing with 747 additions and 51 deletions
......@@ -33,6 +33,7 @@ return array(
'gooddetail' => 'Home/Index/gooddetail',
'bulkupload' => 'Home/Index/bulkupload',
'uploadresult' => 'Home/Index/uploadresult',
'integral' => 'Home/Index/integral'
'integral' => 'Home/Index/integral',
'notice' => 'Home/Index/notice'
),
);
\ No newline at end of file
......@@ -155,4 +155,11 @@ class IndexController extends Controller
{
$this->display('Certification/index');
}
/**
* 通知
*/
public function notice()
{
$this->display('Notice/index');
}
}
......@@ -167,7 +167,7 @@
</div>
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -86,7 +86,7 @@
</div>
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -40,7 +40,7 @@
</div>
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -86,6 +86,7 @@
</div>
</div>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -154,9 +154,7 @@
</div>
</div>
</body>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
......@@ -171,18 +169,20 @@
theme: '#0D84D1'
});
});
$('.dgsc').click(function () {
window.location.href = '/uploadsingle'
})
$('.plsc').click(function () {
window.location.href = '/bulkupload'
})
$('.xz').click(function () {
window.location.href = '/uploadresult'
})
$('.data_item').click(function () {
window.location.href = '/gooddetail'
})
</script>
$('.dgsc').click(function () {
window.location.href = '/uploadsingle'
})
$('.plsc').click(function () {
window.location.href = '/bulkupload'
})
$('.xz').click(function () {
window.location.href = '/uploadresult'
})
$('.data_item').click(function () {
window.location.href = '/gooddetail'
})
</script>
</body>
</html>
\ No newline at end of file
......@@ -78,7 +78,7 @@
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
......
......@@ -96,7 +96,7 @@
</div>
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -18,7 +18,7 @@
<img src="__PUBLIC__/images/test.jpg" alt="IC" class="fl info_logo">
<div class="info_desc fl">
<p>Hi,上午好</p>
<h3 class="ellipsis">深圳市猎芯科技有限公司深圳市猎芯科技有限公司</h3>
<h3 class="ellipsis">深圳市猎芯科技有限公司</h3>
<div class="clr login_info">
<div class="fl phone">
账号:
......@@ -275,12 +275,13 @@
</div>
</div>
</div>
<include file="public/foot" />
<script>
$('.input_btn').click(function () {
window.location.href = "/search"
})
</script>
</body>
<script>
$('.input_btn').click(function () {
window.location.href = "/search"
})
</script>
</html>
\ No newline at end of file
......@@ -253,6 +253,7 @@
</div>
</div>
</div>
<include file="public/foot" />
<!-- 移动端下的页面 -->
<script>
$('.index_wrapper .lb_nav span').click(function () {
......
......@@ -211,8 +211,8 @@
</div>
</div>
<include file="public/indexfoot" />
</div>
<include file="public/foot" />
<script>
</script>
......
......@@ -102,7 +102,7 @@
</div>
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
......
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<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>
<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>
</div>
</div>
</div>
</div>
</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>
</body>
</html>
\ No newline at end of file
......@@ -173,7 +173,7 @@
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
......
......@@ -129,6 +129,7 @@
</div>
</div>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -12,9 +12,6 @@
<div class="wrapper_right">
<include file="public/top" />
<div class="right_content quote_content">
<div class="edit_div">
<span class=" icon iconfont iconjuxing14"></span>
</div>
<div class="content">
<div class="nav_title">询报价 > 我的报价</div>
<div class="xj_total clr">
......@@ -147,7 +144,7 @@
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
......
......@@ -162,7 +162,7 @@
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
<script>
$('.cz').click(function () {
$('.from_mask').fadeOut()
......
......@@ -98,7 +98,7 @@
</div>
</div>
</div>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
......@@ -184,7 +184,7 @@
</div>
</div>
</div>
<include file="public/foot" />
</body>
</html>
\ No newline at end of file
<script src="__PUBLIC__/js/global/x_public.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/layui/layui.all.js"></script>
<script src="__PUBLIC__/js/global/global.min.js" type="text/javascript"></script>
......@@ -10,5 +10,5 @@
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common/ie.css">
<![endif]-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/layui/css/layui.css">
<script src="__PUBLIC__/js/global/x_public.min.js" type="text/javascript"></script>
......@@ -11,21 +11,21 @@
</div>
<div class="nav_left_content">
<ul class="content_ul">
<li class="content_ul_li <if condition="(ACTION_NAME eq 'index')">active</if>">
<a href="/" class="out">
<li class="content_ul_li <if condition="(ACTION_NAME eq 'home')">active</if>">
<a href="/home" class="out">
<span class="li_icon icon iconfont iconjuxing4"></span>
<span class="li_title">首页</span>
</a>
</li>
<li class="content_ul_li <if condition="(ACTION_NAME eq 'inquiry') || (ACTION_NAME eq 'quote')">active</if>">
<li class="content_ul_li <if condition="(ACTION_NAME eq 'inquiry') || (ACTION_NAME eq 'quote') || (ACTION_NAME eq 'releaseinquiry') || (ACTION_NAME eq 'inquirydetail') || (ACTION_NAME eq 'quotedetail')">active</if>">
<a href="javascript:;" class="out">
<span class="li_icon icon iconfont iconjuxing5"></span>
<span class="li_title">询报价</span>
<span class="li_right icon iconfont iconjuxing12">
</a>
<dl>
<dd <if condition="(ACTION_NAME eq 'inquiry')">class="active"</if>"><a href="/inquiry">我的询价</a></dd>
<dd <if condition="(ACTION_NAME eq 'quote')">class="active"</if>"><a href="/quote">我的报价</a></dd>
<dd <if condition="(ACTION_NAME eq 'inquiry') || (ACTION_NAME eq 'releaseinquiry') || (ACTION_NAME eq 'inquirydetail')">class="active"</if>"><a href="/inquiry">我的询价</a></dd>
<dd <if condition="(ACTION_NAME eq 'quote') || (ACTION_NAME eq 'quotedetail')">class="active"</if>"><a href="/quote">我的报价</a></dd>
</dl>
</li>
<li class="content_ul_li <if condition="(ACTION_NAME eq 'roborder')">active</if>">
......@@ -40,7 +40,7 @@
<span class="li_title">在线沟通</span>
</a>
</li>
<li class="content_ul_li <if condition="(ACTION_NAME eq 'goodmanage')">active</if>">
<li class="content_ul_li <if condition="(ACTION_NAME eq 'goodmanage') || (ACTION_NAME eq 'uploadsingle') || (ACTION_NAME eq 'bulkupload') || (ACTION_NAME eq 'gooddetail') || (ACTION_NAME eq 'uploadresult')">active</if>">
<a href="/goodmanage" class="out">
<span class="li_icon icon iconfont iconjuxing8"></span>
<span class="li_title">商品管理</span>
......
......@@ -4,10 +4,10 @@
<img src="__PUBLIC__/images/test.jpg" alt="IClogo">
</a>
</div>
<div class="message_icon fr">
<a class="message_icon fr" href="/notice">
<span class="icon iconfont iconjuxing1"></span>
<span class="num">23</span>
</div>
</a>
<div class="input_div fr">
<input type="text" placeholder="请输入要搜索的内容">
<span class="icon iconfont iconjuxing"></span>
......
\ No newline at end of file
<?php
return array(
//'配置项'=>'配置值'
);
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
<?php
return array(
//'配置项'=>'配置值'
);
\ No newline at end of file
\ No newline at end of file
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller
{
public function index()
{
$this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px } a,a:hover{color:blue;}</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>!</p><br/>版本 V{$Think.version}</div><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_55e75dfae343f5a1"></thinkad><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8');
}
}
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
<?php if (!defined('THINK_PATH')) exit();?><style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px } a,a:hover{color:blue;}</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b></p><br/>版本 V<?php echo (THINK_VERSION); ?></div><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_55e75dfae343f5a1"></thinkad><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
[ 2019-06-17T17:09:46+08:00 ] 127.0.0.1 /favicon.ico
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000012s ]
INFO: [ app_init ] --END-- [ RunTime:0.000296s ]
[ 2019-06-17T17:09:46+08:00 ] 127.0.0.1 /favicon.ico
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000014s ]
INFO: [ app_init ] --END-- [ RunTime:0.000391s ]
[ 2019-06-17T17:10:33+08:00 ] 127.0.0.1 /favicon.ico
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000012s ]
INFO: [ app_init ] --END-- [ RunTime:0.000322s ]
[ 2019-06-17T17:10:34+08:00 ] 127.0.0.1 /favicon.ico
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000039s ]
INFO: [ app_init ] --END-- [ RunTime:0.000749s ]
[ 2019-06-17T17:10:34+08:00 ] 127.0.0.1 /favicon.ico
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000024s ]
INFO: [ app_init ] --END-- [ RunTime:0.000923s ]
[ 2019-06-17T17:10:36+08:00 ] 127.0.0.1 /integral
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]
INFO: [ app_init ] --END-- [ RunTime:0.000231s ]
ERR: 无法加载模块:Integral
[ 2019-06-17T17:10:45+08:00 ] 127.0.0.1 /integral
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]
INFO: [ app_init ] --END-- [ RunTime:0.000235s ]
ERR: 无法加载模块:Integral
[ 2019-06-17T17:10:46+08:00 ] 127.0.0.1 /integral
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000238s ]
ERR: 无法加载模块:Integral
[ 2019-06-17T17:10:46+08:00 ] 127.0.0.1 /integral
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]
INFO: [ app_init ] --END-- [ RunTime:0.000230s ]
ERR: 无法加载模块:Integral
[ 2019-06-17T17:10:46+08:00 ] 127.0.0.1 /integral
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000233s ]
ERR: 无法加载模块:Integral
[ 2019-06-17T17:10:47+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000226s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:47+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000010s ]
INFO: [ app_init ] --END-- [ RunTime:0.000251s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:47+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000248s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:56+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]
INFO: [ app_init ] --END-- [ RunTime:0.000230s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:57+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]
INFO: [ app_init ] --END-- [ RunTime:0.000230s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:57+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000245s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:57+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000010s ]
INFO: [ app_init ] --END-- [ RunTime:0.000237s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:10:57+08:00 ] 127.0.0.1 /goodmanage
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000242s ]
ERR: 无法加载模块:Goodmanage
[ 2019-06-17T17:11:27+08:00 ] 127.0.0.1 /roborder
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000009s ]
INFO: [ app_init ] --END-- [ RunTime:0.000229s ]
ERR: 无法加载模块:Roborder
[ 2019-06-17T17:11:57+08:00 ] 127.0.0.1 /roborder
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000008s ]
INFO: [ app_init ] --END-- [ RunTime:0.000269s ]
ERR: 无法加载模块:Roborder
[ 2019-06-17T17:09:41+08:00 ] 127.0.0.1 /home
INFO: [ app_init ] --START--
INFO: Run Behavior\BuildLiteBehavior [ RunTime:0.000023s ]
INFO: [ app_init ] --END-- [ RunTime:0.000157s ]
INFO: [ app_begin ] --START--
INFO: Run Behavior\ReadHtmlCacheBehavior [ RunTime:0.001028s ]
INFO: [ app_begin ] --END-- [ RunTime:0.001111s ]
INFO: [ view_parse ] --START--
INFO: [ template_filter ] --START--
INFO: Run Behavior\ContentReplaceBehavior [ RunTime:0.000045s ]
INFO: [ template_filter ] --END-- [ RunTime:0.000109s ]
INFO: Run Behavior\ParseTemplateBehavior [ RunTime:0.026039s ]
INFO: [ view_parse ] --END-- [ RunTime:0.026111s ]
INFO: [ view_filter ] --START--
INFO: Run Behavior\WriteHtmlCacheBehavior [ RunTime:0.000384s ]
INFO: [ view_filter ] --END-- [ RunTime:0.000423s ]
INFO: [ app_end ] --START--
INFO: Run Behavior\ShowPageTraceBehavior [ RunTime:0.000573s ]
INFO: [ app_end ] --END-- [ RunTime:0.000614s ]
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
......@@ -288,6 +288,9 @@ body {
.layui-form-select dl dd.layui-this {
background-color: #0D84D1 !important;
}
.layui-laypage a:hover {
color: #61A0F2 !important;
}
.goods_data_list .my_xj_list {
padding-right: 20px;
}
......@@ -800,4 +803,3 @@ body {
color: #ADB6BF;
cursor: pointer;
}
/*# sourceMappingURL=base.css.map */
\ No newline at end of file
......@@ -341,7 +341,9 @@ body {
.layui-form-select dl dd.layui-this {
background-color: #0D84D1 !important;
}
.layui-laypage a:hover {
color: #61A0F2 !important;
}
// 商品询价的公共样式
.goods_data_list {
.my_xj_list {
......
.notice_content .content {
position: relative;
}
.notice_content .content .content_div {
position: absolute;
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
background: #fff;
}
.notice_content .content .content_div .notice_left {
width: 247px;
border-right: 1px solid #F5F9FC;
height: 100%;
padding-left: 10px;
}
.notice_content .content .content_div .notice_left .notice_classify {
padding: 15px 20px;
cursor: pointer;
margin-top: 10px;
}
.notice_content .content .content_div .notice_left .notice_classify:hover,
.notice_content .content .content_div .notice_left .notice_classify.active {
background-color: rgba(97, 160, 242, 0.2);
}
.notice_content .content .content_div .notice_left .notice_classify:hover .icon,
.notice_content .content .content_div .notice_left .notice_classify.active .icon {
color: #0D84D1;
}
.notice_content .content .content_div .notice_left .notice_classify .icon {
color: #D8DFE6;
font-size: 30px;
}
.notice_content .content .content_div .notice_left .notice_classify .title {
font-size: 16px;
color: #515559;
padding-top: 4.5px;
margin-left: 20px;
}
.notice_content .content .content_div .notice_left .notice_classify .num {
font-size: 11px;
color: #fff;
border-radius: 8px;
background: #FC4C4C;
height: 16px;
line-height: 16px;
padding: 0 5px;
position: relative;
top: 7px;
}
.notice_content .content .content_div .notice_right {
position: absolute;
top: 0;
left: 248px;
right: 0;
bottom: 0;
}
.notice_content .content .content_div .notice_right .page {
position: absolute;
bottom: 15px;
right: 47px;
}
.notice_content .content .content_div .notice_right .notice_list {
position: absolute;
top: 10px;
left: 0;
right: 0;
bottom: 70px;
overflow: auto;
}
.notice_content .content .content_div .notice_right .notice_list::-webkit-scrollbar {
width: 2px;
}
.notice_content .content .content_div .notice_right .notice_list .notice_item {
margin: 0 10px;
cursor: pointer;
font-size: 14px;
padding: 20px;
}
.notice_content .content .content_div .notice_right .notice_list .notice_item:hover {
background-color: #F5F9FC;
}
.notice_content .content .content_div .notice_right .notice_list .notice_item .item_left {
margin-right: 112px;
padding-right: 10px;
}
.notice_content .content .content_div .notice_right .notice_list .notice_item .item_left h3 {
font-size: 16px;
color: #2E3033;
}
.notice_content .content .content_div .notice_right .notice_list .notice_item .item_left p {
color: #8A9299;
margin-top: 10px;
}
.notice_content .content .content_div .notice_right .notice_list .notice_item .item_right {
color: #ADB6BF;
width: 112px;
}
.notice_content {
.content {
position: relative;
.content_div {
position: absolute;
top: 20px;
left: 20px;
right: 20px;
bottom: 20px;
background: #fff;
.notice_left {
width: 247px;
border-right: 1px solid #F5F9FC;
height: 100%;
padding-left: 10px;
.notice_classify {
padding: 15px 20px;
cursor: pointer;
margin-top: 10px;
&:hover,
&.active {
.icon {
color: #0D84D1;
}
background-color: rgba(97, 160, 242, .2);
}
.icon {
color: #D8DFE6;
font-size: 30px;
}
.title {
font-size: 16px;
color: #515559;
padding-top: 4.5px;
margin-left: 20px;
}
.num {
font-size: 11px;
color: #fff;
border-radius: 8px;
background: #FC4C4C;
height: 16px;
line-height: 16px;
padding: 0 5px;
position: relative;
top: 7px;
}
}
}
.notice_right {
position: absolute;
top: 0;
left: 248px;
right: 0;
bottom: 0;
.page {
position: absolute;
bottom: 15px;
right: 47px;
}
.notice_list {
position: absolute;
top: 10px;
left: 0;
right: 0;
bottom: 70px;
overflow: auto;
&::-webkit-scrollbar {
width: 2px;
}
.notice_item {
margin:0 10px;
cursor: pointer;
font-size: 14px;
padding: 20px;
&:hover {
background-color: #F5F9FC;
}
.item_left {
margin-right: 112px;
padding-right: 10px;
h3 {
font-size: 16px;
color: #2E3033;
}
p {
color: #8A9299;
margin-top: 10px;
}
}
.item_right {
color: #ADB6BF;
width: 112px;
}
}
}
}
}
}
}
\ No newline at end of file
;
! function () {
window.IcController = {
init: function () {
this.mounted(this).handleBind(this);
},
getData: function (url, type, param, callback, loading) {
var index;
if (loading == false) {
index = null;
} else {
index = layer.load(1);
}
var platform = {
pf: 20
}
var params = $.extend({}, platform, param);
$.ajax({
type: type,
url: URL_api + "/" + url,
data: params,
dataType: dataTypeXpx,
xhrFields: {
withCredentials: true
},
success: function (data) {
typeof callback == 'function' && callback(data);
layer.close(index);
return false;
},
error: function () {
layer.close(index);
layer.msg('网络出现问题,请重试!');
return false;
}
});
},
mounted: function (opt) {
return this;
},
handleBind: function (opt) {
return this;
},
}, $(function () {
IcController.init();
})
}();
(function (window) {
Util = {
/**
* 设置cookie
* @param name
* @param value
* @param time
* @param domain
* @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;
},
/**
* 获取cookie
* @param name
* @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 "";
},
/**
* 删除cookie
* @param name
*/
delCookie: function (name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = this.getCookie(name);
if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
},
/**
* 获取参数
* @param value
* @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];
},
/**
* 根据参数获取时间
* @param val
* @returns {string}
*/
getDateStr(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;
}
};
if (typeof define === "function" && define.amd) {
return Util;
} else {
window.Util = Util;
}
})(window);
//跨域模式切换 兼容
var dataTypeXpx = "json";
if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) {
dataTypeXpx = "jsonp";
}
var cookieHostname = window.location.hostname.split(".")[1] + "." + window.location.hostname.split(".")[2];
//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;
};
\ 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