Browse Source

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

wangaidan 8 years ago
parent
commit
06e9fefe39
3 changed files with 37 additions and 26 deletions
  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
		<link href="../css/mui.min.css" rel="stylesheet" />
8
		<link href="../css/mui.min.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
9
		<link href="../css/iconfont.css" rel="stylesheet" />
10
		<link href="../css/app.css" rel="stylesheet" />
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
	</head>
37
	</head>
12
38
13
	<body style="background: #FFFFFF;">
39
	<body style="background: #FFFFFF;">
73
							<li><label>咨询主题<em class="requiredcon"></em></label></li>
99
							<li><label>咨询主题<em class="requiredcon"></em></label></li>
74
							<li class="basicfrm"><input type="text" name="comname" class="mui-input-clear frmtype" id="consulttitle"></li>
100
							<li class="basicfrm"><input type="text" name="comname" class="mui-input-clear frmtype" id="consulttitle"></li>
75
							<li><label>咨询内容<em class="requiredcon" ></em></label></li>
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
								<!--<div class="textareabox" contenteditable="true" id="consultcon">
103
								<!--<div class="textareabox" contenteditable="true" id="consultcon">
78

104

79
								</div>-->
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
							</li>
110
							</li>
84
						</ul>
111
						</ul>
85
					</div>
112
					</div>

+ 3 - 19
app/js/consult.js

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
			if(item["professor"].authType) {
428
			if(item["professor"].authType) {
447
				if(item["professor"].authStatus) {
431
				if(item["professor"].authStatus) {
448
					if(item["professor"].authentication == 1) {
432
					if(item["professor"].authentication == 1) {
449
						proModify = 'icon-renzheng authicon-mana';
433
						proModify = 'icon-renzheng authicon-mana';
450
						modifyaddEle = "<span >科研</span>";
434
//						modifyaddEle = "<span >科研</span>";
451
						
435
						
452
						
436
						
453
					} else if(item["professor"].authentication == 2) {
437
					} else if(item["professor"].authentication == 2) {
454
						proModify = 'icon-renzheng authicon-staff';
438
						proModify = 'icon-renzheng authicon-staff';
455
						modifyaddEle = "<span>企业</span>";
439
//						modifyaddEle = "<span>企业</span>";
456
						
440
						
457
					} else {
441
					} else {
458
						
442
						
459
						proModify = 'icon-renzheng authicon-stu';
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
							if(myData.authentication == 1) {
125
							if(myData.authentication == 1) {
126
								nameli.classList.add('icon-renzheng');
126
								nameli.classList.add('icon-renzheng');
127
								nameli.classList.add('authicon-mana');
127
								nameli.classList.add('authicon-mana');
128
								nameli.innerHTML = "<span>科研</span>";
128
//								nameli.innerHTML = "<span>科研</span>";
129
							} else if(myData.authentication == 2) {
129
							} else if(myData.authentication == 2) {
130
								nameli.classList.add('icon-renzheng');
130
								nameli.classList.add('icon-renzheng');
131
								nameli.classList.add('authicon-staff');
131
								nameli.classList.add('authicon-staff');
132
								nameli.innerHTML = "<span>企业</span>";
132
//								nameli.innerHTML = "<span>企业</span>";
133
							} else {
133
							} else {
134
								nameli.classList.add('icon-renzheng');
134
								nameli.classList.add('icon-renzheng');
135
								nameli.classList.add('authicon-stu');
135
								nameli.classList.add('authicon-stu');
136
								nameli.innerHTML = "<span>学生</span>";
136
//								nameli.innerHTML = "<span>学生</span>";
137
							}
137
							}
138
						}
138
						}
139
					}
139
					}