更新记录

0.0.1(2025-04-01)

  • init

平台兼容性

uni-app

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- - - - - - 12 -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - - - - - - - -

uni-app x

Chrome Safari Android iOS 鸿蒙 微信小程序
- - - 12 - -

lime-apple-button

  • uniappx 苹果授权登录按钮,未测试勿下载

安装

插件市场导入

代码演示

基础使用

<l-apple-button style="height: 50px;" type="signIn"></l-apple-button>
<view style="height: 10px;"></view>
<l-apple-button style="height: 50px;" type="continue"></l-apple-button>
<view style="height: 10px;"></view>
<l-apple-button style="height: 50px;" type="signUp"></l-apple-button>
<view style="height: 10px;"></view>
<l-apple-button style="height: 50px;" theme="white"></l-apple-button>
<view style="height: 10px;"></view>
<l-apple-button style="height: 50px;" theme="whiteOutline"></l-apple-button>
<view style="height: 10px;"></view>
<l-apple-button style="height: 50px;" theme="black"></l-apple-button>

事件

<l-apple-button style="height: 50px;" 
    ref="appleButtonRef"
    @success="onsuccess"
    @fail="onfail"
    @check="oncheck">
</l-apple-button>
const appleButtonRef = ref<LAppleButtonComponentPublicInstance|null>(null)

// 授权成功 返回user token等信息
const onsuccess = (e: UTSJSONObject) => {
    console.log('onsuccess', e)
}
// 授权失败
const onfail = (e: UTSJSONObject) => {
    console.log('onfail', e)
}
// 调用appleButtonRef.value.checkExistingLogin() 检测授权状态
const oncheck = (e: UTSJSONObject) => {
    console.log('oncheck', e)
}

const check = ()=> {
    appleButtonRef.value.checkExistingLogin()
}

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

暂无用户评论。

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问