```javascript
WXAPI.wxaQrcode({
scene: '1',
page: 'pages/index/index'
})
```
+ scene QR code parameters, up to 32 visible characters, only supports numbers, uppercase and lowercase English and some special characters: !#$&'()*+,/:;=?@-._~. Please encode other characters into legal characters by yourself (because % is not supported, Chinese cannot be processed by urlencode, please use other encoding methods)
+ page For example, "pages/index/index", do not add '/' before the root path, and cannot carry parameters (please put the parameters in the scene field). If you do not fill in this field, it will jump to the main page by default.
+ autoColor automatically configures line color, default false
+ check_path checks whether the page exists. When it is true, the page must be a page where a published mini program exists (otherwise an error will be reported); when it is false, it allows the mini program to be unpublished or the page does not exist, but there is an upper limit on the number of pages (60,000). Please do not abuse it.
+ env_version The version of the applet to be opened. The official version is "release", the trial version is "trial", and the development version is "develop"
+ expireHours is the number of hours after which the image will be automatically deleted. If this parameter is not passed, it will not be deleted.
+ is_hyaline Whether a transparent background color is required. When it is true, a small program with a transparent background color is generated. The default is false.
+ postJsonString line color, effective when auto_color is false, use rgb to set the color, for example {"r":"xxx","g":"xxx","b":"xxx"}
+ width width of QR code, default 430
```json
{
"code": 0,
"data": "https://7.s2m.cc/cuser/951/2022/03/23/72804fbc-9048-44f1-942d-bc57cdd6c57c.png",
"msg": "success"
}
```
+ data is the image address of the mini program code