wechat-jssdk.service.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { HttpClient } from '@angular/common/http';
  2. import { AuthService } from '../../user/login/auth.service';
  3. import * as i0 from "@angular/core";
  4. export declare class WechatJssdkService {
  5. private http;
  6. private authServ;
  7. isInit: boolean;
  8. isWechat: boolean;
  9. wx: any;
  10. company: string;
  11. wechatAccountId: string;
  12. openid: string;
  13. constructor(http: HttpClient, authServ: AuthService);
  14. /**
  15. * 配置当前页面分享参数
  16. */
  17. setCurrentPageShareInfo(shareInfo?: {
  18. title: string;
  19. desc: string;
  20. link: string;
  21. type: string;
  22. imgUrl: string;
  23. success: () => void;
  24. error: () => void;
  25. cancel: () => void;
  26. }): Promise<void>;
  27. getInviteUrl(url: any): string;
  28. /**
  29. * 当前页面获取微信授权签名
  30. */
  31. getWXSignPackageInWechat(): Promise<any>;
  32. /** 微信用户初始化
  33. * @desc 为当前已登录用户,获取微信授权openid信息
  34. */
  35. initUserOpenid(): Promise<void>;
  36. authWechat(url?: string): void;
  37. getQueryStringByName(name: string): string;
  38. getwechat(code: string, url?: string): Promise<boolean>;
  39. /** 微信环境初始化 */
  40. init(): Promise<boolean>;
  41. loadScript(url: any, callback: any, errCallback: any): void;
  42. static ɵfac: i0.ɵɵFactoryDeclaration<WechatJssdkService, never>;
  43. static ɵprov: i0.ɵɵInjectableDeclaration<WechatJssdkService>;
  44. }