| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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/technologyTrading/demandDetail.css';
- (function(){
- var isIntereste=$("#isInterester").attr("isInterester");
- if(isIntereste==0){
- $(".loves>span:first-child").removeClass("box_love").addClass("bj_love");
- }else if(isIntereste==1){
- $(".loves>span:first-child").removeClass("bj_love").addClass("box_love");
- }
- $(".fine").on('click', 'div.pointer', function () {
- var theId = $(this).children("p.demandId").html();
- var thetype=$(this).children("p.demandTyp").html();
- window.open(globalConfig.context + '/portal/technologyTrading/demandDetail?id=' + theId+'&type='+thetype );
- });
- $(".main_introduce ul").on("click","li",function(){
- var theId = $(this).children("div").children("p.demandId").html();
- var thetype=$(this).children("div").children("p.demandTyp").html();
- window.open(globalConfig.context + '/portal/technologyTrading/demandDetail?id=' + theId+'&type='+thetype );
- })
- //点击感兴趣
- var t=0;
- $('.basic .loves').click(function(){
- var theId=$("#demand_id").attr("val");
- var islogin=$("#isLogin").attr("islogin");
- 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: "post",
- dataType: "json",
- url: globalConfig.context + "/api/user/portal/demandInterest",
- data: {
- id:theId
- },
- success: function (data) {
- }
- });
- 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: "post",
- dataType: "json",
- url: globalConfig.context + "/api/user/portal/demandCancelInterest",
- data: {
- id:theId
- },
- success: function (data) {
- }
- });
- }
- })
- $("#purchase").click(function(){
- var isLogin=$("#isLogin").attr("islogin");
- var theId = $("#Id_").attr('val');
- var thetype=$("#ownerType_").attr('typ');
- if(isLogin=="false"){
- window.open(globalConfig.context + '/portal/technologyTrading/demandOrder?id=' + theId+'&type='+thetype );
- }else{
- $(".head_login").click();
- }
- });
- })();
|