globalFunctionsForApp.ts 433 B

12345678910111213141516171819
  1. import {
  2. isWeiXinBrowser
  3. } from './globalFunctions'
  4. declare const JyObj: any
  5. const inWeiXinBrowser = isWeiXinBrowser()
  6. // 是否是微信浏览器
  7. // 参数0隐藏底部导航,参数1,显示底部导航
  8. export function hiddenBottomBar (params = 0) {
  9. // 如果是app端,隐藏底部导航
  10. if (!inWeiXinBrowser) {
  11. try {
  12. JyObj.hiddenBottom(params + '')
  13. } catch (error) {
  14. console.log(error)
  15. }
  16. }
  17. }