新材料在线-新材料行业一站式服务平台 $(document).ready(function () { loadNews("recommend"); loadXiangmu("高分子材料"); loadTouziren(""); loadYanbao(""); }); function loadNews(call) { if (call == "媒体号") { window.location.href = '/news/dingyuehao_list.aspx?fenlei=6'; } if (call == "企业号") { window.location.href = '/news/dingyuehao_list.aspx?fenlei=7'; } var is_recom = ""; var is_hot = ""; var cat = ""; if (call == "recommend") { is_recom = 1; } else if (call == "hot") { is_hot = 1; } else { cat = call; } $.getJSON( "/service/newsApi.ashx?action=news_list_ByPage2&category=" + cat + "&is_recommend=" + is_recom + "&is_hot=" + is_hot + "&pageSize=" + 14 + "&pageindex=" + 1 + "&keyword=", function (data) { var str_li = buildNews(data); $("#news_list").empty(); $("#news_list").append(str_li); }); } function buildNews(jsonObj) { var str_li = ""; var ds = jsonObj.ds; for (var i = 0; i < ds.length; i++) { var str_img = ""; if (ds[i].img_url != '') { if (ds[i].img_url.indexOf("http") < 0) { ds[i].img_url = "https://m.xincailiao.com" + ds[i].img_url; } str_img = '<a href="/news/news_detail_new.aspx?id=' + ds[i].id + '"><img class="mui-pull-right" src="' + ds[i].img_url + '" alt=""></a>'; } if (ds[i].category_id > 0) { ds[i].source = ds[i].ctitle; } var str_top = ""; if (i<2&&ds[i].is_top == 1) { str_top = "<i>置顶</i>"; } if (i == 0) { str_li += '<div class="mui-h-news-HotList"><ul>'; } if (i == 2) { str_li += '</ul></div><div class="mui-h-newList clearfix"><ul class="clearfix">'; } if (i < 2) { str_li += '<li>' + str_img + '<div class="mui-h-news-con"><span class="title"><a href="/news/news_detail_new.aspx?id=' + ds[i].id + '"><b>' + ds[i].title+ '</b>'+ str_top +'</a></span><span class="tabloid">' + ds[i].zhaiyao + '</span><span class="lfoote"><p>' + ds[i].source + '</p><p>· ' + ds[i].update_time + '</p></span></div></li>'; } if (i > 1) { str_li += '<li class="mui-pull-left"><a href="/news/news_detail_new.aspx?id=' + ds[i].id + '"><i></i>' + ds[i].title+str_top + '</a></li>'; } } str_li += '</ul></div>'; return str_li; } function loadXiangmu(fw_typw) { $.getJSON( "/service/faxianApi.ashx?action=projects_list_ByPage&type=" + fw_typw + "&rongzi_status=2&pageSize=" + 9 + "&pageindex=" + 1 + "&keyword=", function (data) { var str_li = buildXiangmu(data); $("#xiangmu_list").empty(); $("#xiangmu_list").append(str_li); }); } function buildXiangmu(jsonObj) { var str_li = ""; var ds = jsonObj.ds; var rzzt = ""; for (var i = 0; i < ds.length; i++) { if (ds[i].rongzi_status == 1) { rzzt = "成功项目"; } else if (ds[i].rongzi_status == 2) { rzzt = "正在融资"; } else if (ds[i].rongzi_status == 3) { rzzt = "预热项目"; } else if (ds[i].rongzi_status == 4) { rzzt = "过往项目"; } var str_img = ""; if (ds[i].img_url != '') { if (ds[i].img_url.indexOf("http") < 0) { ds[i].img_url = "https://m.xincailiao.com" + ds[i].img_url; } str_img = '<a href="/rongzi/project_detail.aspx?id=' + ds[i].id + '"><img src="' + ds[i].img_url + '" alt=""></a>'; } if (i == 0) { str_li += '<div class="mui-h-project-HotList clearfix">'; } if (i == 1) { str_li += '</div><div class="mui-h-projectList clearfix"><ul>'; } if (i < 1) { str_li += str_img + '<div class="info"><div class="title"><a href="/rongzi/project_detail.aspx?id=' + ds[i].id + '">' + ds[i].title + '</a><b>' + rzzt + '</b></div><div class="tabl"><span><p class="p1">关注人数</p><p>' + ds[i].click + '</p></span><span><p class="p1">融资目标</p><p>' + ds[i].rzmubiao + '万</p></span><span><p class="p1">出让股份</p><p>' + ds[i].churanggufen + '%</p></span></div><div class="survey">' + ds[i].zhaiyao + '</div></div>'; } if (i > 0) { str_li += '<li><a href="/rongzi/project_detail.aspx?id=' + ds[i].id + '"><i></i><span class="title">' + ds[i].title + '</span><b>' + rzzt + '</b></a></li>'; } } str_li += '</ul></div>'; return str_li; } function loadTouziren(guanzhu) { $.getJSON( "/service/faxianApi.ashx?action=TouzirenList_ByPage&guanzhu_tags=" + guanzhu + "&pageSize=" + 6 + "&pageindex=" + 1 + "&keyword=", function (data) { var str_li = buildTouziren(data); $("#touziren_list").empty(); $("#touziren_list").append(str_li); }); } function buildTouziren(jsonObj) { var str_li = ""; var ds = jsonObj.ds; for (var i = 0; i < ds.length; i++) { var str_img = ""; if (ds[i].img_url != '') { if (ds[i].img_url.indexOf("http") < 0) { ds[i].img_url = "https://m.xincailiao.com" + ds[i].img_url; } str_img = '<a href="/rongzi/touziren_detail.aspx?id=' + ds[i].id + '"><img src="' + ds[i].img_url + '" alt=""></a>'; } else { ds[i].img_url = 'https://m.xincailiao.com/images/user_avatar.png'; str_img = '<a href="/rongzi/touziren_detail.aspx?id=' + ds[i].id + '"><img src="' + ds[i].img_url + '" alt=""></a>'; } var str_tag = ""; var arr = ds[i].guanzhu_tags.split(','); for (var str_item in arr) { str_tag = str_tag + '<span>' + arr[str_item] + '</span>'; } str_li += '<li>' + str_img + '<div class="info"><p class="title"><a href="/rongzi/touziren_detail.aspx?id=' + ds[i].id + '" title="' + ds[i].title + '">' + ds[i].title + '</a></p><p class="jg"><b>机构:</b>' + ds[i].qiye + ' ' + ds[i].zhiwei + '</p><p class="tzr_tag">'+str_tag+'</p></div></li>'; } str_li += '</ul></div>'; return str_li; } function loadYanbao(hangye) { //$.getJSON( // "/service/faxianApi.ashx?action=ReportList_ByPage&hangye=" + hangye + "&pageSize=" + 10 + "&pageindex=" + 1 + "&keyword=", // function (data) { // var str_li = buildYanbao(data); // $("#yanbao_list").empty(); // $("#yanbao_list").append(str_li); // }); $.getJSON( "/service/buyApi.ashx?action=GetProductList&category_id=3&hangye=" + hangye + "&pageSize=" + 10 + "&pageindex=" + 1 + "&keyword=", function (data) { var str_li = buildYanbao(data); $("#yanbao_list").empty(); $("#yanbao_list").append(str_li); }); } function buildYanbao(jsonObj) { var str_li = ""; var ds = jsonObj.ds; for (var i = 0; i < ds.length; i++) { var str_img = ""; if (ds[i].img_url != '') { if (ds[i].img_url.indexOf("http") < 0) { ds[i].img_url = "https://m.xincailiao.com" + ds[i].img_url; } str_img = '<a href="/reportMall/reportDetail.aspx?id=' + ds[i].id + '"><img src="' + ds[i].img_url + '" alt=""></a>'; } if (i == 0) { str_li += '<div class="mui-h-port-hot"><ul>'; } if (i == 2) { str_li += '</ul></div><div class="mui-h-newList clearfix"><ul class="clearfix">'; } if (i < 2) { str_li += '<li class="clearfix">' + str_img + '<div class="info"><div class="ti"><a href="/reportMall/reportDetail.aspx?id=' + ds[i].id + '">' + ds[i].title + '</a></div><div class="cnt">' + ds[i].share_zhaiyao + '</div></div></li>'; } if (i > 1) { str_li += '<li class="mui-pull-left"><a href="/reportMall/reportDetail.aspx?id=' + ds[i].id + '" title="' + ds[i].title + '"><i></i>' + ds[i].title + '</a></li>'; } } str_li += '</ul></div>'; return str_li; } function ShowCurr(obj) { obj.parent().parent().children().children("a").removeClass("curr"); obj.addClass("curr"); } //判断访问终端 var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { trident: u.indexOf('Trident') > -1, //IE内核 presto: u.indexOf('Presto') > -1, //opera内核 webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核 mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端 ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器 iPad: u.indexOf('iPad') > -1, //是否iPad webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部 weixin: u.indexOf('MicroMessenger') > -1, //是否微信 (2015-01-22新增) qq: u.match(/\sQQ/i) == " qq" //是否QQ }; } (), language: (navigator.browserLanguage || navigator.language).toLowerCase() } //判断是否手机 if (browser.versions.mobile) { //window.location.href = "http://m.xincailiao.com"; }

有材APP下载

新材料在线APP下载

寻材问料下载

精彩推荐

会员享研报折扣价、看项目BP、约投资人、每日在通讯录加更多好友等特权

开通会员 查看会员特权
$(document).scroll(documentscroll); function documentscroll(){ var oScrolltop=$(document).scrollTop(); if (oScrolltop>200) { $('.header').addClass('active'); }else{ $('.header').removeClass('active'); }; } $(function () { $(".acc-atv-dow").hover(function () { $(this).children(".userstatus").stop(500).slideToggle(); }, function () { $(this).children(".userstatus").stop(500).slideToggle(); }); });
var app_vip = new Vue({ el: "#div_vip_pop", data: { formdata: { txtMobile: '', txtCode:'', txtImgCode:'', txtPassword:'', txtRealName:'', txtCompany:'', txtZhiwei: '', u_type: '', province: '', city: '', district: '', product:'', hangye: '', company_type: '', caizhi: '', gongneng: '' }, show_vip_pop: false, show_quit_tips: false, show_coursevip_pop: false, user:{"id":0,"avatar":"http://m.xincailiao.com/images/user_avatar.png","nick_name":"","group_id":1,"mobile":"","course_expire_time":"","param":"TKs7FHgd/3++pnT7fCbFIG15Y8NkALanI34/efuzDhIyLEwyF38thpy0WRFl/bfg"}, list: [], course_list: [], select_course_index:0, select_index: 0, list_coupon: [], coupon_id: '', couponObj: null, show_login: false, show_register:false, login_tab: 0, can_submit: false, login_form: { mobile: '', sms_code: '', user_login_pwd: '' }, err_tips: '', can_sms:false, sms_wait: 0, wait_timer: null, login_callback:null, login_label: 0, list_shenfen: [ { id: 1, title:'普通用户' }, { id: 2, title:'项目方' }, { id: 3, title:'投资方' }, { id: 4, title:'设计师' }, { id: 5, title:'工程师' }, { id: 6, title:'采购' }, { id: 7, title:'销售' }, { id: 8, title:'企业家' }, { id: 9, title:'创客' } ], list_hangye:[], list_company_type:[], list_caizhi:[], list_gongneng: [], hangye: [], caizhi: [], gongneng:[], selectArea: [], defultProp: { label: "name", value: "name", children: "sub" }, addressData: [], login_agree: false, reg_agree: false, reg_init: false, loading: false, show_set_psw: false, form_psw: { password: '' }, show_improve: false, form_improve: {}, login_key:'', login_qr: '', getting_status: false, status_timer:null, }, created: function() { if (this.formdata.province) this.selectArea.push(this.formdata.province); if (this.formdata.city) this.selectArea.push(this.formdata.city); if (this.formdata.district) this.selectArea.push(this.formdata.district); }, methods: { GoScrollBar: function () { let width = this.$refs.scroll.clientWidth; this.$refs.scroll.scrollTo(width, 0); }, CheckLogin: function () { if (this.user.id > 0) return true; else { this.PopLogin(); return false; } }, PopVip: function () { this.show_vip_pop = true; if (this.list.length == 0) { this.GetVipList(); } this.GetCouponList(); }, PopCourseVip: function () { this.show_coursevip_pop = true; if (this.course_list.length == 0) { this.GetCourseVipList(); } }, ClickHidePop: function () { if (!this.list[this.select_index]) { this.QuitBuy(); } else { this.show_quit_tips = true; } }, QuitBuy: function () { this.show_quit_tips = false; this.show_vip_pop = false; }, GetVipList: function () { var _this = this; var url = "/service/api.ashx?action=get_vip_pop_info&fromsys=xclweb&version=590"; $.post(url, {}, function (res) { if (res.status == 1) { _this.list = res.ds.vip_list; } }, "json"); }, GetCourseVipList: function () { var _this = this; var url = "/service/universityApi.ashx?action=GetCourseVipList&fromsys=xclweb&version=590"; $.post(url, {}, function (res) { if (res.status == 1) { _this.course_list = res.ds; } }, "json"); }, SelectVip: function (_index) { if (this.select_index == _index) return; this.select_index = _index; this.CheckCoupon(); }, GetCouponList: function () { var _this = this; var url = "/service/buyApi.ashx?action=GetMyCoupon&fromsys=xclweb&version=590&target_type=1"; $.post(url, {}, function (res) { if (res.status == 1) { res.ds.sort(function (a, b) { return b.deduction - a.deduction }); _this.list_coupon = res.ds; _this.PreHandleCouponList(); _this.CheckCoupon(); } }, "json"); }, PreHandleCouponList: function () { this.list_coupon.map(function (_item) { _item.label = "满" + _item.deduction_limit + "减" + _item.deduction+"元"; }); }, CheckCoupon: function () { if (this.list.length <= this.select_index) return; var vipObj = this.list[this.select_index]; var _coupon_temp = ''; for (var i = 0; i < this.list_coupon.length; i++) { if (this.list_coupon[i].deduction_limit <= vipObj.price) { _coupon_temp = this.list_coupon[i].id; this.couponObj = this.list_coupon[i]; break; } } this.coupon_id = _coupon_temp; }, CouponChange: function (newVal,item) { for (var i = 0; i < this.list_coupon.length; i++) { if (this.list_coupon[i].id == this.coupon_id) { this.couponObj = this.list_coupon[i]; return; } } }, IsCouponDisable: function (_item) { var res = this.list[this.select_index] && this.list[this.select_index].price < _item.deduction_limit ? true : false; return res; }, PopLogin: function (callback, _login_label) { this.show_login = true; this.login_label = 0; if (_login_label == 0) { this.login_label = _login_label; } else if (_login_label == 1) { this.ShowScanLogin(); } this.show_register = false; if (callback && typeof (callback) == "function") { this.login_callback = callback; } else { this.login_callback = null; } }, InitReg: function () { if (!this.reg_init) { this.GetHangye(1892, 'hangye'); this.GetHangye(1893, 'gongneng'); this.GetHangye(1894, 'caizhi'); this.GetHangye(3156, 'company_type'); var _this = this; $.getJSON("https://m.xincailiao.com/js/area_data.json", function (data) { _this.addressData = data; }); this.reg_init = true; } }, PopRegister: function () { this.show_register = true; this.show_login = false; this.InitReg(); }, PopSetPsw: function () { this.show_login = false; this.show_set_psw = true; }, PopImprove: function () { this.show_set_psw = false; this.show_improve = true; this.InitReg(); }, ClickHideCoursePop: function(){ this.show_coursevip_pop = false; }, CheckCanSubmit: function () { this.err_tips = ''; if (this.login_tab == 0) { if (this.login_form.mobile && this.login_form.sms_code) { this.can_submit = true; } else { this.can_submit = false; } } else { if (this.login_form.mobile && this.login_form.user_login_pwd) { this.can_submit = true; } else { this.can_submit = false; } } if (!this.login_agree) { this.can_submit = false; } if (this.show_login && this.login_tab == 0) { if (this.sms_wait == 0) { if (this.login_form.mobile) { this.can_sms = true; } else { this.can_sms = false; } } else { this.can_sms = false; } } }, CheckRegSms: function () { if (this.show_register) { if (this.sms_wait == 0) { if (this.formdata.txtMobile) { this.can_sms = true; } else { this.can_sms = false; } } else { this.can_sms = false; } } }, StartSmsWait: function () { this.sms_wait = 60; var _this = this; this.wait_timer = setInterval(function () { if (_this.sms_wait > 0) { _this.sms_wait--; } if (this.sms_wait <= 0) { clearInterval(_this.wait_timer); } }, 1000); }, ClickSms: function (_type) { if (this.loading) return; if (!this.can_sms||this.sms_wait>0) return; var url = "/service/userApi.ashx?action=app_common_smscode&fromsys=xclweb"; var data = this.login_form; if (_type == 1) { data = { mobile: this.formdata.txtMobile }; } this.loading = true; $.post(url, data, function (res) { if (res.status == 1) { this.StartSmsWait(); } else { this.ShowDialog(res.msg); } this.loading = false; }.bind(this), "json"); }, SubmitLogin: function () { if (!this.can_submit) { if (!this.login_agree) { vant.Toast({ message: '请勾选《用户协议》《隐私政策》', duration:1000}); } return; } var url = "/service/userApi.ashx?action=user_login&fromsys=xclweb&version=580"; if (this.login_tab == 1) { this.login_form.user_login_name = this.login_form.mobile; } else { url = "/service/api.ashx?action=mobile_login&fromsys=xclweb&version=580"; } $.post(url, this.login_form, function (res) { if (res.status == 1) { if (this.login_callback && typeof (this.login_callback) == "function") { this.show_login=false; this.GetUserInfo(this.login_callback); } else { location.reload(); } } else if (res.status == 5) { this.PopSetPsw(); }else { this.err_tips = res.msg; } }.bind(this), "json"); }, SubmitRegist: function () { if (this.loading) return; if (!this.reg_agree) { this.ShowDialog('请同意《用户协议》和《隐私政策》'); return; } if (this.selectArea.length >= 2) { this.formdata.province = this.selectArea[0]; this.formdata.city=this.selectArea[1]; } if (this.selectArea.length == 3) { this.formdata.district=this.selectArea[2]; } if (this.formdata.txtMobile == '') { this.ShowDialog('请填写手机号'); return; } if (this.formdata.u_type == '') { this.ShowDialog('请选择身份'); return; } if (this.formdata.txtRealName == '') { this.ShowDialog('请填写您的真实姓名'); return; } if (this.formdata.txtCompany == '') { this.ShowDialog('请填写您的公司名称'); return; } if (this.hangye) { this.formdata.hangye = this.hangye.join(","); } if (this.caizhi) { this.formdata.caizhi = this.caizhi.join(","); } if (this.gongneng) { this.formdata.gongneng = this.gongneng.join(","); } console.log(this.formdata); this.loading = true; var url = "/service/SubmitHandler.ashx?action=user_register&fromsys=xclweb&version=580"; $.post(url, this.formdata, function (res) { if (res.status == 1 || res.status == 5) { location.reload(); } else { this.ShowDialog(res.msg); } this.loading = false; }.bind(this), "json"); }, SubmitSetPsw: function () { if (this.loading) return; if (this.form_psw.password == '') { this.ShowDialog('请填写密码'); return; } if (this.form_psw.password != this.form_psw.password2) { this.ShowDialog('两次输入的密码不一致'); return; } this.loading = true; var url = "/service/api.ashx?action=set_pwd&fromsys=xclweb&version=580"; $.post(url, this.form_psw, function (res) { if (res.status == 1) { this.PopImprove(); } else { this.ShowDialog(res.msg); } this.loading = false; }.bind(this), "json"); }, SubmitImprove: function () { if (this.loading) return; if (this.selectArea.length >= 2) { this.form_improve.province = this.selectArea[0]; this.form_improve.city = this.selectArea[1]; } if (this.selectArea.length == 3) { this.form_improve.district = this.selectArea[2]; } if (this.form_improve.nick_name == '') { this.ShowDialog('请填写姓名'); return; } if (this.form_improve.company_name == '') { this.ShowDialog('请填写公司'); return; } if (this.hangye) { this.form_improve.hangye = this.hangye.join(","); } if (this.caizhi) { this.form_improve.caizhi = this.caizhi.join(","); } if (this.gongneng) { this.form_improve.gongneng = this.gongneng.join(","); } console.log(this.form_improve); this.loading = true; var url = "/service/api.ashx?action=improve_user_info&fromsys=xclweb&version=580"; $.post(url, this.form_improve, function (res) { if (res.status == 1) { location.reload(); } else { this.ShowDialog(res.msg); } this.loading = false; }.bind(this), "json"); }, ShowDialog: function (_msg) { this.$alert(_msg); }, GetHangye(_id,_name) { var url = "/service/api.ashx?action=get_filter_items"; $.post(url, { id: _id }, function (res) { if (res.status == 1) { this['list_'+_name] = res.ds; } }.bind(this), "json"); }, getPlaceName: function (_arr, _id) { if (!_arr || !_id) return ''; for (let i = 0; i < _arr.length; i++) { if (_arr[i].id == _id)return _arr[i].title; } }, GetUserInfo: function (login_callback) { var url = "/service/userApi.ashx?action=get_user_info&fromsys=xclweb&version=580"; $.post(url, {}, function (res) { if (res.status == 1) { this.user = res.ds; this.user.id = res.ds.user_id; if (login_callback && typeof (login_callback) == "function") { login_callback(res.ds); } else { location.reload(); } } }.bind(this), "json"); }, ShowScanLogin: function () { this.login_label = 1; this.GetLoginQr(); }, GetLoginQr: function () { var url = "/service/api.ashx?action=GetLoginQrCode&fromsys=xclweb&version=580"; $.post(url, {}, function (res) { if (res.status == 1) { this.login_key = res.ds.key; this.login_qr = res.ds.qr_code; this.status_timer = setInterval(this.GetLoginQrStatus, 2000); } else { this.ShowDialog(res.msg); } this.loading = false; }.bind(this), "json"); }, GetLoginQrStatus: function () { if (this.getting_status) return; var url = "/service/api.ashx?action=GetLoginQrCodeStatus&fromsys=xclweb&version=580"; $.post(url, { key:this.login_key}, function (res) { if (res.status == 1) { if (res.ds.status == 0) { } else { if (this.status_timer) { clearInterval(this.status_timer); } if (res.ds.status == 1) { if (location.href.indexOf("/login") > -1) { var index_temp = location.href.indexOf("returnurl="); var rurl = ""; if (index_temp > -1) { rurl = location.href.substring(index_temp + 10); } if (rurl) { location.href = decodeURIComponent(rurl); } else { location.href = "/"; } } else { location.reload(); } } else if (res.ds.status == 3) { this.ShowDialog("登录码已过期"); this.login_label = 0; } else { this.ShowDialog("登录码已失效"); this.login_label = 0; } } } else { this.ShowDialog(res.msg); } this.loading = false; }.bind(this), "json"); }, SelectCourseVip: function (_index) { if (this.select_course_index == _index) return; this.select_course_index = _index; }, }, watch: { login_tab: function () { this.CheckCanSubmit(); }, login_form: { handler: function () { this.CheckCanSubmit(); }, deep:true }, formdata: { handler: function () { this.CheckRegSms(); }, deep: true }, login_agree: function () { this.CheckCanSubmit(); }, login_label: function () { if (this.login_label == 0 && this.status_timer) { clearInterval(this.status_timer); } }, show_login: function () { if (!this.show_login && this.status_timer) { clearInterval(this.status_timer); } } } }); window.pop_vip = function () { app_vip.PopVip(); }
$(function () { $('#home_slider').flexslider({ animation: 'slide', controlNav: true, directionNav: true, animationLoop: true, slideshow: true, useCSS: true }); });

新闻

智库

材料专家

/更多
  • 推荐

    胡国庆

    广东深圳市南山区

    研究领域:5G移动通信、物联网、车联网等
  • 推荐

    陈张伟

    广东深圳市南山区

    研究领域:增材制造、陶瓷、金属、有机物
  • 推荐

    康红伟

    广东深圳市龙华区

    研究领域:环氧树脂、碳纤维预浸料、环氧树脂胶粘剂、半导体封装料
  • 推荐

    李文江

    天津

    研究领域:可再生植物纤维素
  • 推荐

    刘喜正

    天津

    研究领域:新型电池、低温电池体系的纳米多孔金属电极、原位固态化凝胶电解质

材料服务

产业园

更多>>
招聘 更多>>
求职 更多>>
$(function () { $('.mui-h-hr-tab dl dd').click(function () { $(this).addClass('curr').siblings().removeClass('curr'); $('.mui-hrBox>div:eq(' + $(this).index() + ')').show().siblings().hide(); }); })

点击咨询

客服

下载APP

公众号

让客服与您联系

留下您的联系方式,让客服为您提供专属服务

//收藏本站 bbs.ecmoban.com function AddFavorite(title, url) { try { window.external.addFavorite(url, title); } catch (e) { try { window.sidebar.addPanel(title, url, ""); } catch (e) { alert("抱歉,您所使用的浏览器无法完成此操作。\n\n加入收藏失败,请使用Ctrl+D进行添加"); } } } //留言提交 var app = new Vue({ el: "#appForm", data: { formdata: { company_name: '', mobile: '', contact: '', zhiwei: '', content: '', type: '57' }, loading: false, user: {}, }, created: function () { this.formdata.contact = this.user.name; this.formdata.mobile = this.user.mobile; this.formdata.company_name = this.user.company; this.formdata.zhiwei = this.user.zhiwei; }, methods: { OnSubmit: function () { if (!this.CheckData()) return false; if (this.loading) return false; this.loading = true; Utils.SetLoadingCover(true); var url = "https://m.xincailiao.com/service/baomingApi.ashx?action=feedback_add2"; $.post(url, this.formdata, function (res) { if (res.status == 1) { Utils.ShowDialog(res.msg, '', function () { location.reload(); }); } else { Utils.ShowDialog(res.msg); } app.loading = false; Utils.SetLoadingCover(false); }, "json"); }, CheckData: function () { if (this.formdata.mobile == "") { Utils.ShowDialog("请填写电话"); return false; } return true; } } }); $(function () { $(".search_btn").click(function () { $(".sear_box").show(); $(document.body).css({ "overflow-y": "hidden" }); //隐藏body滚动条 $(".search_main").show(500).css("right", "110px"); }); $(".search_close").click(function () { $(".sear_box").hide(); $(document.body).css({ "overflow-y": "auto" }); //启用body滚动条 $(".search_main").hide(); }); $(".mask_search").click(function () { $(".sear_box").hide(); $(document.body).css({ "overflow-y": "auto" }); //启用body滚动条 $(".search_main").hide(); }); $("body").on("click", ".search_main .search_btn", function () { submit_search(); }); $('.search_main .search_text').bind('keypress', function (event) { if (event.keyCode == "13") { submit_search(); } }); }); function submit_search() { var surl = '/search.aspx'; window.location.href = surl + "?keyword=" + $(".search_main .search_text").val(); }; /*弹框JS内容*/ jQuery(document).ready(function($){ //打开窗口 $('.bottom_tools #advisory').on('click', function(event){ event.preventDefault(); $('.popMessage').addClass('is-visible'); }); //关闭窗口 $('.popMessage').on('click', function(event){ if( $(event.target).is('.close') || $(event.target).is('.popMessage') ) { event.preventDefault(); $(this).removeClass('is-visible'); } }); });
var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cspan id='cnzz_stat_icon_1260405847'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/z_stat.php%3Fid%3D1260405847%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "//analysis.xincailiao.com/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '1']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })();
var app = new Vue({ el: "#app", data: { pagesize: 6, list_brand:[], }, mixins: [live_mixin], mounted: function () { setTimeout(function () { this.GetBrand(); }.bind(this),1000); }, methods: { GetBrand: function () { var url = "https://m.xincailiao.com/service/api.ashx?action=get_pc_link&type=9"; $.post(url, {}, function (res) { if (res.status == 1) { this.list_brand = res.ds; this.$nextTick(function () { $('.partnerShow').liMarquee({ direction: 'up' }); }); } }.bind(this), "json"); } } }); window.HidePopAdAndPopVip=function(){ $("#popaddShow").hide(); window.pop_vip(); } $(document).ready(function () { var COOKIE_NAME = "showbox"; if ($.cookie(COOKIE_NAME)) { $(".advbox").hide(); $(".mask_shadow").hide(); } else { $(".advbox").show(); $(".advbox").animate({ top: "50%" }, 1000); $(".closebtn").click(function () { $(".advbox").fadeOut(500); $(".mask_shadow").fadeOut(500); }) $.cookie(COOKIE_NAME, 'ishide', { expires: 1 }); //expires过期时间 } })
x server