luyanan 7 years ago
parent
commit
e206c89266
1 changed files with 2 additions and 11 deletions
  1. 2 11
      js/inform.js

+ 2 - 11
js/inform.js

1
$(function() {
1
$(function() {
2
	$(".onlogin .headnavbtn li.myinform").addClass("navcurrent");
2
	var obj = {
3
	var obj = {
3
		rows: 20,
4
		rows: 20,
4
		uid:$.cookie("userid")
5
		uid:$.cookie("userid")
39

40

40
				}
41
				}
41

42

42
			},
43
			error: function() {
44
				$.MsgBox.Alert('提示', '服务器连接超时!');
45
			}
43
			}
46
		});
44
		});
47
	}
45
	}
76
						li.find(".useHead").css('background-image', "url(/images/head/" + $data.id + "_l.jpg");
74
						li.find(".useHead").css('background-image', "url(/images/head/" + $data.id + "_l.jpg");
77
					}
75
					}
78
				}
76
				}
79
			},
80
			error: function(x) {
81
				plus.nativeUI.toast("服务器链接超时", toastStyle);
82
			}
77
			}
83
		});
78
		});
84
	}
79
	}
93
			traditional: true, //传数组必须加这个
88
			traditional: true, //传数组必须加这个
94
			success: function(data) {
89
			success: function(data) {
95
				if(data.success) {
90
				if(data.success) {
96
					$(".mymessage").eq(0).find(".badge").text("")
91
					$(".myinform").eq(0).find(".badge").text("")
97
				}
92
				}
98

93

99
			},
100
			error: function() {
101
				plus.nativeUI.toast("服务器链接超时", toastStyle);
102
			}
94
			}
103
		});
95
		});
104
	}
96
	}
105
	$("#curAnswers").on("click", ".cnt", function() {
97
	$("#curAnswers").on("click", ".cnt", function() {
106
		var dobj = $(this).parents("li").data("obj");
98
		var dobj = $(this).parents("li").data("obj");
107
		alert(JSON.stringify(dobj))
108
		var our = "";
99
		var our = "";
109
		if(dobj.opType == 0) {
100
		if(dobj.opType == 0) {
110
			ourl = "userInforShow.html?professorId=" + dobj.uid;
101
			ourl = "userInforShow.html?professorId=" + dobj.uid;