Browse Source

百度商桥调试

柳香萍 5 years ago
parent
commit
6a603cfe38
3 changed files with 13 additions and 12 deletions
  1. 11 2
      static/js/suspension.js
  2. 1 9
      views/new_main/index.html
  3. 1 1
      views/new_main/mircomall_index.html

+ 11 - 2
static/js/suspension.js View File

40
 			}
40
 			}
41
 		}
41
 		}
42
 	});
42
 	});
43
-
44
 });
43
 });
45
 
44
 
46
 // 下面的悬浮框
45
 // 下面的悬浮框
53
 			$('.wraper-1vdHN1Z2BV').fadeOut(100);			
52
 			$('.wraper-1vdHN1Z2BV').fadeOut(100);			
54
 		}
53
 		}
55
 	})
54
 	})
56
-})
55
+});
56
+
57
+// 百度商桥
58
+$(function(){
59
+    // 点击按钮时判断 百度商桥代码中的“我要咨询”按钮的元素是否存在,存在的话就执行一次点击事件
60
+    $(".a-service").click(function(event) {
61
+        if ($('#nb_invite_ok').length > 0) {
62
+            $('#nb_invite_ok').click();
63
+        }
64
+    });
65
+});

+ 1 - 9
views/new_main/index.html View File

49
                         <li><a href="/scrm">SCRM</a></li>
49
                         <li><a href="/scrm">SCRM</a></li>
50
                         <li><a href="/mmall">微商城</a></li>
50
                         <li><a href="/mmall">微商城</a></li>
51
                         <li><a href="/about">关于我们</a></li>
51
                         <li><a href="/about">关于我们</a></li>
52
-                        <!-- <li class="dropdown">
53
-                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">服务</a>
54
-                            <ul class="dropdown-menu animated fadeOutUp" style="display: none; opacity: 1;">
55
-                                <li><a href="/scrm">SCRM</a></li>
56
-                                <li><a href="/mmall">微商城</a></li>
57
-                                <li><a href="/xt">血透管理</a></li>
58
-                                <li><a href="/cdm">慢病管理</a></li>
59
-                            </ul>
60
-                        </li> -->
52
+                       
61
                     </ul>
53
                     </ul>
62
                 </div>
54
                 </div>
63
             </nav>
55
             </nav>

+ 1 - 1
views/new_main/mircomall_index.html View File

27
           var s = document.getElementsByTagName("script")[0]; 
27
           var s = document.getElementsByTagName("script")[0]; 
28
           s.parentNode.insertBefore(hm, s);
28
           s.parentNode.insertBefore(hm, s);
29
         })();
29
         })();
30
-        </script>
30
+    </script>
31
 </head>
31
 </head>
32
 
32
 
33
 <body>
33
 <body>