Quellcode durchsuchen

Merge branch 'master' of http://121.42.53.174:3000/bulomakaka/ekexiu.app.git

jack vor 8 Jahren
Ursprung
Commit
fe14b7e668

+ 5 - 5
app/css/app.css

@ -275,15 +275,15 @@ ul.boxnav li.set span:before{
275 275
.levelbox .icon-favorfill{ color:#F4C600;}
276 276
/*专家相关信息*/
277 277
.infocontit{font-size:14px; position: relative;}
278
.infocon{padding:6px 10px; /*text-align: justify;*/ font-size: 13px; color:#888888;}
278
.infocon{padding:6px 10px; /*text-align: justify;*/ font-size: 13px;line-height:27px ; color:#888888;}
279 279
.infocon ul{ padding:0; margin: 0; overflow: hidden;}
280
.infosubject li{ list-style: none; padding:4px 10px; padding-right:20px; margin:4px; border:1px solid #BBBBBB; border-radius: 6px; float: left;}
280
.infosubject li{ list-style: none; padding:4px 10px; margin:4px; border:1px solid #BBBBBB; border-radius: 6px; float: left;}
281 281
282 282
.listbox{ margin:5px 0;max-width:100%; overflow:hidden;}
283
.listbrowse{border: 1px solid #FF9900; border-radius: 0 6px 6px 0; text-align:center;font-size:13px;line-height:26px; float:left;padding-right: 8px; max-width:60%; overflow:hidden;}
283
.listbrowse{border: 1px solid #FF9900; border-radius: 0 6px 6px 0; text-align:center;font-size:13px;line-height:27px; float:left;padding-right: 8px; max-width:60%; overflow:hidden;}
284 284
.plusbtn{ font-size:20px; line-height: 22px; color:#999999;margin-left:4px; margin-top:2px;  }
285 285
.plusbtn.icon-appreciatefill{color:#FF9900;}
286
.like {display: block;float: left;width: 28px;font-size:12px;background: #FF9900; color: #fff; line-height: 26px;margin-right: 5px;}
286
.like {display: block;float: left;width: 28px;font-size:12px;background: #FF9900; color: #fff; line-height: 27px;margin-right: 5px;}
287 287
.likenum{ float:right;max-width:130px;overflow:hidden; }
288 288
.likenum .mui-icon{ font-size:24px; color:#CCCCCC;}
289 289
.likepeople{ width:26px; height:26px; float:left; overflow:hidden; margin-right:5px; }
@ -549,7 +549,7 @@ ul.boxnav li.set span:before{
549 549
/***********************缺省页面*******************/
550 550
.nodatabox{width:100%;height: 100%; margin:50px auto;text-align: center;}
551 551
.nodatabox .picbox{width: 40%;margin: auto;}
552
.nodatabox .picbox .defpic{display:block;margin:auto;width:160px; height: 160px;background: url(../images/nodata.png);}
552
.nodatabox .picbox .defpic{display:block;margin:auto;width:160px; height: 160px;background: url(../images/nodata.png) -6px 0 no-repeat;}
553 553
.nodatabox .picbox .defpic.consult-pic{background-position: -232px -1320px;}/*咨询页面未登录*/
554 554
555 555
.nodatabox .txtbox { margin:40px 0 10px 0;}

+ 3 - 4
app/html/attentions-list.html

@ -17,12 +17,11 @@
17 17
		      	<ul class="mui-table-view protable list">
18 18
			           
19 19
			    </ul>
20
			    <div class="nodatabox" style="display:none; background: #efeff4;margin: 0; " id="nodatabox1">
20
			    <div class="nodatabox" style="display:none;background: #efeff4;margin: 0; " id="nodatabox1">
21 21
			        <div class="nodata">
22
			            <div class="picbox"><span class="defpic"></span></div>
22
			            <div class="picbox"><span class="defpic" style="background-position: -230px -1120px;"></span></div>
23 23
			            <div class="txtbox">
24
			            	<p class="currword">抱歉!您还未关注过专家</p>
25
			                <p class="currtip">请重新修改搜索关键字、或筛选条件后再进行搜索</p>
24
			            	<p class="currword">抱歉!您还未关注过任何专家</p>
26 25
			            </div>
27 26
			        </div>
28 27
			    </div>

+ 3 - 3
app/html/attentions-list2.html

@ -19,10 +19,10 @@
19 19
			    </ul>
20 20
			    <div class="nodatabox" style="display:none; background: #efeff4;margin: 0; " id="nodatabox1">
21 21
			        <div class="nodata">
22
			            <div class="picbox"><span class="defpic"></span></div>
22
			            <div class="picbox"><span class="defpic" style="background-position:-6px 0"></span></div>
23 23
			            <div class="txtbox">
24
			            	<p class="currword">抱歉!您还未关注过资源</p>
25
			                <p class="currtip">请重新修改搜索关键字、或筛选条件后再进行搜索</p>
24
			            	<p class="currword">抱歉!您还未关注过任何资源</p>
25
			                
26 26
			            </div>
27 27
			        </div>
28 28
			    </div>

+ 5 - 6
app/html/chat-assess.html

@ -20,8 +20,7 @@
20 20
			#textbox #question {
21 21
				padding: 0;
22 22
				border: none;
23
				overflow: hidden;
24
				height: 20px;
23
				height: 40px;
25 24
				border-bottom:1px solid #F0F0F0
26 25
			}
27 26
			
@ -52,12 +51,12 @@
52 51
					<div class="mui-inline">评价留言</div>
53 52
				</div>
54 53
				<div class="row mui-input-row" id="textbox">
55
					<!--<div id='question' class="mui-input-clear question textareabox" contenteditable="true"></div>-->
54
					<!--<div id='question' class="mui-input-clear question textareabox" contenteditable="true" style="-webkit-user-select:text;"></div>-->
56 55
					
57
						<textarea id="question"class="mui-input-clear question textareabox"> </textarea>
56
					<textarea id="question"class="mui-input-clear question textareabox"> </textarea>
57
					
58
					<div class="text_count"><span><span id="text-count">300</span>字</span></div>
58 59
					
59
					<div class="text_count"><span><span id="text-count">0</span>/300字</span></div>
60
					<input type="text" value="0" style="display: none;" id="inp"/>
61 60
				</div>
62 61
				
63 62
			</div>

+ 16 - 4
app/html/search-home.html

@ -71,7 +71,7 @@
71 71
		 var selectblock = document.getElementById("div_select");
72 72
		 var searchVal = document.getElementById("searchval");
73 73
		 var key,bigClass=1;
74
		 searchVal.focus();
74
		 //searchVal.focus();
75 75
	    /*搜专家搜资源的下拉选择框*/
76 76
		selectblock.addEventListener('tap', function() {
77 77
			showblock.style.display = 'block';
@ -92,10 +92,22 @@
92 92
		
93 93
		/*点击热门搜索*/
94 94
		mui(".hotsearch").on('tap', 'li', function() {
95
			plus.nativeUI.showWaiting();
95
		
96 96
			key = this.innerHTML;
97
			plus.nativeUI.showWaiting();//显示原生等待框
98
            plus.webview.create("../html/search.html",'search.html',{},{key:key,bigClass:bigClass});
97
			//plus.nativeUI.showWaiting();//显示原生等待框
98
           // plus.webview.create("../html/search.html",'search.html',{},{key:key,bigClass:bigClass});
99
            mui.openWindow({
100
					url: '../html/search.html',
101
					id: '../html/search.html',
102
					show:{
103
				      //autoShow:false,
104
				      aniShow:"slide-in-right",
105
				    },
106
					extras:{
107
				      key:key,
108
				      bigClass:bigClass
109
				    }
110
				});
99 111
		});
100 112
		/*按键字搜索*/
101 113
		searchval.addEventListener("keyup", function() {

+ 2 - 1
app/html/search.html

@ -54,7 +54,7 @@
54 54
				</ul>
55 55
				<div class="nodatabox" style="display:none; background: #efeff4;" id="nodatabox">
56 56
			        <div class="nodata">
57
			            <div class="picbox"><span class="defpic"></span></div>
57
			            <div class="picbox"><span class="defpic" style="background-position: -6px -780px;"></span></div>
58 58
			            <div class="txtbox">
59 59
			            	<p class="currword">抱歉!没找到相关匹配的内容。</p>
60 60
			                <p class="currtip">请重新修改搜索关键字、或筛选条件后再进行搜索</p>
@ -97,6 +97,7 @@
97 97
			}
98 98
			if(isiOS){
99 99
				box.style.top="90px";
100
				box.style.paddingTop="0px";
100 101
			}
101 102
		</script>
102 103
	</body>

+ 1 - 1
app/js/attentions.js

@ -11,7 +11,7 @@ mui.init({
11 11
		up: {
12 12
			contentrefresh: '正在加载...',
13 13
			callback: pullupRefresh,
14
		    //auto:true
14
		    auto:true
15 15
		}
16 16
	}
17 17
});

+ 1 - 1
app/js/attentions2.js

@ -11,7 +11,7 @@ mui.init({
11 11
		up: {
12 12
			contentrefresh: '正在加载...',
13 13
			callback: pullupRefresh,
14
		    //auto:true
14
		    auto:true
15 15
		}
16 16
	}
17 17
});

+ 19 - 2
app/js/chat-assess.js

@ -4,7 +4,7 @@ mui.ready(function(){
4 4
	
5 5
	var oplaceholder =document.getElementById("placeholder");//
6 6
	var otextNum = document.getElementById("text-count");//字数
7
	var oinp = document.getElementById("inp");//用来放评价字数的隐藏于
7
8 8
	
9 9
	var oassesscontent = document.getElementById("question");//评价内容
10 10
	var ostarContainer = document.getElementById("starContainer");//星星容器
@ -40,7 +40,7 @@ mui.ready(function(){
40 40
	};
41 41
	//点击评价区域,placeholder效果,字数限制效果、
42 42
	oassesscontent.addEventListener('keyup',function(){
43
		limitTextCountFn();
43
		checkLen(oassesscontent);
44 44
	});
45 45
	//评价字数限制
46 46
	//字数限制函数
@ -55,6 +55,23 @@ mui.ready(function(){
55 55
			
56 56
		} 
57 57
	};
58
	
59
	/*字数限制*/
60
	function checkLen(obj) {  
61
62
		var maxChars = 300;//最多字符数  
63
		
64
		if (obj.value.length > maxChars) {
65
			
66
			obj.value = obj.value.substring(0,maxChars); 
67
		}
68
		
69
		var curr = maxChars - obj.value.length;  
70
		
71
		document.getElementById("text-count").innerHTML = curr.toString(); 	
72
	};
73
	
74
	
58 75
59 76
	mui.plusReady(function(){
60 77
		var userid = plus.storage.getItem('userid');

+ 1 - 1
app/js/chats.js

@ -295,7 +295,7 @@
295 295
									sender: 'self',
296 296
									type: 'text',
297 297
									content: myData[i]["tidingsContant"],
298
									imgurl:baseUrl + "/images/head/" + myData[i]["professor"].id + "_m.jpg"
298
									imgurl:baseUrl + "/images/head/" + myData[i]["professor"].id + "_l.jpg"
299 299
								});
300 300
								
301 301
							}else {

+ 11 - 11
app/js/consult.js

@ -38,13 +38,9 @@ window.addEventListener('logined', function(event) {
38 38
	content1.style.display = 'block';
39 39
	content2.style.display = 'none';
40 40
	console.log('点击登录ID=='+userId)
41
	table.innerHTML = '';
41 42
	initData();
42 43
	
43
	if(plus.nativeUI.showWaiting()){
44
		
45
		plus.nativeUI.closeWaiting();//关闭等待框
46
		mui('#zixunpullrefresh').scroll().scrollTo(0,0,100);//100毫秒滚动到顶
47
	}
48 44
});
49 45
50 46
mui.plusReady(function() {
@ -167,11 +163,11 @@ function initData(){
167 163
			type:'get',
168 164
			timeout:10000,
169 165
			success:function(data){
170
				if (data.success && data.data.data != '') {
166
				if (data.success) {
171 167
                		table.innerHTML = '';//下拉刷新,清空数据
172 168
                		var datalist = data.data.data;
173 169
					eachData(userid,datalist);
174
					mui('#zixunpullrefresh').pullRefresh().refresh(true);//重置下拉加载
170
//					mui('#zixunpullrefresh').pullRefresh().refresh(true);//重置下拉加载
175 171
					plus.nativeUI.closeWaiting();//关闭原生等待框
176 172
					mui('#zixunpullrefresh').pullRefresh().scrollTo(0,0,100)//回到顶部
177 173
@ -492,16 +488,20 @@ function eachData(userid,datalist) {
492 488
	            		+ '<span class="listtit">'+item["professor"]["name"]+'<em id="nameli" class="mui-icon iconfont '+proModify+'">'+modifyaddEle+'</em><span class="thistime">'+lastReplyTime+'</span></span>';
493 489
	        str += '<p class="listtit2">';
494 490
	        if(item["professor"]["title"]){
495
	        	str += '<span>'+item["professor"]["title"]+'</span>, ';
491
	        		str += '<span>'+item["professor"]["title"]+'</span>, ';
496 492
	        };
497 493
	        if(item["professor"]["office"]){
498
	        	str += '<span>'+item["professor"]["office"]+'</span>, ';
494
	        		if(item["professor"]["orgName"]){
495
	        			str += '<span>'+item["professor"]["office"]+'</span>, ';
496
	        		}else {
497
	        			str += '<span>'+item["professor"]["office"]+'</span>';
498
	        		}
499 499
	        };
500 500
	        if(item["professor"]["orgName"]){
501
	        	str += '<span>'+item["professor"]["orgName"]+'</span>';
501
	        		str += '<span>'+item["professor"]["orgName"]+'</span>';
502 502
	        };
503 503
	        if(item["professor"]["address"]){
504
	        	str += '<span>  | '+item["professor"]["address"]+'</span>';
504
	        		str += '<span>  | '+item["professor"]["address"]+'</span>';
505 505
	        };
506 506
	        
507 507
	        str +='</p><p class="listtit3 onlyone">'+lastReplyCon+'</p></div></a>';

+ 14 - 2
app/js/index.js

@ -22,8 +22,20 @@ mui('.list').on('tap','a',function(){
22 22
/*点击热门领域*/
23 23
mui('.gridbg').on('tap','li',function(){
24 24
	var subject = this.getAttribute("data-title");
25
	plus.nativeUI.showWaiting();//显示原生等待框
26
    webviewShow = plus.webview.create("../html/search.html",'search.html',{},{subject:subject,bigClass:1});//后台创建webview并打开show.html
25
	//plus.nativeUI.showWaiting();//显示原生等待框
26
    //webviewShow = plus.webview.create("../html/search.html",'search.html',{},{subject:subject,bigClass:1});//后台创建webview并打开show.html
27
    mui.openWindow({
28
		url: '../html/search.html',
29
		id: '../html/search.html',
30
		show:{
31
	      //autoShow:false,
32
	      aniShow:"slide-in-right",
33
	    },
34
		extras:{
35
	      subject:subject,
36
	      bigClass:1
37
	    }
38
	});
27 39
})
28 40

29 41


+ 4 - 2
app/js/proinfobrow.js

@ -350,7 +350,8 @@ mui.plusReady(function() {
350 350
				}
351 351
			})
352 352
		} else {
353
			plus.nativeUI.toast("请先登录");
353
//			plus.nativeUI.toast("请先登录");
354
			isLogin();
354 355
		}
355 356
356 357
	})
@ -378,7 +379,8 @@ mui.plusReady(function() {
378 379
		if(userid && userid != null && userid != "null") {
379 380
			collectionExpert($this);
380 381
		} else {
381
			plus.nativeUI.toast("请先登录");
382
//			plus.nativeUI.toast("请先登录");
383
			isLogin();
382 384
		}
383 385
	});
384 386

+ 2 - 1
app/js/resinforbrow.js

@ -260,7 +260,8 @@ mui.plusReady(function() {
260 260
		if(userid && userid != null && userid != "null") {
261 261
			collectionExpert($this);
262 262
		} else {
263
			plus.nativeUI.toast("请先登录");
263
//			plus.nativeUI.toast("请先登录");
264
			isLogin();
264 265
		}
265 266
	});
266 267

+ 1 - 1
app/js/searchhome.js

@ -28,7 +28,7 @@ mui.init({
28 28
			up: {
29 29
				contentrefresh: '正在加载...',
30 30
				callback: pullupRefresh,
31
				//auto:true
31
				auto:true
32 32
			}
33 33
		}
34 34
});