getAuthorizeUserContro 用户授权控制的接口
    
            
摘要:getAuthorizeUserControl ^7.8 用户授权控制的接口 #请求参数 Prop Type Default Comment thirtyCode String N/A (第三方的code,中台分配的)或者(thirtyCode优先) deviceId String N/A (设备I
        
阅读全文
                posted @ 
2024-12-16 09:42 
AtlasLapetos
        
阅读(14) 
         
        推荐(0)     
             
            
            
    getAuthToken 获取授权token、24小时有效
    
            
摘要:getAuthToken ^7.8 获取授权 token,24 小时有效 #请求参数 N/A #接口调用示例 this.$bridge .getAuthToken() .then((res) => { this.$alert(res); }) .catch((err) => { this.$toas
        
阅读全文
                posted @ 
2024-12-16 09:42 
AtlasLapetos
        
阅读(21) 
         
        推荐(0)     
             
            
            
    getUnionId 用户标识unionid,主要用于微信、QQ用户系统打通
    
            
摘要:getUnionId ^7.8 用户标识 unionid 主要用于微信、QQ 用户系统打通 #请求参数 Prop Type Required Default Comment type String Y - wx/qq #接口调用示例 const params = { type: "wx", }; t
        
阅读全文
                posted @ 
2024-12-16 09:42 
AtlasLapetos
        
阅读(16) 
         
        推荐(0)     
             
            
            
    getUserInfo 获取登录态信息
    
            
摘要:getUserInfo ^7.8 获取登录态信息 #请求参数 N/A #接口调用示例 this.$bridge .getUserInfo() .then((res) => { this.$alert(res); }) .catch((err) => { this.$toast(err); }); #
        
阅读全文
                posted @ 
2024-12-16 09:42 
AtlasLapetos
        
阅读(12) 
         
        推荐(0)     
             
            
            
    logout 退出登录
    
            
摘要:logout ^7.8 退出登录 #请求参数 N/A #接口调用示例 this.$bridge .logout() .then((res) => { this.$alert(res); }) .catch((err) => { this.$toast(err); }); #接口返回示例 // 退出成
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(10) 
         
        推荐(0)     
             
            
            
    getLoginInfo 获取身份信息、token等
    
            
摘要:getLoginInfo ^7.8 获取身份信息、token 等 #请求参数 N/A #接口调用示例 this.$bridge .getLoginInfo() .then((res) => { this.$alert(res); }) .catch((err) => { this.$toast(er
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(17) 
         
        推荐(0)     
             
            
            
    getDiablomode获取当前是否是暗黑模式
    
            
摘要:getDiablomode ^8.7 获取当前是否是暗黑模式 #请求参数 N/A #接口调用示例 this.$bridge.getDiablomode().then((res) => { this.result = res; }); #返回参数 Prop Type Comment diabloMod
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(9) 
         
        推荐(0)     
             
            
            
    scanForPlugins 插件页面的扫一扫
    
            
摘要:scanForPlugins^8.2 插件页面的扫一扫 #请求参数 Prop Type Required Default Comment types Array Y [] 定制扫一扫类型 1 扫条码 2 拍食材 3 扫食谱 defaultType Number N '2' 扫一扫类型默认选择拍食材 
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(5) 
         
        推荐(0)     
             
            
            
    interfaceForThirdParty 调用第三方sdk方法
    
            
摘要:interfaceForThirdParty ^7.8 提供给前端页面调用插件第三方 SDK 接口 #请求参数 Prop Type Comment messageType String 第三方 SDK 用来判断接口名称 messageContent JSON/String 业务参数,第三方 SDK 
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(9) 
         
        推荐(0)     
             
            
            
    获取插件路径
    
            
摘要:getPluginInfo ^7.8 返回路径和插件版本等信息,支持获取目标模块的插件路径 #请求参数 Prop Type Required Default Comment folder String N '' 功能模块的名称,比如'T0x20'。folder 参数可为空(默认为当前插件) #参数代
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(17) 
         
        推荐(0)     
             
            
            
    监听app事件
    
            
摘要:addEventListener ^7.8 用于接收设备上报信息,当 APP 收到本设备的上报消息时,触发此监听 #请求参数 Prop Type Required Default Comment params String Y - 事件名称 #详细的 app 消息类型(messageType)请参考
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(7) 
         
        推荐(0)     
             
            
            
    fireGlobalEvent 发送全局通知
    
            
摘要:fireGlobalEvent ^7.6 发送全局通知,通过 addEventListener 方法来异步接收消息 #请求参数 Prop Type Required Default Comment event String Y - 事件名 param Object Y - 传送的数据 #入参代码示例
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(10) 
         
        推荐(0)     
             
            
            
    getSystemInfo
    
            
摘要:getSystemInfo ^6.8 获取系统信息,平台,版本号,语言、系统版本、uuid 等 #请求参数 N/A #接口调用示例 this.$bridge .getSystemInfo() .then((res) => { this.$alert(res) }) .catch((err) => {
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(14) 
         
        推荐(0)     
             
            
            
    log
    
            
摘要:log ^6.8 打印日志 #请求参数 Prop Type Required Default Comment level String Y - 日志级别(Debug/Info/Warn/Error) message String Y - 日志内容 #接口调用示例 let params = { lev
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(19) 
         
        推荐(0)     
             
            
            
    canlUse
    
            
摘要:canlUse ^6.8 获取某个 API 在当前版本是否可用 #请求参数 Prop Type Required Default Comment params String Y N/A 接口 url #接口调用示例 let params = "getSystemInfo"; this.$bridge
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(10) 
         
        推荐(0)     
             
            
            
    安装
    
            
摘要:安装 #一. 安装包 npm 安装 npm i -S @dolphin-iot/jsbridge-sdk 或者 npm install @dolphin-iot/jsbridge-sdk --save-dev yarn 安装 yarn add @dolphin-iot/jsbridge-sdk 升级
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(21) 
         
        推荐(0)     
             
            
            
    hybrid mock 接入规范
    
            
摘要:hybrid mock 接入规范 定义mock环境变量以及参数 // /.env.mock VUE_APP_ENV = 'mock' VUE_APP_BASE_URL = 'https://yapi.smartmidea.net/mock/xxx' 定义启用mock环境的script // pack
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(8) 
         
        推荐(0)     
             
            
            
    小程序 mock 接入规范
    
            
摘要:小程序 mock 接入规范 小程序采用全局接入yapi mock 的方案,前提条件是所有业务接口都已经配置了yapi #接入步骤 定义mock 变量 // /config.js const config = { enviroment: 'prod', isMock: true, mockBaseUr
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(19) 
         
        推荐(0)     
             
            
            
    h5 mock 接入方案
    
            
摘要:h5 mock 接入方案 设置mock环境变量 在根目录下添加.env.mock文件,文件内容如下 NODE_ENV = 'development' VUE_APP_ENV = 'yapi' // 下列中的mock/143仅供参考,具体BASE_URL 需要根据对应的yapi mock地址设置 VU
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(19) 
         
        推荐(0)     
             
            
            
    yapi mock 服务介绍
    
            
摘要:yapi mock 服务介绍 #背景 业务开发过程中,前端开发时常发现后端提供的接口文档与实际情况不一致 后端编辑和维护接口文档需要耗费不少精力,伴随着接口的迭代,接口文档的维护逐渐跟不上,出现更新不及时的情况 接口的正确性和稳定性难以保证 传统的本地mock效率低,维护成本高 #yapi mock
        
阅读全文
                posted @ 
2024-12-16 09:41 
AtlasLapetos
        
阅读(19) 
         
        推荐(0)