CINXE.COM
Post Sourcing Request
<!DOCTYPE html> <html lang="en"> <head> <title>Post Sourcing Request</title> <meta name="description" content=""/> <meta name="keywords" content=""/> <meta charset="utf-8"> <meta name="baidu-site-verification" content="yCtEyi4NzS" /> <meta name="google-site-verification" content="t4BHy4QbsMJKnNYIaBL_3sq_MnkLcnk7qrl-1J24slQ" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="csrf-token" content="zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9"> <link rel="shortcut icon" href="/img/favicon.ico"> <!-- Bootstrap --> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/bootstrap.min.css?1746496135" type="text/css"> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/bootstrap-theme.min.css?1746496135" type="text/css"> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/base.css?1746496135" type="text/css"> <script src="https://www.pharmasources.com/static/web/js/jquery.min.js?1746496135"></script> <script src="https://www.pharmasources.com/static/web/js/common.min.js?1746496135"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-164521382-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-164521382-1'); </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?17644c035fe7482daf90144f1ff2f247"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/fonts.css" type="text/css"> <!-- Global site tag (gtag.js) - Google Ads: 947853199 --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-947853199"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-947853199'); </script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-MVK0C784Q4"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-MVK0C784Q4'); </script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-M38VCXVV5K"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-M38VCXVV5K'); </script> <!-- iiris --> <script src="https://a-iiris.imsharecenter.com/cbe/collect?tid=1411413961&at=0&h=web"></script> <script> clab_tracker.ready(function(){ this.push({"pageType":"web"}); this.track("open_page", {}); }); </script> <!-- cookie弹框 --> <style type="text/css"> .alert-box-ck{ min-width: 1200px; width: 1200px; height: 111px; border:3px #4fc2b8 solid ; background: #29858D; position: fixed; /*top: 0px;*/ left: 0px; right: 0px; bottom: -111px; margin: auto; z-index: 9999; max-width: 90%; } .alert-box-content-ck{ /*border: 1px solid blue;*/ width: 76.5%; height: 52px; float: left; margin-top: 29.5px; margin-left: 70px; color: white; font-size: 14px; line-height: 25px; } .alert-box-content-ck a{ color: #8BF8EF; } #yes-ck{ /*border: 1px solid blue;*/ width: 8%; height: 30px; text-align: center; float: right; margin-right: 70px; margin-top: 40.5px; background-color: #F79134; } #yes-ck span{ color: white; font-size: 14px; line-height: 27px; } @media only screen and (min-width: 1480px) { .alert-box-ck { min-width: 1440px; width: 1440px; } } @media only screen and (max-width: 1200px) { .alert-box-ck{ min-width: auto; width: 85%; height: 270px; border:3px #4fc2b8 solid ; background: #29858D; position: fixed; /*top: 0px;*/ left: 0px; right: 0px; bottom: 0px; margin: auto; z-index: 9999; max-width: 90%; } .alert-box-content-ck{ /*border: 1px solid blue;*/ width: 90%; margin-top: 6%; margin-left: 5%; color: white; font-size: 14px; line-height: 25px; height: auto; float: none; } .alert-box-content-ck a{ color: #8BF8EF; } #yes-ck{ /*border: 1px solid blue;*/ width: 30%; height: 30px; text-align: center; margin-left: 35%; margin-top: 20px; background-color: #F79134; float: none; margin-right: auto; } #yes-ck span{ color: white; font-size: 14px; line-height: 27px; } } @media only screen and (max-width: 320px){ .alert-box-ck{ height: 320px; } } </style> <script> // window.onload = function () { if(!getCookieNew('is_agree')) { $(".alert-box-ck").animate({ bottom:"0",opacity:1},1000).show() } // } // $("#yes-ck").click(function () { // document.cookie = 'is_agree=1;path=/'; // $(".alert-box-ck").hide(); // }); $("body").on('click','#yes-ck',function () { document.cookie = 'is_agree=1;path=/'; $(".alert-box-ck").hide(); }); function getCookieNew(key){ var arr1=document.cookie.split("; "); for(var i=0;i<arr1.length;i++){ var arr2=arr1[i].split("="); if(arr2[0]==key){ return decodeURI(arr2[1]); } } } </script> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/index.min.css?1746496135" type="text/css"> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/cas.css?1746496135" type="text/css"> <!-- Link Swiper's CSS --> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/bootstrap.min.css" type="text/css"> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/bootstrap-datetimepicker.min.css" type="text/css"> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/swiper.min.css?1746496135" type="text/css"> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/base.min.css?1746496135" type="text/css"> <link rel="alternate" media="only screen and(max-width: 640px)" href="https://m.pharmasources.com/psr" > <link rel="canonical" href="https://www.pharmasources.com/psr"> <script src="https://www.pharmasources.com/static/web/js/jquery.min.js?1746496135"></script> <!--layui时间日期组件--> <script src="https://www.pharmasources.com/static/web/js/laydate/laydate.js?1746496135"></script> <!-- 头部 --> <style type="text/css"> #nav_li_a_on { color: #4fc2b8; } .pharmacy_header_search i { top: 40px; right: 0px; } .pharmacy_header_Sourcing a:last-child { background-color: #108391; } .pharmacy_header_Sourcing a:last-child:hover { background-color: #047381; } .association,.association_product,.association_supplier{ background-color: #fff; position: absolute; z-index: 9999; height:auto!important; width:100%; display:none; } .association_supplier li ,.association_product li{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .assli:hover{ background-color: #eee; } .tophot_keyword{width:100%;height:36px;line-height:30px;color:#646464;} .tophot_keyword a{margin-right:5px;margin-left:5px;color:#646464;} /*电子杂志*/ .pharmacy_header_menu ul li.on>a{ color:#4fc2b8; } .pharmacy_header_menu ul li.on .industry_insights{ display:block; } /*屏蔽首页按钮*/ /*.pharmacy_header_menu ul li.zazhi>a::before {*/ /* content: '';*/ /* background: url(/static/web/image/images/img_4_03.png);*/ /* background-repeat: no-repeat;*/ /* background-size: 100% 100%;*/ /* position: absolute;*/ /* left: 467px;*/ /* top: 15px;*/ /* width: 8px;*/ /* height: 7px;*/ /*}*/ .service_membership{ /*color:#fff!important;*/ /*background-color: #4fc2b8;*/ display: inline-block; border-radius:25px; /*padding:0 15px;*/ height:22px; line-height:22px; } .etrade_season{ /*background-color: #F79134;*/ /*color: #ffffff !important;*/ display: inline-block; border-radius:25px; /*padding:0 15px;*/ height:22px; line-height:22px; /*letter-spacing:*/ } .pharmacy_header_menu ul li.zazhi.on>a::before{ color:#333; transform: rotate(180deg); } .pharmacy_header_buyer span::before { background-image: url(/static/web/image/images/img_4_03.png); } .industry_insights{ margin-top: 10px; width: 200px; position: absolute; left:30%; top: 25px; background-color: white; z-index: 9999; border: 1px solid #ccc; } @media (min-width: 1479px){ .industry_insights{ left:34%; } .pharmacy_header_menu ul li.zazhi>a::before{ left:612px; /*left:467px;*/ } } .industry_insights a{ display: block; width:100%; height:24px; padding-left: 20px; line-height: 24px; margin-bottom: 5px; } .pharmacy_header_Sourcing a { width: 200px; background: #4fc2b8; margin-right: 20px; } /*公共导航栏样式问题*/ .pharmacy_w, .pharmacy_w1 { width: 1200px; margin: 0 auto; position: relative; height: 100%; } .pharmacy_header_menu ul li a { color: #333; margin-right: 20px; } .pharmacy_header_menu ul li a.vec_url{ margin-right: 20px; } .pharmacy_header_select { background-image: url(/static/web/image/images/search_tipe.png); } @media only screen and (min-width: 1480px) { .pharmacy_header_menu ul li a { color: #333; margin-right: 55px; } .pharmacy_header_menu ul li a.vec_url{ margin-right: 55px; } .pharmacy_w, .pharmacy_w1, .pharmacy_w2 { width: 1440px; } } .phs_new ul{ list-style: none; padding: 0; margin: 0; } .phs_new ul li{ float: right; margin-left: 26px; } .l1 img{ width: 30px; height: 30px; } .l2{ height: 20px; line-height: 20px; margin-top: 5px; } </style> <header class="pharmacy_header"> <div class="pharmacy_w"> <div class="pharmacy_top"> <a href="https://www.pharmasources.com"> <img class="pharmacy_header_logo clearfix" src="https://www.pharmasources.com/static/web/image/images/logo.png" alt="CPHI logo" onClick="javascript:window.open('https://www.pharmasources.com', '_self')"> </a> <div class="pharmacy_header_search clearfix"> <ul class="pharmacy_header_select_all"> <li data-value="product" data-place="Products or CAS No." class="pharmacy_header_select"> Products </li> <li data-value="suppliers" data-place="Suppliers" class=""> Suppliers </li> <li data-value="ezs" data-place="Sourcing Requests" class=""> Sourcing Requests </li> </ul> <input value="" type="text" id="search-input" placeholder=""> <i> <img class="search-img" src="https://www.pharmasources.com/static/web/image/images/search_img.png" alt=""> </i> <ul class="association"> </ul> <ul class="association_product"> </ul> <ul class="association_supplier"> </ul> </div> <div class="pharmacy_header_user clearfix"> <ul> <li> <a href="https://www.cphi.cn/"> <img src="/static/images/countryimg/0042.jpg" alt=""> </a> <a href="https://www.cphi.cn/" style="margin-left: 6px;">中文站</a> </li> <li style="margin-right: 40px" class="pharmacy_header_sign"> <img src="https://www.pharmasources.com/static/web/image/images/img_3_03.png" alt=""> <a href="https://www.pharmasources.com/login" rel="nofollow">Sign in</a> <a href="https://www.pharmasources.com/register" rel="nofollow">Join free</a> </li> </ul> <div class="pharmacy_header_Sourcing" > <a hidden href="https://www.pharmasources.com/buyerSession" id="web-public-pharmacy-header-Sourcing-buyer">Post Sourcing Request</a> <a href="https://www.pharmasources.com/psr" id="web-public-pharmacy-header-Sourcing-psr">Post Sourcing Request</a> <a hidden href="https://www.pharmasources.com/buy" id="web-public-pharmacy-header-Sourcing-suppplier">Sourcing Request List </a> <a href="https://www.pharmasources.com/cphi-china" target="_blank">Exhibition</a> </div> </div> <div class="pharmacy_header_menu"> <ul> <li><a id="" href="https://www.pharmasources.com">Home</a> </li> <li><a id="" href="https://www.pharmasources.com/products">Products</a></li> <li><a id="" href="https://www.pharmasources.com/suppliers">Supplier</a></li> <li><a class="etrade_season" href="https://www.pharmasources.com/zt/cphi-etrade-season" target="_blank">E-Trade Season</a></li> <li><a id="" href="https://www.pharmasources.com/content/">Content Hub</a></li> <li class="zazhi"> <a id="" href="https://www.pharmasources.com/industryinsights" style="display:block;height:auto;" class="zazhi_a"> <span>Industry Insights</span> </a> </li> <li style="position: relative"> <a target="_blank" class="vec_url" href="https://www.pharmasources.com/zt/cphichinawebinar"> <img src="https://www.pharmasources.com/static/web/image/images/E-Learn.png" style="vertical-align:top;display: inline;" alt=""> </a> </li> <li><a class="service_membership" href="https://www.pharmasources.com/service/overview" target="_blank">Service & Membership</a></li> <li class="pharmacy_header_buyer" id="suppliers" style="float: right;margin-right: 50px"> <span>For Supplier</span> <div class="pharmacy_header_buy" style="margin-top:10px"> <p class="text-left" style="font-weight: 600;margin-bottom: 5px;"> <a href="https://www.pharmasources.com/member/update-contact">My Account</a> </p> <p class="text-left" style="font-weight: 600;margin-bottom: 5px;"> <a href="https://www.pharmasources.com/member/style">My Online Store</a> </p> <p class="text-left" style="font-weight: 600;margin-bottom: 5px;"> <a href="https://www.pharmasources.com/member/buy-reply">My EZSourcing</a> </p> <p class="text-left" style="font-weight: 600;margin-bottom: 5px;margin-right: 0"> <a href="https://www.pharmasources.com/buy" style="margin-right: 0">View Sourcing Requests</a> </p> <p class="text-left" style="font-weight: 600;margin-bottom: 5px;"> <a href="https://www.pharmasources.com/member/customerService">Customer Service</a> </p> </div> </li> <li class="pharmacy_header_buyer" id="buyer" style="float: right;margin-right: 50px;cursor: pointer;"> <span>For Buyer</span> <div class="pharmacy_header_buy" style="margin-top:10px;width: 250px;"> <p class="text-left" style="font-weight: 600;margin-bottom: 5px;margin-right: 0px">Search Products & Suppliers</p> <a style="margin-right: 0px" href="https://www.pharmasources.com/products">Products Directory</a> <a style="margin-right: 0px" href="https://www.pharmasources.com/suppliers">Suppliers Discovery</a> <a style="margin-right: 0px" href="https://www.pharmasources.com/psr">Post EZSourcing</a> <p class="text-left" style="font-weight: 600;margin-top: 30px;margin-bottom: 5px"> Service</p> <a style="margin-right: 0px" href="https://www.pharmasources.com/buy/supplier.html">Buyer Sourcing Event</a> <a style="margin-right: 0px" href="https://www.pharmasources.com/buyer/customerService">Contact Us</a> <p class="text-left" style="font-weight: 600;margin-top: 30px;margin-bottom: 5px">Quick links</p> <a style="margin-right: 0px" href="https://www.pharmasources.com/buyer/favoriteProducts">My Favorites</a> <a style="margin-right: 0px" href="https://www.pharmasources.com/buyer/tracks">Recent Visit History</a> </div> </li> </ul> </div> </div> </div> </header> <script> $(document).ready(function(){ var hm = document.createElement("script"); hm.src = "https://log.jiagle.com/tongJi/web/browser/visit"; var s = document.getElementsByTagName("script")[0]; // s.parentNode.insertBefore(hm, s); $.ajax({ url:"https://www.pharmasources.com/getUsername", type:"post", data:{'_token': 'zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9'}, success:function(res){ if(res && $.parseJSON(res)) { var res = $.parseJSON(res) if (res.code == 200) { $('.pharmacy_header_sign').children('a').remove(); var log_out = "https://www.pharmasources.com/login/out"; var a_link = '<a class="temp_a" style="color:#4fc2b8;text-decoration: underline" href="' + res.data.url + '" >' + res.data.username + '</a><a href="' + log_out + '">Log out</a>'; $('.pharmacy_header_sign').append(a_link) } else if (res.code == 201) { } } } }) $.ajax({ url:"https://www.pharmasources.com/slog", type:"post", data:{'_token': 'zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9'}, success:function(res){ if(res && $.parseJSON(res)) { var res = $.parseJSON(res) if (res.code == 200) { $('.association_product,.association_supplier').html(''); if (res.data.pm.length){ // var html_pm = '<li disabled style="color: #F79131;height: 26px;line-height: 26px;margin-bottom: -10px;cursor: auto">Hot Search</li>'; var html_pm = ''; $.each(res.data.pm,function(i,v){ html_pm += "<li class='assli' style='width:100%;height:26px;line-height: 16px;padding: 5px 12px;vertical-align:middle;'><span style='float:left;display:inline-block;z-index:-1;'>"+v.content+"</span></li>"; }) $('.association_product').append(html_pm); } if (res.data.sm.length){ // var html_sm = '<li disabled style="color: #F79131;height: 26px;line-height: 26px;margin-bottom: -10px;cursor: auto">Hot Search</li>'; var html_sm = ''; $.each(res.data.sm,function(i,v){ html_sm += "<li class='assli' style='width:100%;height:26px;line-height: 16px;padding: 5px 12px;vertical-align:middle;'><span style='float:left;display:inline-block;z-index:-1;'>"+v.content+"</span></li>"; }) $('.association_supplier').append(html_sm); } } else if (res.code == 201) { } } } }) }) $(".zazhi").mouseover(function(){ $(this).addClass('on'); $('.zazhi_a').css('color','#4fc2b8') }) $(".zazhi").mouseout(function(){ $(this).removeClass('on'); $('.zazhi_a').css('color','#333') }) var type = ""; if (type){ }else{ $('#suppliers #buyer').show(); } $("#search-input").bind("input propertychange",function(event){ var search_data = $('#search-input').val(); var search_type = $('.pharmacy_header_select').html(); //去除两端空格 search_data = search_data.replace(/^\s+|\s+$/g,''); if (search_data){ $(".association_product,.association_supplier").hide(); getSearchData(search_data,search_type); }else{ $('.association').html('').css('border',''); var dv = $(".pharmacy_header_select").attr("data-value"); if (dv == "product") { $(".association_product").show(); $(".association_supplier").hide(); } if (dv == "suppliers") { $(".association_product").hide(); $(".association_supplier").show(); } if (dv == "ezs") { $(".association_product").show(); $(".association_supplier").hide(); } } }); $('.association,.association_product,.association_supplier').on('click','li',function(e){ var text = $(this).children('span').text(); $("#search-input").val(text).focus(); var search_type = $('.pharmacy_header_select').html(); e.stopPropagation(); searchIcon(text); }) $('.cphi_search').on('click',function(e){ var data_value = $(this).attr("data-value"); searchIcon(data_value); }) function getSearchData(search_data,search_type){ $.ajax({ url: "https://www.pharmasources.com/getAssociationSearch", data: { search_data: search_data,search_type:search_type}, type:"post", headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content') }, dataType: 'json', success: function (res) { $('.association').html('') if(res.code==200){ var html = ""; $.each(res.data,function(i,v){ if(search_data != v){ html += "<li class='assli' style='width:100%;height:26px;line-height: 16px;padding: 5px 12px;vertical-align:middle;'><span style='float:left;display:inline-block;z-index:-1;'>"+v+"</span></li>"; } }) if (!$(".association_supplier").is(':visible') && !$(".association_product").is(':visible')) { $('.association').append(html); } }else{ alert(data.msg); return false; } } }) } $('#search-input').focus(function(){ $('.association').show().css('border','1px solid #ccc'); }) $('body').click(function(e){ if(($(e.target).attr('id')!='search-input')){ $('.association').hide().css('border','') $('.association_product,.association_supplier').hide(); } }); $('.pharmacy_header_select_all li').click(function(){ $('.association').html('').css('border',''); $('.association_product,.association_supplier').hide(); }) function phs(str) { var url = ''; if (str != null){ switch (str) { case ('Visitor'): url = 'https://www.cphi.com/china/en/attend/attend/why-attend.html'; break; case ('Exhibior'): url = 'https://www.cphi.com/china/en/Exhibit/exhibit/Why-exhibit.html'; break; case ('Advertiser'): // url = 'https://efile.imsinoexpo.com/efile/CPhI/Yingqi/PharmaSources%20Sponsorship%20Package%20final.pdf'; url = 'https://efile.imsinoexpo.com/efile/CPhI/PharmaSources%20Sponsorship%20Package%202023.pdf'; break; case ('Suppliers'): url = ' https://www.pharmasources.com/service/supplier-membership'; break; case ('Buyer'): url = 'https://www.pharmasources.com/service/buyer-membership'; break; case ('psr'): url = "https://www.pharmasources.com/psr"; break; case ('psrl'): url = "https://www.pharmasources.com/buy"; break; } } if (url){ window.open(url); } } </script> <style> .div-img { position: relative; margin-left: 16px; margin-top: 15px; margin-bottom: 15px; width: 180px; height: 90px; float: left; } .ap_img { width: auto; height: auto; max-width: 100%; max-height: 100%; position: absolute; margin: auto auto; top: 0; right: 0; bottom: 0; left: 0; } </style> <style type="text/css"> .content { position: absolute; display: none; padding: 10px; width: 186px; /*background: #e0edf7;*/ background: #eee; border-radius: 6px; z-index: 100; margin-top: 10px; } .content::before { content: ""; position: relative; top: -20px; left: 10px; width: 0; height: 0; display: block; border-left: 10px solid transparent; border-right: 10px solid transparent; /*border-bottom: 10px solid #e0edf7;*/ border-bottom: 10px solid #eee; } </style> <style> .chat-box { width: 1200px; margin: 50px auto; background-color: white; } /*.clearfix-class{*/ /* width: 1200px;*/ /* margin: 50px auto;*/ /*}*/ .title-class { margin-left: 20px; font-size: 26px; height: 60px; line-height: 60px; /*border-bottom: 1px solid grey;*/ } .title-class-txt { width: 80%; float: left; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/ -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/ -webkit-line-clamp: 1; /** 显示的行数 **/ overflow: hidden; /** 隐藏超出的内容 **/ } .title-class-img { width: 110px; float: right; /*border: 1px solid red;*/ } .title-class-img img { margin-right: 15px; } .content-class { width: 100%; height: 141px; } .content-class table { width: 100%; height: 80%; font-size: 16px; margin-top: 30px; margin-bottom: 30px; } .content-class table td { /*border: 1px solid red;*/ padding-left: 20px; padding-right: 20px; height: 50px; line-height: 50px; width: 33.3%; } hr { margin: 0px; } .one{ /*border: 1px solid red;*/ display: block; width: 159px; text-align: right; height: 26px; line-height: 26px; float: left; font-weight: bold; } /*td span {*/ .two { width: 55%; height: 26px; display: block; float: left; line-height: 26px; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; /*border: 1px solid;*/ margin-left: 3px; } #content-td { width: 86%; display: block; float: left; height: 26px; line-height: 26px; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; margin-left: 3px; } .form-class { text-align: center; } .clearfix-form { width: 60%; margin: auto; margin-top: 30px; position: relative; /*border: 1px solid red;*/ } .pull-left { float: right; } .form-span { width: 151px; float: left; margin: 13px 20px 13px 0; font-size: 16px; color: #333333; font-family: open sans; text-align: right; } .input { width: 546px; border: 1px solid #e0e0e0; padding: 10.6667px 10px; font-size: 16px; color: #333333; font-family: open sans; } .required-logo { color: #f79131; } .add-class { height: 41px; background-color: #4fc2b8; width: 100px; float: right; line-height: 41px; color: white; margin-bottom: 30px; cursor: pointer; } small { /*border: 1px solid;*/ font-size: 15px; position: absolute; color: white; top: 40px; left: 171px; width: 546px; text-align: left; background-color: #F79131; } small img { margin-left: 10px; margin-right: 20px; } .small-1 { /*border: 1px solid;*/ font-size: 15px; position: absolute; color: white; top: 40px; left: 171px; width: 546px; text-align: left; background-color: #F79131; } .small-1 img { margin-left: 10px; margin-right: 20px; } #get_date_time { /*position: relative;*/ /*right: 3px;*/ /*z-index: 99;*/ width: 546px; } .form-control:focus { border-color: #e0e0e0; } .pull-left-textarea { width: 546px; } .small-textarea { top: auto; bottom: -18px; } .alert-box-center ul { padding: 0; margin: 0; list-style: none; } .alert-box-center li { font-size: 15px; cursor: pointer; /*border: 1px solid;*/ /*margin-bottom: 10px;*/ height: 35px; line-height: 35px; padding-left: 20px; text-align: left; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/ -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/ -webkit-line-clamp: 1; /** 显示的行数 **/ overflow: hidden; /** 隐藏超出的内容 **/ } .alert-box-center li:hover { background-color: #e0e0e0; } .on { background-color: #e0e0e0; } .input_unit { width: 357px; } .pull-left select { width: 170px; margin-left: 15px; appearance: none; -moz-appearance: none; -webkit-appearance: none; padding-left: 25px; background: url(/static/web/image/images/sel_bj_1.png) 80% center no-repeat; } #definite_date_other { width: 150px; } #definite_date { width: 188px; } .dz-preview { width: 0px; height: 0px; overflow: hidden; } .laydate-footer-btns .laydate-btns-now,.laydate-footer-btns .laydate-btns-confirm{ display: none;!important; } #time{ background: url(/static/web/image/login/t_sj.png) no-repeat 96%; } /*.pharmacy_header_menu ul li a{*/ /* margin-right:30px;*/ /*}*/ textarea::-webkit-input-placeholder { font-size: 15px; line-height: 20px; } textarea::-moz-placeholder { line-height: 20px; font-size: 15px; } textarea:-moz-placeholder { line-height: 20px; font-size: 15px; } textarea:-ms-input-placeholder { line-height: 20px; font-size: 15px; } .pharmacy_header_menu { position: absolute; width: 100%; bottom: 10px; margin-top: 10px; } @media only screen and (min-width: 1480px) { .chat-box { width: 1440px; } .input, small { width: 688px; } #get_date_time, .pull-left-textarea { width: 688px; } #definite_date { width: 330px; } .input_unit { width: 500px; } /*.pharmacy_header_menu ul li a{*/ /* margin-right:65px;*/ /*}*/ } </style> <style> .alert-box-content-ck a { color: #8BF8EF !important; } .pharmacy_header_search,.pharmacy_header_Sourcing{ display: none; } </style> <style type="text/css"> /*.alert-box{*/ /* width: 700px;*/ /* height: 350px;*/ /* !*border-top:3px #4fc2b8 solid ;*!*/ /* background: #fff;*/ /* position: absolute;*/ /* top: 0px;*/ /* left: 0px;*/ /* right: 0px;*/ /* bottom: 0px;*/ /* margin: auto;*/ /* z-index: 9999;*/ /* max-width: 90%;*/ /*}*/ .alert-box { width: 546px; height: 350px; /* border-top: 3px #4fc2b8 solid; */ background: #fff; position: absolute; top: 0; left: 171px; /* right: 0px; */ /* bottom: -211px; */ margin: auto; z-index: 9999; max-width: 90%; } .alert-box i { position: absolute; top: 0; right: 10px; font-family: "open sans"; color: white; font-size: 36px; cursor: pointer; } #cover { position: fixed; left: 0px; top: 0px; background: rgba(0, 0, 0, 0.4); width: 100%; /*宽度设置为100%,这样才能使隐藏背景层覆盖原页面*/ height: 100%; filter: alpha(opacity=60); /*设置透明度为60%*/ opacity: 0.8; /*非IE浏览器下设置透明度为60%*/ z-Index: 999; } .alert-box-title { /*border: 1px solid red;*/ height: 40px; line-height: 40px; background-color: #4fc2b8; } .alert-box-title span { display: block; float: left; margin-left: 20px; color: white; font-size: 18px; } .alert-box-bottom { border: 1px solid #e0e0e0; /*border-top: none;*/ height: 50px; padding: 7.5px; } .alert-box-center { border: 1px solid #e0e0e0; border-top: none; border-bottom: none; height: 260px; } .alert-box-center div { border: 1px solid #e0e0e0; border-bottom: none; /*width: 33.33%;*/ height: 100%; float: left; overflow: auto; } #yes, #no { width: 80px; /*border: 1px solid;*/ height: 35px; border: none; line-height: 35px; font-size: 16px; outline: none; text-align: center; } #yes { color: white; float: left; margin-left: 30%; background-color: #F79131; } #no { color: black; float: right; margin-right: 30%; background-color: #e0e0e0; } .alert-box_login{ width: 360px; height: 320px; /*border-top:3px #4fc2b8 solid ;*/ background: #fff; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; margin: auto; z-index: 9999; max-width: 90%; } .login-top{ height: 40px; line-height: 40px; } .login-top span{ margin-left: 20px; } .d1{ width: 300px; /*border: lpx solid red;*/ float: left; /*margin-top: 75px;*/ /*margin-left: 30px;*/ } .d2{ width: 300px; margin: auto; margin-top: 26px; } .w{ width: 100%; } .btn{ height: 30px; width: 300px; margin-bottom: 10px; } .new_login{ padding-bottom: 10px; } .new_login_input{ margin-top: 10px; } @media only screen and (min-width: 1480px) { .alert-box { width: 688px; } #yes { margin-left: 35%; } #no { margin-right: 35%; } } /*.pharmacy_header_menu ul li {*/ /* float: left;*/ /*}*/ </style> <style> .ra{ width: 60%; margin: auto; padding-bottom: 50px; } .ra_rd{ height: 40px; line-height: 40px; margin-left: 171px; font-size: 16px; margin-bottom: 20px; } .ra_rd_f{ width: 30%; float: left; } .ra_rd_f div{ width: 90%; float: right; } .psr_ra input,.psr_n input{ border: 1px solid #e0e0e0; width: 546px; padding: 10.6667px 10px; font-size: 16px; color: #333333; font-family: open sans; } #r_tel{ width: 356px; } .psr_ra_f,.psr_n_f{ margin-bottom: 30px; } .psr_n{ display: none; } .psr_n_t{ width:60%;height: 40px; line-height: 40px; font-size: 16px; margin: 30px auto 10px auto } .psr_n_r{ height: 40px; line-height: 40px; margin-left: 171px; font-size: 16px; margin-bottom: 20px; } .psr_n_r_f{ width: 15%; float: left; } .psr_n_r_f div{ width: 80%; float: right; } .psr_n_r_f input{ width: initial !important; } .error_msg{ text-align: center; margin-bottom: 10px; color: red; } #select_ul{ width: 188px; padding: 10.6667px 10px; border: 1px solid #e0e0e0; } @media only screen and (min-width: 1480px){ .psr_ra input,.psr_n input { width: 688px; } #r_tel{ width: 500px; } } </style> <style> #cover-jh{ position:fixed;left:0px;top:0px; background:rgba(0, 0, 0, 0.4); width:100%; /*宽度设置为100%,这样才能使隐藏背景层覆盖原页面*/ height:100%; filter:alpha(opacity=60); /*设置透明度为60%*/ opacity:0.8; /*非IE浏览器下设置透明度为60%*/ z-Index:999; } .alert-box-jh{ width: 500px; min-width: 500px; height: 403px; border-top: 3px #4fc2b8 solid; background: #fff; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; margin: auto; z-index: 99999; max-width: 90%; } .alert-box-jh i{ position: absolute; top: 0; right: 10px; font-family: "open sans", "Microsoft YaHei","微软雅黑", sans-serif; color: #333; font-size: 28px; cursor: pointer; } #s_fx_jh{ /*border: 1px solid red;*/ width: 85%; font-size: 18px; padding: 7.5% 3.5% 7% 3.5%; margin: auto; /*text-align: center;*/ word-break: break-word; line-height: 30px; } /*#s_fx_jh span{*/ /* display: block;*/ /* text-align: justify;*/ /*}*/ #s_fx_jh strong{ display: block; margin-bottom: 13px; } </style> <div id="cover-jh" style="display: none"></div> <div class="alert-box-jh" style="display: none"> <div class="s_fx_jh" id="s_fx_jh"> <strong>One More Step to Finalize Your Registration</strong> An activation link has been sent to your email address. Please check the email and activate your account now.<br> <span style="font-size: 15px;color: grey;display:block;line-height: 18px;padding-top: 8px">It might take few minutes to get the email. If you did not find it, please check your spam box.</span> <br> Having problem receiving the email? <a style="color: #4fc2b8;" data-id="" data-vec="" class="sa" href="javascript:void (0)" onclick="sa()">Send again</a> Still cannot receive? Contact us<br> Email :<a style="float: inherit;background-color: inherit;color: #4fc2b8;background-image: inherit;width: auto;height: auto;line-height: initial;margin-top: auto;display: initial;" href="mailto:PharmaSources@imsinoexpo.com">PharmaSources@imsinoexpo.com</a><br> Whatsapp :<a style="float: inherit;background-color: inherit;color: #4fc2b8;background-image: inherit;width: auto;height: auto;line-height: initial;margin-top: auto;display: initial;" href="https://wa.me/8613621645194?text=Hi%2C%20customer%20service.%20I%20need%20your%20help%20with%20registration." target="_blank">+86-13621645194</a> </div> <i class="close-alert-jh" onclick="" style="cursor: pointer">×</i> </div> <script> var sa_submit = true; function sa() { if (!sa_submit) { return false; } sa_submit = false; var id = $(".sa").data('id'); var vec = $(".sa").data('vec'); var url = "https://www.pharmasources.com/register/again/email"; common.requests(url, {'member_id': id,'is_vec':vec}, 'post', {}, function (res) { alert(res.msg); sa_submit = true; $("#cover-jh,.alert-box-jh").hide(); return true; }); } $(".close-alert-jh").click(function () { $(".alert-box-jh").hide(); }); </script><style type="text/css"> .alert-box-ap{ width: 450px; height: 230px; border-top:3px #4fc2b8 solid ; background: #fff; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; margin: auto; z-index: 9999; max-width: 90%; } .alert-box-ap i{ position: absolute; top: 0; right: 5px; font-family: "open sans", "Microsoft YaHei", "微软雅黑", sans-serif; color: #333; font-size: 25px; cursor: pointer; } #cover-ap{ position:fixed;left:0px;top:0px; background:rgba(0, 0, 0, 0.4); width:100%; /*宽度设置为100%,这样才能使隐藏背景层覆盖原页面*/ height:100%; filter:alpha(opacity=60); /*设置透明度为60%*/ opacity:0.8; /*非IE浏览器下设置透明度为60%*/ z-Index:999; } .alert-box-ap span{ position: absolute; top: 35px; /*left: 10px;*/ /*width: 355px;*/ height: 130px; font-size: 18px; color: #333; text-align: center; width: 94%; left: 3%; } .ta_fx-ap{ position: relative; top: 91px; left: 15px; width: 91%; /*color: #999999*/ } .ta_fx-ap input{ margin-right: 8px; } #yes-ap,#no-ap{ background: #4fc2b8; position: absolute; width: 80px; height: 36px; font-size: 18px; line-height: 36px; color: #fff; bottom: 20px; /*left: 137.5px;*/ text-align: center; cursor: pointer; /*margin-left: 112.5px;*/ /*border-radius:20px;*/ top: 155px; } #yes-ap{ left: 246px; } #no-ap{ right: 30px; } .ta_fx-ap .cd_lan{ color: #314eac !important; } </style> <div id="cover-ap" style="display: none"></div> <div class="alert-box-ap" style="display: none"> <span>The email address already exists.Please confirm below to sign in.</span> <div class="ta_fx-ap"> <input type="checkbox" class="input_checkbox-ap" value="1" name="privacy_web"> <input type="hidden" name="uid_ap" id="uid_ap" value=""> <input type="hidden" name="type_ap" id="type_ap" value=""> I would like to become member of PharmaSources.com and I have read and understood the <a href="https://www.pharmasources.com/information/privacy" target="_blank" class="cd_lan"><PrivacyPolicy></a> 、 <a href="https://www.pharmasources.com/information/terms" target="_blank" class="cd_lan"> <Terms of Service> </a> and <a href="https://www.pharmasources.com/information/DataSharingNotice" target="_blank" class="cd_lan"> <Event Data Sharing Notice> </a> </div> <i class="close-alert-ap" onclick="" style="cursor: pointer">×</i> <p id="yes-ap" onclick="reds_ap()" style="cursor: pointer">Yes</p> <p id="no-ap" class="close-alert-ap" onclick="" style="cursor: pointer">No</p> </div> <script> function reds_ap() { var uid = $("#uid_ap").val(); var type = $("#type_ap").val(); common.requests('https://www.pharmasources.com/jump/agree/ps', {'uid':uid,'type':type}, "POST", {}, function (res) { $('.input_checkbox-ap').attr('checked',false); if (res.code == 400) { alert(res.msg); return false; }else if(res.code == 200){ $("#cover-ap").css('display','none'); $(".alert-box-ap").css('display','none'); if(res.data.type == 38) { if (res.data.count == 1 || res.data.count == 2) { alert('Suppliers can not publish sourcing message'); $("#form input").each(function () { $(this).val(''); }); $(".pull-left-textarea").val(''); $(".product").empty(); $(".file-class").empty(); $(".num-class").text(0); $(".selector:first").prop("selected", 'selected'); $(".input_unit").removeAttr('id'); $("#definite_date_other").hide().css('margin-left', '0px'); $(".expected_quantity_form select option:first").prop("selected", 'selected'); var exdate = new Date(); exdate.setTime(-1000); document.cookie = 'product_name= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category_value= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description_other= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_unit= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_unit_value= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_other= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'valid_to= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_name_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category_value_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description_other_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_unit_value_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_other_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'valid_to_now= ;path=/;expires= ' + exdate.toGMTString(); window.location.href = '/'; }else{ alert("Login successfully."); } $("input[name='login']").val('1'); var str = '<img src="https://www.pharmasources.com/static/web/image/images/img_3_03.png" alt="">'; str += '<a class="temp_a" style="color:#4fc2b8;text-decoration: underline"'; if ((res.data.count == 1 || res.data.count == 2) && res.data.parameter == 1) { str += 'href="https://www.pharmasources.com/member/style" > '; } else { str += 'href="https://www.pharmasources.com/buyer/home" > '; } if (res.data.user) { str += res.data.user_name; } else { str += res.data.username; } str += '</a>'; str += '<a href="https://www.pharmasources.com/login/out">Log out</a>'; $(".pharmacy_header_sign").empty(); $(".pharmacy_header_sign").append(str); }else if(res.data.type == 57 || res.data.type == 56){ if((res.data.count == 1 || res.data.count == 2) && res.data.parameter == 1) { var quote = $(".quote").val(); var url = "https://www.pharmasources.com/buy/message-itemid-" + quote; window.location.href = url; }else{ $("#cover-ap").css('display','none'); $(".alert-box-ap").css('display','none'); alert('Only Verified Suppliers can reply sourcing requests.'); window.location.href = window.location.href; } } return true; } }); } $(".close-alert-ap").click(function(){ $('.input_checkbox-ap').attr('checked',false); $("#cover-ap").css('display','none'); $(".alert-box-ap").css('display','none'); }); $(".ta_fx-ap").click(function () { var check = $("input[type='checkbox']").is(':checked'); if(check){ $("#yes-ap").css('opacity',1).css('cursor','pointer').css('pointer-events','auto'); }else{ $("#yes-ap").css('opacity',0.5).css('cursor','auto').css('pointer-events','none'); } }); </script> <div id="cover" style="display: none"></div> <div class="alert-box_login" style="display: none"> <div class="login-top"> <span><strong>Sign In</strong></span> <i class="close-alert_login" onclick="" style="cursor: pointer;position: absolute;right: 10px;font-size: 30px;color: #b8b8b8">×</i> </div> <hr> <form id="login_form"> <input type="hidden" name="_token" value="zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9"> <div class="login_k"> <div class="w"> <div class="login_nr"> <div class="d2"> <ul class="fo_login"> <li class="form-group"> <span class="s_name">Email Address or Username</span> <input class="form-control tx_dl new_login_input" name="username" type="text" value=""> </li> <li class="form-group"> <span class="s_name left new_login">Password</span> <a target="_blank" href="https://www.pharmasources.com/forget" class="cd_lv right new_login">Forgot your password?</a> <input class="form-control tx_dl" name="password" type="password" autocomplete="new-password" value=""> </li> <li style="text-align: center"> <button style="height: 38px;border-radius: 0" type="button" class="btn an_lv sign_btn">Sign In</button> </li> <li> <span class="right">New User? <a href="https://www.pharmasources.com/register?qg=psr" class="cd_lv">Join Free</a></span> </li> </ul> </div> </div> <div class="clearfix"></div> </div> </div> </form> </div> <body style="background-color:#f0f1f2"> <div class="product"> </div> <div class="chat-box"> <div class="title-class">Sourcing Request</div> <hr> <div class="form-class"> <form id="form"> <div class="form-item clearfix clearfix-form product_name_form"> <span class="form-span"><span class="required-logo">*</span>Product Name:</span> <div class="pull-left"> <input type="text" name="product_name" class="input product_name_input" value=""> </div> <small hidden class="pnf_one"><img src="/static/images/jz.png">Please enter product name</small> <small hidden class="pnf_two"><img src="/static/images/jz.png">Please enter less than 200 characters.</small> </div> <div class="form-item clearfix clearfix-form product_category_form" style="position: relative"> <span class="form-span"><span class="required-logo">*</span>Product Category:</span> <div class="pull-left"> <input type="text" name="category_id" data-id="" class="input category_id_input" autocomplete="off" value="" readonly> <input type="hidden" name="category_id_value" data-id="" class="input category_id_input_value" value=""> </div> <small hidden><img src="/static/images/jz.png">Please select product category</small> <div class="alert-box" style="display: none"> <div class="alert-box-title"> <span>SELECT CATLCORY</span> <i class="close-alert" onclick="" style="cursor: pointer">×</i> </div> <div class="alert-box-center"> <div class="alert-box-center-ul1" style="border-left: none"> <ul> <li data-value="4">Active Pharmaceutical Ingredients</li> <li data-value="25">Intermediates</li> <li data-value="355">Fine Chemicals</li> <li data-value="29">Excipients</li> <li data-value="75">Natural Extracts</li> <li data-value="78">Finished Dosage</li> <li data-value="104">Bio Products</li> <li data-value="128">Outsourcing Contract, Custom service, Consultation</li> <li data-value="471">Custom Manufacturing</li> <li data-value="800">Veterinary</li> <li data-value="162">API Equipment</li> <li data-value="178">Preparation Equipment</li> <li data-value="212">Pharmaceutical Packaging Machinery</li> <li data-value="802">Laboratory</li> <li data-value="801">Packaging Materials</li> <li data-value="248">Cleanroom System</li> <li data-value="2565">Environmental protection</li> <li data-value="243">Water Purification Equipment</li> <li data-value="262">Refrigeration Equipment</li> <li data-value="282">Fluid Equipment</li> <li data-value="2535">Auxiliary Equipment</li> <li data-value="269">Parts and Components</li> <li data-value="2570">Automation & Informatization Products</li> <li data-value="776">Logistics</li> <li data-value="230">TCM Machinery</li> <li data-value="3001">Medical Supplies</li> <li data-value="3073">Food Additive</li> </ul> </div> <div hidden class="alert-box-center-ul2" style="border-left: none"> <ul> </ul> </div> <div hidden class="alert-box-center-ul3" style="border-left: none"> <ul> </ul> </div> </div> <div class="alert-box-bottom"> <button type="button" id="yes" style="cursor: pointer">Select</button> <button type="button" id="no" class="close-alert" onclick="" style="cursor: pointer">Cancel </button> </div> </div> </div> <div class="form-item clearfix clearfix-form product_description_form"> <span class="form-span"><span class="required-logo">*</span>Description:</span> <div class="pull-left"> <textarea class="pull-left-textarea" style="display:block; height:150px; overflow:auto;border: 1px solid #e0e0e0;padding: 10px;font-size: 17px" name="prodDesc" placeholder="Please indicate your detailed requirements to ensure fast and efficient responses from suppliers. You may include: Self Introduction/ Document or Certificate Requirement/ Product Specification/ Packing Requirement/ Payment Terms and etc."></textarea> <div class="file-box" id="profile-container" style="border: 1px solid #e0e0e0;border-top:none;background-color: #FAFAFA;text-align: left;padding: 15px 0 15px 15px;"> <i class="micon"><img src="/static/images/fj.png"/></i> <span class="tip" id="xsztip" style="color: #F79131;cursor:pointer">Upload Images / Files</span> <span hidden class="tip" id="xsztip_copay" style="color: #F79131;cursor:pointer">Upload Images / Files</span> <div class="content"> <span>- Supports jpg, jpeg, png,<br> gif, pdf, doc, docx,<br> xls, xlsx, txt, rar and zip<br>- Max upload 3 files;<br> Max total size: 3MB</span> </div> <span style="color: #F79131" id="J-upload-progress"> (<span class="num-class"> 0 </span>/3)</span> <div class="file-class"> </div> </div> </div> <small hidden class="small-textarea"><img src="/static/images/jz.png">Please enter product description </small> </div> <div class="form-item clearfix clearfix-form expected_quantity_form"> <span class="form-span"><span class="required-logo">*</span>Purchase Quantity:</span> <div class="pull-left"> <input type="text" name="definite_date" class="input input_unit" value=""> <select name="unit" class="input selector"> <option value="1" selected >FCL</option> <option value="2" >FCL 20'</option> <option value="3" >FCL 40'</option> <option value="4" >Milligram(s)</option> <option value="5" >Gram(s)</option> <option value="6" >Kilogram(s)</option> <option value="7" >Ton(s)</option> <option value="8" >Metric Ton(s)</option> <option value="9" >Milliliter(s)</option> <option value="10" >Liter(s)</option> <option value="11" >Unit(s)</option> <option value="12" >Piece(s)</option> <option value="13" >Set(s)</option> <option value="14" >Line(s)</option> <option value="15" >Vial(s)</option> <option value="16" >Bag(s)</option> <option value="17" >Bottle(s)</option> <option value="18" >Box(es)</option> <option value="19" >Drum(s)</option> <option value="20" >Meter(s)</option> <option value="21" >Other</option> </select> <input hidden type="text" name="definite_date_other" id="definite_date_other" class="input" value=""> </div> <small hidden><img src="/static/images/jz.png">Please enter expected quantity</small> <div class="small-1" hidden><img src="/static/images/jz.png">Please enter the unit of measurement.</div> </div> <div class="form-item clearfix clearfix-form valid_to_form"> <span class="form-span"><span class="required-logo">*</span>Valid To:</span> <div class='input-group date' id="get_date_time"> <input maxlength="0" type='text' name="get_date" class="form-control valid_to_input get_date" id="time" value="" /> </div> <small hidden><img src="/static/images/jz.png">Please select valid to date.</small> </div> <div class="form-item clearfix clearfix-form"> <div class="add-class">+Add More</div> </div> </form> </div> <div class="ra"> <div class="ra_rd"> <div class="ra_rd_f"><input type="radio" name="type" value="1" checked><div>Registered account</div></div> <div class="ra_rd_f"><input type="radio" name="type" value="2"><div>Nonregistered</div></div> </div> <div class="psr_ra"> <div class="psr_ra_f"> <span class="form-span" style="margin-top: 0;"><span class="required-logo">*</span>Email Address or Username:</span> <div> <input type="text" name="uemail"> </div> </div> <div class="psr_ra_f" style="clear: both"> <span class="form-span"><span class="required-logo">*</span>Password:</span> <div> <input type="password" name="pwd"> </div> </div> </div> <div class="psr_n"> <div class="psr_n_f"> <span class="form-span"><span class="required-logo">*</span>Your name:</span> <div> <input type="text" name="r_username"> </div> </div> <div class="psr_n_f" style="clear: both"> <span class="form-span"><span class="required-logo">*</span>Company name:</span> <div> <input type="text" name="r_company"> </div> </div> <div class="psr_n_f" style="clear: both"> <span class="form-span"><span class="required-logo">*</span>Email:</span> <div> <input type="email" name="r_email"> </div> </div> <div class="psr_n_f" style="clear: both"> <span class="form-span"><span class="required-logo">*</span>Tel:</span> <div> <select name="r_tel_code" id="select_ul" style="max-height:270px;height:auto"> <option value="+93">+93 (Afghanistan)</option> <option value="+358-18">+358-18 (Åland Islands)</option> <option value="+355">+355 (Albania)</option> <option value="+213">+213 (Algeria)</option> <option value="+1-684">+1-684 (American Samoa)</option> <option value="+376">+376 (Andorra)</option> <option value="+244">+244 (Angola)</option> <option value="+1-264">+1-264 (Anguilla)</option> <option value="+1-268">+1-268 (Antigua & Barbuda)</option> <option value="+54">+54 (Argentina)</option> <option value="+374">+374 (Armenia)</option> <option value="+297">+297 (Aruba)</option> <option value="+247">+247 (Ascension Island)</option> <option value="+61">+61 (Australia)</option> <option value="+43">+43 (Austria)</option> <option value="+994">+994 (Azerbaijan)</option> <option value="+374">+374 (Azerbaijan)</option> <option value="+1-242">+1-242 (Bahamas)</option> <option value="+973">+973 (Bahrain)</option> <option value="+880">+880 (Bangladesh)</option> <option value="+1-246">+1-246 (Barbados)</option> <option value="+375">+375 (Belarus)</option> <option value="+32">+32 (Belgium)</option> <option value="+501">+501 (Belize)</option> <option value="+229">+229 (Benin)</option> <option value="+1-441">+1-441 (Bermuda)</option> <option value="+975">+975 (Bhutan)</option> <option value="+591">+591 (Bolivia)</option> <option value="+599-7">+599-7 (Bonaire)</option> <option value="+387">+387 (Bosnia & Herzegovina)</option> <option value="+267">+267 (Botswana)</option> <option value="+55">+55 (Brazil)</option> <option value="+246">+246 (British Indian Ocean Territory)</option> <option value="+1-284">+1-284 (British Virgin Islands)</option> <option value="+673">+673 (Brunei)</option> <option value="+359">+359 (Bulgaria)</option> <option value="+226">+226 (Burkina Faso)</option> <option value="+257">+257 (Burundi)</option> <option value="+855">+855 (Cambodia)</option> <option value="+237">+237 (Cameroon)</option> <option value="+1">+1 (Canada)</option> <option value="+238">+238 (Cape Verde)</option> <option value="+1-345">+1-345 (Cayman Islands)</option> <option value="+236">+236 (Central African Republic)</option> <option value="+235">+235 (Chad)</option> <option value="+56">+56 (Chile)</option> <option value="+86">+86 (China Mainland)</option> <option value="+61">+61 (Christmas Island)</option> <option value="+61">+61 (Cocos (Keeling) Islands)</option> <option value="+57">+57 (Colombia)</option> <option value="+269">+269 (Comoros)</option> <option value="+242">+242 (Congo - Brazzaville)</option> <option value="+243">+243 (Congo - Kinshasa)</option> <option value="+682">+682 (Cook Islands)</option> <option value="+506">+506 (Costa Rica)</option> <option value="+225">+225 (Côte d’Ivoire)</option> <option value="+385">+385 (Croatia)</option> <option value="+53">+53 (Cuba)</option> <option value="+599-9">+599-9 (Curaçao)</option> <option value="+357">+357 (Cyprus)</option> <option value="+420">+420 (Czechia)</option> <option value="+850">+850 (Democratic People's Republic of Korea)</option> <option value="+45">+45 (Denmark)</option> <option value="+253">+253 (Djibouti)</option> <option value="+1-767">+1-767 (Dominica)</option> <option value="+1-809">+1-809 (Dominican Republic)</option> <option value="+593">+593 (Ecuador)</option> <option value="+20">+20 (Egypt)</option> <option value="+503">+503 (El Salvador)</option> <option value="+240">+240 (Equatorial Guinea)</option> <option value="+291">+291 (Eritrea)</option> <option value="+372">+372 (Estonia)</option> <option value="+268">+268 (Eswatini)</option> <option value="+251">+251 (Ethiopia)</option> <option value="+500">+500 (Falkland Islands (Islas Malvinas))</option> <option value="+298">+298 (Faroe Islands)</option> <option value="+679">+679 (Fiji)</option> <option value="+358">+358 (Finland)</option> <option value="+33">+33 (France)</option> <option value="+594">+594 (French Guiana)</option> <option value="+689">+689 (French Polynesia)</option> <option value="+241">+241 (Gabon)</option> <option value="+220">+220 (Gambia)</option> <option value="+995">+995 (Georgia)</option> <option value="+49">+49 (Germany)</option> <option value="+233">+233 (Ghana)</option> <option value="+350">+350 (Gibraltar)</option> <option value="+30">+30 (Greece)</option> <option value="+299">+299 (Greenland)</option> <option value="+1-473">+1-473 (Grenada)</option> <option value="+590">+590 (Guadeloupe)</option> <option value="+1-671">+1-671 (Guam)</option> <option value="+502">+502 (Guatemala)</option> <option value="+44-1481">+44-1481 (Guernsey)</option> <option value="+224">+224 (Guinea)</option> <option value="+245">+245 (Guinea-Bissau)</option> <option value="+592">+592 (Guyana)</option> <option value="+509">+509 (Haiti)</option> <option value="+504">+504 (Honduras)</option> <option value="+852">+852 (Hong Kong, S.A.R., China)</option> <option value="+36">+36 (Hungary)</option> <option value="+354">+354 (Iceland)</option> <option value="+91">+91 (India)</option> <option value="+62">+62 (Indonesia)</option> <option value="+98">+98 (Iran)</option> <option value="+964">+964 (Iraq)</option> <option value="+353">+353 (Ireland)</option> <option value="+44-1624">+44-1624 (Isle of Man)</option> <option value="+972">+972 (Israel)</option> <option value="+39">+39 (Italy)</option> <option value="+1-876">+1-876 (Jamaica)</option> <option value="+81">+81 (Japan)</option> <option value="+44-1534">+44-1534 (Jersey)</option> <option value="+962">+962 (Jordan)</option> <option value="+7">+7 (Kazakhstan)</option> <option value="+254">+254 (Kenya)</option> <option value="+686">+686 (Kiribati)</option> <option value="+383">+383 (Kosovo)</option> <option value="+965">+965 (Kuwait)</option> <option value="+996">+996 (Kyrgyzstan)</option> <option value="+856">+856 (Laos)</option> <option value="+371">+371 (Latvia)</option> <option value="+961">+961 (Lebanon)</option> <option value="+266">+266 (Lesotho)</option> <option value="+231">+231 (Liberia)</option> <option value="+218">+218 (Libya)</option> <option value="+423">+423 (Liechtenstein)</option> <option value="+370">+370 (Lithuania)</option> <option value="+352">+352 (Luxembourg)</option> <option value="+853">+853 (Macau, S.A.R., China)</option> <option value="+261">+261 (Madagascar)</option> <option value="+265">+265 (Malawi)</option> <option value="+60">+60 (Malaysia)</option> <option value="+960">+960 (Maldives)</option> <option value="+223">+223 (Mali)</option> <option value="+356">+356 (Malta)</option> <option value="+692">+692 (Marshall Islands)</option> <option value="+596">+596 (Martinique)</option> <option value="+222">+222 (Mauritania)</option> <option value="+230">+230 (Mauritius)</option> <option value="+262">+262 (Mayotte)</option> <option value="+52">+52 (Mexico)</option> <option value="+691">+691 (Micronesia)</option> <option value="+373">+373 (Moldova)</option> <option value="+377">+377 (Monaco)</option> <option value="+976">+976 (Mongolia)</option> <option value="+382">+382 (Montenegro)</option> <option value="+1-664">+1-664 (Montserrat)</option> <option value="+212">+212 (Morocco)</option> <option value="+258">+258 (Mozambique)</option> <option value="+95">+95 (Myanmar (Burma))</option> <option value="+264">+264 (Namibia)</option> <option value="+674">+674 (Nauru)</option> <option value="+977">+977 (Nepal)</option> <option value="+31">+31 (Netherlands)</option> <option value="+687">+687 (New Caledonia)</option> <option value="+64">+64 (New Zealand)</option> <option value="+505">+505 (Nicaragua)</option> <option value="+227">+227 (Niger)</option> <option value="+234">+234 (Nigeria)</option> <option value="+683">+683 (Niue)</option> <option value="+672-3">+672-3 (Norfolk Island)</option> <option value="+389">+389 (North Macedonia)</option> <option value="+1-670">+1-670 (Northern Mariana Islands)</option> <option value="+47">+47 (Norway)</option> <option value="+968">+968 (Oman)</option> <option value="+0">+0 (Other)</option> <option value="+92">+92 (Pakistan)</option> <option value="+680">+680 (Palau)</option> <option value="+970">+970 (Palestine)</option> <option value="+507">+507 (Panama)</option> <option value="+675">+675 (Papua New Guinea)</option> <option value="+595">+595 (Paraguay)</option> <option value="+51">+51 (Peru)</option> <option value="+63">+63 (Philippines)</option> <option value="+64">+64 (Pitcairn Islands)</option> <option value="+48">+48 (Poland)</option> <option value="+351">+351 (Portugal)</option> <option value="+1-787">+1-787 (Puerto Rico)</option> <option value="+974">+974 (Qatar)</option> <option value="+82">+82 (Republic of Korea)</option> <option value="+262">+262 (Réunion)</option> <option value="+40">+40 (Romania)</option> <option value="+7">+7 (Russia)</option> <option value="+250">+250 (Rwanda)</option> <option value="+599-4">+599-4 (Saba)</option> <option value="+685">+685 (Samoa)</option> <option value="+378">+378 (San Marino)</option> <option value="+239">+239 (São Tomé & Príncipe)</option> <option value="+966">+966 (Saudi Arabia)</option> <option value="+221">+221 (Senegal)</option> <option value="+381">+381 (Serbia)</option> <option value="+248">+248 (Seychelles)</option> <option value="+232">+232 (Sierra Leone)</option> <option value="+65">+65 (Singapore)</option> <option value="+599-3">+599-3 (Sint Eustatius)</option> <option value="+1-721">+1-721 (Sint Maarten)</option> <option value="+421">+421 (Slovakia)</option> <option value="+386">+386 (Slovenia)</option> <option value="+677">+677 (Solomon Islands)</option> <option value="+252">+252 (Somalia)</option> <option value="+27">+27 (South Africa)</option> <option value="+500">+500 (South Georgia and the South Sandwich Islands)</option> <option value="+211">+211 (South Sudan)</option> <option value="+34">+34 (Spain)</option> <option value="+94">+94 (Sri Lanka)</option> <option value="+590">+590 (St. Barthélemy)</option> <option value="+290">+290 (St. Helena)</option> <option value="+1-869">+1-869 (St. Kitts & Nevis)</option> <option value="+1-758">+1-758 (St. Lucia)</option> <option value="+590">+590 (St. Martin)</option> <option value="+508">+508 (St. Pierre & Miquelon)</option> <option value="+1-784">+1-784 (St. Vincent & Grenadines)</option> <option value="+249">+249 (Sudan)</option> <option value="+597">+597 (Suriname)</option> <option value="+47">+47 (Svalbard & Jan Mayen)</option> <option value="+46">+46 (Sweden)</option> <option value="+41">+41 (Switzerland)</option> <option value="+963">+963 (Syria)</option> <option value="+886">+886 (Taiwan, China)</option> <option value="+992">+992 (Tajikistan)</option> <option value="+255">+255 (Tanzania)</option> <option value="+66">+66 (Thailand)</option> <option value="+670">+670 (Timor-Leste)</option> <option value="+228">+228 (Togo)</option> <option value="+690">+690 (Tokelau)</option> <option value="+676">+676 (Tonga)</option> <option value="+1-868">+1-868 (Trinidad & Tobago)</option> <option value="+290-8">+290-8 (Tristan da Cunha)</option> <option value="+216">+216 (Tunisia)</option> <option value="+90">+90 (Turkey)</option> <option value="+993">+993 (Turkmenistan)</option> <option value="+1-649">+1-649 (Turks & Caicos Islands)</option> <option value="+688">+688 (Tuvalu)</option> <option value="+1-340">+1-340 (U.S. Virgin Islands)</option> <option value="+256">+256 (Uganda)</option> <option value="+380">+380 (Ukraine)</option> <option value="+971">+971 (United Arab Emirates)</option> <option value="+44">+44 (United Kingdom)</option> <option value="+1">+1 (United States)</option> <option value="+598">+598 (Uruguay)</option> <option value="+998">+998 (Uzbekistan)</option> <option value="+678">+678 (Vanuatu)</option> <option value="+379">+379 (Vatican)</option> <option value="+58">+58 (Venezuela)</option> <option value="+84">+84 (Vietnam)</option> <option value="+681">+681 (Wallis and Futuna)</option> <option value="+967">+967 (Yemen)</option> <option value="+381">+381 (Yugoslavia)</option> <option value="+260">+260 (Zambia)</option> <option value="+255-24">+255-24 (Zanzibar)</option> <option value="+263">+263 (Zimbabwe)</option> </select> <input type="text" name="r_tel" id="r_tel"> </div> </div> <div style="clear: both"> <div class="psr_n_t">Would you like to become a member of PharmaSources?</div> <div class="psr_n_r"> <div class="psr_n_r_f"><input type="radio" name="agree_ps" value="1" checked><div>Yes</div></div> <div class="psr_n_r_f"><input type="radio" name="agree_ps" value="2"><div>No</div></div> </div> </div> </div> </div> </div> <div class="error_msg"></div> <div class="form-button-item clearfix clearfix-class" style="width: 100%;text-align: center;min-width: 1200px;"> <button style="width: 10%;margin-bottom: 50px;height: 41px;background-color: #F79131;color: white;border: none;font-size: 16px;" type="submit" class="button" id="submit-btn">Submit </button> </div> <input type="hidden" name="login" value=""> <!-- 页面底部 --> <link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/footer.min.css?1746496135" type="text/css"> <div style="width: 100%;background: #f0f1f2;padding-bottom:30px; " class="bottom_logo"> <div class="footer-logo-box" style="margin: 0 auto"> <img src="/static/web/image/bottomnew/bn-09.png" alt=""> </div> </div> <div id="index_header_ad"> <div class="index_header_ad"> <div class="ind_hea_ad_content"> <div class="ind_hea_ad_con_left"> <img src="https://www.pharmasources.com/static/web/image/images/logo.png" /> <p style="font-weight: bold;color: #666;">Contact Us</p> <p><a style="color: #9f9f9f;" href="mailto:PharmaSources@imsinoexpo.com">PharmaSources@imsinoexpo.com</a></p> <p>Tel: (+86) 400 610 1188</p> <p>WhatsApp/Telegram/Wechat: +86 13621645194</p> </div> <div class="ind_hea_ad_con_right"> <dl> <dt><a >About Us</a></dt> <dd><a href="https://www.pharmasources.com/service/overview" target="_blank" >About PharmaSources</a></dd> <dd><a href="https://www.pharmasources.com/information/terms" target="_blank" rel="nofollow">Terms of Service</a></dd> <dd><a href="https://www.pharmasources.com/information/privacy" target="_blank" rel="nofollow">Privacy Policy</a></dd> <dd><a href="https://www.pharmasources.com/information/DataSharingNotice" target="_blank" rel="nofollow">Event Data Sharing Notice</a></dd> <dd><a href="https://www.pharmasources.com/information/intellectual" target="_blank">Intellectual Property</a></dd> <dd><a href="https://www.pharmasources.com/media" target="_blank">Media Partners</a></dd> </dl> <dl> <dt><a >Buy</a></dt> <dd><a href="https://www.pharmasources.com/products" target="_blank">Search Products</a></dd> <dd><a href="https://www.pharmasources.com/buy/buyer.html" target="_blank">Post Sourcing Requests</a></dd> <dd><a href="https://www.pharmasources.com/suppliers" target="_blank">Search Suppliers</a></dd> <dd><a href="https://www.pharmasources.com/cas" target="_blank">CAS Search</a></dd> </dl> <dl> <dt><a >Sell</a></dt> <dd><a href="https://www.pharmasources.com/service/supplier-membership" target="_blank">Member Application</a></dd> <dd><a href="https://www.pharmasources.com/service/supplier-membership" target="_blank">Advertising</a></dd> <dd><a href="https://www.pharmasources.com/products" target="_blank">Post Products</a></dd> <dd><a href="https://www.pharmasources.com/buy" target="_blank">EZSourcing</a></dd> </dl> <dl> <dt><a>Events</a></dt> <dd><a href="https://www.pharmasources.com/cphi-china" target="_blank">CPHI China</a></dd> <dd><a href="http://en.pmecchina.com/" target="_blank">PMEC China</a></dd> <dd><a href="https://www.cphi-china.cn/en/newconferences" target="_blank">Conferences</a></dd> <dd><a href="https://www.pharmasources.com/events" target="_blank">Search Events</a></dd> </dl> <dl class="d1"> <dt><a >Help</a></dt> <dd><a href="https://www.pharmasources.com/information/faq" target="_blank">FAQ</a></dd> <dd><a href="https://www.pharmasources.com/information/contact" target="_blank">Contact Us</a></dd> <dd><a href="http://cphi0000.mikecrm.com/357e7Sz" rel="nofollow" target="_blank">Feedback</a></dd> </dl> <div class="clear"></div> </div> <div class="clear"></div> </div> </div> </div> <script> </script><link rel="stylesheet" href="https://www.pharmasources.com/static/web/css/footer.min.css?1746496135" type="text/css"> <div id="index_header"> <div class="index_header"> <ul> <li class="li1"> <a>Copyright 2006-2025</a> <a>Shanghai Sinoexpo Informa Markets</a> <a>International Exhibition Co. Ltd (All Rights Reserved)</a> <a href="https://beian.miit.gov.cn" rel="nofollow" target="_blank">沪ICP备05034851号-182</a> <a style="background: url('/static/ba.png') no-repeat;padding-left: 23px" href=https://beian.mps.gov.cn/#/query/webSearch?code=31010402010101 rel="noreferrer" target="_blank">沪公网安备31010402010101号</a> </li> <li class="li2"> <a>Links:</a> <div> <a href="http://en.cccmhpie.org.cn/" >CCCMHPIE</a> <a href="http://www.en-sjgle.com/" >SJGLE.com</a> <a href="https://en.jiagle.com/furniture/" >JJGLE.COM</a> <a href="https://en.jiagle.com/hotelex/" >JDGLE.COM</a> <a href="https://en.jiagle.com/leisure/" >XIUGLE.COM</a> <a href="https://en.jiagle.com/lighting/" >DENGGLE.COM</a> <a href="https://en.jiagle.com/cs/" >HPGLE.COM</a> </div> </li> <li class="li3"> <p>Follow Us:</p> <a href="https://www.facebook.com/Pharmasources" target="_blank"><img src="https://www.pharmasources.com/static/web/image/images/follow_1.png" alt=""></a> <a href="https://twitter.com/Pharmachina365" target="_blank"><img src="https://www.pharmasources.com/static/web/image/images/follow_2.png" alt=""></a> <a href="https://www.linkedin.com/company/13436110" target="_blank"><img src="https://www.pharmasources.com/static/web/image/images/follow_4.png" alt=""></a> <a href="https://t.me/PharmaSourcesCPhI" target="_blank"><img src="https://www.pharmasources.com/static/web/image/images/22221.png" alt=""></a> </li> <li class="li4"> <img src="https://eimg.pharmasources.com/image/20250109/FtGehkQTEipinBJ6ximQoTtLdCDu5nY24ojI7n2Z.png!145" alt="CPHI logo"> Pharma Sources Insight January 2025 </li> </ul> </div> </div> <input type="hidden" name='getUser_url' value="https://www.pharmasources.com/getUserInfo"> <input type="hidden" name='csrf_token' value="zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9"> <script src="https://www.pharmasources.com/static/web/js/getUserInfo.js?1746496135"></script> <script src="https://www.pharmasources.com/static/web/js/swiper.min.js?1746496135"></script> <script> // 頂部點擊事件 $('.pharmacy_top input').attr('placeholder', 'Search ' + $(".pharmacy_header_select").attr('data-place')); $('.pharmacy_header_select_all li').on('click', function () { if (!$(this).hasClass('pharmacy_header_select')) { $(this).addClass('pharmacy_header_select') .siblings('li').removeClass('pharmacy_header_select'); $('.pharmacy_top input').attr('placeholder', 'Search ' + $(this).attr('data-place')); } }); // $(".pharmacy_tabs_select li").click(function () { // $(this).addClass("pharmacy_tabs_selects"); // $(this).siblings().removeClass("pharmacy_tabs_selects"); // var index = $(this).index(); // $(".pharmacy_tabs_content").hide().eq(index).show(); // $(".pharmacy_tabs_content").removeClass("on").eq(index).addClass("on"); // }); var searchList = { 'areaCountry': 1, 'areaProvince': 1, 'type': 1, 'shopLimit': 1, 'orders': 1, 'medicine': 1, 'catid': 1, 'areaids': 1, 'page': 1, 'limits': 1, 'userType': 1, 'searchKey': 1 }; //首页搜索 $("#search-input").keydown(function (e) { var vals = $("#search-input").val(); // vals = vals.replace('/%/g','%25',vals) var reg = new RegExp('%','g'); vals = vals.replace(reg,'%25'); if(vals.substr(vals.length-1,1) == '-'){ vals= vals.substring(0, vals.length - 1); } searchKeyup(vals, e); }); $(".search-img").click(function () { var vals = $("#search-input").val(); // vals = vals.replace('%','%25',vals) vals = vals.replace(/%/g, '%25'); if(vals.substr(vals.length-1,1) == '-'){ vals= vals.substring(0, vals.length - 1); } searchIcon(vals); }); $("#search-input").click(function () { var search_data = $('#search-input').val(); //去除两端空格 search_data = search_data.replace(/^\s+|\s+$/g,''); if (search_data){ return; } var data_value = $(".pharmacy_header_select").attr("data-value"); if (data_value == "product") { $(".association_product").show(); $(".association_supplier").hide(); } if (data_value == "suppliers") { $(".association_product").hide(); $(".association_supplier").show(); } if (data_value == "ezs") { $(".association_product").show(); $(".association_supplier").hide(); } }) function searchKeyup(val, e, searchClass) { if (e.keyCode == 13) { var vals = val; if (vals) { // common.setCookie("searchKey", vals, 10000); // document.cookie = "searchKey="+vals; var data_value = $(".pharmacy_header_select").attr("data-value"); if (data_value == "product" || searchClass == 'product') { window.location.href = "https://www.pharmasources.com/products/searchKey-" + vals; } if (data_value == "suppliers") { window.location.href = "https://www.pharmasources.com/suppliers/searchKey-" + vals; } if (data_value == "ezs") { var html = "/searchKey-" + vals; window.location.href = "https://www.pharmasources.com/buy" + html; } } else { return false; } } } function searchIcon(val, searchClass) { var vals = encodeURIComponent(val); if (vals) { //清除cookie common.setCookie("selectPid", null, 0); common.setCookie("selectSid", null, 0); // common.setCookie("searchKey", vals, 10000); //document.cookie = "searchKey="+vals; // vals = vals.slice(0, 1).toUpperCase() + vals.slice(1); // vals = common.replaceAll('-','_',vals); var data_value = $(".pharmacy_header_select").attr("data-value"); if (data_value == "product" || searchClass == 'product') { var url = "https://www.pharmasources.com/products/searchKey-" + vals; window.location.href = "https://www.pharmasources.com/products/searchKey-" + vals; } if (data_value == "suppliers") { window.location.href = "https://www.pharmasources.com/suppliers/searchKey-" + vals; } if (data_value == "ezs") { var html = "/searchKey-" + vals; window.location.href = "https://www.pharmasources.com/buy" + html; } } else { return false; } } function removePage() { var prams = ""; var currPage = ""; if (prams && currPage) { prams = prams.replace('-page-' + currPage, ''); prams = prams.replace('page-' + currPage, ''); } return prams; } // 下拉框 $('.sel_dx1').on('click', function () { $('.pharmacy_select_1 ').toggleClass('dis_none'); }); $(".pharmacy_select_1 ul li").on('click', function () { $('.pharmacy_select_1 ').toggleClass('dis_none'); $('.sel_dx1').val($(this).text()) }); // 下拉框 $('.pharmacy_input4').on('click', function () { $('.pharmacy_select_1 ').toggleClass('dis_none'); }); $('.pharmacy_input3').on('click', function () { $('.pharmacy_select_1 ').toggleClass('dis_none'); }); $(document).click(function (event) { var _con = $('.sel_dx'); if (!_con.is(event.target) && _con.has(event.target).length === 0) { $('.pharmacy_select_1 ').addClass('dis_none'); } }); $(function () { if ($(".pharmacy_header_select").attr("data-value") == "ezs") { var vals = $("#search-input").val(); if (vals) { var strings = common.getCookie('searchKey') if (strings) { if (strings.indexOf(vals != -1)) { $("#search-input").val(strings) } } } } }) </script><!-- 一键聊天--> <style> #onlineService a{ display:block; width:120px; height:120px; } #li_3_image { /* position: fixed; */ /* bottom: 3%; */ width: 250px; height: 280px; right: 41px; z-index: 999999; /* top: -171%; */ position: absolute; top: -116px; } #li_3_image-1 { /* position: fixed; */ /* bottom: 3%; */ width: 250px; height: 280px; right: 41px; z-index: 999999; /* top: -171%; */ position: absolute; top: -116px; } #li_3_image-2 { width: 250px; height: 48px; right: 48px; z-index: 999999; position: absolute; top: 0px; background:#207b81; color: white; line-height: 48px; border-radius: 12px; opacity: 0.75; } #li_3_image-3 { width: 250px; height: 48px; right: 48px; z-index: 999999; position: absolute; top: 0px; background:#207b81; color: white; line-height: 48px; border-radius: 12px; font-size: 15px; opacity: 0.75; } #li_3_image-4 { width: 250px; height: 48px; right: 48px; z-index: 999999; position: absolute; top: 0px; background:#207b81; color: white; line-height: 48px; border-radius: 12px; font-size: 15px; opacity: 0.75; } .close_what{ position: absolute; color:#4fc2b8; width:30px; height:30px; top: 10px; right: 20px; background-color: white; background: url(/static/web/image/close.png)no-repeat center; background-size: 12px; background-position: 18px 15px; opacity: .8; } .close_what:hover{ opacity: 1.2; } #onlineService { position: fixed; right: 0; bottom: 8%; top:58% z-index: 100998 } #onlineService { position: fixed; z-index: 100998; } /*.offside {*/ /* width: 50px*/ /*}*/ .offside li { width: 50px; height: 45px; position: relative; background: #b1b1b1; overflow: hidden; text-align: center; transition: all .7s; -webkit-transition: all .7s } .offside .code { position: absolute; top: 0; right: 50px; display: none; margin: 0 } .offside a, .offside div { color: #333; position: absolute; z-index: 11; display: block; top: 0; right: 0; bottom: 0; cursor: pointer } .offside p { float: left; line-height: 50px; height: 50px; font-size: 16px; font-weight: 700; padding: 0 0 0 10px; color: #fff; opacity: 0; overflow: hidden } .offside .icon { font-size: 28px; height: 100%; line-height: 50px; text-align: center; display: block; color: #fff } .offside li:not(.li_3) a, .offside li:not(.li_3) div { left: 0 } .offside .li_3 a, .offside .li_3 div { width: 50px } .offside li.email { overflow: visible } .offside li:hover .email-box { display: block !important } .offside li:hover a { color: #333 } .offside li .email-box { position: absolute; background: #d5d5d5; right: 100%; top: 0; left: auto !important; padding: 10px 5px; border-right: 2px solid #fff; height: 99px; display: none } .offside li .email-box a { display: block; font-size: 14px; color: #fff !important; position: static; white-space: nowrap; text-align: left; margin-bottom: 10px } .offside li .email-box a:hover { color: #4fc2b8 !important } .offside li:nth-child(odd) { background: #d5d5d5 } .offside li:nth-child(odd) .icon { color: #4fc2b8 } .offside li:nth-child(even) { background: #4fc2b8 } .offside li:nth-child(even) .icon { color: #fff } .offside li:nth-child(4) { overflow: visible } .offside li:nth-child(4):hover img { display: block } .offside li:nth-child(7) { display: none } .offside li:nth-child(10) { height: 20px } .offside li:nth-child(10) .icon { line-height: 20px; display: none } .offside li:hover a, .offside li:hover div, .offside li:hover .icon { color: #fff } .offside li.tel:hover .icon { color: #4fc2b8 } .offside li:hover a { color: #4fc2b8 } .offside .tel.email:hover a { color: #fff } .offside .tel.email:hover a .icon { color: #fff } .offside .tel.email:hover a p { color: #fff } .offside li.tel:hover p { color: #4fc2b8 } .offside .tel.email:hover p { color: #fff } .offside li:hover p { opacity: 1 } .offside li:not(.li_3):hover { background: #4fc2b8 } .offside .tel { /*width: 200px;*/ /*transform: translateX(-150px);*/ /*-webkit-transform: translateX(-150px)*/ } .offside .tel.email { width: 279px; transform: translateX(-229px); -webkit-transform: translateX(-229px) } .offside .back_none { height: 0; border: 0 !important } .offside li { margin-bottom: 10px; /*transform: translateX(100%);*/ /*-webkit-transform: translateX(100%);*/ list-style: none; borer-radius:4px; } .offside .unfold { width: 30px; transform: translateX(20px); -webkit-transform: translateX(20px) } #onlineService .offside a{ width: 50px; height: 50px; display: block; position:relative; } .offside li img{ width: 100%; height: 100%; } .offside li{ background: none !important; // 去掉背景色 } </style> <style type="text/css"> @font-face { font-family: 'poppinsbold'; src: url('poppinsbold.eot'); src: url('/static/web/fonts/poppinsbold.eot?#iefix') format('embedded-opentype'),url('/static/web/fonts/poppinsbold.ttf') format('truetype'), url('/static/web/fonts/poppinsbold.svg#poppinsbold') format('svg'); font-weight: normal; font-style: normal; } iframe{ border-width: 0; } .ai_service{ width: 375px; height: 70vh; background:white; position: fixed; bottom: 0; right: -600px; margin-right: auto; z-index: 9999999; flex-direction: column; } .ai_service .ai_close{ width: 100%; height: 44px; cursor: pointer; background-color: #4fc2b8; color: white; font-size: 16px; line-height: 44px; padding-left: 12px; font-family: 'poppinsbold', sans-serif; position: absolute; } .ai_service .ai_close img{ width: 20px; height: 20px; margin-right: 15px; margin-top: 12px; float: right; } @media (width: 350px) { .ai_service{ width: 100vw; height: 100%; background:white; position: fixed; top: 0px; right: 0px; margin-right: auto; z-index: 9999; } } </style> <style> .wd_bj{ position: fixed; left: 0px; top: 0px; background: rgba(0, 0, 0, 0.4); width: 100%; height: 100%; filter: alpha(opacity=60); opacity: 0.8; z-index: 999999; } .wd{ position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; margin: auto; width: 700px; height: 550px; background-color: #eee; z-index: 999999; text-align: center; } .wd ul{ width: 90%; /*border: 1px solid;*/ margin: 20px auto; list-style: none; height: 370px; background-color: white; padding: 10px; border-radius: 10px; overflow: auto; } .wd ul li{ margin: 10px 20px 25px 20px; font-size: 16px; text-align: left; background-color: #eee; padding: 10px; } .wd ul li img{ width: 26px; height: 26px; margin-right: 10px; } .wd_i{ position: absolute; bottom: 30px; left: 5%; width: 90%; border: none; } .wd_i_o{ position: relative; width: 90%; text-align: left; float: left; } .wd_i_o input{ width: 100%; height: 50px; border-radius: 26px; /* border-color: gray; */ border: none; padding: 0 55px 0 20px; /*background: url(/static/web/image/dj.png) no-repeat center right 16px;*/ background-color: white; /*cursor: pointer;*/ } .wd_i_o img{ position: absolute; right: 10px; cursor: pointer; } .wd_dl{ width: 5.5%; cursor: pointer; display: block; float: right; margin-top: 9.25px; } </style> <div hidden class="wd_bj"></div> <div hidden class="wd"> <div class="wd_close" style="text-align: right;margin-right: 20px;font-size: 30px;cursor: pointer">×</div> <ul class="wd_ul"> </ul> <div class="wd_i"> <div class="wd_i_o"> <input class="wd_input" type="text" placeholder="Unlock the questions in one's mind"> <img src="/static/web/image/dj.png"> </div> <img class="wd_dl" src="/static/web/image/dl.png"> </div> </div> <link rel="stylesheet" href="/module/zt/cphi/font/iconfont.css"> <div class="ai_service" id="ai_service" > <div class="ai_close"> PharmaSources Customer Service <img src="/static/web/image/close_ai.png" alt="" onclick="closePopup()"> </div> <iframe style="width: 100%; height: 100%;flex-grow: 1;" id="iframeContainer"></iframe> </div> <div class="sep-onlineservice" id="onlineService"> <ul class="offside"> <li class="li_3 ai_clicked" id="ai_clicked" style="overflow: visible"> <a> <img src="/static/web/image/index/ai_clicked.gif" style="width: 40px;height: 40px;" title="ai service" /> </a> </li> <li class="li_3 whatsapp_clicked" style="overflow: visible"> <a> <img src="/static/web/image/index/whatsapp_clicked.png" title="Whatsapp" /> <div hidden id="li_3_image-1" style="display: none"> <img src="/static/web/image/index/whatsapp_detail_25.png" alt=""> </div> </a> </li> <li class="li_3 email_clicked" style="overflow: visible"> <a href="mailto:PharmaSources@imsinoexpo.com"> <img src="/static/web/image/index/email_clicked.png" title="Email" /> <div hidden id="li_3_image-2" style="display: none"> PharmaSources@imsinoexpo.com </div> </a> </li> <li class="li_3 face_clicked" style="overflow: visible"> <a href="https://jinshuju.net/f/W0aJ1t?x_field_1=PShome" rel="nofollow" target="_blank"> <img src="/static/web/image/index/feedback_clicked.png" title="Feedback" /> <div hidden id="li_3_image-4" style="display: none"> We Want Your Feedback </div> </a> </li> <li class="back_top" style="visibility: hidden;"> <a title="TOP" rel="nofollow" class="seoquake-nofollow"> <img src="/static/web/image/index/to_top_clicked.png" title="TOP" /> </a> </li> </ul> </div> <script> //星火模型 start $('.whatsapp_clicked_ai').click(function(){ $('.wd_bj,.wd').show(); var text_f = '<li><img src="/static/web/image/jqr_s.png">Hello, may I help you</li>'; $(".wd ul").append(text_f); }) $('.wd_close').click(function(){ $('.wd_bj,.wd').hide(); $('.wd ul').empty(); $(".wd_input").val(''); }) $(".wd_dl").click(function () { $(".wd_input").val(''); }); var jump_ws = true; $(".wd_input").keydown(function(){ if(event.keyCode == "13"){ if(!jump_ws){ return false; } jump_ws = false; var msg = $('.wd_input').val(); msg = msg.replace(/^\s*|\s*$/g,""); if (!msg){ jump_ws = true; return; } var text = '<li><img src="/static/web/image/ms.png">'+msg+'</li>'; $(".wd ul").append(text); $(".wd ul").scrollTop($(".wd ul").get(0).scrollHeight); $.ajax({ type: 'post', url: 'https://www.pharmasources.com/ws', data: {'text': msg}, headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content') }, dataType: 'json', success: function (result) { if (result.code == 200) { var msg = '<li><img src="/static/web/image/jqr_s.png">'+result.data+'<br><br><span style="color: #207B81">tokens:'+result.count+'</span></li>'; $(".wd ul").append(msg).scrollTop(0); jump_ws = true; $('.wd_input').val(''); $(".wd ul").scrollTop($(".wd ul").get(0).scrollHeight); return true; }else{ alert(result.msg); jump_ws = true; return false; } } }); } }) var jump_ws_t = true; $(".wd_i_o img").click(function(){ if(!jump_ws_t){ return false; } jump_ws_t = false; var msg = $('.wd_input').val(); msg = msg.replace(/^\s*|\s*$/g,""); if (!msg){ jump_ws_t = true; return; } var text = '<li><img src="/static/web/image/ms.png">'+msg+'</li>'; $(".wd ul").append(text); $(".wd ul").scrollTop($(".wd ul").get(0).scrollHeight); $.ajax({ type: 'post', url: 'https://www.pharmasources.com/ws', data: {'text': msg}, headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content') }, dataType: 'json', success: function (result) { if (result.code == 200) { var msg = '<li><img src="/static/web/image/jqr_s.png">'+result.data+'<br><br><span style="color: #207B81">tokens:'+result.count+'</span></li>'; $(".wd ul").append(msg).scrollTop(0); jump_ws_t = true; $('.wd_input').val(''); $(".wd ul").scrollTop($(".wd ul").get(0).scrollHeight); return true; }else{ alert(result.msg); jump_ws_t = true; return false; } } }); }) //星火模型end $('.telegram_clicked').mouseover(function(){ $('#li_3_image').show(); }) $('.telegram_clicked').mouseout(function(){ $('#li_3_image').hide(); }) $('.whatsapp_clicked').mouseover(function(){ $('#li_3_image-1').show(); }) $('.whatsapp_clicked').mouseout(function(){ $('#li_3_image-1').hide(); }) $('.email_clicked').mouseover(function(){ $('#li_3_image-2').show(); }) $('.email_clicked').mouseout(function(){ $('#li_3_image-2').hide(); }) $('.tel_clicked').mouseover(function(){ $('#li_3_image-3').show(); }) $('.tel_clicked').mouseout(function(){ $('#li_3_image-3').hide(); }) var timestamp = Date.now(); var urlWithTimestamp=''; if (document.cookie.indexOf('chatWindowOpened=true') === -1) { document.cookie = 'chatWindowOpened=true; path=/'; setTimeout(function () { $('#ai_service').css('right', '50px'); urlWithTimestamp = "https://www.pharmasources.com/ai_service/index.html" + '?' + timestamp; document.getElementById('iframeContainer').src = urlWithTimestamp; }, 5000); } if (document.cookie.indexOf('aiLogin=true')!=-1) { $('#ai_service').css('right', '50px'); urlWithTimestamp = "https://www.pharmasources.com/ai_service/index.html" + '?' + timestamp; document.getElementById('iframeContainer').src = urlWithTimestamp; document.cookie = 'aiLogin=; path=/'; } //pc端 window.addEventListener('message', event => { const message = event.data; if (message.type === 'linkType') { console.log(message.data) console.log(window.location.origin+'/login') if(message.data===window.location.origin+'/login'||message.data===window.location.origin+'/register'){ window.open(message.data+"?ai_service="+window.location.href, "_blank"); } } }); $('.ai_clicked').click(function(){ var user_id = ""; // alert(user_id); var rightValue = $('#ai_service').css('right'); // var iframe = document.getElementById('iframeContainer'); if(rightValue==='-600px'){ urlWithTimestamp = "https://www.pharmasources.com/ai_service/index.html" + '?' + timestamp; document.getElementById('iframeContainer').src = urlWithTimestamp; $('#ai_service').css('right', '50px'); // 显示 }else{ $('#ai_service').css('right', '-600px'); // 隐藏 } }) // 点击空白关闭弹窗 window.onclick = function(event) { let ai_service =document.getElementById('ai_service'); let ai_clicked =document.getElementById('ai_clicked'); if (!ai_clicked.contains(event.target)&&!ai_service.contains(event.target)) { var rightValue = $('#ai_service').css('right'); if (rightValue === '50px') { $('#ai_service').css('right', '-600px'); // 隐藏 } } } $('.face_clicked').mouseover(function(){ $('#li_3_image-4').show(); }) $('.face_clicked').mouseout(function(){ $('#li_3_image-4').hide(); }) $(function() { $(window).scrollTop(0), $(window).scroll(function() { var a = $(window).height() /2; $(window).scrollTop() > a ? ($(".back_top").css('visibility','visible'), $(".to-top").css('visibility','visible')) : ($(".back_top").css('visibility','hidden'), $(".to-top").css('visibility','hidden')) }), $(".back_top,.to-top").click(function() { var a = 700; return $("body,html").animate({ scrollTop: 0 }, a), !1 }) }) function closePopup() { $('#ai_service').css('right', '-600px'); // 隐藏 } function getSearchKey() { var pathname = window.location.pathname; if(pathname){ var arr=pathname.split('/') if(arr.length>2&&arr[1]==="products"){ var keyArr=arr[2].split('searchKey-') if(keyArr.length>1&&keyArr[0]===""){ return decodeURIComponent(keyArr[1]); } } } return ''; } function getIsMobile() { return false; } </script> <script src="https://www.pharmasources.com/static/web/js/moment.min.js"></script> <script src="https://www.pharmasources.com/static/web/js/bootstrap.min.js"></script> <script src="https://www.pharmasources.com/static/web/js/bootstrap-datetimepicker.min.js"></script> <script src="https://www.pharmasources.com/static/web/js/dropzone.js"></script> <script src="https://www.pharmasources.com/static/web/js/bootstrapValidator.min.js"></script> </body> </html> <script> var stime = 0; var etime = 0; var lk = 0; $(function () { $("#xsztip,#xsztip_copay").hover(function () { $(".content").show(); }, function () { $(".content").hide(); }); //执行一个laydate实例 laydate.render({ elem: '#time', //指定元素 lang: 'en', min: 1, done: function(value, date, endDate){ if (!value) { $(".valid_to_form small").show(); } else { $(".valid_to_form small").hide(); } }, trigger: "click" }); $(".alert-box-center-ul1 li:first").addClass('on'); var cid = $(".alert-box-center-ul1 ul li").hasClass('on'); if (cid) { var category = $(".alert-box-center-ul1 .on").data('value'); if (category) { $(".alert-box-center-ul1").css('width','100%'); get_categories(category, 1); } } function get_categories(category, type) { common.requests('https://www.pharmasources.com/psr/categories', {id: category}, 'post', {}, function (res) { if (res.data.length > 0) { data = res.data; li = ''; for (i in data) { if (i == 0) { if (type == 1 && data[i].id) { tcid(data[i].id); } li += '<li class="on" data-value=' + data[i].id + '>' + data[i].cat_name + '</li>'; } else { li += '<li data-value=' + data[i].id + '>' + data[i].cat_name + '</li>'; } } if (type == 1) { $(".alert-box-center-ul2 ul").append(li); $(".alert-box-center-ul2").show(); $(".alert-box-center-ul1,.alert-box-center-ul2").css('width','50%'); } else if (type == 2) { $(".alert-box-center-ul3 ul").append(li); $(".alert-box-center-ul3").show(); $(".alert-box-center-ul1").css('width','20%'); $(".alert-box-center-ul2,.alert-box-center-ul3").css('width','40%'); $(".alert-box-center-ul3").css('border','none'); } } }, function (res) { }) } function tcid(id) { get_categories(id, 2); } var num_other = ""; if(num_other){ $(".input_unit").attr('id', 'definite_date'); $("#definite_date_other").show().css('margin-left', '15px'); } if("0" >= 3){ $("#xsztip").hide(); $("#xsztip_copay").show(); }else{ $("#xsztip").show(); $("#xsztip_copay").hide(); } stime = Math.floor(new Date().getTime()/1000); lk = window.location.href; }); window.onpagehide = function(event) { etime = Math.floor(new Date().getTime() / 1000); $.post('https://www.pharmasources.com/xwsj', { '_token': "zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9", 'stime': stime, 'etime': etime, 'lk': lk, }, function (res) { }, 'json'); } </script> <script> $(".alert-box-center-ul1").mouseover(function(){ if($(".alert-box-center-ul2 ul").has("li").length <= 0){ $(".alert-box-center-ul1").css('width','100%') } else if($(".alert-box-center-ul2 ul").has("li").length > 0 && $(".alert-box-center-ul3 ul").has("li").length <= 0){ $(".alert-box-center-ul1").css('width','80%'); $(".alert-box-center-ul2").css('width','20%') } else if($(".alert-box-center-ul2 ul").has("li").length > 0 && $(".alert-box-center-ul3 ul").has("li").length > 0){ $(".alert-box-center-ul3").css('width','20%').css('border','none'); $(".alert-box-center-ul1,.alert-box-center-ul2").css('width','40%'); } }); $(".alert-box-center-ul2").mouseover(function(){ if($(".alert-box-center-ul3 ul").has("li").length <= 0){ $(".alert-box-center-ul1").css('width','20%'); $(".alert-box-center-ul2").css('width','80%') }else{ $(".alert-box-center-ul1").css('width','20%'); $(".alert-box-center-ul2,.alert-box-center-ul3").css('width','40%'); $(".alert-box-center-ul3").css('border','none'); } }); $(".alert-box-center-ul3").mouseover(function(){ $(".alert-box-center-ul1").css('width','20%'); $(".alert-box-center-ul2,.alert-box-center-ul3").css('width','40%'); $(".alert-box-center-ul3").css('border','none'); }); </script> <script> // $('.get_date').datetimepicker({ // viewMode: 'days', // format: 'YYYY-MM-DD', // // defaultDate: '', // showClose: true // }); $(".close-alert,#no").click(function () { $(".alert-box").hide(); if (!$(".category_id_input").val()) { $(".product_category_form small").show(); } else { $(".product_category_form small").hide(); } }); $(".close-alert_login").click(function () { $("#cover").hide(); $(".alert-box_login").hide(); }); $(".pull-left").on('click', "input[name='category_id']", function () { $(".alert-box").show(); }); $(".alert-box-center").on('click', '.alert-box-center-ul1 ul li', function () { $(".alert-box-center-ul1 ul li").removeClass('on'); $(this).addClass('on'); $(".alert-box-center-ul2 ul li").remove(); $(".alert-box-center-ul3 ul li").remove(); get_categories_last($(this).data('value'), 1); $(".alert-box-center-ul2").css('width','0px').css('border','none'); $(".alert-box-center-ul3").css('width','0px').css('border','none'); $(".alert-box-center-ul1").css('width','100%'); }); $(".alert-box-center").on('click', '.alert-box-center-ul2 ul li', function () { $(".alert-box-center-ul2 ul li").removeClass('on'); $(this).addClass('on'); $(".alert-box-center-ul3 ul li").remove(); get_categories_last($(this).data('value'), 2); $(".alert-box-center-ul3").css('width','0px'); $(".alert-box-center-ul1").css('width','20%'); $(".alert-box-center-ul2").css('width','80%'); }); $(".alert-box-center").on('click', '.alert-box-center-ul3 ul li', function () { $(".alert-box-center-ul3 ul li").removeClass('on'); $(this).addClass('on'); }); function get_categories_last(category, type) { common.requests('https://www.pharmasources.com/psr/categories', {id: category}, 'post', {}, function (res) { if (res.data.length > 0) { data = res.data; li = ''; for (i in data) { li += '<li data-value=' + data[i].id + '>' + data[i].cat_name + '</li>'; } if (type == 1) { // $(".alert-box-center-ul2 ul li").remove(); $(".alert-box-center-ul2 ul").append(li); $(".alert-box-center-ul2").show(); $(".alert-box-center-ul1,.alert-box-center-ul2").css('width','50%'); $(".alert-box-center-ul3").css('width','0px'); } else if (type == 2) { // $(".alert-box-center-ul3 ul li").remove(); $(".alert-box-center-ul3 ul").append(li); $(".alert-box-center-ul3").show(); $(".alert-box-center-ul1").css('width','20%'); $(".alert-box-center-ul2,.alert-box-center-ul3").css('width','40%'); $(".alert-box-center-ul3").css('border','none'); } } }, function (res) { }) } $("#yes").click(function () { var one = $(".alert-box-center-ul1 .on").text(); var one_value = $(".alert-box-center-ul1 .on").data('value'); var two = $(".alert-box-center-ul2 .on").text(); var two_value = $(".alert-box-center-ul2 .on").data('value'); var three = $(".alert-box-center-ul3 .on").text(); var three_value = $(".alert-box-center-ul3 .on").data('value'); if (one && !two && !three) { var data = one; var data_value = one_value; } else if (one && two && !three) { var data = one + '>' + two; // var data = two; var data_value = two_value; } else if (one && two && three) { var data = one + '>' + two + '>' + three; // var data = three; var data_value = three_value; } $("input[name='category_id']").val(data); // $("input[name='category_id']").attr('data-id',data_value); $(".category_id_input_value").val(data_value); $(".alert-box").hide(); $(".product_category_form small").hide(); }) $(".pull-left select").change(function () { if ($(this).val() == 21) { $(".input_unit").attr('id', 'definite_date'); $("#definite_date_other").show().css('margin-left', '15px'); } else { $(".input_unit").removeAttr('id'); $("#definite_date_other").hide().css('margin-left', '0px'); } }); $(".product_name_input").blur(function () { var pni = $(this).val().trim().replace(/\s/g,""); if (!pni) { $(".product_name_form .pnf_one").show(); }else if($(this).val().length > 200){ $(".product_name_form .pnf_one").hide(); $(".product_name_form .pnf_two").show(); } else { $(".product_name_form small").hide(); } }); //字节 function getBytes(str){ str = str.replace(/[^\x00-\xff]/g, '**'); return str.length; } $(".pull-left-textarea").blur(function () { var plt = $(this).val().trim().replace(/\s/g,""); if (!plt) { $(".product_description_form small").show(); } else { $(".product_description_form small").hide(); } }); $(".input_unit").blur(function () { var iu = $(this).val().trim().replace(/\s/g,""); if (!iu) { $(".expected_quantity_form small").show(); } else { $(".expected_quantity_form small").hide(); } }); // $(".valid_to_input").blur(function () { // if (!$(this).val()) { // $(".valid_to_form small").show(); // } else { // $(".valid_to_form small").hide(); // } // }); $("#definite_date_other").blur(function () { if (!$(this).val()) { $(".small-1").show(); } else { $(".small-1").hide(); } }); var del_num = 0; var count = 0; $(".file-class").on('click', '.del_upload', function () { $("#xsztip").show(); $("#xsztip_copay").hide(); var num = $(".num-class").text(); $(".num-class").text(parseInt(num) - 1); $(this).parent().remove(); // var a=document.getElementsByClassName("dz-preview "); // a[0].remove(); if(count > 0){ count = count -1; } }); $("#xsztip_copay").click(function () { var num = $(".num-class").text(); if (num == 3) { alert('Only three files can be uploaded'); return false; } }); const csrfToken = {'X-CSRF-TOKEN': $('meta[name=csrf-token]')[0].content}; var myDropzone2 = new Dropzone("#profile-container", { paramName: "file", timeout: (15 * 5 * 1000), url: "https://www.pharmasources.com/psr/upload", headers: csrfToken, // maxFiles: 3, maxFilesize: 3.0, imageMaxFileSize: 2, // videoMaxFileSize: 15, maxImageWidth: 781, maxImageHeight: 603, dictFileTooBig: "File is too big ({{filesize}}MB). Max filesize: {{maxFilesize}}MB.", parallelUploads: 1, previewsContainer: '', maxThumbnailFilesize: 1, dictDefaultMessage: false, acceptedFiles: ".jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.xls,.xlsx,.txt,.rar,.zip", // clickable: '#upload-btn', clickable: '#xsztip', // previewTemplate: $('#profile-tpl').html(), fallback: function () { alert('This browser is not supported') }, init: function () { this.on('success', function (file, xhr) { response = JSON.parse(xhr); if (200 == response.code) { var px = ''; var name = ''; var num = $(".num-class").text(); var str = "<div class='file-class-upload' style='height: 35px;line-height: 35px'>"; str += "<input type='hidden' name='upload[]' value='" + response.data.url + ',' + response.data.name + ',' + response.data.ext + "'>"; if (response.data.ext === 'pdf') { px = '0px'; name = response.data.name; } else if (response.data.ext === 'txt') { px = '-18px'; name = response.data.name; } else if (response.data.ext === 'doc' || response.data.ext === 'docx') { px = '-36px'; name = response.data.name; } else if (response.data.ext === 'xls' || response.data.ext === 'xlsx') { px = '-54px'; name = response.data.name; } else if (response.data.ext === 'jpg' || response.data.ext === 'jpeg') { px = '-72px'; name = response.data.name; } else if (response.data.ext === 'png') { px = '-90px'; name = response.data.name; } else if (response.data.ext === 'zip') { px = '-216px'; name = response.data.name; } else if (response.data.ext === 'gif') { px = '-252px'; name = response.data.name; } else if (response.data.ext === 'rar') { px = '-270px'; name = response.data.name; } str += '<span style="background: url(\'/static/images/sc.png\') no-repeat 0 ' + px + '" id="J-upload-progress">'; str += " <b>" + name + "</b></span>"; str += "<i style='margin-left: 10px' class='micon'><img src='/static/images/dg.png' /></i>"; str += "<span class='del_upload' style='margin-left: 10px;cursor: pointer'>Delete</span>"; str += "</div>"; $(".file-class").append(str); $(".num-class").text(parseInt(num) + 1); $(".dz-preview").remove(); if (parseInt(num) + 1 == 3) { $("#xsztip").hide(); $("#xsztip_copay").show(); } return true; } else if (201 === response.code) { this.removeFile(file); alert(response.msg) } }); this.on('error', function (file, errorMessage, xhr) { this.removeFile(file); if (undefined !== xhr) { alert(xhr) } else if (errorMessage) { alert(errorMessage) } }); this.on("addedfile", function (file) { // var num = $(".num-class").text(); count = count + 1; if (count == 3) { $("#xsztip").hide(); $("#xsztip_copay").show(); } }) } }); $(".product").on('click', '.edit_img', function () { $("#form small").hide(); var that = $(this).parents('.chat-box'); // var product_name = that.children().children('.title-class-txt').text(); var product_name = that.find('.product_name').val(); var product_category = that.find('.product_category').val(); var product_category_value = that.find('.product_category_value').val(); var product_description = that.find('.product_description').val(); var product_description_other = that.find('.product_description_other').val(); var expected_quantity = that.find('.expected_quantity').val(); var expected_quantity_unit = that.find('.expected_quantity_unit').val(); var expected_quantity_unit_value = that.find('.expected_quantity_unit_value').val(); var expected_quantity_other = that.find('.expected_quantity_other').val(); var valid_to = that.find('.valid_to').val(); that.remove(); $(".product_name_input").val(product_name); $(".category_id_input").val(product_category); $(".category_id_input_value").val(product_category_value); $(".pull-left-textarea").val(product_description); $(".file-class").empty(); $(".num-class").text(0); var px = ''; var name = ''; if (product_description_other) { var product_description_other_array = product_description_other.split('@'); for (var i = 0; i < product_description_other_array.length; i++) { var upload_msg = product_description_other_array[i].split(','); var num = $(".num-class").text(); var str = "<div class='file-class-upload' style='height: 35px;line-height: 35px'>"; str += "<input type='hidden' name='upload[]' value='" + upload_msg[0] + ',' + upload_msg[1] + ',' + upload_msg[2] + "'>"; if (upload_msg[2] === 'pdf') { px = '0px'; name = upload_msg[1]; } else if (upload_msg[2] === 'txt') { px = '-18px'; name = upload_msg[1]; } else if (upload_msg[2] === 'doc' || upload_msg[2] === 'docx') { px = '-36px'; name = upload_msg[1]; } else if (upload_msg[2] === 'xls' || upload_msg[2] === 'xlsx') { px = '-54px'; name = upload_msg[1]; } else if (upload_msg[2] === 'jpg' || upload_msg[2] === 'jpeg') { px = '-72px'; name = upload_msg[1]; } else if (upload_msg[2] === 'png') { px = '-90px'; name = upload_msg[1]; } else if (upload_msg[2] === 'zip') { px = '-216px'; name = upload_msg[1]; } else if (upload_msg[2] === 'gif') { px = '-252px'; name = upload_msg[1]; } else if (upload_msg[2] === 'rar') { px = '-270px'; name = upload_msg[1]; } str += '<span style="background: url(\'/static/images/sc.png\') no-repeat 0 ' + px + '" id="J-upload-progress">'; str += " <b>" + name + "</b></span>"; str += "<i style='margin-left: 10px' class='micon'><img src='/static/images/dg.png' /></i>"; str += "<span class='del_upload' style='margin-left: 10px;cursor: pointer'>Delete</span>"; str += "</div>"; $(".file-class").append(str); $(".num-class").text(parseInt(num) + 1); } if(product_description_other_array.length >= 3){ $("#xsztip").hide(); $("#xsztip_copay").show(); }else{ $("#xsztip").show(); $("#xsztip_copay").hide(); } }else{ $("#xsztip").show(); $("#xsztip_copay").hide(); } $(".input_unit").val(expected_quantity); // $(".pull-left select option=" + expected_quantity_unit_value).attr('selected', 'selected'); $(".selector").val(expected_quantity_unit_value); // $(".selector").find("option[value="+expected_quantity_unit_value +"]").attr("selected",true); if (expected_quantity_unit_value == 21) { $(".input_unit").attr('id', 'definite_date'); $("#definite_date_other").show().css('margin-left', '15px').val(expected_quantity_other); } else { $(".input_unit").removeAttr('id'); $("#definite_date_other").hide().css('margin-left', '0px'); } $(".valid_to_input").val(valid_to); }); $(".product").on('click', '.del_img', function () { $(this).parent().parent().parent().remove(); }); var submit = true; $(".add-class").click(function () { if (!submit) { return false; } submit = false; var verify = check(); if (!verify) { submit = true; return ; } var upload = ''; $("input[name='upload[]']").each(function (k, v) { if (k == 0) { upload += v.value; } else { upload += '@' + v.value; } }); var unit = $("select option:selected").val(); var unit_text = $("select option:selected").text(); var other = $("#definite_date_other").val(); var ci = $(".category_id_input_value").val(); if(unit == 21){ var vt = $(".input_unit").val()+ '  ' +other; }else{ var vt = $(".input_unit").val()+ '  ' +unit_text; } var str = ''; str += '<div class="chat-box">'; str += '<div class="title-class">'; str += '<div class="title-class-txt">' + $(".product_name_input").val() + '</div>'; str += '<div class="title-class-img">'; str += '<img class="edit_img" style="width: 26px;cursor: pointer" src="/static/images/psr_edit.png">'; str += '<img class="del_img" style="cursor: pointer" src="/static/images/psr_del.png">'; str += '</div>'; str += '</div>'; str += '<hr>'; str += '<div class="content-class">'; str += '<table>'; str += '<tr>'; str += '<td><span class="one">Product Category:</span> <span class="two">' + $(".category_id_input").val() + '</span></td>'; str += '<td><span class="one">Purchase Quantity:</span> <span class="two">' + vt + '</span></td>'; str += '<td><span class="one">Valid To:</span> <span class="two">' + $(".valid_to_input").val() + '</span></td>'; str += '</tr>'; str += '<tr>'; str += '<td colspan="3"><span class="one">Description:</span><span id="content-td">' + $(".pull-left-textarea").val() + '</span></td>'; str += '</tr>'; str += '</table>'; str += '<div class="add-value">'; str += '<input type="hidden" name="product_name[]" class="product_name" value="' + $(".product_name_input").val() + '">'; str += '<input type="hidden" name="product_category[]" class="product_category" value="' + $(".category_id_input").val() + '">'; str += '<input type="hidden" name="product_category_value[]" class="product_category_value" value="' + ci + '">'; str += '<input type="hidden" name="product_description[]" class="product_description" value="' + $(".pull-left-textarea").val() + '">'; str += '<input type="hidden" name="product_description_other[]" class="product_description_other" value="' + upload + '">'; str += '<input type="hidden" name="expected_quantity[]" class="expected_quantity" value="' + $(".input_unit").val() + '">'; str += '<input type="hidden" name="expected_quantity_unit[]" class="expected_quantity_unit" value="' + unit_text + '">'; str += '<input type="hidden" name="expected_quantity_unit_value[]" class="expected_quantity_unit_value" value="' + unit + '">'; str += '<input type="hidden" name="expected_quantity_other[]" class="expected_quantity_other" value="' + other + '">'; str += '<input type="hidden" name="valid_to[]" class="valid_to" value="' + $(".valid_to_input").val() + '">'; str += '</div>'; str += '</div>'; if(upload){ str += '<div style="border: 1px dashed #4fc2b8;height: 40px;line-height:40px;border-right: none;border-bottom: none;border-left: none;width: 96%;margin: auto;">'; var upload_msg = upload.split('@'); var px = '0px'; var name = ''; for (var i = 0; i < upload_msg.length;i++){ var img_msg = upload_msg[i].split(','); if(img_msg){ if (img_msg[2] === 'pdf') { px = '0px'; name = img_msg[1]; } else if (img_msg[2] === 'txt') { px = '-18px'; name = img_msg[1]; } else if (img_msg[2] === 'doc' || img_msg[2] === 'docx') { px = '-36px'; name = img_msg[1]; } else if (img_msg[2] === 'xls' || img_msg[2] === 'xlsx') { px = '-54px'; name = img_msg[1]; } else if (img_msg[2] === 'jpg' || img_msg[2] === 'jpeg') { px = '-72px'; name = img_msg[1]; } else if (img_msg[2] === 'png') { px = '-90px'; name = img_msg[1]; } else if (img_msg[2] === 'zip') { px = '-216px'; name = img_msg[1]; } else if (img_msg[2] === 'gif') { px = '-252px'; name = img_msg[1]; } else if (img_msg[2] === 'rar') { px = '-270px'; name = img_msg[1]; } str += '<span style="background: url(\'/static/images/sc.png\') no-repeat 0 ' + px + ';padding-right: 20px;">'; str += " <b>" + name + "</b></span>"; } } str += '</div>'; } str += '</div>'; $(".product").append(str); $("#form input").each(function () { $(this).val(''); }); $(".selector").each(function(){ $(this).val(''); }); $(".selector:first").prop("selected", 'selected'); $(".input_unit").removeAttr('id'); $("#definite_date_other").hide().css('margin-left', '0px'); $(".expected_quantity_form select option:first").prop("selected", 'selected'); $(".pull-left-textarea").val(''); $(".file-class").empty(); $(".num-class").text(0); $("#xsztip").show(); $("#xsztip_copay").hide(); submit = true; }); function check(){ var status = true; if (!$(".product_name_input").val()) { $(".product_name_form .pnf_one").show(); status = false; } if (!$(".category_id_input").val()) { $(".product_category_form small").show(); status = false; } if (!$(".pull-left-textarea").val()) { $(".product_description_form small").show(); status = false; } if (!$(".input_unit").val()) { $(".expected_quantity_form small").show(); status = false; } if($(".selector").val() == 21){ if(!$("#definite_date_other").val()){ $(".small-1").show(); status = false; } } if (!$(".valid_to_input").val()) { $(".valid_to_form small").show(); status = false; } return status; } var button_submit = true; $("#submit-btn").click(function () { if (!button_submit) { return false; } button_submit = false; product_name = {}; $("input[name='product_name[]']").each(function (k,v) { product_name[k] = $(this).val(); }); product_category = {}; $("input[name='product_category[]']").each(function (k,v) { product_category[k] = $(this).val(); }); product_category_value = {}; $("input[name='product_category_value[]']").each(function (k,v) { product_category_value[k] = $(this).val(); }); product_description = {}; $("input[name='product_description[]']").each(function (k,v) { product_description[k] = $(this).val(); }); product_description_other = {}; $("input[name='product_description_other[]']").each(function (k,v) { product_description_other[k] = $(this).val(); }); expected_quantity = {}; $("input[name='expected_quantity[]']").each(function (k,v) { expected_quantity[k] = $(this).val(); }); expected_quantity_unit = {}; $("input[name='expected_quantity_unit[]']").each(function (k,v) { expected_quantity_unit[k] = $(this).val(); }); expected_quantity_unit_value = {}; $("input[name='expected_quantity_unit_value[]']").each(function (k,v) { expected_quantity_unit_value[k] = $(this).val(); }); expected_quantity_other = {}; $("input[name='expected_quantity_other[]']").each(function (k,v) { expected_quantity_other[k] = $(this).val(); }); valid_to = {}; $("input[name='valid_to[]']").each(function (k,v) { valid_to[k] = $(this).val(); }); if($.isEmptyObject(product_name) && $.isEmptyObject(product_category_value) && $.isEmptyObject(product_description) && $.isEmptyObject(product_description_other) && $.isEmptyObject(expected_quantity) && $.isEmptyObject(expected_quantity_unit_value) && $.isEmptyObject(expected_quantity_other) && $.isEmptyObject(valid_to)){ var verify = check(); if (!verify) { button_submit = true; return; } }else{ if($(".product_name_input").val() || $(".category_id_input").val() || $(".pull-left-textarea").val() || $(".input_unit").val() || $(".valid_to_input").val()){ var verify = check(); if (!verify) { button_submit = true; return; } } } if($(".product_name_input").val()){ var key = Object.keys(product_name).length; product_name[key] = $(".product_name_input").val(); } if($(".category_id_input_value").val()){ var key = Object.keys(product_category_value).length; product_category_value[key] = $(".category_id_input_value").val(); } if($(".pull-left-textarea").val()){ var key = Object.keys(product_description).length; product_description[key] = $(".pull-left-textarea").val(); } if($("input[name='upload[]']").val()){ var key = Object.keys(product_description_other).length; var upload = ''; $("input[name='upload[]']").each(function (k, v) { if (k == 0) { upload += v.value; } else { upload += ';' + v.value; } }); product_description_other[key] = upload; } if($(".input_unit").val()){ var key = Object.keys(expected_quantity).length; expected_quantity[key] = $(".input_unit").val(); } if($(".input_unit").val() && $("select option:selected").val()){ var key = Object.keys(expected_quantity_unit_value).length; expected_quantity_unit_value[key] = $("select option:selected").val(); } if($("#definite_date_other").val()){ var key = Object.keys(expected_quantity_other).length; expected_quantity_other[key] = $("#definite_date_other").val(); } if($(".valid_to_input").val()){ var key = Object.keys(valid_to).length; valid_to[key] = $(".valid_to_input").val(); } var type = 0; var uemail = ''; var pwd = ''; var r_username = ''; var r_company = ''; var r_email = ''; var r_tel = ''; var r_tel_code = ''; var agree_ps = ''; type = $("input[name='type']:checked").val(); if(type > 0){ if (type == 1){ uemail = $("input[name='uemail']").val(); uemail = uemail.replace(/^\s*|\s*$/g,""); if (!uemail) { $(".error_msg").text('Please enter a valid email address or username.') button_submit = true; return; } pwd = $("input[name='pwd']").val(); pwd = pwd.replace(/^\s*|\s*$/g,""); if (!pwd) { $(".error_msg").text('wrong password.'); button_submit = true; return; } }else if (type == 2) { r_username = $("input[name='r_username']").val(); r_username = r_username.replace(/^\s*|\s*$/g,""); var username_rge = /^[a-zA-Z][a-zA-Z0-9]{3,19}$/; if (!r_username || !username_rge.test(r_username)) { $(".error_msg").text('Please enter a username with 4-20 characters (A-Z,a-z,0-9) while no number at the beginning.'); button_submit = true; return; } r_company = $("input[name='r_company']").val(); r_company = r_company.replace(/^\s*|\s*$/g,""); if (!r_company) { $(".error_msg").text('Please enter a valid company name'); button_submit = true; return; } r_email = $("input[name='r_email']").val(); r_email = r_email.replace(/^\s*|\s*$/g,""); var email_rge = /^([a-zA-Z]|[0-9])(\w|\-|\.)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/; if (!r_email || !email_rge.test(r_email)) { $(".error_msg").text('Please enter a valid email address.'); button_submit = true; return; } r_tel_code = $("#select_ul option:selected").val(); r_tel_code = r_tel_code.replace(/^\s*|\s*$/g,""); if (!r_tel_code) { $(".error_msg").text('The phone area code is incorrect.'); button_submit = true; return; } r_tel = $("input[name='r_tel']").val(); r_tel = r_tel.replace(/^\s*|\s*$/g,""); var tel_rge = /^[0-9|-]+$/; if (!r_tel || !tel_rge.test(r_tel)) { $(".error_msg").text('Please enter a valid tel number.'); button_submit = true; return; } agree_ps = $("input[name='agree_ps']:checked").val(); if (agree_ps < 0){ $(".error_msg").text('Check error.'); button_submit = true; return; } } }else{ alert('Request error.'); button_submit = true; return; } var buy_id = ""; var url = "https://www.pharmasources.com/psr/submit"; $.post(url,{ _token:'zNW4nYWTr7ouz4jbhAfcp3hiXQgsPZanPWK1Fyd9', bid:buy_id, product_name:product_name, // product_category:product_category, product_category_value:product_category_value, product_description:product_description, product_description_other:product_description_other, expected_quantity:expected_quantity, // expected_quantity_unit:expected_quantity_unit, expected_quantity_unit_value:expected_quantity_unit_value, expected_quantity_other:expected_quantity_other, valid_to:valid_to, type:type, uemail:uemail, pwd:pwd, r_username:r_username, r_email:r_email, r_company:r_company, r_tel_code:r_tel_code, r_tel:r_tel, agree_ps:agree_ps, },function (res) { if(res.code == 200) { // alert(res.msg); $("#form input").each(function () { $(this).val(''); }); $(".pull-left-textarea").val(''); $(".product").empty(); $(".file-class").empty(); $(".num-class").text(0); $(".selector:first").prop("selected", 'selected'); $(".input_unit").removeAttr('id'); $("#definite_date_other").hide().css('margin-left', '0px'); $(".expected_quantity_form select option:first").prop("selected", 'selected'); $("#xsztip").show(); $("#xsztip_copay").hide(); var exdate = new Date(); exdate.setTime(-1000); document.cookie='product_name= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_category= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_category_value= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_description= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_description_other= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity_unit= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity_unit_value= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity_other= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='valid_to= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_name_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_category_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_category_value_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_description_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='product_description_other_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity_unit_value_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='expected_quantity_other_now= ;path=/;expires= '+ exdate.toGMTString(); document.cookie='valid_to_now= ;path=/;expires= '+ exdate.toGMTString(); $(".psr_ra").show(); $(".psr_n").hide(); $(".ra_rd_f input:first").prop('checked',true); $(".ra_rd_f input:last").prop('checked',false); $("input[name='r_username']").val(''); $("input[name='r_company']").val(''); $("input[name='r_email']").val(''); $("input[name='r_tel']").val(''); $(".psr_n_r_f input:first").prop('checked',true); $(".psr_n_r_f input:last").prop('checked',false); $("#select_ul option[value='+93']").prop('selected',true); $("input[name='uemail']").val(''); $("input[name='pwd']").val(''); button_submit = true; if(buy_id){ location.href = "https://www.pharmasources.com/buyer/sourcing"; } location.href="/enquiries_success/buy/"+res.data; }else if(res.code == 401){ $(".error_msg").text(res.msg); button_submit = true; }else{ alert(res.msg); button_submit = true; } },'json') }); function login() { $("#cover").show(); $(".alert-box_login").show(); // $(".login_product_name").val(product_name); // $(".login_product_category").val(product_category); // $(".login_product_category_value").val(product_category_value); // $(".login_product_description").val(product_description); // $(".login_product_description_other").val(product_description_other); // $(".login_expected_quantity").val(expected_quantity); // $(".login_expected_quantity_unit_value").val(expected_quantity_unit_value); // $(".login_expected_quantity_other").val(expected_quantity_other); // $(".login_valid_to").val(valid_to); var exdate = new Date(); exdate.setTime(exdate.getTime() + 15*60*1000); var arr_product_name = []; for (let i in product_name) { arr_product_name.push(product_name[i]); //属性 } document.cookie='product_name='+arr_product_name+';path=/;expires= '+ exdate.toGMTString(); var arr_product_category = []; for (let i in product_category) { arr_product_category.push(product_category[i]); //属性 } document.cookie='product_category='+arr_product_category+';path=/;expires= '+ exdate.toGMTString(); var arr_product_category_value = []; for (let i in product_category_value) { arr_product_category_value.push(product_category_value[i]); //属性 } document.cookie='product_category_value='+arr_product_category_value+';path=/;expires= '+ exdate.toGMTString(); var arr_product_description = []; for (let i in product_description) { arr_product_description.push(product_description[i]); //属性 } document.cookie='product_description='+arr_product_description+';path=/;expires= '+ exdate.toGMTString(); var arr_product_description_other = []; for (let i in product_description_other) { re = new RegExp(",","g"); arr_product_description_other.push(product_description_other[i].replace(re, "&")); //属性 } document.cookie='product_description_other='+arr_product_description_other+';path=/;expires= '+ exdate.toGMTString(); var arr_expected_quantity = []; for (let i in expected_quantity) { arr_expected_quantity.push(expected_quantity[i]); //属性 } document.cookie='expected_quantity='+arr_expected_quantity+';path=/;expires= '+ exdate.toGMTString(); var arr_expected_quantity_unit = []; for (let i in expected_quantity_unit) { arr_expected_quantity_unit.push(expected_quantity_unit[i]); //属性 } document.cookie='expected_quantity_unit='+arr_expected_quantity_unit+';path=/;expires= '+ exdate.toGMTString(); var arr_expected_quantity_unit_value = []; for (let i in expected_quantity_unit_value) { arr_expected_quantity_unit_value.push(expected_quantity_unit_value[i]); //属性 } document.cookie='expected_quantity_unit_value='+arr_expected_quantity_unit_value+';path=/;expires= '+ exdate.toGMTString(); var arr_expected_quantity_other = []; for (let i in expected_quantity_other) { arr_expected_quantity_other.push(expected_quantity_other[i]); //属性 } document.cookie='expected_quantity_other='+arr_expected_quantity_other+';path=/;expires= '+ exdate.toGMTString(); var arr_valid_to = []; for (let i in valid_to) { arr_valid_to.push(valid_to[i]); //属性 } document.cookie='valid_to='+arr_valid_to+';path=/;expires= '+ exdate.toGMTString(); // if($(".product_name_input").val()){ document.cookie='product_name_now='+$(".product_name_input").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_pn").val($(".product_name_input").val()); // } // if($(".category_id_input").val()){ document.cookie='product_category_now='+$(".category_id_input").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_pc").val($(".category_id_input").val()); // } // if($(".category_id_input_value").val()){ document.cookie='product_category_value_now='+$(".category_id_input_value").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_pcv").val($(".category_id_input_value").val()); // } // if($(".pull-left-textarea").val()){ document.cookie='product_description_now='+$(".pull-left-textarea").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_pd").val($(".pull-left-textarea").val()); // } if($("input[name='upload[]']").val()){ var upload = []; $("input[name='upload[]']").each(function (k, v) { re = new RegExp(",","g"); upload.push((v.value).replace(re, "&")); }); document.cookie='product_description_other_now='+upload+';path=/;expires= '+ exdate.toGMTString(); // $(".login_pdo").val(upload); }else{ document.cookie='product_description_other_now= ;path=/;expires= '+ exdate.toGMTString(); } // if($(".input_unit").val()){ document.cookie='expected_quantity_now='+$(".input_unit").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_eq").val($(".input_unit").val()); // } // if($(".input_unit").val() && $("select option:selected").val()){ // if($("select option:selected").val()){ document.cookie='expected_quantity_unit_value_now='+$("select option:selected").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_equv").val($("select option:selected").val()); // } // if($("#definite_date_other").val()){ document.cookie='expected_quantity_other_now='+$("#definite_date_other").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_eqo").val($("#definite_date_other").val()); // } // if($(".valid_to_input").val()){ document.cookie='valid_to_now='+$(".valid_to_input").val()+';path=/;expires= '+ exdate.toGMTString(); // $(".login_vt").val($(".valid_to_input").val()); // } } $('#login_form').bootstrapValidator({ message: 'This value is not valid', submitHandler: function (validator, form, submitButton) { }, fields: { 'username': { message: ' ', validators: { notEmpty: { message: '' }, } }, 'password': { message: ' ', validators: { notEmpty: { message: '' }, } } }, }); var login_submit = true; $(".sign_btn").click(function () { if (!login_submit) { return false; } login_submit = false; var bootstrapValidator = $("form").data('bootstrapValidator').validate(); bootstrapValidator.validate(); if (bootstrapValidator.isValid()) { $.post('https://www.pharmasources.com/login/submit',$('#login_form').serialize(),function (res) { var data=$.parseJSON(res); if(data.code == 0 && data.data.num == 38){ if (data.data.count == 1 || data.data.count == 2) { alert('Suppliers can not publish sourcing message'); $("#form input").each(function () { $(this).val(''); }); $(".pull-left-textarea").val(''); $(".product").empty(); $(".file-class").empty(); $(".num-class").text(0); $(".selector:first").prop("selected", 'selected'); $(".input_unit").removeAttr('id'); $("#definite_date_other").hide().css('margin-left', '0px'); $(".expected_quantity_form select option:first").prop("selected", 'selected'); var exdate = new Date(); exdate.setTime(-1000); document.cookie = 'product_name= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category_value= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description_other= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_unit= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_unit_value= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_other= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'valid_to= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_name_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_category_value_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'product_description_other_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_unit_value_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'expected_quantity_other_now= ;path=/;expires= ' + exdate.toGMTString(); document.cookie = 'valid_to_now= ;path=/;expires= ' + exdate.toGMTString(); window.location.href = '/'; }else{ alert("Login successfully."); } $("#cover").hide(); $(".alert-box_login").hide(); $("input[name='username']").val(''); $("input[name='password']").val(''); $("input[name='login']").val('1'); var str = '<img src="https://www.pharmasources.com/static/web/image/images/img_3_03.png" alt="">'; str += '<a class="temp_a" style="color:#4fc2b8;text-decoration: underline"'; if((data.data.count == 1 || data.data.count == 2) && data.data.parameter == 1) { str += 'href="https://www.pharmasources.com/member/style" > '; }else{ str += 'href="https://www.pharmasources.com/buyer/home" > '; } if(data.data.user){ str += data.data.user_name; }else{ str += data.data.username; } str += '</a>'; str += '<a href="https://www.pharmasources.com/login/out">Log out</a>'; $(".pharmacy_header_sign").empty(); $(".pharmacy_header_sign").append(str); }else if(data.code == 301){ $("#cover").hide(); $(".alert-box_login").hide(); $("input[name='username']").val(''); $("input[name='password']").val(''); $("#yes-ap").css('opacity',0.5).css('cursor','auto').css('pointer-events','none'); $("#cover-ap").css('display','block'); $(".alert-box-ap").css('display','block'); $("#uid_ap").val(data.data); $("#type_ap").val(38); }else if(data.code == 203){ //未激活 $(".sa").attr('data-id',data.data.id).attr('data-vec',data.data.activate_url_type); $(".alert-box-jh,#s_fx_jh a").show(); }else{ alert(data.msg); } login_submit = true; return; }); } login_submit = true; return; }); $(".ra_rd input").on('click',function () { if ($(this).val() == 1){ $(".psr_ra").show(); $(".psr_n").hide(); $("input[name='r_username']").val(''); $("input[name='r_company']").val(''); $("input[name='r_email']").val(''); $("input[name='r_tel']").val(''); $(".psr_n_r_f input:first").attr('checked',true); $("#select_ul option[value='+93']").prop('selected',true); } else if($(this).val() == 2){ $(".psr_ra").hide(); $(".psr_n").show(); $("input[name='uemail']").val(''); $("input[name='pwd']").val(''); } $(".error_msg").text(''); }) </script>