|
//拍照
takePhoto() {
let imgPath = "";
let that = this;
this.Apiclound({
type: "FNPhotograph",
isApi: "open",
parramsStatus: true,
parrams: {
path: "fs://savePath",
album: true,
quality: "medium"
}
},
ret => {
if (ret.eventType === "takePhoto") {
imgPath = ret.imagePath;
let imgTitle = imgPath;
let imgName = imgTitle.split("/");
imgName = imgName[imgName.length - 1];
let data = {
imgPath,
imgName
};
this.pictureProcessing(data, true);
}
}
);
}, |
|