demandDetail.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import '../../css/bootstrap.less';
  2. import 'bootstrap/dist/js/bootstrap.js';
  3. import '../../css/public.css';
  4. import '../../css/main_banner.css';
  5. import '../../js/public.js';
  6. import '../../js/main_banner.js';
  7. import '../../css/technologyTrading/demandDetail.css';
  8. (function(){
  9. $(".fine").on('click', 'div.pointer', function () {
  10. var theId = $(this).children("p.demandId").html();
  11. var thetype=$(this).children("p.demandTyp").html();
  12. window.open(globalConfig.context + '/portal/technologyTrading/demandDetail?id=' + theId+'&type='+thetype );
  13. });
  14. $(".main_introduce ul").on("click","li",function(){
  15. var theId = $(this).children("div").children("p.demandId").html();
  16. var thetype=$(this).children("div").children("p.demandTyp").html();
  17. window.open(globalConfig.context + '/portal/technologyTrading/demandDetail?id=' + theId+'&type='+thetype );
  18. })
  19. //点击感兴趣
  20. var t=0;
  21. $('.basic .loves').click(function(){
  22. if($(this).find('span:first-child').hasClass('box_love')){
  23. t=$('.dem_number').text();
  24. $('.dem_number').text(parseInt(t)+1)
  25. $(this).find('span:first-child').addClass('bj_love').removeClass('box_love')
  26. return false;
  27. }
  28. if($(this).find('span:first-child').hasClass('bj_love')){
  29. t=$('.dem_number').text();
  30. $('.dem_number').text(parseInt(t)-1)
  31. $(this).find('span:first-child').addClass('box_love').removeClass('bj_love')
  32. }
  33. })
  34. })();