uni.chooseVideo({
console.log("123456")
count: 1,
sourceType: ['camera', 'album'],
maxDuration:15,
success: function (res) {
console.log(res,"看看res")
self.videosrc = res.tempFilePath;
let p=self.videosrc
baseClass.uploadFile(p)
.then(res => {
console.log(res,"看看res")
self.videosrc="http://" + res.imageURL
})
},
fail:function(err){
if(err.errMsg=="chooseVideo:fail cancel"){
uni.navigateBack({})
}
}
});
0 个回复