更新记录

1.0.1(2025-03-19)

  • 【更新】更新使用文档

1.0.0(2025-03-19)

  • 【新增】支持登录授权,转账

平台兼容性

uni-app

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

uni-app x

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

支持uniapp和uniapp-x版本

使用教程请查看demo

暴露的interface

export type TPAuthorizeSuccess = {
    code: number,
    data: any
}
export type TPAuthorizeError = {
    msg: string
}

export type TPTransferSuccess = {
    code: number,
    data: any
}
export type TPTransferError = {
    msg: string
}

export type blockchainType = {
    name: string
    chainId: string
}

export type TPAuthorizeOptions = {
    dappName: string;
    dappIcon: string;
    blockchains: blockchainType[];
    actionId: string;
    success?: (res: TPAuthorizeSuccess) => void;
    fail?: (res:TPAuthorizeError) => void;
}

export type TPTransferOptions = {
    protocol: string;
    version: string;
    dappName: string;
    dappIcon: string;
    actionId: string;
    from: string;
    to: string;
    contract: string;
    amount: number;
    symbol: string;
    desc: string;
    success?: (res: TPTransferSuccess) => void;
    fail?: (res:TPTransferError) => void;
}

隐私、权限声明

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

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

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

暂无用户评论。

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