var $commonParam = {}; $commonParam.accessLimitAndCopyright ={"code":1,"msg":"\u8bf7\u6c42\u6210\u529f","data":{"template":"'; $("body").append(autoOnlineServiceHtml + autoOnlineServiceCss + ''); $('.' + $ifRaMeClass).height($onlineConfig.defaultH - $("#moveHeader").height()); $.onlineServicePos($onlineConfig.node, $onlineConfig.defaultW, $onlineConfig.defaultH); $("." + $onlineConfig.node).on('mousedown', function (event) { var $this = $(this), _top = $this.offset().top, _left = $this.offset().left,//獲取div位置偏移量 divX = event.clientX, divY = event.clientY, //獲取鼠標位置 $winWith = $(document).width(), $winHeight = $(document).height(); isFlag = true; if (document.attachEvent) { $this[0].attachEvent('onselectstart', function () { return false; }); } $(document).mousemove(function (e) { if (isFlag) { var divMoveX = e.clientX, divMoveY = e.clientY; var $scrollTop = $(document).scrollTop(), $scrollLeft = $(document).scrollLeft();//滾動條高度 var posLeft = divMoveX - divX + _left - $scrollLeft, posTop = divMoveY - divY + _top - $scrollTop; var intValH = $winHeight - $onlineConfig.defaultH, intValW = $winWith - $onlineConfig.defaultW; posTop = posTop < 0 ? 0 : (posTop > intValH ? intValH : posTop); posLeft = posLeft > intValW ? intValW : posLeft; //右限制 posLeft = posLeft < 0 ? 0 : posLeft; //左邊的偏移量小于0的時候設置 左邊的位置為0 $this.css({'left': posLeft, 'top': posTop}); } }).mouseup(function () { isFlag = false; $(document).off("mousemove"); }) }); }, //pc縮小版 minOnlineService: function ($onlineConfig) { if ($("." + $onlineConfig.minNode).length > 0) { $("." + $onlineConfig.minNode).remove(); } $onlineConfig.badge = parseInt($commonParam.AutoOnlineService.badge); var minHtml = '
' + '
' + $commonParam.AutoOnlineService.customer_min_name + '
' + '
'; if ($onlineConfig.badge > 0) { minHtml += '
' + $onlineConfig.badge + '
'; } minHtml += '
'; $("body").append(minHtml + '
'); $.onlineServicePos($onlineConfig.minNode, 225,42); }, //手機端在線客服 mobileOnlineService: function ($onlineConfig) { if ($("." + $onlineConfig.mobileNode).length > 0) { $("." + $onlineConfig.mobileNode).remove(); } $onlineConfig.badge = parseInt($commonParam.AutoOnlineService.badge); var mobileHtml = '
' + ''; if ($onlineConfig.badge > 0) { mobileHtml += '
' + $onlineConfig.badge + '
'; } mobileHtml += '
'; $("body").append(mobileHtml + '
'); $.onlineServicePos($onlineConfig.mobileNode, 50,50); } }) $(function () { /** * 獲取網站版權信息 */ if ($commonParam.accessLimitAndCopyright.code == 1) { $("body").append($commonParam.accessLimitAndCopyright.data.template) } /** * 加載客服 */ if (parseInt($commonParam.AutoOnlineService.status) == 1) { var $serviceConfig = { 'checkMobile': $.checkMobile(), 'node': 'online_service_container', 'minNode': 'minOnlineServer', 'mobileNode': 'mobileOnlineServer', }; var $defaultStyle=parseInt($commonParam.AutoOnlineService.customer_style_default); if ($serviceConfig.checkMobile) { $.mobileOnlineService($serviceConfig); } else { switch ($defaultStyle) { case 3 : $.mobileOnlineService($serviceConfig); break; //移動端樣式 case 2 : $.minOnlineService($serviceConfig); break; //底部縮小框 default : $.maxOnlineService($serviceConfig); break; } } //縮小 $(document).on("click", '#chat_min_btn', function () { $("#" + $serviceConfig.node).off('mousedown').remove(); if ($serviceConfig.checkMobile) { $.mobileOnlineService($serviceConfig); } else { switch ($defaultStyle) { case 3 : $.mobileOnlineService($serviceConfig); break; //移動端樣式 default : $.minOnlineService($serviceConfig); break; //底部縮小框 } } }) //關閉 $(document).on("click", '#chat_close', function () { $("#" + $serviceConfig.node).off('mousedown').remove(); $("#" + $serviceConfig.minNode).remove(); }) //展開 $(document).on("click", '#' + $serviceConfig.minNode+' .online-service-min', function () { $("#" + $serviceConfig.minNode).remove(); $.maxOnlineService($serviceConfig); }) //手機版彈出框 $(document).on("click", '#' + $serviceConfig.mobileNode, function () { $("#" + $serviceConfig.mobileNode).remove(); $.maxOnlineService($serviceConfig); }) } })自怕偷自怕亚洲精品_狠狠久久亚洲欧美专区_天天狠天天透天天伊人_免费观着女人高潮视频_护士被医生办公室狂玩bd视频 <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <文本链> <文本链> <文本链> <文本链> <文本链> <文本链>