-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakerspace-c-show.html
173 lines (170 loc) · 5 KB
/
makerspace-c-show.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>预定</title>
<link href="css/app.css" rel="stylesheet" />
<style type="text/css">
.ui-page,html,body{
height:100%;
}
#header{
position: fixed;
top:0;
left:0;
right:0;
}
#mui-page-content .mui-scroll-wrapper{
top:44px
}
.p-list{
padding:0 12px;
overflow:hidden;
}
.p-list li{
overflow:hidden;
border-bottom:.05em solid #ddd;
padding:12px 0;
}
.p-list li:first-child{
border-top:none
}
.p-list li .img{
float:left;
margin-right:10px;
}
.p-list li .img img{
width:115px;
height:85px;
float:left;
}
.p-list li .info{
overflow:hidden;
}
.p-list li .info p{
font-size:13px;
color:#666;
}
.p-list li .info p span{
color:#333;
}
.mui-none{
display:none;
}
.mui-pull-bottom-tips{
height:40px;
text-align:center;
line-height:40px;
padding-bottom:10px;
}
.mui-pull-bottom-tips .mui-spinner,.mui-pull-bottom-tips .mui-pull-loading{
display:inline-block;
vertical-align:middle;
margin-right:0px;
margin-left:5px;
font-size:14px;
color:#666;
}
</style>
</head>
<body style="background:#fff;">
<div class="ui-page" id="ui-page">
<section class="show" style="padding-bottom:1px;">
<header class="ui-bar jy-bar" id="header" style="z-index: 1111111">
<a href="javascript:;" class="icon-back icon"></a>
<div class="ui-title">创客成果</div>
<a href="javascript:;" class="icon-categorys icon" id="categorys"></a>
</header>
<div class="mui-page-content" id="mui-page-content">
<div class="mui-scroll-wrapper" id="p-list">
<div class="mui-scroll mp-show">
<div class="con">
</div>
</div>
</div>
</div>
</section>
</div>
<script type="text/javascript" src="js/mui.min.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/mui.pullToRefresh.js"></script>
<script type="text/javascript" src="js/mui.pullToRefresh.material.js"></script>
<script type="text/javascript" charset="utf-8">
(function($, doc) {
$.init({
swipeBack: false,
statusBarBackground:'#393767'
});
var D=new J.setImg();
var siderImg='',imgArr=[],chtmlP='';
var contentc=doc.getElementById("content-c");
var contentpic=doc.getElementById("content-pic");
var muipagecontent=doc.getElementById("mui-page-content");
$('.mui-scroll-wrapper').scroll();
$.plusReady(function() {
var count=1;
plus.navigator.setStatusBarStyle('UIStatusBarStyleBlackTranslucent');
var ws=plus.webview.currentWebview();
$("#mui-page-content .mui-scroll").pullToRefresh({
up: {
contentrefresh: '正在加载...',
callback: function() {
var self = this,html='';
setTimeout(function() {
creativeEnterprise('p-list',self);
}, 1000);
}
}
});
// var Waiting=plus.nativeUI.showWaiting();
//创意企业
var creativeEnterprise = function(UlClass,self) {
var ul = doc.createElement('ul');
ul.className = UlClass+' mui-table-view';
var eltId=doc.getElementById(UlClass);
eltId.querySelector(".con").appendChild(ul);
var ul = eltId.querySelector('.mui-table-view');
var li,ulHtml;
J.dataAjax(CONFING.Interface.resultDetails,{wait:true,incubation_id:ws.sId,curPage:count},function(data){
var conlist=data.resultDetailList;
var page=data.totalPage;
var isPage=conlist && conlist.length>10?++count>(page+1):true;
self.endPullUpToRefresh(isPage);
if(conlist){
for (var i = 0; i < conlist.length; i++) {
li = doc.createElement('li');
var random=parseInt(Math.random()*1000);
li.className = 'mui-table-view-cell';
var html='<a href="javascript:;" class="listShow">'
+'<div class="img">'
+' <img class="imglazy imglazy'+random+'" src=""/>'
+'</div>'
+'<div class="info">'
+' <p><span>产品介绍:</span>'+conlist[i]['info']+'</p>'
+'</div>'
+'</a>';
li.innerHTML = html;
ul.appendChild(li);
var imgLazy=doc.getElementById("imgLazy"+random);
D.isImgBoj(imgLazy,CONFING.httpUrl+conlist[i]['img'])
// Waiting.close();
}
}
})
};
if ($.os.plus) {
setTimeout(function() {
$("#mui-page-content .mui-scroll").pullToRefresh().pullUpLoading();
}, 100);
} else {
$.ready(function() {
$("#mui-page-content .mui-scroll").pullToRefresh().pullUpLoading();
});
}
});
}(mui, document));
</script>
</body>
</html>