更新记录
1.0.1(2025-04-21)
- 修复鸿蒙打包错误问题
1.0.0(2025-01-08)
- 抖音授权登录分享SDK,暂时仅支持Android,后续支持iOS
平台兼容性
uni-app x
Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
---|---|---|---|---|---|
- | - | 5.0 | - | - | - |
UxFrame 抖音SDK 1.0.1
特别说明
如果您已经购买了UxFrame 低代码高性能UI框架, 则无需再次购买本插件,请点击上方进入交流群
联系我免费获取离线版插件!
本插件暂时只支持Android,后续版本会支持iOS
Android注意事项
需在本插件utssdk
-> app-android
-> AndroidManifest.xml
文件中将所有 ${applicationId}
字段替换成您的真实包名
使用方法
// #ifdef APP
import * as douyin from '@/uni_modules/ux-douyin'
// #endif
// 注册
// #ifdef APP
douyin.register({
appid: '',
success: (res) => {
uni.showToast({
title: `${res.msg}`,
icon: 'none'
})
},
fail: (err) => {
console.log(err);
}
})
// #endif
// 登录
// #ifdef APP
douyin.login({
state: 'test',
success: (res) => {
uni.showToast({
title: `login ${res.code}`,
icon: 'none'
})
},
fail: (err) => {
console.log(err);
}
})
// #endif
// 分享图片
// #ifdef APP
douyin.share({
type: 0,
imageUrl: '/static/logo.png' // 只支持本地图片
})
// #endif
// 分享链接
douyin.share({
type: 1,
title: 'UxFrame低代码高性能UI框架',
summary: 'UxFrame是基于UNI-APP-X开发的低代码高性能原生UI框架',
href: 'https://www.uxframe.cn',
// imageUrl: '/static/logo.png',
success: (res) => {
console.log(res);
},
fail: (err) => {
console.log(err);
}
})
// 分享小程序
douyin.share({
type: 2,
miniProgram: {
id: 'gh_b5453753cee',
title: 'UxFrame低代码高性能UI框架',
path: '/pages/index',
query: 'a=1',
imageId: '1'
},
success: (res) => {
console.log(res);
},
fail: (err) => {
console.log(err);
}
})