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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2c06c-2bae8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2c06c-2bae8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?