mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
grunt css for test
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ app.constant('ServiceConfig', {
|
||||
movie_search_id: 'https://api.douban.com/v2/movie/subject/'
|
||||
});
|
||||
|
||||
app.config(['$stateProvider', '$urlRouterProvider',function($stateProvider, $urlRouterProvider){
|
||||
app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){
|
||||
/*URL路由*/
|
||||
$urlRouterProvider.otherwise("/");
|
||||
|
||||
|
||||
@@ -8,10 +8,9 @@ app.factory('movieList', ['$rootScope', '$http', 'ServiceConfig', function($root
|
||||
|
||||
window.movieSearch = function(data){
|
||||
$rootScope.isNoLoaded = false;
|
||||
if(data.subjects && data.subjects.length){
|
||||
$rootScope.movieList = data.subjects;
|
||||
if(data.subjects && data.subjects.length) {
|
||||
$rootScope.movieList = data.subjects;
|
||||
}
|
||||
console.log(data.subjects);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user