1000 1000

b68
登录 用户注册
共找到 654 件相关求购信息 (用时0.01秒)
1 2 3 4 5 6 ... 17 每页40条 共17页
关注公众号
关注公众号
返回顶部
//app 隐藏内容 $(function () { // 曝光命中数据统级 (function(){ var dataArr = []; $('.unit_top_title a').each(function(){ var url = $(this).attr('href'); var urlArr = url.split('/'); var id = urlArr[urlArr.length-1].split('.')[0] var value = { id:id, url:url }; dataArr.push(value); }) var dataval = { keyword:encodeURIComponent($('#keyword').val().trim()), data:dataArr } keywordLog('search','exposure',JSON.stringify(dataval)); $('.unit_top_title a').on('click',function(){ var url = $(this).attr('href'); var urlArr = url.split('/'); var id = urlArr[urlArr.length-1].split('.')[0] var value = { keyword:encodeURIComponent($('#keyword').val().trim()), id:id, url:url }; keywordLog('search','match',JSON.stringify(value)); }) })(); if (detectDevice() == true) {//APP $('.hidden-in-app').css('display', 'none'); } function detectDevice() { var userAgent = navigator.userAgent; if (userAgent.match(/studio_app/i)) { return true; } else { return false; } } }); $(function () { // 显示订阅/分享 $('.nav_share').removeClass('hide'); $('.nav_share_btn').removeClass('hide'); // 用户信息 var quoteStatus = 0; var isAdmin = false; //加载产品相关需求 var buySearchUrl = window.location.href; buySearchUrl = buySearchUrl.setQuery("searchtype", "related"); var searchKeyword = encodeURIComponent($('#keyword').val() || ''); if (searchKeyword == "请输入求购名称") { searchKeyword = ""; } $.ajax({ url: "/bde/buy_cate/product?keyword=" + searchKeyword, type: "get", success: function (result) { if (result.status == 200) { var data = result.data; var content = []; for (var item in data) { var value = data[item]; content.push('
  • ' + encodeHTML(item) + '
  • '); } var html = content.join(''); if (data && !$.isEmptyObject(data)) { $("#similarProductList").html(html); $("#similarProductDiv").show(); } } } }); //加载能力相关需求 $.ajax({ url: "/bde/buy_cate/capability?keyword=" + searchKeyword, type: "get", success: function (result) { if (result.status == 200) { var data = result.data; var content = []; for (var item in data) { var value = data[item]; content.push('
  • ' + encodeHTML(item) + '
  • '); } var html = content.join(''); if (data && !$.isEmptyObject(data)) { $("#similarCapabilityList").html(html); $("#similarCapabilityDiv").show(); } } } }); $('#bde_city').on('click', function () { var province = ''; window.location.href = window.location.href.setQuery("province", pro 1000 vince ? province : ""); }); var url = window.location.href; $('.category_condition').on('click', 'a', function () { url = url.setQuery('cateid').setQuery('catename').setQuery('scateid').setQuery('scatename'); $(this).attr('href', url) }); var amount = $('.buyAmount a'); amount.each(function (index, e) { if (e) { var str = $(e).text(); var reg = new RegExp("[^0-9.]", "g"); if (reg.test(str)) { var reg1 = new RegExp("[0-9.]*", "g"); var a = reg1.exec(str)[0]; var ch = str.replace(a, ''); if (ch.length > 5) { var b = parseInt(a); str = '' + encodeHTML(b) + ''; $(e).html('采购量 :' + str); } else { if (a.indexOf('.0') > 0 || a.indexOf('.00') > 0) { var b = parseInt(a); str = str.replace(a, '' + encodeHTML(b) + ''); $(e).html('采购量 :' + str); } else { str = str.replace(a, '' + encodeHTML(a) + ''); $(e).html('采购量 :' + str); } } } else { if (str.indexOf('.') > 0) { var b = parseInt(str); str = '' + encodeHTML(b) + ''; $(e).html('采购量 :' + str); } else { var b = parseInt(str); if (b) { str = '' + encodeHTML(b) + '' + '种'; $(e).html('采购量 :' + str); } } } } }); $('a').on('click', function (event) { if ($(this).attr('href') === 'javascript:;' || $(this).attr('href') === 'javascript:') { stopPropagation(event); preventDefault(event); return false;//兼容所有浏览器 } }); //停止事件冒泡 function stopPropagation(event) { var e = event || window.event; if (e.stopPropagation) e.stopPropagation(); e.cancelBubble = true; } //停止默认事件 function preventDefault(event) { var e = event || window.event; if (e.preventDefault) e.preventDefault(); e.returnValue = false; } /*排序状态*/ var myOrder = url.getQuery('order'); var myAsc = url.getQuery('asc'); var page = 0; showMyRank(myOrder, myAsc); function showMyRank(myOrder, myAsc) { if (!myOrder) { myOrder = 'default'; console.log(myOrder) } else { if (myAsc == '0') { $('#' + myOrder).addClass('rank_rise'); } else if (myAsc == '1') { $('#' + myOrder).removeClass('rank_rise'); } } $('#' + myOrder).parent().addClass('active').siblings().removeClass('active'); } /*排序*/ var $searchFunc = $('.search_func').find('.flag'); $searchFunc.each(function () { $(this).on('click', function () { var index = $(this).index(); var $courseRank = $(this).children('.course_rank'); $(this).addClass('active').siblings('.flag').removeClass('active') .children('.course_rank').removeClass('rank_rise'); if ($(this).hasClass('active')) { $courseRank.toggleCla 1000 ss('rank_rise'); } var rank = '1'; if ($courseRank.hasClass('rank_rise')) { rank = '0'; } if (index == 0) { url = url.setQuery('order', null).setQuery('asc', null).setQuery('page', page); } else if (index == 1) { url = url.setQuery('order', 'start').setQuery('asc', rank).setQuery('page', page); } else if (index == 2) { url = url.setQuery('order', 'end').setQuery('asc', rank).setQuery('page', page); } window.open(url, "_self"); }); }); var $searchFuncMobile = $('.search_func_mobile').find('.flag'); $searchFuncMobile.each(function () { $(this).on('click', function () { var index = $(this).index(); var $courseRank = $(this).children('.course_rank'); $(this).addClass('active').siblings('.flag').removeClass('active') .children('.course_rank').removeClass('rank_rise'); if ($(this).hasClass('active')) { $courseRank.toggleClass('rank_rise'); } var rank = '1'; if ($courseRank.hasClass('rank_rise')) { rank = '0'; } if (index == 0) { url = url.setQuery('order', null).setQuery('asc', null).setQuery('page', page); } else if (index == 1) { url = url.setQuery('order', 'start').setQuery('asc', rank).setQuery('page', page); } else if (index == 2) { url = url.setQuery('order', 'end').setQuery('asc', rank).setQuery('page', page); } window.open(url, "_self"); }); }); /*质量认证*/ var unitApprove = $('.unit_approve'); unitApprove.each(function () { var companyLevel = $(this).find('.company_level'); var starLevel = companyLevel.attr('data-level'); if (starLevel != 0) { $(companyLevel).css('background', 'url(https://cdn.htres.cn/res/images/search/unit_approve_' + starLevel + '.png) no-repeat center'); } else { $(companyLevel).parent('div').hide(); } }); /*热词*/ /*var $newHotWord = $('#newHotWord').find('a'); $newHotWord.each(function () { var src = $(this).attr('href'); var word = $(this).text(); $(this).attr('href', src + encodeURIComponent(word)); });*/ /*限制PC-title字数*/ limitWords($('.unit_top_title a')); function limitWords(target) { target.each(function () { var text = $(this).text().trim(); if (text.length > 18) { var nowText = encodeHTML(text.substring(0, 15) + '...'); $(this).html(nowText); } }) } /*移动*/ /*最近搜索*/ function searchKeywordMobile() { var keyword = $('#keyword_new').val().trim(); // debugger var isBuy = $('#search_list li.active span').text() == "求购" ? 'true' : 'false'; var url = isBuy ? ('' + $('#search_list li.active span').attr('data-url')) : $('#search_list li.active span').attr('data-url'); if (keyword) { var localKeyWord = JSON.parse(localStorage.getItem("keyword")); if (!localKeyWord) { var recentItem = { "search": {"keyword": []}, "searchs": {"keyword": []}, "searchc": {"keyword": []}, "searchr": {"keyword": []}, "news": {"keyword": []} }; localKeyWord = recentItem; recentItem = JSON.stringify(recentItem); localStorage.setI 1000 tem("keyword", recentItem); } // debugger; var keyName = url.split('/'); if (keyName[keyName.length - 1] != 'list') { var localKeyWordArr = localKeyWord[keyName[keyName.length - 1]].keyword; var arrLength = localKeyWordArr.length; if (arrLength > 0) { for (var i = 0; i < arrLength; i++) { if (keyword == localKeyWordArr[i]) { localKeyWordArr.splice(i, 1); } } } if (arrLength > 9) { localKeyWordArr.pop(); } localKeyWordArr.unshift(keyword); var newItem = JSON.stringify(localKeyWord); localStorage.setItem("keyword", newItem); } } HT.utils.search(keyword, url, null, isBuy); } $('#search_btn_m').on('click', function () { searchKeywordMobile(); }); /*点击热词,存热搜词*/ $('#newHotWord a').on('click', function () { // debugger var isBuy = $('#search_list li.active span').text() == "求购" ? 'true' : 'false'; var url = isBuy ? ('' + $('#search_list li.active span').attr('data-url')) : $('#search_list li.active span').attr('data-url'); var keyword = $(this).attr('href').split('=')[1]; keyword = decodeURIComponent(keyword); var localKeyWord = JSON.parse(localStorage.getItem("keyword")); if (!localKeyWord) { var recentItem = { "search": {"keyword": []}, "searchs": {"keyword": []}, "searchc": {"keyword": []}, "searchr": {"keyword": []}, "news": {"keyword": []} }; localKeyWord = recentItem; recentItem = JSON.stringify(recentItem); localStorage.setItem("keyword", recentItem); } var keyName = url.split('/'); if (keyName[keyName.length - 1] != 'list') { var localKeyWordArr = localKeyWord[keyName[keyName.length - 1]].keyword; var arrLength = localKeyWordArr.length; if (arrLength > 0) { for (var i = 0; i < arrLength; i++) { if (keyword == localKeyWordArr[i]) { localKeyWordArr.splice(i, 1); } } } if (arrLength > 9) { localKeyWordArr.pop(); } localKeyWordArr.unshift(keyword); var newItem = JSON.stringify(localKeyWord); localStorage.setItem("keyword", newItem); } }) /*返回按钮*/ $(window).scroll(function () { //为页面添加页面滚动监听事件 var wst = $(window).scrollTop(); //滚动条距离顶端值 var goBack = $('.detail_scroll>.scroll_list:nth-child(2)'); if (wst > 750) { goBack.show(); } else { goBack.hide(); } }); /*去掉只有一页的分页*/ hideNewPage(); function hideNewPage() { var totalText = $('.ht-page').find('.total_page').text(); if (totalText === '共1页') { $('.ht-page').hide(); } else { $('.ht-page').show(); } } /*显示空数据提示词*/ showEmptyData(); function showEmptyData() { var empty = $('.empty_product:visible'); console.log(empty) if (empty) { var wantQ=decodeURIComponent(url.getQuery('q')); console.log(wantQ); if(wantQ && wantQ!=='null'){ 1000 $('#empty_name').text(wantQ); }else{ $('.empty_product_content>div').text('抱歉,没找到相关的求购需求') } } } /*所有分类类目*/ // showCategoryMenu(); function showCategoryMenu() { $('#categoryMenu').html(''); var $box = $('.search_type_box>.buySearch_type_content '); var htmlArr = []; var html = ''; $box.each(function () { var $isActive = $(this).find('.right>span>a.active'); if ($isActive.length > 0) { var text = $isActive.text(); var href = $isActive.attr('href'); htmlArr.push('' + encodeHTML(text) + ''); } }); html = htmlArr.join('>'); $('#categoryMenu').html(html); } /*分类*/ showMenu() function showMenu() { $('#categoryMenu').html(''); var htmlArr = []; var html = ''; var $isActive = $('.search_type_box>.buySearch_type_content .right>span>a.active'); console.log($isActive[0]) if ($isActive.length == 1) { var text = $isActive.text(); var href = $isActive.attr('href'); htmlArr.push('' + encodeHTML(text) + ''); } else if ($isActive.length == 2) { /*$isActive.each(function(){ var text = $(this).text(); var href = $isActive.attr('href'); html += ''+ text +''; })*/ // var text = $($isActive[0]).text(); var text = $isActive.eq(0).text(); var href = $isActive.eq(0).attr('href'); var text1 = $isActive.eq(1).text(); var href1 = $isActive.eq(1).attr('href'); htmlArr.push('' + encodeHTML(text) + '>' + encodeHTML(text1) + ''); } else { html = ''; } html = htmlArr.join('>'); $('#categoryMenu').html(html); } }); function buyProduct() { var url = window.location.href; url = url.setQuery("type", null); url = url.setQuery("cateid", null).setQuery('expired', null).setQuery('catename', null).setQuery('page', null).setQuery('scatename', null).setQuery('scateid'); window.location.href = url; } function buyCapability() { var url = window.location.href; url = url.setQuery("type", 1); var scateid = url.getQuery('scateid'); var scatename = url.getQuery('scatename'); var cateid = url.getQuery('cateid'); url = url.setQuery("cateid", null).setQuery('expired', null).setQuery('catename', null) .setQuery('page', null).setQuery("scatename", null).setQuery("scateid", null); window.location.href = url; } function clearSort() { // debugger $(this).addClass('active'); var url = window.location.href; url = url.setQuery('asc', null).setQuery('order', null); window.location.href = url; } var clearFirst = $('.buySearch_type_content .left #category_all'); clearFirst.on('click', function () { // clearFirstSort(); }); function clearFirstSort() { var url = window.location.href; url = url.setQuery('asc', null).setQuery('order', null).setQuery('cateid', null).setQuery('scateid', null); window.location.href = url; } function clearSecondSort() { var url = window.location.href; url = url.setQuery('scateid', null).setQuery('scatename', null); window.location.href = url; } // 订阅商机 HT.user.ad 1000 dListener(function (userInfo, loginUrl, logoutUrl) { var outUrl = logoutUrl.replace(/%s/, encodeURIComponent(window.location.href)); var nowUrl = loginUrl.replace(/%s/, encodeURIComponent(window.location.href)); if (userInfo) { var url = window.location.href; var defaultCategory = url.getQuery('cateid') || url.getQuery('catename'); var categoryType = url.getQuery('type') == 1 ? 1 : 0; $('#subscription').on('click', function () { subscription(0, null, defaultCategory, categoryType); }); $('.subscription').on('click', function () { subscription(1, $(this).attr('cid'), $(this).attr('defaultCategory'), $(this).attr('categoryType')); }); $('.emptySubscription').on('click', function () { subscription(0, null, defaultCategory, categoryType); }); } else { $('#subscription').attr('href', nowUrl).click(login); $('.subscription').attr('href', nowUrl).click(login); $('.emptySubscription').attr('href', nowUrl).click(login); } }); //平台实况数据 $.get('/api/company/stats', null, function (r) { if (r && r.count) { /*$('#company_count').text(parseInt(r.count).toLocaleString()); $('#company_count2').text(parseInt(r.count).toLocaleString());*/ $('#company_count').text(changeDatas(parseInt(r.count))); $('#company_count2').text(changeDatas(parseInt(r.count))); } else { $('#company_count').text('-'); $('#company_count2').text('-'); } }); $.get('/api/buy/stats', null, function (r) { if (r && r.count) { /*$('#buy_count').text(parseInt(r.count).toLocaleString()); $('#buy_count2').text(parseInt(r.count).toLocaleString());*/ $('#buy_count').text(changeDatas(parseInt(r.count))); $('#buy_count2').text(changeDatas(parseInt(r.count))); } }); //ie10 9 尾数有默认两位小数的兼容处理 function changeDatas(num) { var numLength = num.toString().length; if (numLength > 0 && numLength < 4) { return num.toString(); } else if (numLength >= 4 && numLength <= 6) { return num.toString().substring(0, numLength - 3) + "," + num.toString().substring(numLength - 3); } else if (numLength >= 7 && numLength <= 9) { return num.toString().substring(0, numLength - 6) + "," + num.toString().substring(numLength - 6, numLength - 3) + "," + num.toString().substring(numLength - 3); } } // 页面分享 $('.nav_share_btn').on('mouseover', 'a.share_btn', function () { var $shareBox = $('
    \ \ \
    '); if ($(this).find('.code_sharing_box').length >= 1) { // 存在 $(this).find('.code_sharing_box').show(); } else { $(this).append($shareBox); $(this).find('.code_sharing_box').css({'top': 50, 'left': -68}); $(".news_cats .code_sharing_box").css("left", "-23px"); var url = window.location.href.setQuery('ht_act_id', 'qreq'); $(this).find(".sharing_content").qrcode({ width: 127, //宽度 height: 122, //高度 text: url }); } }).on('mouseout', function () { $(this).find('.code_sharing_box').hide(); }); // 公司分享 $('.inquire_list').on('mouseover', 'a.share_btn', function () { var $shareBox = $('
    \ \ \
    '); if ($(this).find('.code_sharing_box').length >= 1) { // 存在 $(this).find('.code_sharing_box').show(); } else { 1000 $(this).append($shareBox); $(this).find('.code_sharing_box').css({'top': 21, 'left': -24}); var id = $(this).data('id'); var type = $(this).data('type'); var url = ''; if (id) { url = type == 1 ? ('/buy/wx/contactInfo/' + id + '.html') : ('/buy/wg/contactInfo/' + id + '.html'); } else { url = window.location.href; } url = url.setQuery('ht_act_id', 'qreq'); $(this).find(".sharing_content").qrcode({ width: 97, //宽度 height: 92, //高度 text: url //任意内容 }); } }).on('mouseout', function () { $(this).find('.code_sharing_box').hide(); }); // 公司分享 $('.advertisement').on('mouseover', 'a.share_btn', function () { var $shareBox = $('
    \ \ \
    '); if ($(this).find('.code_sharing_box').length >= 1) { // 存在 $(this).find('.code_sharing_box').show(); } else { $(this).append($shareBox); $(this).find('.code_sharing_box').css({'top': 21, 'left': -53}); var id = $(this).data('id'); var type = $(this).data('type'); var url = ''; if (id) { url = type == 1 ? ('/buy/wx/contactInfo/' + id + '.html') : ('/buy/wg/contactInfo/' + id + '.html'); } else { url = window.location.href; } url = url.setQuery('ht_act_id', 'qreq'); $(this).find(".sharing_content").qrcode({ width: 97, //宽度 height: 92, //高度 text: url //任意内容 }); } }).on('mouseout', function () { $(this).find('.code_sharing_box').hide(); }); var processing = false; var protocolAddress = '' if(window.location.protocol == "https:"){ protocolAddress = protocolAddress.replace("http","https") } // 报价点击处理 function quoteHandler(obj) { if (HT.user.data.userInfo == undefined) { window.location.href = "/login?ret=" + encodeURIComponent(location.href); return; } // debugger; if (processing) return; processing = true; var type = GetQueryString("type") == 1 ? 'wx' : 'wg'; var id = $(obj).data('id'); $.ajax({ url: protocolAddress + '/buy/' + type + '/quote/judge', type: 'get', data: { inqId: id }, dataType: 'json', cache: false, success: function (response) { processing = false; if (response.status == 200) { // window.location.href = protocolAddress + '/buy/' + type + '/quote/' + id + '.html'; window.location.href = 'http://etpss.casicloud.com/buy/' + type + '/quote/' + id + '.html'; } else { var modal; var isAdmin = response.isAdmin == 'true'; switch (response.status) { case 500: modal = new HtModal("记录不存在", function () { modal.closeModal(); }, 1); break; case 501: modal = new HtModalEx({ body: '
    该订单为质量认证用户专享订单,质量认证用户可提前7天报价,时不我待!请点击“我要认证”,立享报价资格!
    ', buttons: [ { name: '我要认证', 1000 classes: 'btn btn-primary', callback: function () { modal.close(); if (isAdmin) { window.location.href = 'http://core.casicloud.com/zone/zoneOrgInfoStarlevel/zoneOrgInfoStarlevel/apply.ht'; } else { var hint = new HtModal("您不是企业管理员,请联系企业管理员申请!", function () { hint.closeModal(); }, 1); hint.init(); } } } ] }); break; case 502: modal = new HtModal("您已报价,不可重复报价!", function () { modal.closeModal(); }, 1); break; case 503: modal = new HtModal("不可对自己发布的需求进行报价!", function () { modal.closeModal(); }, 1); break; default: modal = new HtModal("请稍后再试!", function () { modal.closeModal(); }, 1); break; } modal.init(); } }, error: function (request, status, errorThrown) { processing = false; if (request.status) { console.error("error: " + request.status); } } }); } // 取得url的参数 function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } $(function () { $('.search_tab a').removeClass('focus'); $('.search_tab a').eq(3).addClass('focus'); var url = window.location.href; var type = url.getQuery('type'); var detailtype = url.getQuery('detailtype'); var $list = $('.search_nav #tab_list li'); // 判断是否内蒙古域名 var isnmg = ((window.location.href.indexOf('nmggyy')) != -1) if (type == 0 || type === null || type == '') { $list.eq(0).addClass('active'); if(isnmg){ $('.phone_line').html('卖产品') $('#nmgPageName').text('卖产品') $("title").text('卖产品 - 航天云网,国家工业互联网平台') } } else if (detailtype == '' || detailtype == null || detailtype == 0) { $list.eq(1).addClass('active'); if(isnmg){ $('.phone_line').html('供资源') $('#nmgPageName').text('供资源') $("title").text('供资源 - 航天云网,国家工业互联网平台') } } else if (detailtype == 1) { $list.eq(2).addClass('active'); if(isnmg){ $('.phone_line').html('供创意资源') $('#nmgPageName').text('供创意资源') $("title").text('供创意资源 - 航天云网,国家工业互联网平台') } } else if (detailtype == 2) { $list.eq(3).addClass('active'); if(isnmg){ $('.phone_line').html('供生产性资源') $('#nmgPageName').text('供生产性资源') $("title" 1000 ).text('供生产性资源 - 航天云网,国家工业互联网平台') } } else if (detailtype == 3) { $list.eq(5).addClass('active'); if(isnmg){ $('.phone_line').html('供商业性资源') $('#nmgPageName').text('供商业性资源') $("title").text('供商业性资源 - 航天云网,国家工业互联网平台') } } else if (detailtype == 4) { $list.eq(4).addClass('active'); if(isnmg){ $('.phone_line').html('供综合性资源') $('#nmgPageName').text('供综合性资源') $("title").text('供综合性资源 - 航天云网,国家工业互联网平台') } } else { $list.eq(0).addClass('active'); if(isnmg){ $('.phone_line').html('卖产品') $('#nmgPageName').text('卖产品') $("title").text('卖产品 - 航天云网,国家工业互联网平台') } } // 头部背景改为不透明 changeHeaderBg(); }); // 将分页链接改为正确的 $(function () { var curUrl = location.href; var curPage = $(".ht-page .current").text() * 1; $(".ht-page .num a").each(function () { var a = $(this); if (a.attr("href")) { var num = a.text() * 1; a.attr("href", curUrl.setQuery("page", num - 1)); } }); $(".ht-page .previous a").attr("href", curUrl.setQuery("page", curPage - 2)); $(".ht-page .next a").attr("href", curUrl.setQuery("page", curPage)); });
    微信公众号

    航天云网

    工业互联网观察

    微博

    工业互联网观察

    关注

    咨询建议
    0