更新记录
1.0.0(2024-11-27)
2024年11月22日更新日志:
企业微信安卓登录端适配
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | √ | - | - | - | - | 4.4 | × | × |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
× | × | × | × | × | × | - | × | × | × | × |
uni-app x
Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
---|---|---|---|---|---|
- | - | 5.0 | × | × | × |
p-crop-wechat企业微信插件
插件类型:UTS插件
支持平台: Android
集成方法:将p-crop-wechat文件夹置于项目根目录uni_modules文件夹下
使用方法:
1.在页面中导入插件方法:
import { cropWeChatLoginSync } from "@/uni_modules/p-crop-wechat";
2.方法说明:
cropWeChatLoginSync(CropWeChatLoginParams) : AuthResult
企业微信授权登录。
使用方法:cropWeChatLoginSync(cropWeChatLoginParams),cropWeChatLoginParams为CropWeChatLoginParams类型 如下,返回AuthResult类型。
// 测试企业微信 let res = cropWeChatLoginSync( { AppId : 'wwaabc6dd143c2a826', agentId: '1000011', schema: 'wwauthaabc6dd143c2a826000011' }) console.log('测试企业微信结果',res)
//请求参数类型 export type CropWeChatLoginParams = { AppId : string agentId: string schema: string success ?: (res : AuthResult) => void fail ?: (res : AuthFail) => void complete ?: (res : any) => void } //同步返回参数类型 code为微信返回的授权码 export type AuthResult = { code : string, success : boolean, msg : string, }