浏览代码

feat:根据环境判断客服跳转链接

zhangsiya 1 年之前
父节点
当前提交
ed1d553923
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      apps/mobile/src/components/customer/index.vue

+ 6 - 1
apps/mobile/src/components/customer/index.vue

@@ -27,7 +27,12 @@
    created () {},
    methods: {
      jumpCustomerPage () {
-       location.href = '/page_social_mobile/home?pname=剑鱼标讯&receiveAppId=465d475c52&userType=1'
+       // 正式环境id
+       let receiveAppId = '465d475c52'
+       if(process.env.NODE_DEV !== 'production') {
+         receiveAppId = '455b495c5c'
+       }
+       location.href = `/page_social_mobile/home?pname=剑鱼标讯&receiveAppId=${receiveAppId}&userType=1`
      }
    }
  }