更新记录
1.0.6(2025-02-20)
优化代码
1.0.3(2025-02-19)
修改bug
1.0.2(2025-02-19)
优化详情
查看更多平台兼容性
Vue2 | Vue3 |
---|---|
√ | √ |
App | 快应用 | 微信小程序 | 支付宝小程序 | 百度小程序 | 字节小程序 | QQ小程序 |
---|---|---|---|---|---|---|
HBuilderX 3.6.8,Android:5.0,iOS:9,HarmonyNext:不支持 | × | × | × | × | × | × |
钉钉小程序 | 快手小程序 | 飞书小程序 | 京东小程序 | 鸿蒙元服务 |
---|---|---|---|---|
× | × | × | × | × |
H5-Safari | Android Browser | 微信浏览器(Android) | QQ浏览器(Android) | Chrome | IE | Edge | Firefox | PC-Safari |
---|---|---|---|---|---|---|---|---|
× | × | × | × | × | × | × | × | × |
qc-doyin-authorize
开发文档
UTS 语法 UTS API插件 UTS uni-app兼容模式组件 UTS 标准模式组件 Hello UTS
示例
<template>
<button @click="getAuthorize">获取授权</button>
</template>
<style>
</style>
import { onDouyinAuthorize } from '../../uni_modules/qc-doyin-authorize'
export default {
methods:{
getAuthorize(){
onDouyinAuthorize({
scope: 'user_info', // 不用改
state: 'ww', // 不用改
clientkey: 'xxxxxxx', // DY平台获取的唯一标识。
success(res) {
console.log(res)
// 回掉的内容
// res.authCode 临时票据
// res.errorCode 平台返回的错误码
},
fail(res){
console.log(res)
}
})
}
}
}