Bootstrap

微信小程序 下载视频 图片

 // 保存图片

    saveImg() {

        wx.downloadFile({

            url: 'https://........',

            success: function (res) {

                console.log(res)

                wx.saveImageToPhotosAlbum({     //视频 替换 wx.saveVideoToPhotosAlbum

                    filePath: res.tempFilePath,

                    success: function (res) {

                        wx.showToast({

                            title: '保存成功!',

                            icon: 'none',

                            duration: 1500

                        })

                    },

                    fail: function (err) {

                        if (err.errMsg === "saveImageToPhotosAlbum:fail auth deny") {

                            wx.showModal({

                    

;