Forráskód Böngészése

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

zhangsiya 1 éve
szülő
commit
ed1d553923
1 módosított fájl, 6 hozzáadás és 1 törlés
  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`
      }
    }
  }