12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // import 'css/bootstrap.less';
- import 'bootstrap/dist/js/bootstrap.js';
- import 'css/newMenu/public.css';
- import 'css/newMenu/header.css'
- import 'css/newMenu/tradingIndex.css';
- import 'js/public.js';
- $(function(){
- navTop();
- banner();
- jump();
- function navTop() {
- $(window).scroll(function(){
- var scrolltop=$(document).scrollTop();
- if(scrolltop>0){
- $('.topNav').addClass('navFix')
- }else{
- $('.topNav').removeClass('navFix');
- }
- });
- }
- function banner(){
- $('#myCarousel').carousel({
- interval: 4000
- })
- };
- //在线评估跳转
- function jump(){
- $('.trandPg span').click(function(){
- let loginTxt=$('.head_login')[0];
- if(loginTxt&&($(loginTxt).text())=='登录'){
- $('.head_login').click();
- window.location.hash='jump';
- return false;
- }else{
- window.location.href= globalConfig.context+'/user/account/index.html#/evaluate';
- }
- })
- $('.hasAchievement,.relAchievement').click(function(){
- let loginTxt=$('.head_login')[0];
- if(loginTxt&&($(loginTxt).text())=='登录'){
- $('.head_login').click();
- window.location.hash='jump';
- return false;
- }else{
- window.location.href= globalConfig.context+'/user/account/index.html#/achievement';
- }
- })
- $('.hasDemand,.relDemand').click(function(){
- let loginTxt=$('.head_login')[0];
- if(loginTxt&&($(loginTxt).text())=='登录'){
- $('.head_login').click();
- window.location.hash='jump';
- return false;
- }else{
- window.location.href= globalConfig.context+'/user/account/index.html#/demand';
- }
- })
-
- }
- })
|