jack 8 anni fa
parent
commit
668f41f674

+ 1 - 1
app/css/app.css

@ -16,7 +16,7 @@ img{color:transparent;font-size:0;vertical-align:middle;-ms-interpolation-mode:b
16 16
.mui-poppicker-body .mui-picker{background:#fff;}/*城市选择器*/
17 17
/*无点击效果*/
18 18
.mui-table-view .mui-table-view-cell.NoActive>a:not(.mui-btn).mui-active{background:none;}
19

19
.mui-table-view .mui-table-view-cell.NoActive.mui-active{background:none;}
20 20
/*图片轮播按钮圆点*/
21 21
.mui-slider-indicator .mui-indicator{ background: rgba(130,130,130,.4);-webkit-box-shadow:none;box-shadow: none;}
22 22
.mui-slider-indicator .mui-active.mui-indicator{background: rgba(256, 256, 256, 0.6);}

+ 3 - 3
app/html/companybrowse.html

@ -63,7 +63,7 @@
63 63
				        </a>
64 64
			        </div>
65 65
		        </div>
66
		        <ul class="mui-table-view">
66
		        <!--<ul class="mui-table-view">
67 67
				    <li class="mui-table-view-cell">
68 68
				        <a class="mui-navigate-right mui-clearfix peolevelbox " id="accessHistory">
69 69
				        	<div class="mui-pull-left peocountbox">
@ -73,7 +73,7 @@
73 73
				        		</div>
74 74
				        	</div>
75 75
				        	<div class="rightword levelbox ">
76
				        		<span class="mui-icon iconfont icon-favor start"></span> <!--无色星星icon-favor  黄色星icon-favorfill-->
76
				        		<span class="mui-icon iconfont icon-favor start"></span> 
77 77
				        		<span class="mui-icon iconfont icon-favor start"></span>
78 78
				        		<span class="mui-icon iconfont icon-favor start"></span>
79 79
				        		<span class="mui-icon iconfont icon-favor start"></span>
@ -82,7 +82,7 @@
82 82
				        	
83 83
				        </a>
84 84
				    </li>
85
				</ul>
85
				</ul>-->
86 86
		        
87 87
		    </div>
88 88
		    <div class="mui-input-group mainbox" id="professorresourceList">

+ 2 - 2
app/html/consultapply.html

@ -65,8 +65,8 @@
65 65
				</div>
66 66
				<div class="mui-clearfix peolevelbox" id="finished" style="padding:0 16px;">
67 67
					<ul class="mui-table-view">
68
						<li class="mui-table-view-cell">
69
							<div class="mui-pull-left peocountbox mui-navigate-right">
68
						<li class="mui-table-view-cell" id="NoActive">
69
							<div class="mui-pull-left peocountbox mui-navigate-right"id="accessHistory">
70 70
								<div class="peocount mui-clearfix">
71 71
									<em class="mui-icon iconfont icon-community actionicon dialogicon mui-pull-left "></em>
72 72
									<span class="mui-pull-left">已完成咨询<em id='consultcount'></em>人次</span>

+ 1 - 1
app/html/myaccount.html

@ -41,7 +41,7 @@
41 41
			        </div>
42 42
		        </div>
43 43
		        <ul class="mui-table-view">
44
				    <li class="mui-table-view-cell">
44
				    <li class="mui-table-view-cell" id="NoActive">
45 45
				        <a class="mui-navigate-right peocount"  id="goZixun">
46 46
				        	<em class="mui-icon iconfont icon-community actionicon dialogicon mui-pull-left "></em>
47 47
				        	<span class="mui-pull-left">已完成咨询<em id="zixunOk"></em>人次</span>

+ 1 - 1
app/html/proinforbrow.html

@ -67,7 +67,7 @@
67 67
					</div>
68 68
				</div>
69 69
				<ul class="mui-table-view">
70
					<li class="mui-table-view-cell">
70
					<li class="mui-table-view-cell"id="NoActive"> 
71 71
						<a class="mui-navigate-right mui-clearfix peolevelbox " id="accessHistory">
72 72
							<div class="mui-pull-left peocountbox">
73 73
								<div class="peocount mui-clearfix">

+ 3 - 3
app/html/studentbrowse.html

@ -62,7 +62,7 @@
62 62
				        </a>
63 63
			        </div>
64 64
		        </div>
65
		        <ul class="mui-table-view">
65
		        <!--<ul class="mui-table-view">
66 66
				    <li class="mui-table-view-cell">
67 67
				        <a class="mui-navigate-right mui-clearfix peolevelbox " id="accessHistory">
68 68
				        	<div class="mui-pull-left peocountbox">
@ -72,7 +72,7 @@
72 72
				        		</div>
73 73
				        	</div>
74 74
				        	<div class="rightword levelbox ">
75
				        		<span class="mui-icon iconfont icon-favor start"></span> <!--无色星星icon-favor  黄色星icon-favorfill-->
75
				        		<span class="mui-icon iconfont icon-favor start"></span> 
76 76
				        		<span class="mui-icon iconfont icon-favor start"></span>
77 77
				        		<span class="mui-icon iconfont icon-favor start"></span>
78 78
				        		<span class="mui-icon iconfont icon-favor start"></span>
@ -81,7 +81,7 @@
81 81
				        	
82 82
				        </a>
83 83
				    </li>
84
				</ul>
84
				</ul>-->
85 85
		        
86 86
		    </div>
87 87
		    <div class="mui-input-group mainbox" id="professorresourceList">

+ 18 - 18
app/js/companybrowse.js

@ -78,11 +78,11 @@ mui.plusReady(function() {
78 78
				personalMaterial[0].innerText = $data.name;
79 79
				document.getElementById("professorName").innerText=$data.name;
80 80
				//基本信息
81
				if($data.consultCount) {
82
					document.getElementsByClassName("consultCount")[0].innerText = $data.consultCount;
83
				} else {
84
					document.getElementById("accessHistory").style.display = "none";
85
				}
81
//				if($data.consultCount) {
82
//					document.getElementsByClassName("consultCount")[0].innerText = $data.consultCount;
83
//				} else {
84
//					document.getElementById("accessHistory").style.display = "none";
85
//				}
86 86
				var startLeval = parseInt($data.starLevel);
87 87
				var start = document.getElementsByClassName("start");
88 88
				for(var i = 0; i < startLeval; i++) {
@ -301,19 +301,19 @@ mui.plusReady(function() {
301 301
		});
302 302

303 303
	}
304
	/*专家的历史和评价*/
305
	document.getElementById("accessHistory").addEventListener('tap', function() {
306
		mui.openWindow({
307
			url: '../html/coophistory-other.html',
308
			id: 'html/coophistory-other.html',
309
			show: {
310
				autoShow: false,
311
			},
312
			extras: {
313
				professorId: proId
314
			}
315
		});
316
	})
304
//	/*专家的历史和评价*/
305
//	document.getElementById("accessHistory").addEventListener('tap', function() {
306
//		mui.openWindow({
307
//			url: '../html/coophistory-other.html',
308
//			id: 'html/coophistory-other.html',
309
//			show: {
310
//				autoShow: false,
311
//			},
312
//			extras: {
313
//				professorId: proId
314
//			}
315
//		});
316
//	})
317 317
	/*图像预览*/
318 318
	mui.previewImage();
319 319
});

+ 11 - 5
app/js/consultapply.js

@ -16,7 +16,7 @@
16 16
 	var ostarContainer = document.getElementById("starContainer");//星级容器
17 17
 	var ofinished = document.getElementById("finished");//点击完成咨询,进入合作历史评价
18 18
 	var nameli = document.getElementById("nameli");//认证
19
 	
19
 	var clickFlag=true;
20 20
 	
21 21
 	var osaveconsultBtn = document.getElementById("saveconsultBtn");//保存咨询,发送按钮
22 22
 	
@ -96,11 +96,17 @@
96 96
	 				if(myData["address"]){
97 97
	 					oproadress.innerHTML = ' | '+myData["address"];//所在地
98 98
	 				}
99
	 				
99
	 				var starLevel = myData['starLevel'];
100 100
	 				if(myData["consultCount"] == null || myData["consultCount"] == undefined ) {
101
	 					myData["consultCount"] = 0;
101
	 					ofinished.style.display="none";
102 102
	 				}else {
103 103
	 					oconsultcount.innerHTML =  myData["consultCount"];//咨询次数
104
	 					if(!starLevel){
105
	 						clickFlag=false;
106
						document.getElementById("NoActive").classList.add("NoActive");
107
						document.getElementsByClassName("levelbox")[0].style.display = "none";
108
						document.getElementById("accessHistory").classList.remove("mui-navigate-right");
109
	 					}
104 110
	 				};
105 111
	 				
106 112
	 				/*是否认证*/
@ -133,7 +139,7 @@
133 139
					}
134 140
	 				
135 141
	 				/*星级*/
136
	 				var starLevel = myData['starLevel'];
142
	 				
137 143
	 				var starlist = ostarContainer.children;
138 144
	 				for(var i = 0; i < starLevel; i++) {
139 145
						starlist[i].classList.remove('icon-favor');
@ -218,7 +224,7 @@
218 224
		
219 225
		/*专家的历史和评价*/
220 226
		ofinished.addEventListener('tap', function() {
221
			
227
			if(!clickFlag) return;
222 228
			mui.openWindow({
223 229
				url: '../html/coophistory-other.html',
224 230
				id: 'html/coophistory-other.html',

+ 12 - 0
app/js/myaccount.js

@ -151,6 +151,7 @@ mui.ready(function() {
151 151

152 152
				/*我的历史和评价*/
153 153
				goZixun.addEventListener('tap', function() {
154
					if(!clickFlag) return;
154 155
					mui.openWindow({
155 156
						url: '../html/coophistory.html',
156 157
						id: 'html/coophistory.html',
@ -220,6 +221,17 @@ mui.ready(function() {
220 221
						($info.consultCount != '') ? zixunOk.innerText = $info.consultCount: zixunOk.innerText = '0';
221 222

222 223
						var startLeval = parseInt($info.starLevel);
224
						if($info.consultCount){
225
							 zixunOk.innerText = $info.consultCount;
226
							 if(!startLeval){
227
							 	clickFlag=false;
228
						document.getElementById("NoActive").classList.add("NoActive");
229
						document.getElementsByClassName("levelbox")[0].style.display = "none";
230
						document.getElementById("goZixun").classList.remove("mui-navigate-right");
231
							 }
232
						}else{
233
							goZixun.style.display="none";
234
						}
223 235
						var start = document.getElementsByClassName("star");
224 236
						for(var i = 0; i < startLeval; i++) {
225 237
							start[i].classList.add("icon-favorfill");

+ 10 - 1
app/js/proinfobrow.js

@ -5,6 +5,7 @@ var personalMaterial = document.getElementsByClassName('personalMaterial');
5 5
var personSummary = document.getElementsByClassName("breifinfo")[0];
6 6
var professorName;
7 7
var title;
8
var clickFlag=true;
8 9
mui.plusReady(function() {
9 10
	var userid = plus.storage.getItem('userid');
10 11
	var self = plus.webview.currentWebview();
@ -185,12 +186,19 @@ mui.plusReady(function() {
185 186
				professorName = $data.name;
186 187
				document.getElementById("professorName").innerText = $data.name;
187 188
				//基本信息
189
				var startLeval = parseInt($data.starLevel);
188 190
				if($data.consultCount) {
189 191
					document.getElementsByClassName("consultCount")[0].innerText = $data.consultCount;
192
					if(!startLeval){
193
						clickFlag=false;
194
						document.getElementById("NoActive").classList.add("NoActive");
195
						document.getElementsByClassName("levelbox")[0].style.display = "none";
196
						document.getElementById("accessHistory").classList.remove("mui-navigate-right");
197
					}
190 198
				} else {
191 199
					document.getElementById("accessHistory").style.display = "none";
192 200
				}
193
				var startLeval = parseInt($data.starLevel);
201
				
194 202
				var start = document.getElementsByClassName("start");
195 203
				for(var i = 0; i < startLeval; i++) {
196 204
					start[i].classList.add("icon-favorfill");
@ -481,6 +489,7 @@ mui.plusReady(function() {
481 489
	}
482 490
	/*专家的历史和评价*/
483 491
	document.getElementById("accessHistory").addEventListener('tap', function() {
492
		if(!clickFlag) return;
484 493
			mui.openWindow({
485 494
				url: '../html/coophistory-other.html',
486 495
				id: 'html/coophistory-other.html',

+ 18 - 18
app/js/studentbrowse.js

@ -79,11 +79,11 @@ mui.plusReady(function() {
79 79
				personalMaterial[0].innerText = $data.name;
80 80
				document.getElementById("professorName").innerText=$data.name;
81 81
				//基本信息
82
				if($data.consultCount){
83
					document.getElementsByClassName("consultCount")[0].innerText = $data.consultCount;
84
				}else{
85
					document.getElementById("accessHistory").style.display="none";
86
				}
82
//				if($data.consultCount){
83
//					document.getElementsByClassName("consultCount")[0].innerText = $data.consultCount;
84
//				}else{
85
//					document.getElementById("accessHistory").style.display="none";
86
//				}
87 87
				var startLeval = parseInt($data.starLevel);
88 88
				var start = document.getElementsByClassName("start");
89 89
				for(var i = 0; i < startLeval; i++) {
@ -286,19 +286,19 @@ mui.plusReady(function() {
286 286
		});
287 287

288 288
	}
289
	/*专家的历史和评价*/
290
	document.getElementById("accessHistory").addEventListener('tap', function() {
291
		mui.openWindow({
292
			url: '../html/coophistory-other.html',
293
			id: 'html/coophistory-other.html',
294
			show: {
295
				autoShow: false,
296
			},
297
			extras: {
298
				professorId: proId
299
			}
300
		});
301
	})
289
//	/*专家的历史和评价*/
290
//	document.getElementById("accessHistory").addEventListener('tap', function() {
291
//		mui.openWindow({
292
//			url: '../html/coophistory-other.html',
293
//			id: 'html/coophistory-other.html',
294
//			show: {
295
//				autoShow: false,
296
//			},
297
//			extras: {
298
//				professorId: proId
299
//			}
300
//		});
301
//	})
302 302
	/*图像预览*/
303 303
	mui.previewImage();
304 304
});