Browse Source

评价历史修改星级

lipengtao 8 years ago
parent
commit
4b091b04d6
2 changed files with 17 additions and 14 deletions
  1. 8 7
      app/js/coophistory-other.js
  2. 9 7
      app/js/coophistory.js

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

24
								$info[i].assessTime.substr(8, 2) + ":" + $info[i].assessTime.substr(10, 2);
24
								$info[i].assessTime.substr(8, 2) + ":" + $info[i].assessTime.substr(10, 2);
25

25

26
							var string = '<li class="mui-table-view-cell mui-media">'
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
							string += '<div class="mui-pull-left lefthead">'
28
							string += '<div class="mui-pull-left lefthead">'
29
							if($info[i].professor.hasHeadImage) {
29
							if($info[i].professor.hasHeadImage) {
30
								string += '<img class="mui-media-object headimg headRadius" src="'+baseUrl+'/images/head/' + $info[i].professor.id + '_l.jpg">'
30
								string += '<img class="mui-media-object headimg headRadius" src="'+baseUrl+'/images/head/' + $info[i].professor.id + '_l.jpg">'
52
							string += '</p>'
52
							string += '</p>'
53
							string += '</div></a></li>'
53
							string += '</div></a></li>'
54
							html.push(string);
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
							string += '<span class="mui-ellipsis listtit">' + assessTime + '</span>'
35
							string += '<span class="mui-ellipsis listtit">' + assessTime + '</span>'
36
							string += '<div class="conresoult">'
36
							string += '<div class="conresoult">'
37
							string += '<div class="levelbox">'
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
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
41
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
42
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
42
							string += '<span class="mui-icon iconfont icon-favor star"></span>'
43
							string += '</div>'
43
							string += '</div>'
77
//	                    	string+='<p class="listtit3">'+assessTime+'</p>'
77
//	                    	string+='<p class="listtit3">'+assessTime+'</p>'
78
//	                    string+='</div></a></li>'
78
//	                    string+='</div></a></li>'
79
	                    html.push(string);
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
							start[j].classList.add("icon-favorfill");
85
							start[j].classList.add("icon-favorfill");
84
						}
86
						}
85
	           			document.getElementsByClassName(" protable")[0].innerHTML=html.join('');
87
	           			
86
	             }
88
	             }
87
					}
89
					}
88
				},
90
				},