作者 乔爽

update

.dropload-up,.dropload-down{
position: relative;
height: 0;
overflow: hidden;
font-size: 12px;
/* 开启硬件加速 */
-webkit-transform:translateZ(0);
transform:translateZ(0);
}
.dropload-down{
height: 50px;
}
.dropload-refresh,.dropload-update,.dropload-load,.dropload-noData{
height: 50px;
line-height: 50px;
text-align: center;
}
.dropload-load .loading{
display: inline-block;
height: 15px;
width: 15px;
border-radius: 100%;
margin: 6px;
border: 2px solid #666;
border-bottom-color: transparent;
vertical-align: middle;
-webkit-animation: rotate 0.75s linear infinite;
animation: rotate 0.75s linear infinite;
}
@-webkit-keyframes rotate {
0% {
-webkit-transform: rotate(0deg);
}
50% {
-webkit-transform: rotate(180deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(180deg);
}
100% {
transform: rotate(360deg);
}
}
\ No newline at end of file
... ...
.container {
width: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top{
width: 7.5rem;
/*height: 1.5rem;*/
background-color: #F7F7F7;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top_t{
width: 6.86rem;
height: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.top_t_left{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.top_t_left_text{
font-size:0.3rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(166,16,16,1);
}
.icon-caidan{
}
/*中部*/
.top_t_middle{
width: 1.2rem;
height: 0.5rem;
display: flex;
}
.top_t_middle img{
width: 100%;
height: 100%;
}
/*右边*/
.top_t_right{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.icon-10{
position: relative;
}
.top_t_right_pic{
width: 0.4rem;
height: 0.4rem;
display: flex;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.top_t_right_pic img{
width: 100%;
height: 100%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
/*-----底部------*/
.top_d{
width: 5.56rem;
display: flex;
padding-bottom: 0.03rem;
border-bottom: 1px solid #999999;
margin: 0.3rem 0 0.2rem 0;
}
.top_d_input{
width: 5rem;
text-align: center;
border: none;
outline: none;
background-color: #F7F7F7;
font-size: 0.3rem;
box-sizing: border-box;
padding: 0 0.2rem;
}
.top_d_input::placeholder{
color: #999999;
}
.mid{
margin-top: 0.6rem;
display: flex;
width: 6.2rem;
flex-flow: column;
}
.mid_title{
font-size: 0.48rem;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(51,51,51,1);
}
.mid_adv{
width: 3.4rem;
margin-top: 0.67rem;
display: flex;
justify-content: space-between;
}
.mid_adv_left{
width: 1.5rem;
height: 0.4rem;
background:rgba(192,44,44,1);
border-radius: 0.04rem;
border: 1px solid rgba(192,44,44,1);
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
line-height: 0.36rem;
text-align: center;
}
.mid_adv_right{
width: 1.5rem;
height: 0.4rem;
background:rgba(192,44,44,0);
border:1px solid rgba(153, 153, 153, 1);
border-radius: 0.04rem;
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height: 0.36rem;
text-align: center;
}
.mid_area{
margin-top: 0.32rem;
width: 6.2rem;
height: 2.62rem;
background:rgba(166,16,16,0);
border:1px solid rgba(153, 153, 153, 1);
border-radius: 0.04rem;
box-sizing: border-box;
padding: 0.2rem 0.2rem;
}
.mid_area textarea{
width: 100%;
height: 100%;
outline: none;
border: none;
}
.mid_area textarea::placeholder{
color: #999999;
}
.mid_way{
margin-top: 0.67rem;
font-size: 0.36rem;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(51,51,51,1);
line-height: 0.36rem;
}
.mid_input{
border-bottom: 1px solid #A61010;
}
.mid_input input{
width: 100%;
height: 0.8rem;
outline: none;
border: none;
font-size: 0.3rem;
}
.mid_input input::placeholder{
color: #999999;
}
.mid_sub{
width: 3.5rem;
height: 0.5rem;
background:rgba(192,44,44,1);
border-radius:4px;
margin-top: 1.26rem;
font-size: 0.26rem;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(255,255,255,1);
line-height: 0.5rem;
text-align: center;
}
.sub{
display: flex;
justify-content: center;
}
... ...
... ... @@ -95,149 +95,132 @@
.top_d_input::placeholder{
color: #999999;
}
/*---------- 信息框 ----------*/
.mid{
margin-top: 0.53rem;
width: 6.86rem;
height: 1.5rem;
background:rgba(255,255,255,1);
box-shadow:0 0.04rem 0.12rem 0 rgba(155,155,155,0.1);
border-radius: 0.1rem;
width: 7.5rem;
display: flex;
margin-top: 0.6rem;
justify-content: center;
overflow-x: scroll;
}
.mid_item{
display: flex;
flex-flow: column;
align-items: center;
border-bottom: 1px solid #e8e8e8;
margin-left: 0.38rem;
}
.mid_item_pic{
width: 1.6rem;
height: 1.8rem;
display: flex;
}
.mid_item_pic img{
width: 100%;
height: 100%;
}
.mid_item_text{
font-size: 0.16rem;
font-family:MicrosoftYaHei;
font-weight:400;
color:rgba(51,51,51,1);
/*line-height:30px;*/
margin-top: 0.1rem;
margin-bottom: 0.1rem;
}
.bottom{
display: flex;
margin-top: 0.3rem;
}
.bottom_top{
display: flex;
border-bottom: 1px solid #e8e8e8;
height: 1.8rem;
align-items: center;
box-sizing: border-box;
padding-left: 0.3rem;
}
.mid_left{
.bottom_top_pic{
width: 0.9rem;
height: 0.9rem;
display: flex;
/*align-items: center;*/
border-radius: 50%;
}
.mid_left img{
.bottom_top_pic img{
width: 100%;
height: 100%;
border-radius: 50%;
}
.mid_right{
margin-left: 0.3rem;
.bottom_top_text{
display: flex;
flex-flow: column;
margin-left: 0.33rem;
}
.mid_right_big{
.bottom_top_text_big{
font-size: 0.36rem;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(51,51,51,1);
line-height: 0.24rem;
display: flex;
/*line-height:24px;*/
line-height: 0.45rem;
}
.mid_right_small{
margin-top: 0.2rem;
font-size: 0.2rem;
.bottom_top_text_small{
font-size: 0.24rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height: 0.24rem;
display: flex;
line-height: 0.45rem;
}
.item{
width: 6.86rem;
.bottom_top_b{
margin-top: 0.13rem;
display: flex;
justify-content: space-around;
margin-top: 0.6rem;
width: 4.3rem;
justify-content: space-between;
}
.item_m{
.bottom_top_b_left{
font-size: 0.36rem;
font-family:MicrosoftYaHei-Bold;
font-weight:bold;
/*color:rgba(166,16,16,1);*/
line-height: 0.36rem;
position: relative;
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
/*line-height:24px;*/
}
/*.item_right{*/
/*font-size: 0.36rem;*/
/*font-family:MicrosoftYaHei-Bold;*/
/*font-weight:bold;*/
/*color:rgba(51,51,51,1);*/
/*line-height: 0.36rem;*/
/*position: relative;*/
/*}*/
.item_number{
width: 0.2rem;
height: 0.2rem;
background:rgba(166,16,16,1);
border:2px solid rgba(255, 255, 255, 1);
border-radius:50%;
.bottom_top_b_att{
width: 1rem;
height: 0.28rem;
background: #C02C2C;
border-radius: 0.04rem;
font-size: 0.2rem;
line-height: 0.28rem;
text-align: center;
color: #ffffff;
}
font-size: 0.12rem;
font-family:MicrosoftYaHei;
font-weight:400;
color:rgba(252,254,255,1);
line-height: 0.36rem;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: -0.18rem;
left: 0.6rem;
}
.item_color{
color: #A61010;
}
.item_color:before{
content: "";
width: 0.8rem;
height: 0.02rem;
background: #A61010;
position: absolute;
bottom: -0.15rem;
/*color: #A61010;*/
}
.message{
margin-top: 0.5rem;
width: 6.86rem;
font-size: 0.24rem;
font-family:MicrosoftYaHei;
font-weight:400;
line-height: 0.36rem;
}
.message_box{
margin-top: 0.2rem;
}
.color_red{
color: #A61010;
}
/*审核消息*/
.audit{
margin-top: 0.66rem;
width: 6.86rem;
/*底部菜单栏*/
.menu{
width: 7.5rem;
height: 1.58rem;
position: fixed;
bottom: 0;
}
.audit_big{
margin-top: 0.28rem;
font-size: 0.24rem;
font-family:MicrosoftYaHei-Bold;
font-weight:bold;
color:rgba(51,51,51,1);
line-height: 0.36rem;
.menu_top{
display: flex;
justify-content: space-around;
}
.audit_big:first-child{
margin-top: 0;
.menu_top_item{
display: flex;
align-items: center;
}
.audit_big:last-child{
margin-bottom: 0.6rem;
.menu_bottom{
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 0 0.3rem;
}
.audit_small{
.menu_bottom_item{
font-size: 0.24rem;
font-family:MicrosoftYaHei;
font-weight:400;
color:rgba(51,51,51,1);
line-height: 0.36rem;
line-height: 2;
}
... ...
.container {
width: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top{
width: 7.5rem;
/*height: 1.5rem;*/
background-color: #F7F7F7;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top_t{
width: 6.86rem;
height: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.top_t_left{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.top_t_left_text{
font-size:0.3rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(166,16,16,1);
}
.icon-caidan{
}
/*中部*/
.top_t_middle{
width: 1.2rem;
height: 0.5rem;
display: flex;
}
.top_t_middle img{
width: 100%;
height: 100%;
}
/*右边*/
.top_t_right{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.icon-10{
position: relative;
}
.top_t_right_pic{
width: 0.4rem;
height: 0.4rem;
display: flex;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.top_t_right_pic img{
width: 100%;
height: 100%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
/*-----底部------*/
.top_d{
width: 5.56rem;
display: flex;
padding-bottom: 0.03rem;
border-bottom: 1px solid #999999;
margin: 0.3rem 0 0.2rem 0;
}
.top_d_input{
width: 5rem;
text-align: center;
border: none;
outline: none;
background-color: #F7F7F7;
font-size: 0.3rem;
box-sizing: border-box;
padding: 0 0.2rem;
}
.top_d_input::placeholder{
color: #999999;
}
.mid{
/*margin-top: 0.7rem;*/
font-size: 0.3rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
padding: 0.7rem 0.3rem;
line-height: 0.36rem;
}
.color_red{
color: #A61010;
}
... ...
.container {
width: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top{
width: 7.5rem;
/*height: 1.5rem;*/
background-color: #F7F7F7;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top_t{
width: 6.86rem;
height: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.top_t_left{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.top_t_left_text{
font-size:0.3rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(166,16,16,1);
}
.icon-caidan{
}
/*中部*/
.top_t_middle{
width: 1.2rem;
height: 0.5rem;
display: flex;
}
.top_t_middle img{
width: 100%;
height: 100%;
}
/*右边*/
.top_t_right{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.icon-10{
position: relative;
}
.top_t_right_pic{
width: 0.4rem;
height: 0.4rem;
display: flex;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.top_t_right_pic img{
width: 100%;
height: 100%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
/*-----底部------*/
.top_d{
width: 5.56rem;
display: flex;
padding-bottom: 0.03rem;
border-bottom: 1px solid #999999;
margin: 0.3rem 0 0.2rem 0;
}
.top_d_input{
width: 5rem;
text-align: center;
border: none;
outline: none;
background-color: #F7F7F7;
font-size: 0.3rem;
box-sizing: border-box;
padding: 0 0.2rem;
}
.top_d_input::placeholder{
color: #999999;
}
.banner{
margin-top: 0.17rem;
width: 7.5rem;
height: 3.6rem;
display: flex;
}
.banner img{
width: 100%;
height: 100%;
}
.items{
width: 7.5rem;
display: flex;
margin-top: 0.3rem;
overflow-x: scroll;
overflow-y: hidden;
}
.item{
display: flex;
flex-flow: column;
width: 2rem;
height: 1.5rem;
background:rgba(255,255,255,1);
box-shadow:0 0.01rem 0.06rem 0 rgba(102,102,102,0.14);
border-radius: 0.06rem;
margin-left: 0.1rem;
}
.item_pic{
width: 2rem;
height: 1.1rem;
display: flex;
}
.item_pic img{
width: 100%;
height: 100%;
border-radius: 0.06rem 0.06rem 0 0;
}
.item_text{
height: 0.4rem;
line-height: 0.4rem;
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
/*line-height:48px;*/
box-sizing: border-box;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
box-sizing: border-box;
padding: 0 0.16rem;
}
.mid{
/*margin-top: 0.3rem;*/
width: 6.86rem;
display: flex;
flex-flow: column;
border-bottom: 1px solid #e8e8e8;
box-sizing: border-box;
padding: 0.3rem;
}
.mid_title{
font-size: 0.3rem;
font-family:PingFang-SC-Bold;
font-weight:bold;
color:rgba(51,51,51,1);
line-height: 0.3rem;
}
.mid_infor{
display: flex;
justify-content: space-between;
margin-top: 0.15rem;
}
.mid_infor_left{
display: flex;
align-items: center;
}
.mid_infor_left_pic{
width: 0.4rem;
height: 0.4rem;
border-radius: 0.2rem;
display: flex;
}
.mid_infor_left_pic img{
width: 100%;
height: 100%;
border-radius: 0.2rem;
}
.mid_infor_left_text{
font-size: 0.24rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
/*line-height:30px;*/
margin-left: 0.2rem;
}
.mid_infor_right{
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(153,153,153,1);
line-height:30px;
}
.mid_text{
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height: 0.3rem;
box-sizing: border-box;
padding: 0.2rem 0;
}
.mid_pic{
width: 6.86rem;
height: 2.6rem;
display: flex;
}
.mid_pic img{
width: 100%;
height: 100%;
}
.mid_people{
display: flex;
flex-flow: column;
margin-top: 0.2rem;
}
.mid_people_title{
font-size: 0.2rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height: 0.3rem;
}
.mid_people_name{
margin-top: 0.14rem;
margin-left: 0.14rem;
font-size: 0.16rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height: 0.24rem;
}
.share{
display: flex;
margin-top: 0.3rem;
}
.share_items{
width: 6.86rem;
display: flex;
justify-content: space-between;
}
.share_item{
/*width: 1.5rem;*/
height: 0.3rem;
background:rgba(232,232,232,0);
border:1px solid rgba(153, 153, 153, 1);
border-radius: 0.04rem;
font-size: 0.18rem;
font-family:MicrosoftYaHei;
font-weight:400;
color:rgba(51,51,51,1);
line-height: 0.3rem;
text-align: center;
padding: 0 0.3rem;
}
... ...
.container {
width: 100%;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top{
width: 7.5rem;
/*height: 1.5rem;*/
background-color: #F7F7F7;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
}
.top_t{
width: 6.86rem;
height: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.top_t_left{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.top_t_left_text{
font-size:0.3rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(166,16,16,1);
}
.icon-caidan{
}
/*中部*/
.top_t_middle{
width: 1.2rem;
height: 0.5rem;
display: flex;
}
.top_t_middle img{
width: 100%;
height: 100%;
}
/*右边*/
.top_t_right{
width: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.icon-10{
position: relative;
}
.top_t_right_pic{
width: 0.4rem;
height: 0.4rem;
display: flex;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.top_t_right_pic img{
width: 100%;
height: 100%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
/*-----底部------*/
.top_d{
width: 5.56rem;
display: flex;
padding-bottom: 0.03rem;
border-bottom: 1px solid #999999;
margin: 0.3rem 0 0.2rem 0;
}
.top_d_input{
width: 5rem;
text-align: center;
border: none;
outline: none;
background-color: #F7F7F7;
font-size: 0.3rem;
box-sizing: border-box;
padding: 0 0.2rem;
}
.top_d_input::placeholder{
color: #999999;
}
.banner{
margin-top: 0.2rem;
width: 7.5rem;
height: 3rem;
display: flex;
}
.banner img{
width: 100%;
height: 100%;
}
.items{
margin-top: 0.3rem;
display: flex;
flex-flow: wrap;
justify-content: space-between;
box-sizing: border-box;
padding: 0 0.34rem;
margin-bottom: 0.4rem;
}
.item{
margin-top: 0.2rem;
display: flex;
flex-flow: column;
width: 3.2rem;
height: 3.2rem;
background:rgba(255,255,255,1);
box-shadow:0rem 1rem 6rem 0rem rgba(102,102,102,0.14);
border-radius: 0.1rem;
}
.item_top{
width: 3.2rem;
height: 2rem;
background:linear-gradient(0deg,rgba(0,0,0,0.5) 0%,rgba(255,255,255,0) 100%);
border-radius: 0.1rem 0.1rem 0rem 0rem;
display: flex;
position: relative;
}
.item_top img{
width: 100%;
height: 100%;
border-radius: 0.1rem 0.1rem 0rem 0rem;
}
.item_top_box{
width: 100%;
position: absolute;
bottom: 0;
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 0 0.2rem;
}
.item_top_box_item{
font-size: 0.16rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,255,255,1);
line-height:24px;
text-shadow:0rem 1rem 2rem rgba(82,82,82,0.45);
}
.item_bottom{
display: flex;
flex-flow: column;
box-sizing: border-box;
padding: 0.2rem 0.22rem 0.2rem .16rem;
}
.item_bottom_t{
font-size: 0.24rem;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(51,51,51,1);
line-height: 0.24rem;
text-align: center;
}
.item_bottom_b{
font-size: 0.16rem;
font-family:MicrosoftYaHei;
font-weight:400;
color:rgba(51,51,51,1);
line-height: 0.24rem;
box-sizing: border-box;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
... ...
/**
* dropload
* 西门(http://ons.me/526.html)
* 0.9.1(161205)
*/
!function (a) {
"use strict";
function g(a) {
a.touches || (a.touches = a.originalEvent.touches)
}
function h(a, b) {
b._startY = a.touches[0].pageY, b.touchScrollTop = b.$scrollArea.scrollTop()
}
function i(b, c) {
c._curY = b.touches[0].pageY, c._moveY = c._curY - c._startY, c._moveY > 0 ? c.direction = "down" : c._moveY < 0 && (c.direction = "up");
var d = Math.abs(c._moveY);
"" != c.opts.loadUpFn && c.touchScrollTop <= 0 && "down" == c.direction && !c.isLockUp && (b.preventDefault(), c.$domUp = a("." + c.opts.domUp.domClass), c.upInsertDOM || (c.$element.prepend('<div class="' + c.opts.domUp.domClass + '"></div>'), c.upInsertDOM = !0), n(c.$domUp, 0), d <= c.opts.distance ? (c._offsetY = d, c.$domUp.html(c.opts.domUp.domRefresh)) : d > c.opts.distance && d <= 2 * c.opts.distance ? (c._offsetY = c.opts.distance + .5 * (d - c.opts.distance), c.$domUp.html(c.opts.domUp.domUpdate)) : c._offsetY = c.opts.distance + .5 * c.opts.distance + .2 * (d - 2 * c.opts.distance), c.$domUp.css({height: c._offsetY}))
}
function j(b) {
var c = Math.abs(b._moveY);
"" != b.opts.loadUpFn && b.touchScrollTop <= 0 && "down" == b.direction && !b.isLockUp && (n(b.$domUp, 300), c > b.opts.distance ? (b.$domUp.css({height: b.$domUp.children().height()}), b.$domUp.html(b.opts.domUp.domLoad), b.loading = !0, b.opts.loadUpFn(b)) : b.$domUp.css({height: "0"}).on("webkitTransitionEnd mozTransitionEnd transitionend", function () {
b.upInsertDOM = !1, a(this).remove()
}), b._moveY = 0)
}
function k(a) {
"" != a.opts.loadDownFn && a.opts.autoLoad && a._scrollContentHeight - a._threshold <= a._scrollWindowHeight && m(a)
}
function l(a) {
a._scrollContentHeight = a.opts.scrollArea == b ? e.height() : a.$element[0].scrollHeight
}
function m(a) {
a.direction = "up", a.$domDown.html(a.opts.domDown.domLoad), a.loading = !0, a.opts.loadDownFn(a)
}
function n(a, b) {
a.css({"-webkit-transition": "all " + b + "ms", transition: "all " + b + "ms"})
}
var f, b = window, c = document, d = a(b), e = a(c);
a.fn.dropload = function (a) {
return new f(this, a)
}, f = function (a, b) {
var c = this;
c.$element = a, c.upInsertDOM = !1, c.loading = !1, c.isLockUp = !1, c.isLockDown = !1, c.isData = !0, c._scrollTop = 0, c._threshold = 0, c.init(b)
}, f.prototype.init = function (f) {
var l = this;
l.opts = a.extend(!0, {}, {
scrollArea: l.$element,
domUp: {
domClass: "dropload-up",
domRefresh: '<div class="dropload-refresh">↓下拉刷新</div>',
domUpdate: '<div class="dropload-update">↑释放更新</div>',
domLoad: '<div class="dropload-load"><span class="loading"></span>加载中...</div>'
},
domDown: {
domClass: "dropload-down",
domRefresh: '<div class="dropload-refresh">↑上拉加载更多</div>',
domLoad: '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
domNoData: '<div class="dropload-noData">暂无数据</div>'
},
autoLoad: !0,
distance: 50,
threshold: "",
loadUpFn: "",
loadDownFn: ""
}, f), "" != l.opts.loadDownFn && (l.$element.append('<div class="' + l.opts.domDown.domClass + '">' + l.opts.domDown.domRefresh + "</div>"), l.$domDown = a("." + l.opts.domDown.domClass)), l._threshold = l.$domDown && "" === l.opts.threshold ? Math.floor(1 * l.$domDown.height() / 3) : l.opts.threshold, l.opts.scrollArea == b ? (l.$scrollArea = d, l._scrollContentHeight = e.height(), l._scrollWindowHeight = c.documentElement.clientHeight) : (l.$scrollArea = l.opts.scrollArea, l._scrollContentHeight = l.$element[0].scrollHeight, l._scrollWindowHeight = l.$element.height()), k(l), d.on("resize", function () {
clearTimeout(l.timer), l.timer = setTimeout(function () {
l._scrollWindowHeight = l.opts.scrollArea == b ? b.innerHeight : l.$element.height(), k(l)
}, 150)
}), l.$element.on("touchstart", function (a) {
l.loading || (g(a), h(a, l))
}), l.$element.on("touchmove", function (a) {
l.loading || (g(a, l), i(a, l))
}), l.$element.on("touchend", function () {
l.loading || j(l)
}), l.$scrollArea.on("scroll", function () {
l._scrollTop = l.$scrollArea.scrollTop(), "" != l.opts.loadDownFn && !l.loading && !l.isLockDown && l._scrollContentHeight - l._threshold <= l._scrollWindowHeight + l._scrollTop && m(l)
})
}, f.prototype.lock = function (a) {
var b = this;
void 0 === a ? "up" == b.direction ? b.isLockDown = !0 : "down" == b.direction ? b.isLockUp = !0 : (b.isLockUp = !0, b.isLockDown = !0) : "up" == a ? b.isLockUp = !0 : "down" == a && (b.isLockDown = !0, b.direction = "up")
}, f.prototype.unlock = function () {
var a = this;
a.isLockUp = !1, a.isLockDown = !1, a.direction = "up"
}, f.prototype.noData = function (a) {
var b = this;
void 0 === a || 1 == a ? b.isData = !1 : 0 == a && (b.isData = !0)
}, f.prototype.resetload = function () {
var b = this;
"down" == b.direction && b.upInsertDOM ? b.$domUp.css({height: "0"}).on("webkitTransitionEnd mozTransitionEnd transitionend", function () {
b.loading = !1, b.upInsertDOM = !1, a(this).remove(), l(b)
}) : "up" == b.direction && (b.loading = !1, b.isData ? (b.$domDown.html(b.opts.domDown.domRefresh), l(b), k(b)) : b.$domDown.html(b.opts.domDown.domNoData))
}
}(window.Zepto || window.jQuery);
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>联系我们</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/lxwm.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_7sk198wo5xx.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
<style>
.icon-caidan{
font-size: 0.5rem;
}
.icon-magnifier{
color: #999999;
}
.f_size{
font-weight: normal;
font-size: 0.18rem;
}
.icon-xiugai{
margin-left: 0.15rem;
font-size: 0.3rem;
color: #999999;
display: flex;
font-weight: bold;
align-items: center;
}
.top_dot{
width: 0.08rem;
height: 0.08rem;
background:rgba(166,16,16,1);
border:1px solid rgba(255, 255, 255, 1);
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
}
.color_black{
color: black;
}
.margin_t{
margin-top: 0.1rem;
}
/*底部菜单*/
.font_s{
font-size: 0.4rem;
color: #A61010;
}
.icon-bilibilidonghua{
font-size: 0.8rem;
}
</style>
</head>
<body>
<div class="container">
<div class="top">
<!--顶部菜单-->
<div class="top_t">
<!--左-->
<div class="top_t_left">
<!--中文字-->
<div class="top_t_left_text">
</div>
<!--菜单图标-->
<div class="iconfont icon-caidan"></div>
</div>
<!--中-->
<div class="top_t_middle">
<img src="images/peke.png">
</div>
<!--右-->
<div class="top_t_right">
<!--铃声-->
<div class="iconfont icon-10">
<!--小红点-->
<div class="top_dot"></div>
</div>
<!--头像-->
<div class="top_t_right_pic">
<img src="images/1.png">
</div>
</div>
</div>
<!--底部搜索-->
<div class="top_d">
<div class="iconfont icon-magnifier"></div>
<input class="top_d_input" placeholder="搜索音乐/作品/风格">
</div>
</div>
<div class="mid">
<div class="mid_title">
联系我们
</div>
<div class="mid_adv">
<div class="mid_adv_left">
咨询/建议
</div>
<div class="mid_adv_right">
商务合作
</div>
</div>
<div class="mid_area">
<textarea placeholder="请填写内容"></textarea>
</div>
<div class="mid_way">
联系方式
</div>
<div class="mid_input">
<input placeholder="请输入邮箱/手机号/微信等联系方式">
</div>
<div class="sub">
<div class="mid_sub">
提交
</div>
</div>
</div>
</div>
</body>
<script>
//标题切换
$('.item_m').click(function () {
var index = $(this).index()
$(this).addClass('item_color').siblings(".item_m").removeClass('item_color')
//内容切换
var dataid = $(this).attr("data-id");
if(dataid == 1){
$(".message").show();
$('.audit').hide();
}else {
$(".audit").show();
$(".message").hide();
}
})
</script>
</html>
... ...
... ... @@ -7,8 +7,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/grzy.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_aj31y803pii.css">
<link rel="stylesheet" type="text/css" href="css/search.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_7sk198wo5xx.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
... ... @@ -48,6 +48,16 @@
.margin_t{
margin-top: 0.1rem;
}
/*底部菜单*/
.font_s{
font-size: 0.4rem;
color: #A61010;
}
.icon-bilibilidonghua{
font-size: 0.8rem;
}
</style>
</head>
... ... @@ -90,7 +100,131 @@
</div>
<!--图片列表-->
<div class=""></div>
<div class="mid">
<div class="mid_item">
<!--图片-->
<div class="mid_item_pic">
<img src="images/1.png">
</div>
<!--文字-->
<div class="mid_item_text">
某某某
</div>
</div>
<div class="mid_item">
<!--图片-->
<div class="mid_item_pic">
<img src="images/1.png">
</div>
<!--文字-->
<div class="mid_item_text">
某某某
</div>
</div>
<div class="mid_item">
<!--图片-->
<div class="mid_item_pic">
<img src="images/1.png">
</div>
<!--文字-->
<div class="mid_item_text">
某某某
</div>
</div>
<div class="mid_item">
<!--图片-->
<div class="mid_item_pic">
<img src="images/1.png">
</div>
<!--文字-->
<div class="mid_item_text">
某某某
</div>
</div>
<div class="mid_item">
<!--图片-->
<div class="mid_item_pic">
<img src="images/1.png">
</div>
<!--文字-->
<div class="mid_item_text">
某某某
</div>
</div>
</div>
<!--关注人信息-->
<div class="bottom">
<div class="bottom_top">
<div class="bottom_top_pic">
<img src="images/1.png">
</div>
<!--文字-->
<div class="bottom_top_text">
<p class="bottom_top_text_big">
皮还是皮不过我的你
</p>
<p class="bottom_top_text_small">
不要太皮哈
</p>
<!--关注,贡献,关注-->
<div class="bottom_top_b">
<div class="bottom_top_b_left">
38个关注
</div>
<div class="bottom_top_b_left">
25个贡献
</div>
<!--关注-->
<div class="bottom_top_b_att">
关注
</div>
</div>
</div>
</div>
</div>
<!--底部菜单栏-->
<div class="menu">
<div class="menu_top">
<div class="menu_top_item">
<div class="iconfont icon-qietu11 font_s"></div>
</div>
<div class="menu_top_item">
<div class="iconfont icon-weixin font_s"></div>
</div>
<div class="menu_top_item">
<div class="iconfont icon-tuite font_s"></div>
</div>
<div class="menu_top_item">
<div class="iconfont icon-bilibilidonghua font_s"></div>
</div>
<div class="menu_top_item">
<div class="iconfont icon-NGlianshu font_s"></div>
</div>
<div class="menu_top_item">
<div class="iconfont icon-youtube font_s"></div>
</div>
<div class="menu_top_item">
<div class="iconfont icon-CD font_s"></div>
</div>
</div>
<div class="menu_bottom">
<div class="menu_bottom_item">
隐私协议
</div>
<div class="menu_bottom_item">
关于我们
</div>
<div class="menu_bottom_item">
联系我们
</div>
<div class="menu_bottom_item">
商店
</div>
</div>
</div>
</div>
</body>
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>搜索无结果</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/search_no.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_7sk198wo5xx.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
<style>
.icon-caidan{
font-size: 0.5rem;
}
.icon-magnifier{
color: #999999;
}
.f_size{
font-weight: normal;
font-size: 0.18rem;
}
.icon-xiugai{
margin-left: 0.15rem;
font-size: 0.3rem;
color: #999999;
display: flex;
font-weight: bold;
align-items: center;
}
.top_dot{
width: 0.08rem;
height: 0.08rem;
background:rgba(166,16,16,1);
border:1px solid rgba(255, 255, 255, 1);
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
}
.color_black{
color: black;
}
.margin_t{
margin-top: 0.1rem;
}
/*底部菜单*/
.font_s{
font-size: 0.4rem;
color: #A61010;
}
.icon-bilibilidonghua{
font-size: 0.8rem;
}
</style>
</head>
<body>
<div class="container">
<div class="top">
<!--顶部菜单-->
<div class="top_t">
<!--左-->
<div class="top_t_left">
<!--中文字-->
<div class="top_t_left_text">
</div>
<!--菜单图标-->
<div class="iconfont icon-caidan"></div>
</div>
<!--中-->
<div class="top_t_middle">
<img src="images/peke.png">
</div>
<!--右-->
<div class="top_t_right">
<!--铃声-->
<div class="iconfont icon-10">
<!--小红点-->
<div class="top_dot"></div>
</div>
<!--头像-->
<div class="top_t_right_pic">
<img src="images/1.png">
</div>
</div>
</div>
<!--底部搜索-->
<div class="top_d">
<div class="iconfont icon-magnifier"></div>
<input class="top_d_input" placeholder="搜索音乐/作品/风格">
</div>
</div>
<!--暂无消息-->
<div class="mid">
暂无关于“新艺术音乐”的搜索结果。我来
<span class="color_red">贡献内容</span>
</div>
</div>
</body>
<script>
//标题切换
$('.item_m').click(function () {
var index = $(this).index()
$(this).addClass('item_color').siblings(".item_m").removeClass('item_color')
//内容切换
var dataid = $(this).attr("data-id");
if(dataid == 1){
$(".message").show();
$('.audit').hide();
}else {
$(".audit").show();
$(".message").hide();
}
})
</script>
</html>
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>搜索无结果</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/spxq.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_i66rltl2rzp.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
<style>
.icon-caidan{
font-size: 0.5rem;
}
.icon-magnifier{
color: #999999;
}
.f_size{
font-weight: normal;
font-size: 0.18rem;
}
.icon-xiugai{
margin-left: 0.15rem;
font-size: 0.3rem;
color: #999999;
display: flex;
font-weight: bold;
align-items: center;
}
.top_dot{
width: 0.08rem;
height: 0.08rem;
background:rgba(166,16,16,1);
border:1px solid rgba(255, 255, 255, 1);
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
}
.color_black{
color: black;
}
.margin_t{
margin-top: 0.1rem;
}
/*底部菜单*/
.font_s{
font-size: 0.4rem;
color: #A61010;
}
.icon-bilibilidonghua{
font-size: 0.8rem;
}
.share_color{
color: #999999;
}
</style>
</head>
<body>
<div class="container">
<div class="top">
<!--顶部菜单-->
<div class="top_t">
<!--左-->
<div class="top_t_left">
<!--中文字-->
<div class="top_t_left_text">
</div>
<!--菜单图标-->
<div class="iconfont icon-caidan"></div>
</div>
<!--中-->
<div class="top_t_middle">
<img src="images/peke.png">
</div>
<!--右-->
<div class="top_t_right">
<!--铃声-->
<div class="iconfont icon-10">
<!--小红点-->
<div class="top_dot"></div>
</div>
<!--头像-->
<div class="top_t_right_pic">
<img src="images/1.png">
</div>
</div>
</div>
<!--底部搜索-->
<div class="top_d">
<div class="iconfont icon-magnifier"></div>
<input class="top_d_input" placeholder="搜索音乐/作品/风格">
</div>
</div>
<div class="banner">
<img src="images/banner_5.png">
</div>
<div class="items">
<div class="item">
<div class="item_pic">
<img src="images/banner_1.png">
</div>
<div class="item_text">
少数派的音乐不少数派的音乐不少数派的音乐不
</div>
</div>
<div class="item">
<div class="item_pic">
<img src="images/banner_1.png">
</div>
<div class="item_text">
少数派的音乐不少数派的音乐不少数派的音乐不
</div>
</div>
<div class="item">
<div class="item_pic">
<img src="images/banner_1.png">
</div>
<div class="item_text">
少数派的音乐不少数派的音乐不少数派的音乐不
</div>
</div>
<div class="item">
<div class="item_pic">
<img src="images/banner_1.png">
</div>
<div class="item_text">
少数派的音乐不少数派的音乐不少数派的音乐不
</div>
</div>
<div class="item">
<div class="item_pic">
<img src="images/banner_1.png">
</div>
<div class="item_text">
少数派的音乐不少数派的音乐不少数派的音乐不
</div>
</div>
</div>
<div class="mid">
<!--标题-->
<div class="mid_title">
少一点抱怨,多一点积极
</div>
<!--信息栏-->
<div class="mid_infor">
<div class="mid_infor_left">
<div class="mid_infor_left_pic">
<img src="images/banner_1.png">
</div>
<div class="mid_infor_left_text">
哪里来的猴子
</div>
</div>
<div class="mid_infor_right">
2018年12月31日
</div>
</div>
<!--文章内容-->
<div class="mid_text">
有的人生活光彩夺目,有的人生活布满荆棘。
<br>
<br>面对生活的落差,难免会有满腔的埋怨和满腹的牢骚;但是我们是否有经过深层次的分析和思考,为什么生活差异如此之大呢?
<br>
<br>很多时候,我们更多的是站在自己的一个渺小的角落,思考着我们所处的问题,而忽略了大的环境所能赐予我们的能量。
<br>
<br>生活中,我 们可能基础环境过于薄弱,导致我们的生活经历了辛酸,往往就会羡慕和想要我们所不能及的生活,而忽略了我们所拥有的美好;某些人,会在困苦中涅重生,改变自己被动的困境;而有些人,则更多的是抱怨、是颓废,得到的仅仅只能是越来越困苦的生活,越来越被动的人生,自己也变得失落,迷茫。
<br>
<br>其实我们有没有想过,我们今天的生活,自己再多的抱怨又有什么用呢?抱怨了,生活变好了嘛?是否通过抱怨实现了自己想要的生活呢?答案肯定是没有的,生活还是一成不变的,并不会有所改变,改变的只是个人的心态,永远是生活在悲观之中,所以,为什么还要继续去抱怨呢?
<br>
<br>工作中,我们难免会遇到一些棘手的事情,而不管是大公司还是小公司,不管是什么岗位总会有那么些人,喜欢将烦死了、急死了、麻烦死了等一些词汇挂在嘴边。
<br>
<br>这个对于刚刚参加工作的小白来说很正常,但是要及时
</div>
<!--图片-->
<div class="mid_pic">
<img src="images/text.png">
</div>
<!--文章内容-->
<div class="mid_text">
有的人生活光彩夺目,有的人生活布满荆棘。
<br>
<br>面对生活的落差,难免会有满腔的埋怨和满腹的牢骚;但是我们是否有经过深层次的分析和思考,为什么生活差异如此之大呢?
<br>
<br>很多时候,我们更多的是站在自己的一个渺小的角落,思考着我们所处的问题,而忽略了大的环境所能赐予我们的能量。
<br>
</div>
<!--引用人物-->
<div class="mid_people">
<div class="mid_people_title">
引用人物
</div>
<div class="mid_people_name">
陈其钢 叶小钢
</div>
</div>
<!--引用作品-->
<div class="mid_people">
<div class="mid_people_title">
引用人物
</div>
<div class="mid_people_name">
《中国音乐史》 《History of Arts》 蝶恋花
</div>
</div>
</div>
<div class="share">
<div class="share_items">
<div class="share_item">艺术家姓名</div>
<div class="share_item">长笛</div>
<div class="share_item">音乐风格</div>
<div class="iconfont icon-xinaixin share_color">
<span></span>
</div>
<div class="iconfont icon-fenxiang share_color"></div>
</div>
</div>
</div>
</body>
<script>
</script>
</html>
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>主题详情</title>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/ztxq.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_7sk198wo5xx.css">
<link rel="stylesheet" type="text/css" href="css/dropload.css">
<script src="js/base.js"></script>
<script src="js/jquery.min.js"></script>
<style>
.icon-caidan{
font-size: 0.5rem;
}
.icon-magnifier{
color: #999999;
}
.f_size{
font-weight: normal;
font-size: 0.18rem;
}
.icon-xiugai{
margin-left: 0.15rem;
font-size: 0.3rem;
color: #999999;
display: flex;
font-weight: bold;
align-items: center;
}
.top_dot{
width: 0.08rem;
height: 0.08rem;
background:rgba(166,16,16,1);
border:1px solid rgba(255, 255, 255, 1);
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
}
.color_black{
color: black;
}
.margin_t{
margin-top: 0.1rem;
}
/*底部菜单*/
.font_s{
font-size: 0.4rem;
color: #A61010;
}
.icon-bilibilidonghua{
font-size: 0.8rem;
}
</style>
</head>
<body>
<div class="container">
<div class="top">
<!--顶部菜单-->
<div class="top_t">
<!--左-->
<div class="top_t_left">
<!--中文字-->
<div class="top_t_left_text">
</div>
<!--菜单图标-->
<div class="iconfont icon-caidan"></div>
</div>
<!--中-->
<div class="top_t_middle">
<img src="images/peke.png">
</div>
<!--右-->
<div class="top_t_right">
<!--铃声-->
<div class="iconfont icon-10">
<!--小红点-->
<div class="top_dot"></div>
</div>
<!--头像-->
<div class="top_t_right_pic">
<img src="images/1.png">
</div>
</div>
</div>
<!--底部搜索-->
<div class="top_d">
<div class="iconfont icon-magnifier"></div>
<input class="top_d_input" placeholder="搜索音乐/作品/风格">
</div>
</div>
<div class="banner">
<img src="images/banner1.png">
</div>
<div class="item_box">
<div class="items">
<div class="item">
<div class="item_top">
<img src="images/banner_3.png">
<div class="item_top_box">
<div class="item_top_box_item">
观看人数 12356
</div>
<div class="item_top_box_item">
时长 10:00
</div>
</div>
</div>
<div class="item_bottom">
<div class="item_bottom_t">
The best of 2018
</div>
<div class="item_bottom_b">
文章开通一部分内容截取文章开通一
部分容截取文章开通一部分内容截取
文章开通一部分内容截取文章开通一
部分容截取文章开通一部分内容截取
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="js/dropload.min.js"></script>
<script>
// 页数
var page = 0;
// 每页展示10个
var size = 3;
$('.item_box').dropload({
scrollArea : window,
domUp : {
domClass : 'dropload-up',
domRefresh : '<div class="dropload-refresh">↓下拉刷新</div>',
domUpdate : '<div class="dropload-update">↑释放更新</div>',
domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>'
},
domDown : {
domClass : 'dropload-down',
domRefresh : '<div class="dropload-refresh">↑上拉加载更多</div>',
domLoad : '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
domNoData : '<div class="dropload-noData">暂无数据</div>'
},
loadDownFn : function(me){
page++;
// 拼接HTML
var result = '';
var s = "";
var show="";
var list_compressor="";
var list_answer="";
$.ajax({
type: 'GET',
url: 'http://ons.me/tools/dropload/json.php?page='+page+'&size='+size,
dataType: 'json',
success: function(data){
console.log(data);
var arrLen = data.length;
if(arrLen > 0){
for(var i=0; i<arrLen; i++){
result +='<div class="item">\n' +
' <div class="item_top">\n' +
' <img src="images/banner_3.png">\n' +
' <div class="item_top_box">\n' +
' <div class="item_top_box_item">\n' +
' 观看人数 12356\n' +
' </div>\n' +
' <div class="item_top_box_item">\n' +
' 时长 10:00\n' +
' </div>\n' +
' </div>\n' +
' </div>\n' +
'\n' +
' <div class="item_bottom">\n' +
' <div class="item_bottom_t">\n' +
' The best of 2018\n' +
' </div>\n' +
' <div class="item_bottom_b">\n' +
'\n' +
' 文章开通一部分内容截取文章开通一\n' +
' 部分容截取文章开通一部分内容截取\n' +
' 文章开通一部分内容截取文章开通一\n' +
' 部分容截取文章开通一部分内容截取\n' +
'\n' +
' </div>\n' +
' </div>\n' +
' </div>'
}
// 如果没有数据
}else{
// 锁定
me.lock();
// 无数据
me.noData();
}
// 为了测试,延迟1秒加载
setTimeout(function(){
// 插入数据到页面,放到最后面
$('.items').append(result);
// 每次数据插入,必须重置
me.resetload();
},500);
},
error: function(xhr, type){
alert('Ajax error!');
// 即使加载出错,也得重置
me.resetload();
}
});
},
threshold : 50
});
</script>
</html>
... ...