import '../css/bootstrap.less'; import 'bootstrap/dist/js/bootstrap.js'; import '../css/public.css'; import '../css/main_banner.css'; import './public.js'; import './main_banner.js'; import '../css/Technologytrading.css'; $(function(){ var industry = $('.industry').innerHeight(); $('.industry_left').height(industry) }) var theKeyword, theMode, theFieldA, theFieldB; var thePageNo = 1, thePageLength = 1, pageSize = 12; var categoryObj = { "0": "精品技术转让", "1": "精品创业需求", }; function loadDate(pageNo) { $.ajax({ method: "get", dataType: "json", url: globalConfig.context + "/portal/search/demandList", data: { pageNo: pageNo || 1, pageSize: pageSize, keyword: theKeyword, sign: 0, demandType: theMode != 999 ? theMode : undefined, industryCategoryA: theFieldA != 999 ? theFieldA : undefined, industryCategoryB: theFieldB != 999 ? theFieldB : undefined, }, success: function (data) { var theArr = []; if (data.data && data.data.list) { for (let i = 0; i < data.data.list.length; i++) { let thisdata = data.data.list[i]; theArr.push([ // '
  • ', // '',//图片地址修改 // '
    ', // '

    行业 '+ getIndustryCategory(thisdata.industryCategoryA, thisdata.industryCategoryB) +'

    ', // '

    价格 '+thisdata.budgetCost+'

    ', // '

    简介 ' + thisdata.problemDes + '

    ', // '了解详情', // '
    ', // '
    ', // '

    专利名 ' + thisdata.name + '

    ', // '

    所有人 '++'

    ', //所有人 // '
    ', // '
  • ', ].join('')); }; }; $('#demandList').empty(); $('#demandList').append(theArr.join('')); $('.totalCount').html("共" + data.data.totalCount + "条数据"); thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1; var pageArr = [], firstNo = 1, endNo = 3;//5 if (thePageNo > 3) { firstNo = thePageNo - 2; endNo = Math.min((Number(thePageNo) + 2), thePageLength); } else { endNo = Math.min(thePageLength, 3);//5 }; for (let i = firstNo; i <= endNo; i++) { if (i == thePageNo) { pageArr.push( '
  • ' + i + '
  • ' ); } else { pageArr.push( '
  • ' + i + '
  • ' ); } }; $('.pageNumber').remove(); $('.pagePre').after(pageArr.join('')); }, }); }