|
@@ -1,6 +1,6 @@
|
|
(function (app) {
|
|
(function (app) {
|
|
- app.controller('wechatLoginCtrl', ["$scope","userService","$ionicNavBarDelegate","$ionicModal", "storage", "$state", "msg", "$http", "util","common","config",
|
|
|
|
- function ($scope, userService, $ionicNavBarDelegate,$ionicModal, storage, $state, msg, $http, util, common, config) {
|
|
|
|
|
|
+ app.controller('wechatLoginCtrl', ["$scope","userService","$ionicHistory","$ionicNavBarDelegate","$ionicModal", "storage", "$state", "msg", "$http", "util","common","config",
|
|
|
|
+ function ($scope, userService,$ionicHistory,$ionicNavBarDelegate,$ionicModal, storage, $state, msg, $http, util, common, config) {
|
|
//$ionicNavBarDelegate.showBackButton(false);
|
|
//$ionicNavBarDelegate.showBackButton(false);
|
|
$scope.addvideo = function () {
|
|
$scope.addvideo = function () {
|
|
common.chooseVideo().then(function (file) {
|
|
common.chooseVideo().then(function (file) {
|
|
@@ -89,6 +89,14 @@
|
|
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
|
+ userService.isTest().then(function(res){
|
|
|
|
+ if(res.data.data){
|
|
|
|
+ $state.go('login');
|
|
|
|
+ }else{
|
|
|
|
+ $state.go("loginAccount",{wechat:'orrk51inhmfmQRXA8VvGEQfow3Es'});
|
|
|
|
+ $ionicHistory.clearHistory();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}]);
|
|
}]);
|
|
app.controller('loginCtrl', ["$scope", "userService","$stateParams","$ionicNavBarDelegate", "$ionicModal","storage", "$state", "msg", "$http", "util","$timeout",
|
|
app.controller('loginCtrl', ["$scope", "userService","$stateParams","$ionicNavBarDelegate", "$ionicModal","storage", "$state", "msg", "$http", "util","$timeout",
|
|
function ($scope, userService,$stateParams,$ionicNavBarDelegate,$ionicModal, storage, $state, msg, $http, util, $timeout) {
|
|
function ($scope, userService,$stateParams,$ionicNavBarDelegate,$ionicModal, storage, $state, msg, $http, util, $timeout) {
|