add article

This commit is contained in:
wlh
2014-12-26 21:06:33 +08:00
parent 6716bd9ab0
commit f16ee3bfb1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ function($http, Time, ServiceConfig) {
function($scope, $http, $location, ServiceConfig, Time){ function($scope, $http, $location, ServiceConfig, Time){
//初始化显示我想成为路边鼓掌的人 //初始化显示我想成为路边鼓掌的人
if($location.path() === '/article'){ if($location.path() === '/article'){
var path = '?_id=549c2c9a019ed08429e9fad8'; var path = '?_id=549d5a652aa65d721885a151';
$http.get(ServiceConfig.article_detail + path).success(function(data){ $http.get(ServiceConfig.article_detail + path).success(function(data){
if(data.status){ if(data.status){
data.time = Time.formatTime(data.time); data.time = Time.formatTime(data.time);
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -3,7 +3,7 @@ app.controller('ArticleDetailController',
function($scope, $http, $location, ServiceConfig, Time){ function($scope, $http, $location, ServiceConfig, Time){
//初始化显示我想成为路边鼓掌的人 //初始化显示我想成为路边鼓掌的人
if($location.path() === '/article'){ if($location.path() === '/article'){
var path = '?_id=549c2c9a019ed08429e9fad8'; var path = '?_id=549d5a652aa65d721885a151';
$http.get(ServiceConfig.article_detail + path).success(function(data){ $http.get(ServiceConfig.article_detail + path).success(function(data){
if(data.status){ if(data.status){
data.time = Time.formatTime(data.time); data.time = Time.formatTime(data.time);