| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- 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();
- })
- })()
|