uniapp前端js来实现打开移动端的相机功能,并将图片通过七牛云获得图片网络地址保存到数据库
一、如下
1.首先实现相机拍照功能
利用uniapp的组件chooseImage:
takePhoto(){
let self = this;
uni.chooseImage({
count: 1,
sizeType: ['compressed'],
sourceType: ['camera'],
success: function(res){
let tempFilePaths = res.tempFilePaths;
sel
原创
2021-03-08 10:14:35 ·
631 阅读 ·
0 评论