| xqd
@@ -742,6 +742,7 @@
|
|
|
common.chooseVideo().then(function (file) {
|
|
|
common.uploadFiles(file, 2).then(function (result) {
|
|
|
var response = JSON.parse(result.response);
|
|
|
+ $scope.video.server = response.data.file;
|
|
|
var file = config.imgServer+response.data.file;
|
|
|
$scope.video.isOK = true;
|
|
|
$scope.video.file = response.data.file;
|
| xqd
@@ -754,6 +755,7 @@
|
|
|
});
|
|
|
};
|
|
|
$scope.deletevideo = function (file) {
|
|
|
+ $scope.video = {};
|
|
|
common.deletefile(file).then(function (res) {
|
|
|
},function(erro){
|
|
|
alert(JSON.stringify(erro));
|