Browse Source

咨询栏的显示隐藏问题

luyanan 8 years ago
parent
commit
3096ef146f
4 changed files with 12 additions and 10 deletions
  1. 4 4
      app/html/myaccount.html
  2. 2 2
      app/js/coophistory-other.js
  3. 2 2
      app/js/coophistory.js
  4. 4 2
      app/js/myaccount.js

+ 4 - 4
app/html/myaccount.html

22
		                    <div class="mui-pull-left" style="width:24%;min-height:60px;">
22
		                    <div class="mui-pull-left" style="width:24%;min-height:60px;">
23
		                    	<img class="headimg2 headRadius" src="" id="userImg">
23
		                    	<img class="headimg2 headRadius" src="" id="userImg">
24
		                    </div>
24
		                    </div>
25
		                    <div class="mui-pull-left infobasic" style="padding-right:4%">
25
		                    <div class="mui-pull-left infobasic" style="padding-right:5%">
26
		                        <span class="listtit">
26
		                        <span class="listtit">
27
		                        	<span id="userName" style="line-height: 22px;"></span>
27
		                        	<span id="userName" style="line-height: 22px;"></span>
28
		                        	<em id="nameli" class="mui-icon iconfont"></em>
28
		                        	<em id="nameli" class="mui-icon iconfont"></em>
29
		                        </span>	
29
		                        </span>	
30
		                        <p class="listtit2"><span id="userTitle"></span><span id="userPosition"></span></p>
30
		                        <p class="listtit2"><span id="userTitle"></span><span id="userPosition"></span></p>
31
		                    	<p class="listtit3"><span id="userDepartment"></span><span id="userMechanism"></span><span id="userCity"></span></p>
31
		                    	<p class="listtit3" style="line-height:16px;"><span id="userDepartment"></span><span id="userMechanism"></span><span id="userCity"></span></p>
32
		                    </div>
32
		                    </div>
33
		                </a>
33
		                </a>
34
		                <!--<div class="mui-pull-right updatebtn">
34
		                <!--<div class="mui-pull-right updatebtn">
39
			        	</div>-->
39
			        	</div>-->
40
			        </div>
40
			        </div>
41
		        </div>
41
		        </div>
42
		        <ul class="mui-table-view">
42
		        <ul class="mui-table-view" id="goZixunbox">
43
				    <li class="mui-table-view-cell" id="NoActive" >
43
				    <li class="mui-table-view-cell" id="NoActive" >
44
				        <a class="mui-navigate-right peocount"  id="goZixun">
44
				        <a class="mui-navigate-right peocount" id="goZixun">
45
				        	<em class="mui-icon iconfont icon-community actionicon dialogicon mui-pull-left "></em>
45
				        	<em class="mui-icon iconfont icon-community actionicon dialogicon mui-pull-left "></em>
46
				        	<span class="mui-pull-left">已完成咨询<em id="zixunOk"></em>人次</span>
46
				        	<span class="mui-pull-left">已完成咨询<em id="zixunOk"></em>人次</span>
47
				        	<div class="rightword levelbox">
47
				        	<div class="rightword levelbox">

+ 2 - 2
app/js/coophistory-other.js

35
							string += '</div>'
35
							string += '</div>'
36
							string += '<div class="mui-media-body">'
36
							string += '<div class="mui-media-body">'
37
							string += '<div class="contit">'
37
							string += '<div class="contit">'
38
							string += '<span class="mui-ellipsis listtit2">' + assessTime + '</span>'
38
							string += '<span class="mui-ellipsis listtit3">' + assessTime + '</span>'
39
							string += '<div class="conresoult">'
39
							string += '<div class="conresoult">'
40
							string += '<div class="levelbox">'
40
							string += '<div class="levelbox">'
41
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
41
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
46
							string += '</div>'
46
							string += '</div>'
47
							string += '</div>'
47
							string += '</div>'
48
							string += '</div>'
48
							string += '</div>'
49
							string += '<p class="listtit conbrief">'
49
							string += '<p class="listtit2 conbrief">'
