function indexpage() { } indexpage.prototype={ init:function () { this.event(); }, event:function () { var self=this; $("#slider").responsiveslides({ auto: true, pager: false, nav: true, speed: 1500, timeout:5000, pager: true, pausecontrols: true, namespace: "callbacks" }); $(document).on("click","a[name='casevideo'] , a[name='newsvideo']",function () { self.displayvideo($(this).data("href"),$(this).data("title")); }); $(document).on("click","#productshow a[name='applyuse'],a[name='bookexpert']",function () { var formtitle=$(this).data("form-title"); var formid=$(this).data("form-id"); if(!formid) return; formtitle=formtitle || $(this).attr("title") || "信息"; window.third.form.open(formid,formtitle); }); $(document).on("click","#applyuseydz",function () { if(component.logined){ window.open("http://e.chanjet.com/?a=cjtmkt&c=website"); }else { https:// window.open("https:"+env_type+"register.chanjet.com/register?app=finance&cooporigin=chanjetpc&type=20&svrcode=cjtmkt&svrpromoter=website&productid=260&loginstr=none&callback=https%3a%2f%2fe.chanjet.com%2fdesc%2findex") } }); $(document).on("click","#applyusehkj",function () { if(component.logined){ window.open("https:"+env_type+"h.chanjet.com/?a=cjtmkt&c=website"); }else { var env=encodeuricomponent(env_type); window.open("https:"+env_type+"h.chanjet.com/hkj/register?appid=59&app=accounting&type=20&a=cjtmkt&c=website&u=&cooperationorigin=hkjweb&callback=https%3a"+env+"h.chanjet.com%2f") } }); $(document).on("click","#applyusegzq",function () { if(component.logined){ window.open("https:"+env_type+"gzq.chanjet.com/?a=cjtmkt&c=website"); }else { var env=encodeuricomponent(env_type); window.open("https:"+env_type+"register.chanjet.com/register?app=gzq&cooporigin=chanjetpc&type=20&svrcode=cjtmkt&svrpromoter=website&callback=https%3a"+env+"gzq.chanjet.com") } }); $(document).on("click","[name=applyusetpluscloud]",function () { if(component.logined){ $.post("/trytpc",function (winhtml) { if($("#").length)//防止重复弹窗 return; layer.open({ title:"我要体验", type:1, content:winhtml, area: ['500px', '350px'] }); }); }else { var callback="https:"+env_type+"t.chanjet.com/tplus/view/login.html?industrycode=common&groupcode=301&from=exp"; window.open("https:"+env_type+"register.chanjet.com/register?app=tcloud&cooporigin=chanjetpc&type=20&productid=3221&svrcode=cjtmkt&svrpromoter=website&callback="+encodeuricomponent(callback)); } }); $(".card-area .card-item").hover(function(){/*我们的t产品能为您做什么*/ $(this).addclass('active').siblings().removeclass('active'); }) $(".i_two_t ul li").click(function () {/*我们的产品能为您做什么*/ var linum = $(this).index(); var caselist = $(".i_two_div .i_two_hiden"); $(this).addclass('isel').siblings().removeclass('isel'); caselist.eq(linum).show().siblings().hide(); }) $(".owl-demo4").owlcarousel({/*风寸同行共同成长*/ items :3, itemsdesktop : [1199, 3], itemsdesktopsmall : [979, 3], itemstablet : [768, 3], itemstabletsmall : false, itemsmobile : [479, 3], lazyload : true, autoplay:true, navigation : true }); $(".owl-demo5").owlcarousel({/*他们都在用畅捷通*/ items :1, itemsdesktop : [1199, 1], itemsdesktopsmall : [979, 1], itemstablet : [768, 1], itemstabletsmall : false, itemsmobile : [479, 1], lazyload : true, autoplay:true, navigation : true }); $(".owl-demo6").owlcarousel({/*专家互动*/ items :1, itemsdesktop : [1199, 1], itemsdesktopsmall : [979, 1], itemstablet : [768, 1], itemstabletsmall : false, itemsmobile : [479, 1], lazyload : true, autoplay:true, navigation : true }); }, displayvideo:function (url,title) { var width=$(window).width(),height=$(window).height(); layer.open({ title:title || "", content:'', type:1, area:[(height*1.78)+"px",(height*0.8+50)+"px"] }); } } $(document).ready(function () { new indexpage().init() });