新增首页
|
@ -0,0 +1,144 @@
|
|||
.w100{width: 100%;}
|
||||
.w50{width: 50%;}
|
||||
.w48{width: 49%;}
|
||||
.w25{width: 25%;}
|
||||
.w20{width: 19%;}
|
||||
|
||||
|
||||
.djb{display: flex;justify-content: space-between;}
|
||||
.dend{display: flex;justify-content: flex-end;}
|
||||
.djbac{display: flex;justify-content: space-between;align-items: center;}
|
||||
.ac{align-items: center;}
|
||||
.dac{display: flex;align-items: center;}
|
||||
.djcacfw{display: flex;justify-content: center;align-items: center;flex-wrap: wrap;}
|
||||
.djbacfw{display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap;}
|
||||
.cq-cp{cursor: pointer;}
|
||||
.pr{position: relative;}
|
||||
.pa{position: absolute;}
|
||||
.dn{display: none;}
|
||||
.fs{flex-shrink: 0;}
|
||||
.fw{flex-wrap: wrap;}
|
||||
.oh{overflow: hidden;}
|
||||
.fit{object-fit: cover;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.m-s16{margin-top: 16px;}
|
||||
.m-s20{margin-top: 20px;}
|
||||
.m-s27{margin-top: 27px;}
|
||||
.m-s30{margin-top: 30px;}
|
||||
.m-s37{margin-top: 37px;}
|
||||
.m-s65{margin-top: 65px;}
|
||||
|
||||
.m-z10{margin-left: 10px;}
|
||||
.m-z15{margin-left: 15px;}
|
||||
.m-z37{margin-left: 37px;}
|
||||
|
||||
.m-y15{margin-right: 15px;}
|
||||
.m-y37{margin-right: 37px;}
|
||||
|
||||
.m-sx65{margin-top: 65px;margin-bottom: 65px;}
|
||||
.m-sx30{margin-top: 30px;margin-bottom: 30px;}
|
||||
.m-sx28{margin-top: 28px;margin-bottom: 28px;}
|
||||
.m-sx20{margin-top: 20px;margin-bottom: 20px;}
|
||||
.m-sx16{margin-top: 16px;margin-bottom: 16px;}
|
||||
|
||||
|
||||
.m-x65{margin-bottom: 65px;}
|
||||
.m-x37{margin-bottom: 37px;}
|
||||
.m-x32{margin-bottom: 32px;}
|
||||
.m-x30{margin-bottom: 30px;}
|
||||
.m-x27{margin-bottom: 27px;}
|
||||
.m-x20{margin-bottom: 20px;}
|
||||
.m-x16{margin-bottom: 16px;}
|
||||
|
||||
.m-zy180{margin-left: 180px;margin-right: 180px;}
|
||||
.m-zy15{margin-left: 15px;margin-right: 15px;}
|
||||
.m-zy20{margin-left: 20px;margin-right: 20px;}
|
||||
.m-zy30{margin-left: 30px;margin-right: 30px;}
|
||||
|
||||
|
||||
|
||||
|
||||
.p-sx65{padding-top: 65px;padding-bottom: 65px;}
|
||||
.p-s65{padding-top: 65px;}
|
||||
.p-s27{padding-top:27px;}
|
||||
.p-x65{padding-bottom: 65px;}
|
||||
.p-x27{padding-bottom: 27px;}
|
||||
.p-zy180{padding-left: 180px;padding-right: 180px;}
|
||||
.p-zy20{padding-left: 20px;padding-right: 20px;}
|
||||
.p-zy15{padding-left: 15px;padding-right: 15px;}
|
||||
.p-sx10{padding-top: 10px;padding-bottom: 10px;}
|
||||
.p-sx20{padding-top: 20px;padding-bottom: 20px;}
|
||||
|
||||
|
||||
|
||||
.font-12{font-size: 12px;}
|
||||
.font-13{font-size: 13px;}
|
||||
.font-14{font-size: 14px;}
|
||||
.font-18{font-size: 18px;}
|
||||
.font-20{font-size: 20px;}
|
||||
.font-22{font-size: 22px;}
|
||||
.font-24{font-size: 24px;}
|
||||
.font-32{font-size: 32px;}
|
||||
|
||||
|
||||
.tl{text-align: left;}
|
||||
.col19{color: #191919;}
|
||||
.col7d{color: #7d7d7d;}
|
||||
.col9{color: #999999;}
|
||||
|
||||
.backf{background: #FFFFFF;}
|
||||
|
||||
|
||||
.clips1{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
|
||||
.clips2{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
|
||||
.clips3{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
|
||||
.clips4{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 4;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}
|
||||
|
||||
/* 首页 */
|
||||
.banner-img{width: 100%;height: auto;}
|
||||
.sy-dian{width: 4px;height: 4px;border-radius: 100%;background-color: #181818;margin: 0 10px;}
|
||||
.dao-boxw{box-shadow: 0px 3px 6px rgba(0,0,0,.2);display: flex;justify-content: space-between;align-items: center;}
|
||||
.guan-box{display: flex;align-items: center;font-size: 14px;color: #181818;width: 100%;justify-content: flex-end;}
|
||||
.redD{width: 6px;height: 6px;border-radius: 100%;background: #cd2628;top: 10px;right: 12px;}
|
||||
.xiahx{width: 100%;bottom: 0;border-bottom: 3px solid #cd2628;}
|
||||
.dao-box>li{padding: 5px 25px;flex-shrink: 0;text-align: center;font-size: 19px;}
|
||||
.dao-box>li>div{padding: 6px 0;}
|
||||
.cq-dao-active{font-weight: bold;color: #cd2628;}
|
||||
.input-box{flex-shrink: 0;height: 40px;border-radius: 3px;border: 1px solid #ebebeb;padding: 0 10px;width: 220px;}
|
||||
.input-box input{font-size: 14px;height: 40px;border: 0;}
|
||||
.input-box img{right: 10px;top: 10px;width: 20px;height: 20px;}
|
||||
.cq-item-title-box{margin: 65px 0 30px 0;}
|
||||
.cq-item-title-box>div>div{background:-webkit-linear-gradient(left,red,rgba(255,255,255,0));height: 11px; bottom: 0;left: 0;width: 130px; opacity: .8;z-index: 0;}
|
||||
.cq-gengd{font-size: 18px;color: #191919;}
|
||||
.exhibition .item-box{width: 100%;overflow: hidden;height: 388px;}
|
||||
.exhibition .item-box>img{width: 100%;height: auto;cursor: pointer;}
|
||||
.msg .m-x32:nth-last-child(1){
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.msg .m-x32:nth-last-child(2){
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ya-item-box .pr{padding-right: 20px;}
|
||||
.ys-price{font-size: 18px;color: #cb1919;background: rgba(0,0,0,.2);border-radius: 3px;left: 14px;bottom: 14px;padding: 6px 10px;}
|
||||
.ys-title{font-size: 20px;font-weight: bold;padding-right: 20px;}
|
||||
.ys-cate{font-size: 14px;color: #a6a6a4;padding-right: 20px;}
|
||||
.ysj-name{line-height: 26px;}
|
||||
.ysj .ya-item-box{margin-right: 1.36em;}
|
||||
.ysj .ya-item-box:last-child{margin-right: 0px;}
|
||||
.ysj .pr{padding-right: 0px;}
|
||||
.wc-box>div>img{width: 96%;}
|
||||
.wc-box .ya-item-box:hover a{color: #cb1919;text-decoration:underline;}
|
||||
.wc-box>div>div>a:hover{color: #cb1919;text-decoration:underline;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 1.7 MiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 617 KiB |
After Width: | Height: | Size: 222 KiB |
After Width: | Height: | Size: 279 KiB |
After Width: | Height: | Size: 416 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 202 KiB |
After Width: | Height: | Size: 151 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 156 KiB |
After Width: | Height: | Size: 162 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 115 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 172 KiB |
After Width: | Height: | Size: 139 KiB |
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 228 KiB |
After Width: | Height: | Size: 169 KiB |
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 169 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 185 KiB |
After Width: | Height: | Size: 129 KiB |
After Width: | Height: | Size: 127 KiB |
After Width: | Height: | Size: 219 KiB |
After Width: | Height: | Size: 200 KiB |
After Width: | Height: | Size: 255 KiB |
After Width: | Height: | Size: 195 KiB |
After Width: | Height: | Size: 217 KiB |
After Width: | Height: | Size: 176 KiB |
After Width: | Height: | Size: 256 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 344 KiB |
After Width: | Height: | Size: 293 B |
After Width: | Height: | Size: 477 B |
603
index.html
|
@ -4,10 +4,605 @@
|
|||
<meta charset="utf-8" />
|
||||
<title>华夏艺术网</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
||||
<link rel="stylesheet" type="text/css" href="css/layui.css"/>
|
||||
<script src="js/layui.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" type="text/css" href="css/layui.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/swiper-bundle.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/huaxia.css"/>
|
||||
<!-- <script src="js/layui.js" type="text/javascript" charset="utf-8"></script> -->
|
||||
<script src="js/swiper-bundle.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="js/huaxia.js" type="text/javascript" charset="utf-8"></script>
|
||||
<style type="text/css">
|
||||
.swiper-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-slide {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
background: #fff;
|
||||
/* Center slide text vertically */
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
.swiper-pagination-bullet{
|
||||
width: 13px;height: 13px;border-radius: 100%;
|
||||
background: #FFFFFF;
|
||||
border: 2px solid #FFFFFF;
|
||||
opacity: 1;
|
||||
}
|
||||
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet-active{
|
||||
width: 13px;height: 13px;border-radius: 100%;
|
||||
border: 2px solid #cd2628;
|
||||
background-color: rgba(255,255,255,0);
|
||||
}
|
||||
.swiper-button-prev, .swiper-container-rtl .swiper-button-prev {
|
||||
left: 0px;
|
||||
right: auto;
|
||||
}
|
||||
.swiper-button-next, .swiper-container-rtl .swiper-button-prev {
|
||||
right: 0px;
|
||||
left: auto;
|
||||
}
|
||||
.swiper-button-next, .swiper-button-prev {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
background: #ffffff;
|
||||
/* width: calc(var(--swiper-navigation-size)/ 44 * 27);
|
||||
height: var(--swiper-navigation-size); */
|
||||
width: 39px;
|
||||
height: 39px;
|
||||
margin-top: calc(0px - (var(--swiper-navigation-size)/ 2));
|
||||
z-index: 2;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #c6c6c6;
|
||||
}
|
||||
.swiper-button-next::after, .swiper-button-prev::after {
|
||||
font-family: swiper-icons;
|
||||
font-size: 18px;
|
||||
text-transform: none !important;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
font-variant: initial;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body style="background: #FFFFFF;">
|
||||
<!-- Swiper -->
|
||||
<div class="ont-swiper swiper-container">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide"><img class="banner-img" src="img/public/banner.png" ></div>
|
||||
<div class="swiper-slide"><img class="banner-img" src="img/public/banner.png" ></div>
|
||||
</div>
|
||||
<!-- 右箭头 -->
|
||||
<!-- <div class="swiper-button-next"></div> -->
|
||||
<!-- 左箭头 -->
|
||||
<!-- <div class="swiper-button-prev"></div> -->
|
||||
<!-- 指示点 -->
|
||||
<div class="swiper-pagination"></div>
|
||||
</div>
|
||||
<script>
|
||||
let swiper = new Swiper('.ont-swiper', {
|
||||
cssMode: false,//禁止鼠标滑动,切换
|
||||
loop:true,
|
||||
autoplay: {
|
||||
delay: 3000,
|
||||
stopOnLastSlide: true,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
clickable :true,
|
||||
},
|
||||
mousewheel: false,//禁止鼠标滚动,切换
|
||||
});
|
||||
</script>
|
||||
<div class="p-zy180 p-sx10 dao-boxw" style="position: sticky;top: 0;z-index: 10;background: #FFFFFF;">
|
||||
<img class="cq-cp logo" src="img/logo.png" width="487">
|
||||
<div>
|
||||
<div class="guan-box">
|
||||
<span class="cq-cp">关于我们</span>
|
||||
<span class="sy-dian"></span>
|
||||
<div class="cq-cp dac">
|
||||
<img src="img/sy-scart.png" width="14" height="15" style="margin-right: 4px;">
|
||||
<span class="cq-cp">我的购物车</span>
|
||||
</div>
|
||||
<span class="sy-dian"></span>
|
||||
<span class="cq-cp">积分商城</span>
|
||||
<span class="sy-dian"></span>
|
||||
<span class="cq-cp">联系我们</span>
|
||||
<span class="sy-dian"></span>
|
||||
<span class="cq-cp">登录/注册</span>
|
||||
</div>
|
||||
<div class="dend w100 ac m-s20">
|
||||
<div class="w100">
|
||||
<ul class="dao-box dac">
|
||||
<li class="pr">
|
||||
<div class="pr cq-dao-active djcacfw">首页<div class="xiahx pa"></div></div>
|
||||
<!-- 点 -->
|
||||
<span class="redD pa"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">资讯<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">展览<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">艺术家<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">机构<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">培训<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">商城<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
<li class="pr">
|
||||
<div class="pr djcacfw">拍卖<div class="xiahx pa dn"></div></div>
|
||||
<span class="redD pa dn"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pr input-box">
|
||||
<input type="text" name="" id="" class="w100" placeholder="关键字搜索" value="" />
|
||||
<img class="pa cq-cp" src="img/sy-search.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-zy180 djbac cq-item-title-box">
|
||||
<div class="font-32 pr">展览<span class="font-22 m-z10">Exhibition</span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp">View More +</div>
|
||||
</div>
|
||||
<div class="m-x65 oh">
|
||||
<!-- Swiper -->
|
||||
<div class="exhibition pr">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片一" src="img/public/swip-one.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片二" src="img/public/swip-two.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片三" src="img/public/swip-three.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片四" src="img/public/swip-four.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片五" src="img/public/swip-five.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片六" src="img/public/swip-six.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="tl">
|
||||
<div class="item-box fit">
|
||||
<img class="" alt="图片丢失" title="图片七" src="img/public/swip-eleven.png" >
|
||||
</div>
|
||||
<div class="font-20 m-sx16 clips1">艺术之乐 · 百名艺术家酒标展</div>
|
||||
<div class="font-13 m-x16 col7d">主办方:华夏艺术网</div>
|
||||
<div class="font-13 col7d">展览时间:2021.3.19 - 2021.3.25</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 右箭头 -->
|
||||
<div class="two-next swiper-button-next"></div>
|
||||
<!-- 左箭头 -->
|
||||
<div class="two-prev swiper-button-prev"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var myswiper = new Swiper('.exhibition', {
|
||||
cssMode: false,//禁止鼠标滑动,切换
|
||||
loop:true,
|
||||
slidesPerView: 6,//显示数量
|
||||
centeredSlides: true,//显示半截
|
||||
spaceBetween: 25,//图片间距
|
||||
slidesOffsetBefore : 16,
|
||||
autoplay: {
|
||||
delay: 4000,
|
||||
stopOnLastSlide: true,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.two-next',
|
||||
prevEl: '.two-prev',
|
||||
},
|
||||
mousewheel: false,//禁止鼠标滚动,切换
|
||||
});
|
||||
myswiper.el.onmouseover = function(){
|
||||
myswiper.autoplay.stop()
|
||||
}
|
||||
myswiper.el.onmouseleave = function(){
|
||||
myswiper.autoplay.start()
|
||||
}
|
||||
</script>
|
||||
<div class="p-zy180" style="background: #f6f5f3;padding-bottom: 65px;">
|
||||
<!-- 信息动态 -->
|
||||
<div class="djbac cq-item-title-box p-s65">
|
||||
<div class="font-32 pr">信息动态<span class="font-22 m-z10">Information News</span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp">View More +</div>
|
||||
</div>
|
||||
<div class="djbacfw msg">
|
||||
<div class="dac backf p-sx20 w48 m-x32">
|
||||
<img class="fs" src="img/public/xin-one.png" width="242" height="151">
|
||||
<div class="m-zy15">
|
||||
<div class="clips1 font-18 col19">助力熊猫艺术公益:中国邮政发布著名画家刘中《牛气冲...</div>
|
||||
<div class="font-12 col9">2021.06.30</div>
|
||||
<div class="clips2 font-12">爱彼秉承品牌在形式与功能方面的大无畏创新精神,在腕表发展史上扮演着先行者的角色爱彼秉承品牌在形式与功能方面的大无畏创新精神,在碗表发展史上扮演...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dac backf p-sx20 w48 m-x32">
|
||||
<img class="fs" src="img/public/xin-two.png" width="242" height="151">
|
||||
<div class="m-zy15">
|
||||
<div class="clips1 font-18 col19">助力熊猫艺术公益:中国邮政发布著名画家刘中《牛气冲...</div>
|
||||
<div class="font-12 col9">2021.06.30</div>
|
||||
<div class="clips2 font-12">爱彼秉承品牌在形式与功能方面的大无畏创新精神,在腕表发展史上扮演着先行者的角色爱彼秉承品牌在形式与功能方面的大无畏创新精神,在碗表发展史上扮演...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dac backf p-sx20 w48 m-x32">
|
||||
<img class="fs" src="img/public/xin-three.png" width="242" height="151">
|
||||
<div class="m-zy15">
|
||||
<div class="clips1 font-18 col19">助力熊猫艺术公益:中国邮政发布著名画家刘中《牛气冲...</div>
|
||||
<div class="font-12 col9">2021.06.30</div>
|
||||
<div class="clips2 font-12">爱彼秉承品牌在形式与功能方面的大无畏创新精神,在腕表发展史上扮演着先行者的角色爱彼秉承品牌在形式与功能方面的大无畏创新精神,在碗表发展史上扮演...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dac backf p-sx20 w48 m-x32">
|
||||
<img class="fs" src="img/public/xin-four.png" width="242" height="151">
|
||||
<div class="m-zy15">
|
||||
<div class="clips1 font-18 col19">助力熊猫艺术公益:中国邮政发布著名画家刘中《牛气冲...</div>
|
||||
<div class="font-12 col9">2021.06.30</div>
|
||||
<div class="clips2 font-12">爱彼秉承品牌在形式与功能方面的大无畏创新精神,在腕表发展史上扮演着先行者的角色爱彼秉承品牌在形式与功能方面的大无畏创新精神,在碗表发展史上扮演...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 艺术商城 -->
|
||||
<div class="djbac cq-item-title-box">
|
||||
<div class="font-32 pr">艺术商城<span class="font-22 m-z10">Art Mall</span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp">View More +</div>
|
||||
</div>
|
||||
<div class="djb">
|
||||
<div class="w50">
|
||||
<div class="pr backf">
|
||||
<img src="img/public/yi-one.png" width="100%" height="100%">
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w50 djb">
|
||||
<div class="m-zy30">
|
||||
<div class="pr backf">
|
||||
<img src="img/public/yi-two.png" width="100%">
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="pr backf">
|
||||
<img class="" src="img/public/yi-three.png" width="100%">
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dac fw">
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-one.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-two.png" width="100%">
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-three.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-four.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-five.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-six.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-eleven.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-s37">
|
||||
<div class="pr">
|
||||
<img src="img/public/ys-ba.png" width="100%" >
|
||||
<div class="pa ys-price">¥2256.0</div>
|
||||
</div>
|
||||
<div class="clips1 m-sx16 ys-title">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
<div class="ys-cate">分类:酒品包装</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 艺术家 -->
|
||||
<div class="p-zy180 p-s65" style="background: #100e0d;padding-bottom: 65px;">
|
||||
<div class="djbac cq-item-title-box" style="margin-top: 0px;color: #FFFFFF;">
|
||||
<div class="font-32 pr">艺术家<span class="font-22 m-z10">Artist</span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp" style="color: #FFFFFF;">View More +</div>
|
||||
</div>
|
||||
<div class="w100 backf dac">
|
||||
<img class="cq-cp" src="img/public/ysj-one.png" width="100%" height="100%">
|
||||
<div class="m-zy30 col19 font-14">
|
||||
<div class="m-x20" style="font-size: 30px;font-weight: bold;color: #cb1919;">张龙森</div>
|
||||
<div class="ysj-name">职业画家</div>
|
||||
<div class="ysj-name clips4">毕业于中央美术学院,硕士;曾留学在德国卡塞尔艺术学院,现工作生活于北京 文字后期后台替换无论你是追求精致生活的Ta,还是要文艺一把的男女青年,还是热爱潮流、追求个性的一族,又或者是一个不折不扣的吃货。来设计周吧!全方位的体验满足你的挑剔。文字后期后台替换无论你是追求精致生活的Ta,还是要文艺一把的男女青年,还是热爱潮流、追求个性的一族,又或者是一个不折不扣的吃货。来设计周吧!全方位的体验满足你的挑剔。</div>
|
||||
<div class="m-s30">
|
||||
<span class="font-13 cq-cp" style="background: #cb1919;color: rgba(255,255,255,.8);padding: 6px 10px;">查看作品</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dac fw ysj">
|
||||
<div class="w20 backf ya-item-box m-s37">
|
||||
<img src="img/public/ys-one.png" width="100%" >
|
||||
<div class="p-zy15">
|
||||
<div class=" m-sx16 djbac">
|
||||
<div class="ys-title clips1">张龙森</div>
|
||||
<div class="col19 fs cq-cp" style="border: 1px solid #cecccc;padding: 6px 10px;color: rgba(25,25,25,.7);">查看作品</div>
|
||||
</div>
|
||||
<div class="" style="color: rgba(25,25,25,.7);">职业画家</div>
|
||||
<div class="clips2 m-x16" style="color: rgba(25,25,25,.7);">毕业于中央美术学院,硕士;曾留学在德国卡塞尔艺术学院现工作生活于北京...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w20 backf ya-item-box m-s37">
|
||||
<img src="img/public/ys-two.png" width="100%">
|
||||
<div class="p-zy15">
|
||||
<div class=" m-sx16 djbac">
|
||||
<div class="ys-title clips1">张龙森</div>
|
||||
<div class="col19 fs cq-cp" style="border: 1px solid #cecccc;padding: 6px 10px;color: rgba(25,25,25,.7);">查看作品</div>
|
||||
</div>
|
||||
<div class="" style="color: rgba(25,25,25,.7);">职业画家</div>
|
||||
<div class="clips2 m-x16" style="color: rgba(25,25,25,.7);">毕业于中央美术学院,硕士;曾留学在德国卡塞尔艺术学院现工作生活于北京...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w20 backf ya-item-box m-s37">
|
||||
<img src="img/public/ys-three.png" width="100%" >
|
||||
<div class="p-zy15">
|
||||
<div class=" m-sx16 djbac">
|
||||
<div class="ys-title clips1">张龙森</div>
|
||||
<div class="col19 fs cq-cp" style="border: 1px solid #cecccc;padding: 6px 10px;color: rgba(25,25,25,.7);">查看作品</div>
|
||||
</div>
|
||||
<div class="" style="color: rgba(25,25,25,.7);">职业画家</div>
|
||||
<div class="clips2 m-x16" style="color: rgba(25,25,25,.7);">毕业于中央美术学院,硕士;曾留学在德国卡塞尔艺术学院现工作生活于北京...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w20 backf ya-item-box m-s37">
|
||||
<img src="img/public/ys-four.png" width="100%" >
|
||||
<div class="p-zy15">
|
||||
<div class=" m-sx16 djbac">
|
||||
<div class="ys-title clips1">张龙森</div>
|
||||
<div class="col19 fs cq-cp" style="border: 1px solid #cecccc;padding: 6px 10px;color: rgba(25,25,25,.7);">查看作品</div>
|
||||
</div>
|
||||
<div class="" style="color: rgba(25,25,25,.7);">职业画家</div>
|
||||
<div class="clips2 m-x16" style="color: rgba(25,25,25,.7);">毕业于中央美术学院,硕士;曾留学在德国卡塞尔艺术学院现工作生活于北京...</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w20 backf ya-item-box m-s37">
|
||||
<img src="img/public/ys-five.png" width="100%" >
|
||||
<div class="p-zy15">
|
||||
<div class=" m-sx16 djbac">
|
||||
<div class="ys-title clips1">张龙森</div>
|
||||
<div class="col19 fs cq-cp" style="border: 1px solid #cecccc;padding: 6px 10px;color: rgba(25,25,25,.7);">查看作品</div>
|
||||
</div>
|
||||
<div class="" style="color: rgba(25,25,25,.7);">职业画家</div>
|
||||
<div class="clips2 m-x16" style="color: rgba(25,25,25,.7);">毕业于中央美术学院,硕士;曾留学在德国卡塞尔艺术学院现工作生活于北京...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-zy180">
|
||||
<!-- 文创专区 -->
|
||||
<div class="djbac cq-item-title-box">
|
||||
<div class="font-32 pr">文创专区<span class="font-22 m-z10">Cultural and Creative Zone</span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp">View More +</div>
|
||||
</div>
|
||||
<div class="dac fw wc-box">
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-01.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-02.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-03.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-04.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-05.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-06.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-07.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-08.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-09.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-10.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-11.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
<div class="w25 ya-item-box m-x37 cq-cp">
|
||||
<img src="img/public/wc-12.png">
|
||||
<div class="clips1 m-sx16 ys-title"><a href="">艺术清酒--得寓(酒标作品)Delight Sake</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 培训 -->
|
||||
<div class="p-zy180 p-sx65" style="background: url(img/public/px-bac.png); background-size: 100% 100%;">
|
||||
<div class="djbac cq-item-title-box" style="margin-top: 0;">
|
||||
<div class="font-32 pr">培训<span class="font-22 m-z10">Cooperative Partner</span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp">View More +</div>
|
||||
</div>
|
||||
<div class="djb">
|
||||
<div class="w50 backf">
|
||||
<img src="img/public/px-01.png" width="100%">
|
||||
<div class="clips1 m-sx20 ys-title p-zy15">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
</div>
|
||||
<div class="w50 djb">
|
||||
<div class="m-zy30 backf">
|
||||
<img src="img/public/px-02.png" width="100%">
|
||||
<div class="clips1 m-sx20 ys-title p-zy15">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
</div>
|
||||
<div class="backf">
|
||||
<img class="" src="img/public/px-03.png" width="100%">
|
||||
<div class="clips1 m-sx20 ys-title p-zy15">艺术清酒--得寓(酒标作品)Delight Sake</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 合作伙伴 -->
|
||||
<div class="p-zy180 p-sx65">
|
||||
<div class="djbac cq-item-title-box" style="margin-top: 0;">
|
||||
<div class="font-32 pr">合作伙伴<span class="font-22 m-z10">Cooperative Partner <span style="font-size: 14px;color: rgba(25,25,25,.5);margin-left: 10px;">700+媒体合作、200+机构支持、5000+名艺术家</span></span><div class="pa"></div></div>
|
||||
<div class="cq-gengd cq-cp">View More +</div>
|
||||
</div>
|
||||
<div class="djbac">
|
||||
<img class="cq-cp" src="img/public/hz-01.png" >
|
||||
<img class="cq-cp" src="img/public/hz-02.png" >
|
||||
<img class="cq-cp" src="img/public/hz-03.png" >
|
||||
<img class="cq-cp" src="img/public/hz-04.png" >
|
||||
<img class="cq-cp" src="img/public/hz-02.png" >
|
||||
<img class="cq-cp" src="img/public/hz-05.png" >
|
||||
<img class="cq-cp" src="img/public/hz-07.png" >
|
||||
<img class="cq-cp" src="img/public/hz-04.png" >
|
||||
</div>
|
||||
<div style="background-color: #f5f5f5;padding: 10px;">
|
||||
<div class="pr backf" style="overflow: hidden;">
|
||||
<img class="pa" src="img/public/sy-input-bc.png" >
|
||||
<div class="djbac cq-item-title-box" style="margin-top: 0px;margin-bottom: 20px;">
|
||||
<div class="font-32 pr">合作留言<span class="font-22 m-z10">Cooperation Message <span style="font-size: 14px;color: rgba(25,25,25,.5);margin-left: 10px;">如果您有意见建议请留言,我们将第一时间与您联系!</span></span><div class="pa"></div></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
$(function(){
|
||||
$('.logo').on('click',function(){//logo图标点击事件
|
||||
location.href = 'index.html'
|
||||
})
|
||||
$('.dao-box li div').mouseover(function(){//导航悬浮事件
|
||||
$(this).css("cursor","pointer")
|
||||
})
|
||||
$('.dao-box li div').click(function(){//导航点击事件
|
||||
$('.dao-box li div').removeClass('cq-dao-active')
|
||||
$('.dao-box li div div').addClass("dn");
|
||||
$('.dao-box li span').addClass("dn");
|
||||
$(this).find(".xiahx").removeClass('dn')
|
||||
$(this).next(".redD").removeClass('dn')
|
||||
$(this).addClass('cq-dao-active')
|
||||
})
|
||||
})
|
167
js/layui.js
|
@ -15,13 +15,13 @@ var $ = layui.$;
|
|||
*/
|
||||
var IS_PHANTOMJS = layui.device('phantomjs').phantomjs;
|
||||
|
||||
describe('layui', function () {
|
||||
it('version', function () {
|
||||
describe('layui', function() {
|
||||
it('version', function() {
|
||||
expect(layui.v).to.be.a('string');
|
||||
expect(layui.v).to.not.be.empty;
|
||||
});
|
||||
|
||||
it('layui.config', function () {
|
||||
it('layui.config', function() {
|
||||
expect(layui.config()).to.deep.equal(layui);
|
||||
expect(layui.config({
|
||||
testName: 'layui'
|
||||
|
@ -29,31 +29,31 @@ describe('layui', function () {
|
|||
expect(layui.cache.testName).to.equal('layui');
|
||||
});
|
||||
|
||||
describe('layui.router', function () {
|
||||
describe('layui.router', function() {
|
||||
var defaultData = {
|
||||
path: [],
|
||||
search: {},
|
||||
hash: ''
|
||||
};
|
||||
|
||||
it('default params', function () {
|
||||
it('default params', function() {
|
||||
expect(layui.router).to.be.a('function');
|
||||
expect(layui.router()).to.be.a('object').and.deep.equal(defaultData);
|
||||
});
|
||||
|
||||
it('error router', function () {
|
||||
it('error router', function() {
|
||||
[
|
||||
null,
|
||||
'',
|
||||
'#123',
|
||||
'123',
|
||||
'##'
|
||||
].forEach(function (key) {
|
||||
].forEach(function(key) {
|
||||
expect(layui.router(key)).to.deep.equal(defaultData);
|
||||
});
|
||||
});
|
||||
|
||||
it('router querystring', function () {
|
||||
it('router querystring', function() {
|
||||
expect(layui.router('#/a=1/b=2/c=')).to.deep.equal($.extend({}, defaultData, {
|
||||
href: '/a=1/b=2/c=',
|
||||
search: {
|
||||
|
@ -73,7 +73,7 @@ describe('layui', function () {
|
|||
// urldecode
|
||||
});
|
||||
|
||||
it('router hash', function () {
|
||||
it('router hash', function() {
|
||||
expect(layui.router('#/name#layui')).to.deep.equal($.extend({}, defaultData, {
|
||||
hash: '#layui',
|
||||
path: ['name'],
|
||||
|
@ -86,7 +86,7 @@ describe('layui', function () {
|
|||
expect(layui.router('#/name=1/b=2#layui').hash).to.equal('#layui');
|
||||
});
|
||||
|
||||
it('router path', function () {
|
||||
it('router path', function() {
|
||||
expect(layui.router('#/a/b/c=2#hash')).to.deep.equal({
|
||||
path: ['a', 'b'],
|
||||
search: {
|
||||
|
@ -98,51 +98,51 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('layui.each', function () {
|
||||
it('check params', function () {
|
||||
describe('layui.each', function() {
|
||||
it('check params', function() {
|
||||
expect(layui.each).to.be.a('function');
|
||||
expect(layui.each()).to.deep.equal(layui);
|
||||
expect(layui.each({})).to.deep.equal(layui);
|
||||
expect(layui.each([])).to.deep.equal(layui);
|
||||
expect(layui.each({}, function () {})).to.deep.equal(layui);
|
||||
expect(layui.each([], function () {})).to.deep.equal(layui);
|
||||
expect(layui.each({}, function() {})).to.deep.equal(layui);
|
||||
expect(layui.each([], function() {})).to.deep.equal(layui);
|
||||
});
|
||||
|
||||
it('null params', function (done) {
|
||||
it('null params', function(done) {
|
||||
var index = 0;
|
||||
layui.each(null, function (index) {
|
||||
layui.each(null, function(index) {
|
||||
index += 1;
|
||||
});
|
||||
setTimeout(function () {
|
||||
setTimeout(function() {
|
||||
expect(index).to.equal(0);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('object each', function (done) {
|
||||
it('object each', function(done) {
|
||||
layui.each({
|
||||
name: 'layui'
|
||||
}, function (key, value) {
|
||||
}, function(key, value) {
|
||||
expect(this + '').to.deep.equal(value).and.equal('layui');
|
||||
expect(key).to.equal('name');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('array each', function (done) {
|
||||
it('array each', function(done) {
|
||||
layui.each([
|
||||
'layui'
|
||||
], function (index, value) {
|
||||
], function(index, value) {
|
||||
expect(this + '').to.deep.equal(value).and.equal('layui');
|
||||
expect(index).to.equal(0);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('break array each', function () {
|
||||
it('break array each', function() {
|
||||
var arr = new Array(100).join(',').split(',');
|
||||
var flag = -1;
|
||||
layui.each(arr, function (index) {
|
||||
layui.each(arr, function(index) {
|
||||
flag = index;
|
||||
if (index > 5) {
|
||||
return true;
|
||||
|
@ -151,7 +151,7 @@ describe('layui', function () {
|
|||
expect(flag).to.equal(6);
|
||||
|
||||
flag = -1;
|
||||
layui.each(arr, function (index) {
|
||||
layui.each(arr, function(index) {
|
||||
flag = index;
|
||||
if (index > 5) {
|
||||
return false;
|
||||
|
@ -160,20 +160,20 @@ describe('layui', function () {
|
|||
expect(flag).to.equal(99);
|
||||
});
|
||||
|
||||
it('break object each', function () {
|
||||
it('break object each', function() {
|
||||
var obj = {
|
||||
name: 'layui',
|
||||
version: '2.x'
|
||||
};
|
||||
var flag = null;
|
||||
layui.each(obj, function (key) {
|
||||
layui.each(obj, function(key) {
|
||||
flag = key;
|
||||
return true;
|
||||
});
|
||||
expect(flag).to.equal('name');
|
||||
|
||||
flag = null;
|
||||
layui.each(obj, function (key) {
|
||||
layui.each(obj, function(key) {
|
||||
flag = key;
|
||||
return false;
|
||||
});
|
||||
|
@ -181,10 +181,10 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('layui.img', function () {
|
||||
describe('layui.img', function() {
|
||||
var base64 = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
|
||||
it('success callback', function (done) {
|
||||
layui.img(base64, function (img) {
|
||||
it('success callback', function(done) {
|
||||
layui.img(base64, function(img) {
|
||||
expect(img).to.not.undefined;
|
||||
expect(typeof(img)).to.equal('object', '是img对象');
|
||||
expect(img.nodeType).to.equal(1, 'img标签节点');
|
||||
|
@ -196,8 +196,8 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('error callback', function (done) {
|
||||
layui.img('/api/mock?statusCode=404', function () {}, function (e) {
|
||||
it('error callback', function(done) {
|
||||
layui.img('/api/mock?statusCode=404', function() {}, function(e) {
|
||||
expect(e).to.not.undefined;
|
||||
done();
|
||||
});
|
||||
|
@ -219,9 +219,9 @@ describe('layui', function () {
|
|||
// });
|
||||
// });
|
||||
|
||||
it('load complete', function (done) {
|
||||
layui.img(base64, function () {
|
||||
layui.img(base64, function (img) {
|
||||
it('load complete', function(done) {
|
||||
layui.img(base64, function() {
|
||||
layui.img(base64, function(img) {
|
||||
expect(img).to.not.undefined;
|
||||
done();
|
||||
});
|
||||
|
@ -229,23 +229,23 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('layui.hint', function () {
|
||||
it('layui.hint', function() {
|
||||
expect(layui.hint).to.be.a('function');
|
||||
expect(layui.hint()).to.be.a('object');
|
||||
expect(layui.hint().error).to.be.a('function');
|
||||
});
|
||||
|
||||
describe('layui.stope', function () {
|
||||
it('stopPropagation', function (done) {
|
||||
describe('layui.stope', function() {
|
||||
it('stopPropagation', function(done) {
|
||||
layui.stope({
|
||||
stopPropagation: function (e) {
|
||||
stopPropagation: function(e) {
|
||||
expect(e).to.be.undefined;
|
||||
done();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('cancelBubble', function () {
|
||||
it('cancelBubble', function() {
|
||||
var event = {};
|
||||
layui.stope(event);
|
||||
expect(event.cancelBubble).to.be.true;
|
||||
|
@ -253,7 +253,7 @@ describe('layui', function () {
|
|||
|
||||
// ie中不支持, 只针对phantomjs测试
|
||||
if (IS_PHANTOMJS) {
|
||||
it('window.event', function () {
|
||||
it('window.event', function() {
|
||||
var old = window.event;
|
||||
var event = window.event = {};
|
||||
layui.stope();
|
||||
|
@ -263,21 +263,22 @@ describe('layui', function () {
|
|||
}
|
||||
});
|
||||
|
||||
describe('layui.onevent', function () {
|
||||
it('check params and return value', function () {
|
||||
describe('layui.onevent', function() {
|
||||
it('check params and return value', function() {
|
||||
expect(layui.onevent).to.be.a('function');
|
||||
expect(layui.onevent()).to.deep.equal(layui);
|
||||
expect(layui.onevent([], [], [])).to.deep.equal(layui);
|
||||
expect(layui.onevent({}, {}, {})).to.deep.equal(layui);
|
||||
expect(layui.onevent('test-' + Date.now(), 'click', function () {})).to.not.deep.equal(layui);
|
||||
expect(layui.onevent('test-' + Date.now(), 'click', function() {})).to.not.deep
|
||||
.equal(layui);
|
||||
});
|
||||
|
||||
it('bind event', function (done) {
|
||||
it('bind event', function(done) {
|
||||
var id = 'test-bind-event';
|
||||
var data = {
|
||||
name: 'layui'
|
||||
};
|
||||
layui.onevent(id, 'click', function (param) {
|
||||
layui.onevent(id, 'click', function(param) {
|
||||
expect(this).to.deep.equal(layui);
|
||||
expect(param).to.deep.equal(data);
|
||||
done();
|
||||
|
@ -285,13 +286,13 @@ describe('layui', function () {
|
|||
layui.event(id, 'click', data);
|
||||
});
|
||||
|
||||
it('coverage of the same name event', function () {
|
||||
it('coverage of the same name event', function() {
|
||||
var id = 'test-same-event';
|
||||
var index = 0;
|
||||
layui.onevent(id, 'click', function () {
|
||||
layui.onevent(id, 'click', function() {
|
||||
index = 1;
|
||||
});
|
||||
layui.onevent(id, 'click', function () {
|
||||
layui.onevent(id, 'click', function() {
|
||||
index = 2;
|
||||
});
|
||||
layui.event(id, 'click');
|
||||
|
@ -299,19 +300,19 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('layui.event', function () {
|
||||
it('trigger event', function (done) {
|
||||
layui.onevent('test-trigger', 'click(*)', function (data) {
|
||||
describe('layui.event', function() {
|
||||
it('trigger event', function(done) {
|
||||
layui.onevent('test-trigger', 'click(*)', function(data) {
|
||||
expect(data).to.be.true;
|
||||
done();
|
||||
});
|
||||
layui.event('test-trigger', 'click(*)', true);
|
||||
});
|
||||
|
||||
it.skip('trigger multiple', function () {
|
||||
it.skip('trigger multiple', function() {
|
||||
var index = 0;
|
||||
var id = 'test-trigger-multiple';
|
||||
layui.onevent(id, 'nav', function () {
|
||||
layui.onevent(id, 'nav', function() {
|
||||
index += 1;
|
||||
});
|
||||
layui.event(id, 'nav');
|
||||
|
@ -320,11 +321,11 @@ describe('layui', function () {
|
|||
expect(index).to.equal(3);
|
||||
});
|
||||
|
||||
it('return value', function () {
|
||||
it('return value', function() {
|
||||
expect(layui.event('id', 'event')).to.be.null;
|
||||
|
||||
// 只有在返回 false 时, 结果才是 false
|
||||
layui.onevent('test-return-value-1', 'click', function (data) {
|
||||
layui.onevent('test-return-value-1', 'click', function(data) {
|
||||
return data;
|
||||
});
|
||||
expect(layui.event('test-return-value-1', 'click', false)).to.be.false;
|
||||
|
@ -333,9 +334,8 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe('layui.sort', function () {
|
||||
var numberData = [
|
||||
{
|
||||
describe('layui.sort', function() {
|
||||
var numberData = [{
|
||||
name: 1
|
||||
},
|
||||
{
|
||||
|
@ -346,7 +346,7 @@ describe('layui', function () {
|
|||
}
|
||||
];
|
||||
|
||||
it('check params and return value', function () {
|
||||
it('check params and return value', function() {
|
||||
expect(layui.sort()).to.deep.equal([], '空参数时默认为空数组');
|
||||
|
||||
expect(layui.sort({})).to.deep.equal({}, '只传空对象默认返回');
|
||||
|
@ -370,7 +370,7 @@ describe('layui', function () {
|
|||
});
|
||||
|
||||
// 测试是否污染原数据
|
||||
it('clone object', function () {
|
||||
it('clone object', function() {
|
||||
var clone = layui.sort(numberData, 'name');
|
||||
|
||||
// 往clone对象添加
|
||||
|
@ -380,9 +380,8 @@ describe('layui', function () {
|
|||
expect(numberData).to.have.lengthOf(3);
|
||||
});
|
||||
|
||||
it('format value number', function () {
|
||||
var result = layui.sort([
|
||||
{
|
||||
it('format value number', function() {
|
||||
var result = layui.sort([{
|
||||
key: '1'
|
||||
},
|
||||
{
|
||||
|
@ -395,8 +394,7 @@ describe('layui', function () {
|
|||
key: 3
|
||||
}
|
||||
], 'key');
|
||||
expect(result).to.deep.equal([
|
||||
{
|
||||
expect(result).to.deep.equal([{
|
||||
key: '-1'
|
||||
},
|
||||
{
|
||||
|
@ -411,10 +409,9 @@ describe('layui', function () {
|
|||
]);
|
||||
});
|
||||
|
||||
it('asc order', function () {
|
||||
it('asc order', function() {
|
||||
var result = layui.sort(numberData, 'name');
|
||||
expect(result).to.deep.equal([
|
||||
{
|
||||
expect(result).to.deep.equal([{
|
||||
name: 1
|
||||
},
|
||||
{
|
||||
|
@ -426,10 +423,9 @@ describe('layui', function () {
|
|||
]);
|
||||
});
|
||||
|
||||
it('desc order', function () {
|
||||
it('desc order', function() {
|
||||
var result = layui.sort(numberData, 'name', true);
|
||||
expect(result).to.deep.equal([
|
||||
{
|
||||
expect(result).to.deep.equal([{
|
||||
name: 3
|
||||
},
|
||||
{
|
||||
|
@ -441,7 +437,7 @@ describe('layui', function () {
|
|||
]);
|
||||
});
|
||||
|
||||
it('error data', function () {
|
||||
it('error data', function() {
|
||||
var data = [
|
||||
// null,
|
||||
{
|
||||
|
@ -454,8 +450,7 @@ describe('layui', function () {
|
|||
name: '3'
|
||||
}
|
||||
];
|
||||
expect(layui.sort(data, 'name')).to.deep.equal([
|
||||
{},
|
||||
expect(layui.sort(data, 'name')).to.deep.equal([{},
|
||||
[],
|
||||
'test',
|
||||
{
|
||||
|
@ -468,7 +463,7 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('layui.device', function () {
|
||||
it('layui.device', function() {
|
||||
expect(layui.device).to.be.a('function');
|
||||
expect(layui.device()).to.be.a('object');
|
||||
expect(layui.device().ie).to.be.not.undefined;
|
||||
|
@ -480,8 +475,8 @@ describe('layui', function () {
|
|||
expect(layui.device('layui.com')['layui.com']).to.be.false;
|
||||
});
|
||||
|
||||
describe('layui.getStyle', function () {
|
||||
it('real test', function () {
|
||||
describe('layui.getStyle', function() {
|
||||
it('real test', function() {
|
||||
var elem = $('<div />').css({
|
||||
position: 'fixed',
|
||||
zIndex: 10
|
||||
|
@ -491,10 +486,10 @@ describe('layui', function () {
|
|||
expect(layui.getStyle(elem, 'z-index')).to.equal('10');
|
||||
});
|
||||
|
||||
it('mock currentStyle', function (done) {
|
||||
it('mock currentStyle', function(done) {
|
||||
var node = {
|
||||
currentStyle: {
|
||||
getPropertyValue: function (name) {
|
||||
getPropertyValue: function(name) {
|
||||
expect(name).to.equal('layui');
|
||||
done();
|
||||
}
|
||||
|
@ -504,7 +499,7 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('layui.extend', function () {
|
||||
it('layui.extend', function() {
|
||||
expect(layui.extend).to.be.a('function');
|
||||
expect(layui.extend()).to.deep.equal(layui);
|
||||
expect(layui.extend({
|
||||
|
@ -522,9 +517,9 @@ describe('layui', function () {
|
|||
delete layui.modules[id];
|
||||
});
|
||||
|
||||
describe('layui.data', function () {
|
||||
describe('layui.data', function() {
|
||||
if (IS_PHANTOMJS) {
|
||||
it('not support JSON', function () {
|
||||
it('not support JSON', function() {
|
||||
var old = window.JSON;
|
||||
window.JSON = null;
|
||||
expect(layui.data()).to.be.undefined;
|
||||
|
@ -544,7 +539,7 @@ describe('layui', function () {
|
|||
expect(localStorage[id]).to.be.undefined;
|
||||
});
|
||||
|
||||
it('get table data', function () {
|
||||
it('get table data', function() {
|
||||
var table = 'test-get-table-data';
|
||||
expect(layui.data(table)).to.deep.equal({});
|
||||
|
||||
|
@ -560,7 +555,7 @@ describe('layui', function () {
|
|||
layui.data(table, null);
|
||||
});
|
||||
|
||||
it('get data', function () {
|
||||
it('get data', function() {
|
||||
var id = 'test-get-data';
|
||||
|
||||
// 直接获取肯定为空
|
||||
|
@ -581,7 +576,7 @@ describe('layui', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('remove data', function () {
|
||||
it('remove data', function() {
|
||||
var id = 'test-remove-data';
|
||||
|
||||
layui.data(null, {
|
||||
|
|