50
							if($info[i].assessContant) string += $info[i].assessContant;
50
							if($info[i].assessContant) string += $info[i].assessContant;
51
							string += '</p>'
51
							string += '</p>'
52
							string += '</div></a>'
52
							string += '</div></a>'

+ 2 - 2
app/js/coophistory.js

36
							string += '<div class="mui-media-body">'
36
							string += '<div class="mui-media-body">'
37
							string += '<p class="listtit0"><span class="mui-ellipsis listtit">' + $info[i].consultTitle + '</span></p>'
37
							string += '<p class="listtit0"><span class="mui-ellipsis listtit">' + $info[i].consultTitle + '</span></p>'
38
							string += '<div class="contit">'
38
							string += '<div class="contit">'
39
							string += '<span class="mui-ellipsis listtit2">' + assessTime + '</span>'
39
							string += '<span class="mui-ellipsis listtit3">' + assessTime + '</span>'
40
							string += '<div class="conresoult">'
40
							string += '<div class="conresoult">'
41
							string += '<div class="levelbox">'
41
							string += '<div class="levelbox">'
42
							string += '<span class="mui-icon iconfont icon-favor star "></span>'
42
							string += '<span class="mui-icon iconfont icon-favor star "></span>'
47
							string += '</div>'
47
							string += '</div>'
48
							string += '</div>'
48
							string += '</div>'
49
							string += '</div>'
49
							string += '</div>'
50
							string += '<p class="listtit conbrief">'
50
							string += '<p class="listtit2 conbrief">'
51
							if($info[i].assessContant) string += $info[i].assessContant;
51
							if($info[i].assessContant) string += $info[i].assessContant;
52
							string += '</p>'
52
							string += '</p>'
53
							string += '</div></a>'
53
							string += '</div></a>'

+ 4 - 2
app/js/myaccount.js

7
	var goReg = document.getElementById("goreg");
7
	var goReg = document.getElementById("goreg");
8
	var goSetup = document.getElementById("goSetup");
8
	var goSetup = document.getElementById("goSetup");
9
	var goZixun = document.getElementById("goZixun");
9
	var goZixun = document.getElementById("goZixun");
10
	var goZixunbox = document.getElementById("goZixunbox");
10
	var oEdit = document.getElementById("editbox");
11
	var oEdit = document.getElementById("editbox");
11
	var goFollow = document.getElementById("goFollow");
12
	var goFollow = document.getElementById("goFollow");
12
	var userImg = document.getElementById("userImg");
13
	var userImg = document.getElementById("userImg");
190
						($info.consultCount != '') ? zixunOk.innerText = $info.consultCount: zixunOk.innerText = '0';
191
						($info.consultCount != '') ? zixunOk.innerText = $info.consultCount: zixunOk.innerText = '0';
191
						var startLeval = parseInt($info.starLevel);
192
						var startLeval = parseInt($info.starLevel);
192
						if($info.consultCount) {
193
						if($info.consultCount) {
194
							goZixunbox.style.display = "block";
193
							zixunOk.innerText = $info.consultCount;
195
							zixunOk.innerText = $info.consultCount;
194
							if(!startLeval) {
196
							if(!startLeval) {
195
								clickFlag = false;
197
								clickFlag = false;
198
								document.getElementById("goZixun").classList.remove("mui-navigate-right");
200
								document.getElementById("goZixun").classList.remove("mui-navigate-right");
199
							}
201
							}
200
						} else {
202
						} else {
201
							goZixun.style.display = "none";
203
							goZixunbox.style.display = "none";
202
						}
204
						}
203
						if(!$info.authType && ($info.authentication == 2 || $info.authentication == 3)) {
205
						if(!$info.authType && ($info.authentication == 2 || $info.authentication == 3)) {
204
							goZixun.style.display = "none";
206
							goZixunbox.style.display = "none";
205
						}
207
						}
206
						var start = document.getElementsByClassName("star");
208
						var start = document.getElementsByClassName("star");
207
						for(var i = 0; i < startLeval; i++) {
209
						for(var i = 0; i < startLeval; i++) {