lipengtao лет назад: 8
Родитель
Сommit
4b091b04d6
2 измененных файлов с 17 добавлено и 14 удалено
  1. 8 7
      app/js/coophistory-other.js
  2. 9 7
      app/js/coophistory.js

+ 8 - 7
app/js/coophistory-other.js

@ -24,7 +24,7 @@ mui.ready(function() {
24 24
								$info[i].assessTime.substr(8, 2) + ":" + $info[i].assessTime.substr(10, 2);
25 25

26 26
							var string = '<li class="mui-table-view-cell mui-media">'
27
							string += '<a class="proinfor" href="../html/proinforbrow.html">'
27
							string += '<a class="proinfor" >'
28 28
							string += '<div class="mui-pull-left lefthead">'
29 29
							if($info[i].professor.hasHeadImage) {
30 30
								string += '<img class="mui-media-object headimg headRadius" src="'+baseUrl+'/images/head/' + $info[i].professor.id + '_l.jpg">'
@ -52,12 +52,13 @@ mui.ready(function() {
52 52
							string += '</p>'
53 53
							string += '</div></a></li>'
54 54
							html.push(string);
55
							var startLeval = parseInt($info[i].starLevel);
56
							var start = document.getElementsByClassName("star");
57
							for(var j = 0; j < startLeval; j++) {
58
								start[j].classList.add("icon-favorfill");
59
							}
60
							document.getElementsByClassName(" protable")[0].innerHTML = html.join('');
55
							 var startLeval=parseInt($info[i].assessStar);  
56
	                 document.getElementsByClassName(" protable")[0].innerHTML=html.join('');
57
	                var start=document.getElementsByClassName("star");	                
58
					    for(var j=0;j<startLeval;j++) {
59
					    	start[j].classList.remove("icon-favor");
60
							start[j].classList.add("icon-favorfill");
61
						}					
61 62
						}
62 63
					}
63 64
				},

+ 9 - 7
app/js/coophistory.js

@ -35,9 +35,9 @@ function userInformation() {
35 35
							string += '<span class="mui-ellipsis listtit">' + assessTime + '</span>'
36 36
							string += '<div class="conresoult">'
37 37
							string += '<div class="levelbox">'
38
							string += '<span class="mui-icon iconfont icon-favorfill star"></span>'
39
							string += '<span class="mui-icon iconfont icon-favorfill star"></span>'
40
							string += '<span class="mui-icon iconfont icon-favorfill star"></span>'
38
							string += '<span class="mui-icon iconfont icon-favor star "></span>'
39
							string += '<span class="mui-icon iconfont  icon-favor star"></span>'
40
							string += '<span class="mui-icon iconfont  icon-favor star"></span>'
41 41
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
42 42
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
43 43
							string += '</div>'
@ -77,12 +77,14 @@ function userInformation() {
77 77
//	                    	string+='<p class="listtit3">'+assessTime+'</p>'
78 78
//	                    string+='</div></a></li>'
79 79
	                    html.push(string);
80
	                    var startLeval=parseInt($info[i].starLevel);
81
	                var start=document.getElementsByClassName("star");
82
						for(var j=0;j<startLeval;j++) {
80
	                    var startLeval=parseInt($info[i].assessStar);  
81
	                 document.getElementsByClassName(" protable")[0].innerHTML=html.join('');
82
	                var start=document.getElementsByClassName("star");	                
83
					    for(var j=0;j<startLeval;j++) {
84
					    	start[j].classList.remove("icon-favor");
83 85
							start[j].classList.add("icon-favorfill");
84 86
						}
85
	           			document.getElementsByClassName(" protable")[0].innerHTML=html.join('');
87
	           			
86 88
	             }
87 89
					}
88 90
				},