**打印紙張說明**
目前只有
1. A4普通打印紙
2. 6寸照片紙
**接口說明**
此文檔包含部分接口,在uniapp中已調用的部分,可以直接在uniapp項目中查看。
使用uniapp,默認已集成接口請求。
配置文件在 `/config/config.js`
參考如下
~~~
//配置
var domain = '';
//配置域名
domain = 'http://127.0.0.1:3000'
const config = {
upload_url: domain + "/api/v1_upload.php",
}
~~~
發起請求
~~~
this.upload(e.path).then(res => {
if (res.code == 0) {
}
});
~~~
開發注意:
裁剪功能需要先把遠程圖片下載到本地,添加在裁剪組件中。
~~~
uni.downloadFile({
url: url,
success(res) {
_this.crop_url = res.tempFilePath;
}
});
~~~