Procházet zdrojové kódy

feat:官网展示客服,其他主站展示客成或者客服

zhangsiya před 1 rokem
rodič
revize
252c27daf8
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      src/web/staticres/public-pc/js/pc-bottom.js

+ 8 - 1
src/web/staticres/public-pc/js/pc-bottom.js

@@ -233,10 +233,17 @@ window.kefu = {
   wxer: ''
   wxer: ''
 }
 }
 function getKefuInfo () {
 function getKefuInfo () {
+  var data = {}
+  // 官网展示客服,主站有客成展示客成,没有展示客服活码
+  if(window.__headerSiteType === 0) {
+    data = {
+      type: "kf"
+    }
+  }
   $.ajax({
   $.ajax({
     type: 'post',
     type: 'post',
     url: '/bigmember/use/getCustom',
     url: '/bigmember/use/getCustom',
-    data: { type: "kf" },
+    data: data,
     success: function (res) {
     success: function (res) {
       if (res && res.data) {
       if (res && res.data) {
         const resData = res.data || {}
         const resData = res.data || {}