import '../../css/bootstrap.less'; import 'bootstrap/dist/js/bootstrap.js'; import '../../css/public.css'; import '../../css/main_banner.css'; import '../../js/public.js'; import '../../js/main_banner.js'; import '../../css/service/projectDetails.css'; (function(){ $(".fine").on('click', 'div.pointer', function () { var theId = $(this).children("input").attr("isinterester"); window.open(globalConfig.context + '/portal/service/projectDetails?id=' + theId ); }); //点击感兴趣 var t=0; $('.guanzhu .loves').click(function(){ var theId=$("#demand_id").attr("value"); var islogin=$("#isLogin").attr("islogin"); var theIn=$("#isInterester").attr("isInterester"); if(islogin=="true"){ $(".head_login").click(); } if($(this).find('span:first-child').hasClass('box_love')&&islogin=="false"){ t=$('.dem_number').text(); $('.dem_number').text(parseInt(t)+1); $(this).find('span:first-child').addClass('bj_love').removeClass('box_love'); $.ajax({ method: "get", dataType: "json", url: globalConfig.context + "/portal/app/services/interest", data: { id:theId, interest:theIn }, success: function (data) { $("#isInterester").attr("isInterester","1") } }); return false; } if($(this).find('span:first-child').hasClass('bj_love')&&islogin=="false"){ t=$('.dem_number').text(); $('.dem_number').text(parseInt(t)-1) $(this).find('span:first-child').addClass('box_love').removeClass('bj_love') $.ajax({ method: "get", dataType: "json", url: globalConfig.context + "/portal/app/services/interest", data: { id:theId, interest:theIn }, success: function (data) { $("#isInterester").attr("isInterester","0") } }); } }) //点击服务 $(".fuwu").click(function(){ var islogin=$("#isLogin").attr("islogin"); var theId=$("#demand_id").attr("value"); if(islogin=="true"){ $(".head_login").click(); }else{ window.open(globalConfig.context + '/portal/service/purpose?commodityId=' + theId+'&commodityType='+"0" ); } }) //点击电话 $(".dianhua").click(function(){ $(".ret_top>li:nth-child(2)>a").click(); }) })()