123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- $(function(){
- 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";
- }
- $.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.authType==1){
- location.href="needList.html";
- }else{
- location.href="expert-authentication.html"
- }
-
- }
- },
- error: function(XMLHttpRequest, textStats, errorThrown) {
- }
- })
- })
-
-
- $(".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%"
- })
- })
-
- })
|