tools.ts 374 B

1234567891011121314151617
  1. import { config } from "../config/config";
  2. export class tools {
  3. public static platform:string = config.Platform.H5
  4. public static initPlatform(){
  5. // #ifdef MP-WEIXIN
  6. tools.platform = config.Platform.WEIXIN
  7. // #endif
  8. // #ifdef MP-TOUTIAO
  9. tools.platform = config.Platform.WEIXIN
  10. // #endif
  11. }
  12. public static getCurPlatform(){
  13. return tools.platform
  14. }
  15. }