12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- $(function(){
- $(".headnav li").eq(0).addClass("navcurrent");
- loginStatus();
-
- var orgid = $.cookie('orgId');
- $("#cmpSettled").on("click",function(){
- if (orgid && orgid != "null" && orgid != null) {
- location.href="cmp-portal/cmp-workspaces.html"
- }else{
- location.href="cmp-portal/cmp-settled-reg.html"
- }
- })
-
- $("#gocmp").on("click",function(){
- if (orgid && orgid != "null" && orgid != null) {
- location.href="cmp-portal/cmp-workspaces.html"
- }else{
- location.href="cmp-portal/cmp-settled-log.html"
- }
- })
-
-
- $("#postNow").click(function(){
- if(userid=="null"||userid==undefined){
- location.href="login.html";
- }
- $.ajax({
- url: "/ajax/professor/auth",
- type: "GET",
- timeout: 10000,
- dataType: "json",
- data: {
- "id": userid,
- },
- success: function(data, textState) {
- if(data.success) {
- var $rta=data.data;
- if($rta.authStatus==3){
- location.href="myDemand.html";
- }else{
- location.href="realname-authentication.html"
- }
-
- }
- },
- error: function(XMLHttpRequest, textStats, errorThrown) {
- }
- })
- })
-
- $("#JoinKeXiu").click(function(){
- if(userid=="null"||userid==undefined){
- location.href="login.html";
- }
- location.href="expert-authentication.html"
- })
-
-
- $(".field").bind("click",function(){
- location.href = "search.html?subject=" + encodeURI($(this).text());
- })
-
- $('.professor').hover(function() {
- $(this).find(".professor-data").stop(true, false).animate({
- "padding": "94px 0",
- "top": "-50px"
- })
- }, function() {
- $(this).find(".professor-data").stop(true, false).animate({
- "padding": "25px 0",
- "top": "58%"
- })
- })
-
- })
|