How to adjust the function of photos and albums in mt-actionsheet in mint-ui

problem description


mt-actionsheet I have already written, but how do I adjust the photo and album when I click "take a picture" or click the "Select from album" button?

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
mounted () {

this.actions = [{
  name: "",
  method: this.takePhoto
}, {
  name: "",
  method: this.openAlbum
}];

},

methods:{
    //
    takePhoto(){
        console.log("")
    },
    //
    openAlbum(){
        console.log("")
    },

}

what result do you expect? What is the error message actually seen?

Sep.21,2021

H5 can realize the function of taking pictures and photo albums, only using file control. If it is a hybrid development, you have to rely on the methods provided by the shell.


if it is a mixed development app; this is the function that does not call the phone or ipad to take pictures, you have to use a shell, such as cordova,cordova packaged with a plug-in cordova-plugin-camera;
it provides an interface;

specific usage of cordova can be found on the official website http://cordova.axuer.com/. Of course, you can also use other shells.


convenience have you found a solution now? I also encountered this demand

Menu