CINXE.COM
有色金属_富宝金属_有色金属现货_长江现货_南储现货_废旧金属_有色金属
<!doctype html> <html lang="en"> <head> <title>有色金属_富宝金属_有色金属现货_长江现货_南储现货_废旧金属_有色金属</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"> <meta name="keywords" content="富宝金属网,有色金属价格,有色金属行情,有色金属资讯,长江现货报价,上海现货报价,今日铜价,废铜行情,废铝行情"/> <meta name="description" content="富宝金属网是业内知名的有色金属价格行情网站,提供金属资讯、价格行情、分析报告、会展、广告、现货交易等一站式服务。"/> <link rel="icon" type="image/x-icon" href="http://feigang.f139.com/favicon.ico"> <link rel="stylesheet" href="/metal/css/common.css"> <link rel="stylesheet" href="/metal/css/index.css"> <script src="/metal/js/jquery-1.4.2.min.js"></script> <script src="/metal/js/jquery.min.js"></script> <script src="/metal/js/jquery.tabs.js"></script> <script src="/metal/js/common.js"></script> <script> $(document).ready(function (e) { $('.aside-1').Tabs(); $('.aside-2').Tabs(); $('.aside-3').Tabs(); $('.aside-4').Tabs(); $('.aside-5').Tabs(); $('.aside-6').Tabs(); $('.aside-7').Tabs(); $('.aside-8').Tabs(); }); </script> <style> .declare { position: fixed; z-index: 999; } .declare2 { display: block; } .close:hover { opacity: .6; filter: alpha(opacity=60); } .close { display: block; position: absolute; right: 0; top: 0; padding: 3px; width: 11px; height: 11px; font-family: Simsun; font-size: 12px; text-align: center; line-height: 11px; color: white; font-style: normal; cursor: pointer; background-color: #000; opacity: .33; filter: alpha(opacity=33); } </style> </head> <body ng-app="myApp" ng-controller="myCtrl"> <div class="declare declare2" style="top: 300px;right:0; "> <a href="javascript:;" onclick="this.parentNode.parentNode.removeChild(this.parentNode);" title="关闭" class="close">╳</a> <span><a href="javascript:void(0);"><img style="width:200px;display:block;" src="https://www.f139content.com/lithium/aa7794a950bc47228e185b675724d367.png"></a> </span> </div> <div class="m"> <div class="header"> <div class="top clearfix"> <div class="left"> <div class="logo fl"><a href="http://www.f139.com" title="富宝资讯"></a></div> <ul class="nav fl"> <li class="item"><a href="http://feigang.f139.com/steelScrapInformation?tabName=%E5%BA%9F%E9%92%A2%E6%8C%87%E6%95%B0&tabParameter=exponent&pIds=40232&type=1" target="_blank">富宝数据</a></li> <li class="item"><a href="http://feigang.f139.com/" target="_blank" >废钢网</a></li> <li class="item"><a href="http://steel.f139.com" target="_blank" >钢铁网</a></li> <li class="item"><a href="http://bxg.f139.com" target="_blank" >不锈钢网</a></li> <li class="item"><a href="http://thj.f139.com/" target="_blank" >铁合金网</a></li> <li class="item"><a href="http://battery.f139.com/" target="_blank" >新能源锂电</a></li> <li class="item"><a href="http://xjs.f139.com/" target="_blank" >小金属网</a></li> <li class="item"><a href="http://xitu.f139.com/" target="_blank" >稀土网</a></li> <li class="item"><a href="https://feijiuzs.com" target="_blank" >废旧再生网</a></li> <li class="item"><a href="http://paper.f139.com" target="_blank" >纸网</a></li> <li class="item"><a href="http://plas.f139.com/" target="_blank" >塑料网</a></li> <li class="item"><a href="http://futures.f139.com" target="_blank" >期货</a></li> </ul> </div> <div class="right"> <div class="tel"> <div style="font-size:14px;line-height: 30px;">全国免费服务热线</div> <div style="font-size:14px;font-weight:600;line-height: 20px;">400-886-0990</div> </div> <div class="download"> <div class="download-app"><span>下载APP</span> <div class="qr-code"><img src="http://www.f139content.com/metal/icon/appQrcode"></div> </div> </div> <div class="login"> <div><a href="http://passport.f139.com/login.do?url=http://www.f139.com/">登录</a></div> <div><a href="http://passport.f139.com/register.do" target="_blank">注册</a></div> </div> </div> </div> <div class="bottom clearfix"> <ul class="nav clearfix"> <li class="item"><a href="http://www.f139.com/cu/index.html" target="_blank"> <span>铜</span></a></li> <li class="item"><a href="http://www.f139.com/lv/index.html" target="_blank"> <span>铝</span></a></li> <li class="item"><a href="http://www.f139.com/pb/index.html" target="_blank"><span>铅</span></a></li> <li class="item"><a href="http://www.f139.com/zn/index.html" target="_blank"><span>锌</span></a></li> <li class="item"><a href="http://www.f139.com/sn/index.html" target="_blank"><span>锡</span></a></li> <li class="item"><a href="http://www.f139.com/ni/index.html" target="_blank"><span>镍</span></a></li> <li class="item"><a href="/metalScrap/index.html" target="_blank"><span>再生金属</span></a></li> <li class="item"><a href="http://www.f139.com/gold/index.html" target="_blank"><span>贵金属</span></a></li> <li class="item"><a href="http://data.f139.com/list.do?pid=1&vid=5" target="_blank"><span>价格中心</span></a></li> <li class="item"><a href="/metal/recommendedToday.html" target="_blank"><span>资讯</span></a></li> <li class="item"><a href="http://service.f139.com/report/" target="_blank"><span>常规报告</span></a></li> <li class="item"><a href="http://feigang.f139.com/steelScrapInformation?tabName=%E5%BA%9F%E9%92%A2%E6%8C%87%E6%95%B0&tabParameter=exponent&pIds=40232&type=1" target="_blank"><span>数据终端</span></a></li> </ul> </div> </div> <div class="index"> <ul class="index-list clearfix" id="topFutures"> </ul> </div> <div class="top-con clearfix"> <div class="left fl clearfix"> <div class="ad1"> <img src="http://www.f139content.com/metal/wap/ad1.jpg"> </div> <div class="aside-1"> <ul class="tab_menu clearfix"> <li class="current"><a>今日推荐</a></li> <li><a>有色快讯</a></li> </ul> <div class="tab_box"> <div> <div class="list" id="recommendedToday"> </div> </div> <div class="hide"> <div class="list" id="coloredNews"> </div> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/recommendedToday.html')" style="margin-right: 15px">查看更多></a> </div> </div> </div> <div class="center fl"> <div class="aside-2"> <ul class="tab_menu left"> <li class="current" style="margin-right: 20px;"><a>富宝有色</a></li> <li style="margin-right: 20px;"><a>富宝再生</a></li> <li style="margin-right: 20px;"><a>富宝长江</a></li> <li><a>价格指数</a></li> </ul> <ul class="tab_menu right"> <li><a></a></li> <a href="http://data.f139.com/list.do?vid=1" target="_blank">历史价格</a> </ul> <div class="tab_box"> <div id="metalList"> </div> <div class="hide" id="regenerateList"> </div> <div class="hide" id="changjiangSpot"> </div> <div class="hide" id="priceIndex"> </div> </div> </div> </div> <div class="right fl"> <div class="ad2"><img src="http://www.f139content.com/metal/wap/ad2.jpg"></div> <div class="ad3"><img src="http://www.f139content.com/metal/wap/ad2.jpg"></div> <div class="ad4"><img src="http://www.f139content.com/metal/wap/ad2.jpg"></div> </div> </div> <div class="middle-ads clearfix"> <div class="left-ad fl ad5"><img src="http://www.f139content.com/metal/wap/ad3.jpg"></div> <div class="right-ad fr ad6"><img src="http://www.f139content.com/metal/wap/ad1.jpg"></div> </div> <div class="second-con clearfix"> <div class="aside-3"> <ul class="tab_menu clearfix"> <li class="current"><a>厂家报价</a></li> <li><a>现货汇总</a></li> </ul> <div class="tab_box"> <div> <div class="list" id="manufacturersQuotation"> </div> </div> <div class="hide"> <div class="list" id="spotSummary"> </div> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/spotSummary.html')" style="margin-right: 15px">查看更多></a> </div> </div> <div class="aside-4"> <ul class="tab_menu clearfix"> <li class="current"><a>废铜采购</a></li> <li><a>废铝采购</a></li> <li><a>废电瓶采购</a></li> <li><a>汇总</a></li> </ul> <div class="tab_box"> <div> <div class="list" id="scrapCopperProcurement"> </div> </div> <div class="hide"> <div class="list" id="scrapAluminumProcurement"> </div> </div> <div class="hide"> <div class="list" id="wasteBatteryProcurement"> </div> </div> <div class="hide"> <div class="list" id="summary"> </div> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/scrapCopperProcurement.html')" style="margin-right: 15px;">查看更多></a> </div> </div> </div> <div class="middle-ads clearfix"> <div class="left-ad fl ad7"><img src="http://www.f139content.com/metal/wap/ad3.jpg"></div> <div class="right-ad fr ad8"><img src="http://www.f139content.com/metal/wap/ad1.jpg"></div> </div> <div class="third-con clearfix"> <div class="aside-5"> <ul class="tab_menu clearfix"> <li class="current"><a>现货日评</a></li> <li><a>市场周报</a></li> <li><a>市场月报</a></li> </ul> <div class="tab_box"> <div> <div class="list" id="spotDailyReview"> </div> </div> <div class="hide"> <div class="list" id="marketWeekly"> </div> </div> <div class="hide"> <div class="list" id="monthlyMarketReport"> </div> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/spotDailyReview.html')" style="margin-right: 15px;">查看更多></a> </div> </div> <div class="right"> <div class="head"> <div class="title">期货行情</div> </div> <div class="aside-6 clearfix"> <ul class="tab_menu clearfix"> <li class="current"><a href="http://futures.f139.com/list.do" class="cblue">上海期货</a></li> <li><a href="http://futures.f139.com/list.do" class="cblue">LME期货</a></li> <li><a href="http://data.f139.com/list.do?pid=1" class="cblue current">上海库存</a></li> <li><a href="http://data.f139.com/list.do?pid=1" class="cblue">LME库存</a></li> <li><a href="http://futures.f139.com/list.do" class="cblue">现货黄金</a></li> <li><a href="http://futures.f139.com/list.do" class="cblue">上海黄金</a></li> <li><a href="http://futures.f139.com/list.do" class="cblue">金融指数</a></li> <li><a href="http://futures.f139.com/list.do" class="cblue">纽约期货</a></li> </ul> <div class="tab_box" id="qihuo"> <div class="qihuoLi" id="code_10027"> </div> <div class="qihuoLi hide" id="code_10026"> </div> <div class="qihuoLi hide" id="http://data.f139.com/listIndexShort.do?vid=1&pids=12756,12757,12759,12758,752,753,926,10617&type=isLME"> </div> <div class="qihuoLi hide" id="http://data.f139.com/listIndexShort.do?vid=7&pids=583,653,654,655,714,715&type=isLME"> </div> <div class="qihuoLi hide" id="code_10019"> </div> <div class="qihuoLi hide" id="code_10041"> </div> <div class="qihuoLi hide" id="code_10040"> </div> <div class="qihuoLi hide" id="code_10050"> </div> </div> </div> </div> </div> <div class="middle-ads clearfix"> <div class="left-ad fl ad9"><img src="http://www.f139content.com/metal/wap/ad3.jpg"></div> <div class="right-ad fr ad10"><img src="http://www.f139content.com/metal/wap/ad1.jpg"></div> </div> <div class="fourth-con clearfix"> <div class="aside-7"> <ul class="tab_menu clearfix"> <li class="current"><a>行业</a></li> <li><a>宏观</a></li> <li><a>政策</a></li> <li><a>期货</a></li> </ul> <div class="tab_box"> <div> <div class="list" id="industry"> </div> </div> <div class="hide"> <div class="list" id="macroscopic"> </div> </div> <div class="hide"> <div class="list" id="policy"> </div> </div> <div class="hide"> <div class="list" id="futures"> </div> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/recommendedToday.html')" style="margin-right: 15px">查看更多></a> </div> </div> <div class="aside-8"> <ul class="tab_menu clearfix"> <li class="current"><a>调研</a></li> <li><a>产销</a></li> <li><a>进出口</a></li> <li><a>库存</a></li> </ul> <div class="tab_box"> <div> <div class="list" id="investigationAndResearch"> </div> </div> <div class="hide"> <div class="list" id="productionAndMarketing"> </div> </div> <div class="hide"> <div class="list" id="importAndExport"> </div> </div> <div class="hide"> <div class="list" id="stock"> </div> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/investigationAndResearch.html')" style="margin-right: 15px">查看更多></a> </div> </div> </div> <div class="middle-ads clearfix"> <div class="left-ad fl ad11"><img src="http://www.f139content.com/metal/wap/ad3.jpg"></div> <div class="right-ad fr ad12"><img src="http://www.f139content.com/metal/wap/ad1.jpg"></div> </div> <div class="fifth-con clearfix"> <div class="left"> <div class="head"> <div class="title">供 货</div> </div> <div class="content"> <div class="list" id="supplier"> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/supplier.html')">查看更多></a> </div> </div> <div class="left" style="float: right"> <div class="head"> <div class="title">采 购</div> </div> <div class="content"> <div class="list" id="purchase"> </div> <a href="javascript:void(0)" class="more-link blue fz14 fr" onclick="openTab('/metal/supplier.html')">查看更多></a> </div> </div> </div> <div class="middle-ads clearfix"> <div class="left-ad fl ad13"><img src="http://www.f139content.com/metal/wap/ad3.jpg"></div> <div class="right-ad fr ad14"><img src="http://www.f139content.com/metal/wap/ad1.jpg"></div> </div> <div class="section-product"> <!--全产业链 一站式服务 html--> <div class="section-title"> <div class="title-topic"> <img src="/metal/img/productTitle.png" alt=""> </div> </div> <div class="product-description"> <div class="item des1"> <div class="des-inner"> <div class="name">富宝资讯</div> <div class="text">专业的大宗商品资讯APP</div> </div> <div class="des-hover"> <div class="name">富宝资讯</div> <div class="text">专业的大宗商品资讯APP</div> <div class="btn">信息快</div> <div class="btn">覆盖全</div> <div class="btn">资讯准</div> </div> </div> <div class="item des2"> <div class="des-inner"> <div class="name">公众号</div> <div class="text">聚焦市场动态 产业热点</div> </div> <div class="des-hover"> <div class="name">公众号</div> <div class="text">聚焦市场动态 产业热点</div> <img class="qr-code" src="/metal/img/gongzhonghao.jpg"> </div> </div> <div class="item des4" style="overflow: hidden"> <div class="des-inner"> <div class="name">视频号</div> <div class="text">精彩市场 一起分享</div> </div> <div class="des-hover"> <div class="name">视频号</div> <div class="text">精彩市场 一起分享</div> <img class="qr-code" src="/metal/img/shipinhao.png"> </div> </div> <div class="item des5" style="overflow: hidden; margin-right: 0"> <div class="des-inner"> <div class="name">会议</div> <div class="text">更多商机 等你发现</div> </div> <div class="des-hover"> <div class="name">有色及再生金属</div> <div class="text">行业专业信息咨询</div> <div class="btn">信息快</div> <div class="btn">覆盖全</div> <div class="btn">资讯准</div> </div> </div> </div> </div> </div> <!--底部--开始---> <div class="footer"> <!--<div class="footer" style="height: 230px;">--> <!-- <div class="cooperation">--> <!-- <h3><span class="tit left">合作伙伴<span style="font-size:12px; font-weight:normal;color:#666;"> (快照收录不正常或者不符合本站首页链接条件的已移至内页,恕不另行通知)</span></span><span class="right h2_3"><a href="http://www.f139.com/link/" class=" f12px2">更多 >></a></span><div class="clear"></div></h3>--> <!-- <ul class="clearfix cGray media">--> <!-- <li><a href="http://www.56888.net">全国物流信息网</a></li><li><a href="http://www.soci.com.cn/">搜材网</a></li><li><a href="http://www.dowater.com">中国污水处理工程网</a></li><li><a href="http://www.qqdcw.com/ ">锂电池</a></li><li><a href="http://www.cnscdc.com">中国市场调查网</a></li><li><a href="http://www.chinajnhb.com/">节能环保网</a></li><li><a href="http://www.atk.com.cn/">中国有色金属信息网</a></li><li><a href="www.ebaiyin.com">中国白银网</a></li><li><a href="http://www.ynshangji.com/">商机网</a></li><li><a href="http://www.cnfeol.com/">中国铁合金在线</a></li><li><a href="http://www.cnmn.com.cn/">中国有色网</a></li><li><a href="http://www.bxgtd.com/">不锈钢天地</a></li><li><a href="http://www.steelcn.com/">中国钢材网</a></li><li><a href="http://www.yahui.cc">外汇牌价查询</a></li><li><a href="http://www.alu1886.com/">全球铝业网</a></li><li><a href="http://www.cmra.cn/">中国再生金属网</a></li><li><a href="http://www.cnal.com/">世铝网</a></li><li><a href="http://www.jiazhuang6.com/">家装网 </a></li><li><a href="https://www.feipinzhan.com/">中国废品站</a></li><li><a href="http://www.ctia.com.cn/">中国钨业新闻网</a></li>--> <!-- </ul>--> <!-- </div>--> <div class="content"> <div style="padding-top: 20px"> <p style="font-size: 14px;padding-bottom: 10px;"> 旗下网站: <a href="http://www.feijiuzs.com" target="_blank"><strong>废旧再生网</strong></a> | <a href="http://steel.f139.com/" target="_blank"> <strong>富宝钢铁网</strong> </a> | <a href="http://www.f139.com/" target="_blank"> <strong>富宝有色网</strong> </a> | <a href="http://bxg.f139.com/" target="_blank"> <strong>不锈钢网</strong> </a> | <a href="http://thj.f139.com/" target="_blank"> <strong>铁合金网</strong> </a> | <a href="http://xjs.f139.com/" target="_blank"> <strong>小金属网</strong> </a> | <a href="http://xitu.f139.com/" target="_blank"> <strong>稀土网</strong> </a> | <a href="http://plas.f139.com/" target="_blank"> <strong>塑料网</strong> </a> | <a href="http://paper.f139.com/" target="_blank"> <strong>纸网</strong> </a> | <a href="http://futures.f139.com/" target="_blank"> <strong>期货网</strong> </a> | <a href="http://hubaogj.com/" target="_blank"> <strong>虎宝管家</strong> </a> </p> <p style="padding-bottom: 10px;"> <a href="http://www.f139.com/" target="_blank">网站首页</a> | <a href="http://service.f139.com/about" target="_blank">关于我们</a> | <a href="http://service.f139.com/about/contact.jsp" target="_blank">联系我们</a> | <a href="http://service.f139.com/about/terms.jsp" target="_blank">服务条款</a> | <a href="http://service.f139.com/ad/index.jsp" target="_blank">广告合作</a> | <a href="http://service.f139.com/about/legal.jsp" target="_blank">法律声明</a> | <a href="http://service.f139.com/about/privacy.jsp" target="_blank">隐私声明</a> | <a href="http://service.f139.com/about/culture.jsp" target="_blank">企业文化</a> | <a href="http://service.f139.com/about/job.jsp" target="_blank">诚聘英才</a> | <a href="http://service.f139.com/sitemap/" target="_blank">站点地图</a> | <a href="http://service.f139.com/help/" target="_blank">帮助中心</a> </p> <img src="http://data.f139.com/feigang/images/keepOnRecord.png" width="16" height="13"/> <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010702002512" target="_blank" >沪公网安备 31010702002512号</a > <a href="https://beian.miit.gov.cn/" target="_blank">苏ICP备17039642号-10</a> 增值电信业务经营许可证沪B2-20170145 <a href="http://www.f139content.com/metal/upfiles/2014-05/20140506144406392.jpg" target="_blank" >ISO9001:2008 </a> <img src="http://img.f139.com/common/default_tel2.gif" width="16" height="12" style="margin-left: 5px" /> 全国免费服务热线: <strong style="color: red">400-886-0990</strong> <p style="padding-bottom: 10px;"></p> <p> 无锡出类信息科技发展有限公司版权所有 <span style="font-family: Arial">Copyright ©</span>2003-2021 </p> </div> </div> </div> <!--<div id="conversion" style="display: none;"></div>--> <!--底部--结束---> <script> $(function () { $.ajax({ type: "GET", url: "/metal/getMetalAd.do", success: function (res) { let data = getData(res); insertAd(data); } }); topFutures(); getList(1); getProductInfo(1); getList(2); getProductInfo(2); getProductInfo(3); getList(3); getList(4); getProductInfo(0); getList(5); qihuoData(); }); function topFutures() { $.ajax({ type: "GET", url: "/metal/topFutures.do", // async: false, success: function (res) { let data = getData(res); var html = ''; for (var i = 0; i < data.length; i++) { var qh = data[i]; var color = (qh.new_s - qh.last_av) > 0 ? 'red' : 'green'; html += ' <li class="item"><a href="http://futures.f139.com/list.do" target="_blank">\n' + ' <div class="color333 fz14">' + qh.name + '</div>\n' + ' <div class="color333 fz16 font-bold">' + qh.new_s + '</div>\n' + ' <div class="clearfix">\n' + ' <div class="fl ' + color + ' fz12 color">' + (qh.new_s - qh.last_av).toFixed() + '</div>\n' + ' <div class="fr fz12 color999">[' + qh.updatetime + ']</div>\n' + ' </div>\n' + ' </a></li>' } $("#topFutures").append(html); } }); } function getProductInfo(row) { $.ajax({ type: "GET", url: "/metal/productInfo.do", data: { row: row }, // async: false, success: function (res) { let data = getData(res); for (let name in data) { let html = ' <div class="title">\n' + ' <ul>\n' + ' <li style="width: 28%;">品种</li>\n' + ' <li style="width: 12%;">地区</li>\n' + ' <li style="width: 20%;">价格</li>\n' + ' <li style="width: 12%;">均价</li>\n' + ' <li style="width: 11%;">涨跌</li>\n' + ' <li style="width: 10%;">单位</li>\n' + ' <li style="width: 7%;">日期</li>\n' + ' </ul>\n' + ' </div>\n' + ' <div class="list">\n'; for (let i = 0; i < data[name].length; i++) { let v = data[name][i]; let lastUAD = v.lastUAD; let lastAvgPrice = v.lastAvgPrice; if (lastUAD != undefined) { let UAD = lastUAD.substr(1); if (lastUAD.indexOf("涨") != -1) { v.color = 'red'; if (UAD != undefined && !isNaN(UAD) && lastAvgPrice != undefined && !isNaN(lastAvgPrice)) { v.UAD = (parseFloat(UAD) / parseFloat(lastAvgPrice) * 100).toFixed(3) + "%"; } } else if (lastUAD.indexOf("跌") != -1) { v.color = 'green'; if (UAD != undefined && !isNaN(UAD) && lastAvgPrice != undefined && !isNaN(lastAvgPrice)) { v.UAD = (parseFloat(UAD) / parseFloat(lastAvgPrice) * 100).toFixed(3) + "%"; } } } html += '<ul class="item clearfix" onclick="getTrend(' + v.pid + ')" title="' + v.specification + '" ">\n' + ' <li style="width: 28%;">' + v.goodsName + (v.specification == '' ? v.specification : '(' + v.specification + ')') + '</li>\n' + ' <li style="width: 12%;overflow: hidden;">' + v.place + '</li>\n' + ' <li style="width: 20%;">' + v.lastPrice + '</li>\n' + ' <li style="width: 12%;">' + ((v.lastAvgPrice == undefined || isNaN(parseFloat(v.lastAvgPrice))) ? '-' : parseFloat(v.lastAvgPrice)) + '</li>\n' + ' <li style="width: 11%;color: ' + v.color + '">' + (v.lastUAD == '' ? '-' : v.lastUAD) + '</li>\n' + ' <li style="width: 10%;">' + (v.unit == '' ? '-' : v.unit) + '</li>\n' + ' <li style="width: 7%;" class="color999">' + v.dataDate + '</li>\n' + ' </ul>\n'; } html += ' </div>'; $("#" + name).append(html); } } }); } function getList(row) { $.ajax({ type: "GET", url: "/metal/index.do", data: { row: row }, success: function (res) { let data = getData(res); for (let ulId in data) { var more = $("#" + ulId).html(); $("#" + ulId).empty(); let html = ''; for (let i = 0; i < data[ulId].length; i++) { let color = ''; if (data[ulId][i].time.indexOf(':') != -1) { color = " style='color:red;' "; } if (data[ulId][i].color != undefined && data[ulId][i].color != '') { data[ulId][i].color = " style='color:" + data[ulId][i].color + ";' "; } if (ulId == 'coloredNews') { html += ' <div class="item clearfix" title="' + data[ulId][i].text + '" onclick="getNews(' + data[ulId][i].id + ')">\n' + ' <div style="float: left;height: 25px;"><span ' + color + '>' + data[ulId][i].time + '</span></div>\n' + ' <div class="desc"><a style="margin-bottom: 10px;" href="javascript:void(0)" class="multiline">' + data[ulId][i].text + '</a></div>\n' + ' </div>'; } else if (row == 5) { html += ' <div class="item clearfix" ' + data[ulId][i].color + ' title="' + data[ulId][i].text + '" onclick="' + ((data[ulId][i].link === undefined || data[ulId][i].link == '') ? ('getNews(' + data[ulId][i].id + ')') : ('openDetail(\'' + data[ulId][i].link + '\')')) + '">\n' + ' <div class="desc">' + '<a href="javascript:void(0)" ' + data[ulId][i].color + '>' + data[ulId][i].text + '</a>' + ' <div class="img"><img alt="" src="' + ((data[ulId][i].defaultPicUrl === undefined || data[ulId][i].defaultPicUrl == '') ? '/metal/img/dyimg1.jpg' : data[ulId][i].defaultPicUrl) + '"></div>\n' + '</div>\n' + ' <div class="time"><span ' + color + '>' + data[ulId][i].time + '</span></div>\n' + ' </div>'; } else { html += ' <div class="item clearfix" title="' + data[ulId][i].text + '" onclick="getNews(' + data[ulId][i].id + ')">\n' + ' <div class="desc"><a href="javascript:void(0)">' + data[ulId][i].text + '</a></div>\n' + ' <div class="time"><span ' + color + '>' + data[ulId][i].time + '</span></div>\n' + ' </div>'; } } $("#" + ulId).append(html + more); } } }); } function qihuoData() { $("#qihuo .qihuoLi").each(function () { var node = $(this); var id = node.attr("id"); var url = ""; if (id.startsWith("code_")) { url = "http://futures.f139.com/futures.do?code=" + id.substring(5); } else if (id.startsWith("http")) { url = id; } var index = url.indexOf('?'); var param = ''; if (index != -1) { param = url.substring(index + 1); url = url.substring(0, index); } $.ajax({ type: "GET", url: "/metal/getData.do", async: false, data: { url: url, param: param }, success: function (res) { res = getData(res); qihuoDataConversion(node, res.data); } }); }); } function qihuoDataConversion(node, str) { node.empty(); node.append(str) var i = 0; var bl = node.find("tr:eq(0)").find("td").length > 3; var widthArr = bl ? [" style='width:100px'", " style='width:60px'", " style='width:60px'", " style='width:50px'"] : ['', '', '']; let html = " <div class=\"title clearfix\">\n" + " <div class=\"name\"" + widthArr[0] + ">名称</div>\n" + " <div class=\"number\"" + widthArr[1] + ">最新</div>\n" + " <div class=\"diff\"" + widthArr[2] + ">" + (bl ? "增加量" : "涨跌") + "</div>\n" + (bl ? " <div class=\"diff\"" + widthArr[3] + ">日期</div>\n" : "") + " </div>\n" + " <div class=\"list\">"; node.find("tr").each(function () { if (i != 0) { html += '<div class="item clearfix">\n' + ' <div class="name"' + widthArr[0] + '>' + $(this).find("td:eq(0)").text() + '</div>\n' + ' <div class="number"' + widthArr[1] + '>' + $(this).find("td:eq(1)").text() + '</div>\n' + ' <div class="diff"' + widthArr[2] + '>' + $(this).find("td:eq(2)").text() + '</div>\n' + ($(this).find("td").length > 3 ? '<div class="diff"' + widthArr[3] + '>' + $(this).find("td:eq(3)").text() + '</div>\n' : '') + ' </div>'; } i++; }); html += ' </div>'; node.empty(); node.append(html); } </script> </body> </html>