|
@@ -475,7 +475,7 @@
|
|
id:id,
|
|
id:id,
|
|
title:$scope.vm.title,
|
|
title:$scope.vm.title,
|
|
pics:$scope.imgs,
|
|
pics:$scope.imgs,
|
|
- video:$scope.video.server
|
|
|
|
|
|
+ video:$scope.video.file
|
|
};
|
|
};
|
|
homeService.add_interaction(data).then(function(){
|
|
homeService.add_interaction(data).then(function(){
|
|
$scope.load(id);
|
|
$scope.load(id);
|
|
@@ -695,7 +695,6 @@
|
|
common.chooseVideo().then(function (file) {
|
|
common.chooseVideo().then(function (file) {
|
|
common.uploadFiles(file, 2).then(function (result) {
|
|
common.uploadFiles(file, 2).then(function (result) {
|
|
var response = JSON.parse(result.response);
|
|
var response = JSON.parse(result.response);
|
|
- $scope.video.server = response.data.file;
|
|
|
|
var file = config.imgServer+response.data.file;
|
|
var file = config.imgServer+response.data.file;
|
|
console.log("file:"+file);
|
|
console.log("file:"+file);
|
|
$scope.video.isOK = true;
|
|
$scope.video.isOK = true;
|