Sfoglia il codice sorgente

咨询申请内容不可编辑样式调试

wangaidan 8 anni fa
parent
commit
06e9fefe39
3 ha cambiato i file con 37 aggiunte e 26 eliminazioni
  1. 31 4
      app/html/consultapply.html
  2. 3 19
      app/js/consult.js
  3. 3 3
      app/js/consultapply.js

+ 31 - 4
app/html/consultapply.html

@ -8,6 +8,32 @@
8 8
		<link href="../css/mui.min.css" rel="stylesheet" />
9 9
		<link href="../css/iconfont.css" rel="stylesheet" />
10 10
		<link href="../css/app.css" rel="stylesheet" />
11
		<style type="text/css">
12
			#consultcon {
13
				min-height: 20px !important;
14
				font-size: 14px;
15
				padding: 0;
16
				line-height: 11px;
17
				margin-top: 4px;
18
				border-bottom: 1px solid #F0F0F0;
19
			}
20
			
21
			/*提交按钮*/
22
			.mui-content-padded .tijiao {
23
				padding: 5px 0;
24
				margin-top: 20px;
25
			}
26
			.text {
27
				position: relative;
28
				border-bottom:1px solid rgba(0,0,0,.2);
29
				background:#fff;
30
			}
31
			#count {
32
				position: absolute;
33
				bottom: 0px;
34
				right: 10px;
35
			}
36
		</style>
11 37
	</head>
12 38
13 39
	<body style="background: #FFFFFF;">
@ -73,13 +99,14 @@
73 99
							<li><label>咨询主题<em class="requiredcon"></em></label></li>
74 100
							<li class="basicfrm"><input type="text" name="comname" class="mui-input-clear frmtype" id="consulttitle"></li>
75 101
							<li><label>咨询内容<em class="requiredcon" ></em></label></li>
76
							<li class="basicfrm">
102
							<li class="basicfrm row mui-input-group  mui-input-row" style="border-bottom: none;min-height: 80px;">
77 103
								<!--<div class="textareabox" contenteditable="true" id="consultcon">
78 104

79 105
								</div>-->
80
								<div class="row mui-input-row text" style="height: 20px;">
81
									<textarea id="consultcon"class="mui-input-clear question content" placeholder="" style="padding: 0;"></textarea>
82
								</div>
106
								<!--<div class="row mui-input-row text">-->
107
									<textarea id='consultcon' class="mui-input-clear question content" style=""></textarea>
108
									<!--<div id="count">300</div>-->
109
								<!--</div>-->
83 110
							</li>
84 111
						</ul>
85 112
					</div>

+ 3 - 19
app/js/consult.js

@ -423,22 +423,6 @@ function eachData(userid,datalist) {
423 423
		    		}
424 424
		    	}
425 425
		    	
426
//			if(item['consultantId'] != userid){//收到咨询
427
//				if(item["consultStatus"] == 1){
428
//					status = "已完成";
429
//					statusStyle = 'status-3';
430
//				}
431
//			}else if(item['consultantId'] == userid){//我的需求
432
//				if(item["consultStatus"] == 1){
433
//					if(item["assessStatus"] == 0){
434
//						status = '待评价';
435
//						statusStyle = 'status-2';
436
//					}else {
437
//						status = '已完成';
438
//						statusStyle = 'status-3';
439
//					}
440
//				}
441
//			};
442 426
			
443 427
			//认证
444 428
			if(item["professor"].authType) {
@ -447,17 +431,17 @@ function eachData(userid,datalist) {
447 431
				if(item["professor"].authStatus) {
448 432
					if(item["professor"].authentication == 1) {
449 433
						proModify = 'icon-renzheng authicon-mana';
450
						modifyaddEle = "<span >科研</span>";
434
//						modifyaddEle = "<span >科研</span>";
451 435
						
452 436
						
453 437
					} else if(item["professor"].authentication == 2) {
454 438
						proModify = 'icon-renzheng authicon-staff';
455
						modifyaddEle = "<span>企业</span>";
439
//						modifyaddEle = "<span>企业</span>";
456 440
						
457 441
					} else {
458 442
						
459 443
						proModify = 'icon-renzheng authicon-stu';
460
						modifyaddEle = "<span>学生</span>";
444
//						modifyaddEle = "<span>学生</span>";
461 445
						
462 446
					}
463 447
				}

+ 3 - 3
app/js/consultapply.js

@ -125,15 +125,15 @@
125 125
							if(myData.authentication == 1) {
126 126
								nameli.classList.add('icon-renzheng');
127 127
								nameli.classList.add('authicon-mana');
128
								nameli.innerHTML = "<span>科研</span>";
128
//								nameli.innerHTML = "<span>科研</span>";
129 129
							} else if(myData.authentication == 2) {
130 130
								nameli.classList.add('icon-renzheng');
131 131
								nameli.classList.add('authicon-staff');
132
								nameli.innerHTML = "<span>企业</span>";
132
//								nameli.innerHTML = "<span>企业</span>";
133 133
							} else {
134 134
								nameli.classList.add('icon-renzheng');
135 135
								nameli.classList.add('authicon-stu');
136
								nameli.innerHTML = "<span>学生</span>";
136
//								nameli.innerHTML = "<span>学生</span>";
137 137
							}
138 138
						}
139 139
					}