| xqd
@@ -2,7 +2,6 @@
|
|
|
app.controller('addCtrl', ["$scope", "$state", "dreamService", "msg", "$ionicTabsDelegate", "$ionicNavBarDelegate","$ionicHistory", "common", "config"
|
|
|
, function ($scope, $state, dreamService, msg, $ionicTabsDelegate, $ionicNavBarDelegate,$ionicHistory, common, config) {
|
|
|
$scope.addpict = function () {
|
|
|
- $scope.imgs=new Array();
|
|
|
common.chooseImage().then(function (img) {
|
|
|
common.uploadFiles(img,1).then(function (result) {
|
|
|
var response = JSON.parse(result.response);
|
| xqd
@@ -15,6 +14,7 @@
|
|
|
console.log('图片选择失败');
|
|
|
});
|
|
|
};
|
|
|
+ $scope.imgs=[];
|
|
|
$scope.video = {};
|
|
|
$scope.addvideo = function () {
|
|
|
common.chooseVideo().then(function (file) {
|