# createQRCode
原生生成二维码 返回base64
# 请求参数
Prop | Type | Default | Description |
---|---|---|---|
width | Number | 宽度 | |
height | Number | 高度 | |
content | String | 待转码内容 |
# 接口请求示例
const params2 = {
height: 400,
width: 400,
content: `qrcode.midea.com/share_device?token=${this.token}`,
};
nativeService.createQRCode(params2)
# 返回参数
无
# 接口返回示例
nativeService.createQRCode(params2).then((base64Res) => {
this.qrImgUrl = base64Res.data;
});