|
@@ -713,8 +713,8 @@
|
|
$state.go('app.my_dreamdetail',{id:id});
|
|
$state.go('app.my_dreamdetail',{id:id});
|
|
};
|
|
};
|
|
}]);
|
|
}]);
|
|
- app.controller('messageSysCtrl', ["$scope","$ionicPopup","$location", "$ionicTabsDelegate","$state", "myService", "msg"
|
|
|
|
- , function ($scope,$ionicPopup,$location,$ionicTabsDelegate, $state, myService, msg) {
|
|
|
|
|
|
+ app.controller('messageSysCtrl', ["$scope","common","config","$ionicPopup","$location", "$ionicTabsDelegate","$state", "myService", "msg"
|
|
|
|
+ , function ($scope,common,config,$ionicPopup,$location,$ionicTabsDelegate, $state, myService, msg) {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
myService.systemInfo().then(function(result){
|
|
myService.systemInfo().then(function(result){
|
|
$scope.sysInfos = result.data.data;
|
|
$scope.sysInfos = result.data.data;
|
|
@@ -727,7 +727,7 @@
|
|
$scope.imgs = [];
|
|
$scope.imgs = [];
|
|
$scope.video = {};
|
|
$scope.video = {};
|
|
$scope.addpict = function () {
|
|
$scope.addpict = function () {
|
|
- alert('选择图片');
|
|
|
|
|
|
+ // alert('选择图片');
|
|
common.chooseImage().then(function (img) {
|
|
common.chooseImage().then(function (img) {
|
|
common.uploadFiles(img,1).then(function (result) {
|
|
common.uploadFiles(img,1).then(function (result) {
|
|
var response = JSON.parse(result.response);
|
|
var response = JSON.parse(result.response);
|
|
@@ -747,7 +747,7 @@
|
|
})
|
|
})
|
|
};
|
|
};
|
|
$scope.addvideo = function () {
|
|
$scope.addvideo = function () {
|
|
- alert('选择视频');
|
|
|
|
|
|
+ // alert('选择视频');
|
|
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);
|