Browse Source

完善搜索和咨询列表样式

luyanan 8 years ago
parent
commit
7a53fc6f1c

+ 13 - 13
app/css/app.css

107
/*企业和专家认证标识 icon-vip*/
107
/*企业和专家认证标识 icon-vip*/
108
.unauthicon{color:#C0C0C0; }/*未认证*/
108
.unauthicon{color:#C0C0C0; }/*未认证*/
109
.authicon{color:#FF9900;}
109
.authicon{color:#FF9900;}
110
.icon-vip{}
110
.icon-vip.iconfont{margin-left:2px;font-size:14px;}
111
.authicon-cu{color:#FF9900;}/*认证科研型专家*/
111
.authicon-cu{color:#FF9900;}/*认证科研型专家*/
112
.authicon-com{/*color:#00aaee;*/ color:#2082fb;}/*认证企业型专家*/
112
.authicon-com{/*color:#00aaee;*/ color:#2082fb;}/*认证企业型专家*/
113
/*普通用户认证标识 icon-renzheng*/
113
/*普通用户认证标识 icon-renzheng*/
114
em.icon-renzheng{border:1px solid;border-radius:10px;font-size:16px;line-height:14px;}
115
em.icon-renzheng span{ font-size:12px;margin-right:6px;vertical-align:middle;}
114
em.icon-renzheng{position:absolute;border:1px solid;margin-top:2px;margin-left:2px;border-radius:10px;font-size:12px;line-height:10px;}
115
em.icon-renzheng span{position:relative;top:0px;font-size:8px;line-height:8px;margin-right:6px;vertical-align:middle;}
116
.authicon-mana{color:#ff9900;}/*认证在企高管*/
116
.authicon-mana{color:#ff9900;}/*认证在企高管*/
117
.authicon-staff{color:#007AFF;}/*认证在企职员*/
117
.authicon-staff{color:#007AFF;}/*认证在企职员*/
118
.authicon-stu{color:#6bbf00;}/*认证在读学生*/
118
.authicon-stu{color:#6bbf00;}/*认证在读学生*/
217
217
218
/***********************首页*******************/
218
/***********************首页*******************/
219
.searchbox {width: 96%;margin:6px auto;background:#FFFFFF;height:32px;text-align: center;}
219
.searchbox {width: 96%;margin:6px auto;background:#FFFFFF;height:32px;text-align: center;}
220
.searchbox .searchtxt.mui-icon{font-size:16px; color: #999999;}
221
.searchbox .searchtxt.mui-icon span{font-size:14px;margin-left:4px;line-height:16px;}
220
.searchbox .searchtxt.mui-icon{font-size:14px; color: #999999;}
221
.searchbox .searchtxt.mui-icon span{font-size:12px;margin-left:4px;line-height:16px;}
222
.mui-search input[type=search].searchtxt{background: #FFFFFF;}
222
.mui-search input[type=search].searchtxt{background: #FFFFFF;}
223
.mui-search .mui-placeholder{ font-size: 14px; top:2px }
223
.mui-search .mui-placeholder{ font-size: 14px; top:2px }
224
224
232
.fieldicon{ overflow: hidden;width:40px; height:40px;margin: auto;}
232
.fieldicon{ overflow: hidden;width:40px; height:40px;margin: auto;}
233
.fieldicon img{width: 100%;}
233
.fieldicon img{width: 100%;}
234
/*热门专家*/
234
/*热门专家*/
235
.mui-table-view-cell.prolist:after{/*background:#C0C0C0*//*#c8c7cc*/;}
235
.mui-table-view-cell.prolist:after{/*background:#C0C0C0*//*#c8c7cc;*/}
236
.protable:before{ background-color:transparent;}
236
.protable:before{ background-color:transparent;}
237
#table .mui-table-view-cell:after{right: 0;bottom: 0;left:0;background: none;}
237
#table .mui-table-view-cell:after{right: 0;bottom: 0;left:0;background: none;}
238
238
380
380
381
/***********************搜索*******************/
381
/***********************搜索*******************/
382
.searchbox2{width:85%;background: #FFFFFF; border-radius: 6px; height: 30px;  margin:7px 2%;/*overflow: hidden;*/}
382
.searchbox2{width:85%;background: #FFFFFF; border-radius: 6px; height: 30px;  margin:7px 2%;/*overflow: hidden;*/}
383
.searchbox2 .searchselect{width: 24%; position:relative; }
383
.searchbox2 .searchselect{max-width:64px;width:24%; position:relative; }
384
.searchbox2 .searchselect em{position: absolute; right:30%; top:-8%; font-size: 13px; line-height:18px;color:#999999; width: 0; height: 0; z-index: 0;}
384
.searchbox2 .searchselect em{position: absolute; right:30%; top:-8%; font-size: 13px; line-height:18px;color:#999999; width: 0; height: 0; z-index: 0;}
385
.searchbox2 .searchtxt2{width: 76%;height: 22px; line-height:20px; margin: 5px 0; border: none; border-radius:0 6px 6px 0; border-left:1px solid #CCCCCC; font-size:13px;}
386
.simuselect{position:relative;z-index: 30;}
387
.ulbox{padding-left: 24%;font-size: 13px;color:#999999;line-height: 32px;cursor:pointer; position:relative;} 
388
.lishow{ padding:0; margin:0;background:#fff;overflow: hidden; border-radius:0 0 2px 2px;position:absolute; top:26px;right:0px; width:100%;box-shadow: 0px 0px 3px #ccc inset;z-index: 9999;display:none;} 
389
.lishow li{list-style: none; font-size: 13px;line-height:30px; list-style:none; padding:2px 16px; margin-top:1px;cursor: pointer;} 
385
.searchbox2 .searchtxt2{width: 76%;height: 22px; margin: 5px 0; border: none; border-radius:0 6px 6px 0; border-left:1px solid #CCCCCC; font-size:12px; line-height:22px;}
386
.simuselect{width: 100%;position:relative;z-index: 30;}
387
.ulbox{padding-left: 24%;font-size: 12px;color:#999999;line-height: 32px;cursor:pointer; position:relative;} 
388
.lishow{ padding:0; margin:0;background:#fff;overflow: hidden; border-radius:0 0 2px 2px;position:absolute; top:24px;right:0px; width:100%;box-shadow: 0px 0px 2px #ccc inset;z-index: 9999;display:none;} 
389
.lishow li{list-style: none; font-size: 13px;line-height:30px; list-style:none; padding:2px 18px; margin-top:1px;cursor: pointer;} 
390
.lishow li:hover{ background:#f0f0f0;} 
390
.lishow li:hover{ background:#f0f0f0;} 
391
391
392
.historybox{ background: #FFFFFF; padding-bottom:20px;}
392
.historybox{ background: #FFFFFF; padding-bottom:20px;}
485
.coutopicbox .status-2{background:#dd524d;}/*待评价*/
485
.coutopicbox .status-2{background:#dd524d;}/*待评价*/
486
.coutopicbox .status-3{background:#6bbf00;}/*已完成*/
486
.coutopicbox .status-3{background:#6bbf00;}/*已完成*/
487
487
488
.thistime{ position: absolute; right:2px; font-size: 12px; color: #999999;}
488
.thistime{ position: absolute; right:6px; font-size: 12px; color: #999999;}
489
489
490
.mui-table-view-cell>.proinfor>.mui-badge{top: 20px;left:10px; right:auto;}
490
.mui-table-view-cell>.proinfor>.mui-badge{top: 20px;left:10px; right:auto;}
491
/*星级评价*/
491
/*星级评价*/

+ 7 - 3
app/html/consultlist.html

26
     		border-right:1px solid #F0F0F0;
26
     		border-right:1px solid #F0F0F0;
27
     		border-bottom:1px solid #F0F0F0;
27
     		border-bottom:1px solid #F0F0F0;
28
    	}
28
    	}
29
    	#sliderSegmentedControl .mui-control-item.filteritem:last-child{
30
    		border-right:none;
31
    	}
29
    	#sliderSegmentedControl a.filteritem:active  {
32
    	#sliderSegmentedControl a.filteritem:active  {
30
    		color: #007aff;
33
    		color: #007aff;
31
    	}
34
    	}
46
    	#sliderSegmentedControl .mui-icon-arrowdown {
49
    	#sliderSegmentedControl .mui-icon-arrowdown {
47
    		margin: 0;
50
    		margin: 0;
48
    		border: none;
51
    		border: none;
49
    		width: 15px;
52
    		width: 12px;
50
    		height: 30px;
53
    		height: 30px;
54
    		margin-left:-3px;
51
    		font-size:inherit;
55
    		font-size:inherit;
52
    		font-family:Muiicons;
56
    		font-family:Muiicons;
53
    		line-height: 30px;
57
    		line-height: 30px;
180
		<div id="slider" class="mui-slider mui-fullscreen">
184
		<div id="slider" class="mui-slider mui-fullscreen">
181
			<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
185
			<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
182
				<div class="mui-scroll" style="width: 100%; color: #333;">
186
				<div class="mui-scroll" style="width: 100%; color: #333;">
183
					<a style="width: 22%;" href="#middlePopover1"  class="mui-control-item filteritem">
187
					<a style="width: 22%;min-width:80px;" href="#middlePopover1"  class="mui-control-item filteritem">
184
						<span id="headck1" headck='0'>咨询/需求</span>
188
						<span id="headck1" headck='0'>咨询/需求</span>
185
						<em class="mui-icon mui-icon-arrowdown"></em>
189
						<em class="mui-icon mui-icon-arrowdown"></em>
186
					</a>
190
					</a>
192
						<span id="headck3" headck='0'>咨询状态</span>
196
						<span id="headck3" headck='0'>咨询状态</span>
193
						<em class="mui-icon mui-icon-arrowdown"></em>
197
						<em class="mui-icon mui-icon-arrowdown"></em>
194
					</a>
198
					</a>
195
					<a style="width: 34%;" href="#middlePopover4"  class="mui-control-item filteritem" >
199
					<a style="min-width: 108px;" href="#middlePopover4"  class="mui-control-item filteritem" >
196
						<span id="headck4" headck='1'>按最后回复排序</span>
200
						<span id="headck4" headck='1'>按最后回复排序</span>
197
						<em class="mui-icon mui-icon-arrowdown"></em>
201
						<em class="mui-icon mui-icon-arrowdown"></em>
198
					</a>
202
					</a>

+ 1 - 1
app/html/search.html

27
					</div>
27
					</div>
28
					<em class="mui-icon mui-icon-arrowdown"></em>
28
					<em class="mui-icon mui-icon-arrowdown"></em>
29
				</div>
29
				</div>
30
				<input type="text" class="mui-input-clear mui-pull-right searchtxt2" placeholder="搜索专家、设备资源" id="searchval">
30
				<input type="text" class="mui-input-clear mui-pull-left searchtxt2" placeholder="搜索专家、设备资源" id="searchval">
31
			</div>
31
			</div>
32
		</header>
32
		</header>
33
		<div class="filterbox" style=" position: fixed; z-index:1; top:45px; width:100%">
33
		<div class="filterbox" style=" position: fixed; z-index:1; top:45px; width:100%">

+ 2 - 2
app/js/companyUpdata.js

98
				var string = '<li class="mui-table-view-cell mui-media" resouId=' + $data[i].resourceId + '>'
98
				var string = '<li class="mui-table-view-cell mui-media" resouId=' + $data[i].resourceId + '>'
99
				string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox">'
99
				string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox">'
100
				if($data[i].images.length) {
100
				if($data[i].images.length) {
101
					string += '<img class="resImg" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">'					
101
					string += '<img class="resImg headRadius" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">'					
102
				} else {
102
				} else {
103

103

104
						string += '<img class="resImg" src="../images/default-resource.jpg">'
104
						string += '<img class="resImg headRadius" src="../images/default-resource.jpg">'
105
					}
105
					}
106
					string += '<div class="mui-media-body">'
106
					string += '<div class="mui-media-body">'
107
					string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:6px;right:6px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>'
107
					string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:6px;right:6px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>'

+ 2 - 2
app/js/companybrowse.js

46
				var string = '<li class="mui-table-view-cell mui-media" resouseId=' + $data[i].resourceId + '>'
46
				var string = '<li class="mui-table-view-cell mui-media" resouseId=' + $data[i].resourceId + '>'
47
				string += '<a class="proinfor"><div class="mui-media-object mui-pull-left ResImgBox">'
47
				string += '<a class="proinfor"><div class="mui-media-object mui-pull-left ResImgBox">'
48
				if($data[i].images.length) {
48
				if($data[i].images.length) {
49
					string += '<img class="resImg" src="' + baseUrl + '/images/resource/' + $data[i].resourceId + '.jpg">'
49
					string += '<img class="resImg headRadius" src="' + baseUrl + '/images/resource/' + $data[i].resourceId + '.jpg">'
50

50

51
				} else {
51
				} else {
52

52

53
					string += '<img class="resImg" src="../images/default-resource.jpg">'
53
					string += '<img class="resImg headRadius" src="../images/default-resource.jpg">'
54
				}
54
				}
55
				string += '</div><div class="mui-media-body">'
55
				string += '</div><div class="mui-media-body">'
56
				string += '<span class="listtit">' + $data[i].resourceName + '</span>'
56
				string += '<span class="listtit">' + $data[i].resourceName + '</span>'

+ 2 - 2
app/js/proinfobrow.js

140
				var string = '<li class="mui-table-view-cell mui-media listitem" resouseId=' + $data[i].resourceId + '>'
140
				var string = '<li class="mui-table-view-cell mui-media listitem" resouseId=' + $data[i].resourceId + '>'
141
				string += '<a class="proinfor"><div class="mui-media-object mui-pull-left ResImgBox">'
141
				string += '<a class="proinfor"><div class="mui-media-object mui-pull-left ResImgBox">'
142
				if($data[i].images.length) {
142
				if($data[i].images.length) {
143
					string += '<img class="resImg" src="' + baseUrl + '/images/resource/' + $data[i].resourceId + '.jpg">'
143
					string += '<img class="resImg headRadius" src="' + baseUrl + '/images/resource/' + $data[i].resourceId + '.jpg">'
144
144
145
				} else {
145
				} else {
146
146
147
					string += '<img class="resImg" src="../images/default-resource.jpg">'
147
					string += '<img class="resImg headRadius" src="../images/default-resource.jpg">'
148
				}
148
				}
149
				string += '</div><div class="mui-media-body">'
149
				string += '</div><div class="mui-media-body">'
150
				string += '<span class="listtit">' + $data[i].resourceName + '</span>'
150
				string += '<span class="listtit">' + $data[i].resourceName + '</span>'

+ 2 - 2
app/js/proinforupdate.js

202
				var string = '<li class="mui-table-view-cell mui-media listitem" resouId=' + $data[i].resourceId + '>'
202
				var string = '<li class="mui-table-view-cell mui-media listitem" resouId=' + $data[i].resourceId + '>'
203
				string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox">'
203
				string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox">'
204
				if($data[i].images.length) {
204
				if($data[i].images.length) {
205
					string += '<img class="resImg" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">'					
205
					string += '<img class="resImg headRadius" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">'					
206
				} else {
206
				} else {
207

207

208
						string += '<img class="resImg" src="../images/default-resource.jpg">'
208
						string += '<img class="resImg headRadius" src="../images/default-resource.jpg">'
209
					}
209
					}
210
					string += '</div><div class="mui-media-body">'
210
					string += '</div><div class="mui-media-body">'
211
					string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:24px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>'
211
					string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:24px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>'

+ 2 - 0
app/js/searchhome.js

99
/*搜专家搜资源的下拉选择框*/
99
/*搜专家搜资源的下拉选择框*/
100
selectblock.addEventListener('tap', function() {
100
selectblock.addEventListener('tap', function() {
101
	showblock.style.display = 'block';
101
	showblock.style.display = 'block';
102
//	console.log(selectblock.style.width);
103
//	console.log(showblock.style.width);
102
});
104
});
103

105

104
mui("#li_show").on('tap', 'li', function() {
106
mui("#li_show").on('tap', 'li', function() {

+ 2 - 2
app/js/studentUpdata.js

86
				var string = '<li class="mui-table-view-cell mui-media" resouId=' + $data[i].resourceId + '>'
86
				var string = '<li class="mui-table-view-cell mui-media" resouId=' + $data[i].resourceId + '>'
87
				string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox">'
87
				string += '<a class="proinfor" href="resinforupdate.html"><div class="mui-media-object mui-pull-left ResImgBox">'
88
				if($data[i].images.length) {
88
				if($data[i].images.length) {
89
					string += '<img class="resImg" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">'					
89
					string += '<img class="resImg headRadius" src="'+baseUrl+'/images/resource/' + $data[i].resourceId + '.jpg">'					
90
				} else {
90
				} else {
91

91

92
						string += '<img class="resImg" src="../images/default-resource.jpg">'
92
						string += '<img class="resImg headRadius" src="../images/default-resource.jpg">'
93
					}
93
					}
94
					string += '</div><div class="mui-media-body">'
94
					string += '</div><div class="mui-media-body">'
95
					string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:6px;right:6px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>'
95
					string += '<span class="listtit">' + $data[i].resourceName + '<div class="updatebox updatebox2" style="top:6px;right:6px;"><em class="mui-icon mui-icon-compose updatebtn"></em></div></span>'

+ 2 - 2
app/js/studentbrowse.js

46
				var string = '<li class="mui-table-view-cell mui-media" resouseId=' + $data[i].resourceId + '>'
46
				var string = '<li class="mui-table-view-cell mui-media" resouseId=' + $data[i].resourceId + '>'
47
				string += '<a class="proinfor"><div class="mui-media-object mui-pull-left ResImgBox">'
47
				string += '<a class="proinfor"><div class="mui-media-object mui-pull-left ResImgBox">'
48
				if($data[i].images.length) {
48
				if($data[i].images.length) {
49
					string += '<img class="resImg" src="' + baseUrl + '/images/resource/' + $data[i].resourceId + '.jpg">'
49
					string += '<img class="resImg headRadius" src="' + baseUrl + '/images/resource/' + $data[i].resourceId + '.jpg">'
50

50

51
				} else {
51
				} else {
52

52

53
					string += '<img class="resImg" src="../images/default-resource.jpg">'
53
					string += '<img class="resImg  headRadius" src="../images/default-resource.jpg">'
54
				}
54
				}
55
				string += '</div><div class="mui-media-body">'
55
				string += '</div><div class="mui-media-body">'
56
				string += '<span class="listtit">' + $data[i].resourceName + '</span>'
56
				string += '<span class="listtit">' + $data[i].resourceName + '</span>'