fixed bug

This commit is contained in:
cmxdd 2020-08-10 15:55:21 +08:00
parent d4a9b38f99
commit 2ab2d1c38e

View File

@ -230,6 +230,9 @@ export default {
uploadvideo() { uploadvideo() {
let url = this.action; let url = this.action;
let that = this; let that = this;
uni.showLoading({
title:"上传中!"
})
uni.chooseVideo({ uni.chooseVideo({
count: 1, count: 1,
sourceType: ['camera', 'album'], sourceType: ['camera', 'album'],
@ -250,6 +253,7 @@ export default {
let obj = JSON.parse(uploadFileRes.data); let obj = JSON.parse(uploadFileRes.data);
that.videopath = obj.data.url; that.videopath = obj.data.url;
that.selectvideo = obj.data.key; that.selectvideo = obj.data.key;
uni.hideLoading()
that.videostate = true; that.videostate = true;
}, },
fail: function(error) { fail: function(error) {