|
|
@@ -53,15 +53,18 @@ const CommonHeader = (function () {
|
|
|
}
|
|
|
//绑定事件
|
|
|
//@return {void}
|
|
|
- function addEventListener(){
|
|
|
+ function addEventListener() {
|
|
|
csDom.click(function () {
|
|
|
getCategoryList(-1, '联系客服');
|
|
|
});
|
|
|
+ $('#stop-create-contact').click(function () {
|
|
|
+ getCategoryList(-1, '联系客服');
|
|
|
+ });
|
|
|
}
|
|
|
//取消浏览器自带右键
|
|
|
//@return {void}
|
|
|
function banNavigatorContextMenu() {
|
|
|
- document.oncontextmenu = function(event) {
|
|
|
+ document.oncontextmenu = function (event) {
|
|
|
if (window.event) {
|
|
|
event = window.event;
|
|
|
}
|
|
|
@@ -101,6 +104,6 @@ const CommonHeader = (function () {
|
|
|
|
|
|
CommonHeader.banNavigatorContextMenu();
|
|
|
|
|
|
-$(document).ready(function(){
|
|
|
+$(document).ready(function () {
|
|
|
CommonHeader.addEventListener();
|
|
|
});
|