import { isWeiXinBrowser } from './globalFunctions' declare const JyObj: any const inWeiXinBrowser = isWeiXinBrowser() // 是否是微信浏览器 // 参数0隐藏底部导航,参数1,显示底部导航 export function hiddenBottomBar (params = 0) { // 如果是app端,隐藏底部导航 if (!inWeiXinBrowser) { try { JyObj.hiddenBottom(params + '') } catch (error) { console.log(error) } } } // 分享封装 export function shareToOthers (options: any = {}) { if (inWeiXinBrowser) { // 微信分享 } else { // app分享 try { // options.type--1微信分享,2qq分享,3朋友圈分享 JyObj.share(options.type, options.title, options.content, options.link) } catch (error) { console.log(error) } } }