| | |
| | | // 声明文件,定义全局变量 |
| | | /* eslint-disable */ |
| | | declare interface Window { |
| | | WxLogin: { |
| | | /** |
| | | * 微信扫码登录构造函数 |
| | | * @param options 配置选项 |
| | | * @param options.self_redirect 手机点击确认登录后是否在iframe内跳转,默认false在top window跳转 |
| | | * @param options.id 必填,第三方页面显示二维码的容器id |
| | | * @param options.appid 必填,应用唯一标识 |
| | | * @param options.scope 必填,授权作用域,网页应用填写snsapi_login |
| | | * @param options.redirect_uri 必填,重定向地址(需UrlEncode) |
| | | * @param options.state 用于保持请求和回调状态,防csrf攻击 |
| | | * @param options.style 二维码文字颜色样式,可选"black"、"white" |
| | | * @param options.href 自定义样式链接 |
| | | * @param options.stylelite 是否使用新样式二维码登录,值为1时启用 |
| | | * @param options.fast_login 是否启用快速登录,值为0时禁用 |
| | | */ |
| | | new (options: { |
| | | /** @description 手机点击确认登录后是否在iframe内跳转,默认false在top window跳转 */ |
| | | self_redirect?: boolean; |
| | | /** @description 必填,第三方页面显示二维码的容器id */ |
| | | id: string; |
| | | /** @description 必填,应用唯一标识 */ |
| | | appid: string; |
| | | /** @description 必填,授权作用域,网页应用填写snsapi_login */ |
| | | scope: string; |
| | | /** @description 必填,重定向地址(需UrlEncode) */ |
| | | redirect_uri: string; |
| | | /** @description 用于保持请求和回调状态,防csrf攻击 */ |
| | | state?: string; |
| | | /** @description 二维码文字颜色样式,可选"black"、"white" */ |
| | | style?: 'black' | 'white'; |
| | | /** @description 自定义样式链接 */ |
| | | href?: string; |
| | | /** @description 是否使用新样式二维码登录,值为1时启用 */ |
| | | stylelite?: 0 | 1; |
| | | /** @description 是否启用快速登录,值为0时禁用 */ |
| | | fast_login?: 0 | 1; |
| | | }): void; |
| | | }; |
| | | openPage: any; |
| | | nextLoading: boolean; |
| | | route: { |
| | |
| | | SecondaryUrl?: string; |
| | | /** @description 副副... url */ |
| | | TertiaryUrl?: string; |
| | | |
| | | /** @description sse url */ |
| | | SSEUrl: string; |
| | | /** @description 权限 url */ |
| | | AuthUrl: string; |
| | | /** @description 分享 url */ |