Selaa lähdekoodia

feat:分流点击事件

wangxiaogang 3 vuotta sitten
vanhempi
commit
80a7599f10
1 muutettua tiedostoa jossa 5 lisäystä ja 16 poistoa
  1. 5 16
      src/web/staticres/public-pc/js/pc-bottom.js

+ 5 - 16
src/web/staticres/public-pc/js/pc-bottom.js

@@ -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 =""