downFile 下载文件

downFile ^5.9.0

下载文件

#请求参数

Prop Type Required Default Description
param Object Y {} 属性: url: 请求参数

#接口调用示例

this.$bridge
    .downFile(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })

#返回参数

  • 成功时返回
Prop Type Default Description
path String N/A 下载文件本地路径(errorCode0时有效)
errorCode Number 0/1 0下载完成 / 1下载中
progress Number 1~100 下载进度(errorCode1时有效)
errorMessage String N/A 下载错误时候的错误信息
  • 失败时返回
Prop Type Default Description
errorCode Number 0 状态码 //其他(不是01):下载出错
errorMessage String - 下载错误时候的错误信息

TIP

该接口基于mSmart 协议,底层由singleBlueToothModule单蓝牙支持

posted on 2024-12-16 09:44  AtlasLapetos  阅读(51)  评论(0)    收藏  举报