|
@@ -166,15 +166,6 @@ $(function () {
|
|
|
scrollSideIconHide()
|
|
|
kfContact()
|
|
|
})
|
|
|
-$('.help-slide-bottom .open-customer').on('click', function (e) {
|
|
|
- // e.stopPropagation()
|
|
|
- var shunt = JSON.parse(localStorage.getItem('kf-shunt-data'))
|
|
|
- if (shunt.url && shunt.url == 'zcpc') {
|
|
|
- // return
|
|
|
- } else {
|
|
|
- location.href = shunt.url + '&mini=0'
|
|
|
- }
|
|
|
-})
|
|
|
var openCustomDig = false
|
|
|
window.onmessage = function(e){
|
|
|
if(e&&e.data&&e.data!== ''){
|
|
@@ -196,13 +187,11 @@ $(window).on('click', function (e) {
|
|
|
var openDom = $(e.target).hasClass('open-customer') || $(e.target).parents().hasClass('open-customer')
|
|
|
if (openDom) {
|
|
|
openCustomDig = true
|
|
|
- // var shunt = JSON.parse(localStorage.getItem('kf-shunt-data'))
|
|
|
- // console.info(shunt)
|
|
|
- // if (shunt.url && shunt.url == 'zcpc') {
|
|
|
- // // return
|
|
|
- // } else {
|
|
|
- // location.href = shunt.url + '&mini=0'
|
|
|
- // }
|
|
|
+ var shunt = JSON.parse(localStorage.getItem('kf-shunt-data'))
|
|
|
+ console.info(shunt)
|
|
|
+ if (!shunt.url && shunt.url !== 'zcpc') {
|
|
|
+ location.href = shunt.url + '&mini=0'
|
|
|
+ }
|
|
|
$(".icon-badge-number").removeAttr('data-badge-number');
|
|
|
var href = window.location.href;
|
|
|
var sourceStr =""
|