This commit is contained in:
parent
de8d630fc1
commit
d6daa906b6
|
@ -0,0 +1 @@
|
|||
{"access_token":"t3XVpwqZbAO6-uRz_ltKUiplgHcYVstA0p43ECTHEjt0-FvVLU7VXzD7n6Z76PYFWHf8hvNHZtLNAUT-FlTl98wWLIK_lh9mhzHxS_x1iXCc0mC38RjxFzZ_NSeERW7dJZCfADAOEH","expires_in":7200,"got_token_at":1460105603}
|
|
@ -24,6 +24,8 @@ module Mobile
|
|||
'BlogComment'
|
||||
when :act_id
|
||||
u.id
|
||||
when :comment_count
|
||||
u.children.count
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -41,7 +43,7 @@ module Mobile
|
|||
blog_comment_expose :blog_id
|
||||
blog_comment_expose :title
|
||||
blog_comment_expose :content
|
||||
blog_comment_expose :comments_count
|
||||
blog_comment_expose :comment_count
|
||||
blog_comment_expose :created_at
|
||||
blog_comment_expose :lasted_comment
|
||||
blog_comment_expose :id
|
||||
|
|
|
@ -99,7 +99,7 @@ class BlogComment < ActiveRecord::Base
|
|||
color:"#173177"
|
||||
},
|
||||
keyword3:{
|
||||
value:h(truncate(key3, :length=>50, :omission=> '...')),
|
||||
value:self.content.html_safe,
|
||||
color:"#173177"
|
||||
},
|
||||
remark:{
|
||||
|
|
|
@ -260,7 +260,7 @@ class Journal < ActiveRecord::Base
|
|||
color:"#173177"
|
||||
},
|
||||
keyword3:{
|
||||
value:h(truncate(key3, :length=>50, :omission=> '...')),
|
||||
value:self.description.html_safe,
|
||||
color:"#173177"
|
||||
},
|
||||
remark:{
|
||||
|
|
|
@ -330,7 +330,7 @@ class JournalsForMessage < ActiveRecord::Base
|
|||
color:"#173177"
|
||||
},
|
||||
keyword3:{
|
||||
value:h(truncate(key3, :length=>50, :omission=> '...')),
|
||||
value:self.notes.html_safe,
|
||||
color:"#173177"
|
||||
},
|
||||
remark:{
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<div class="cl"></div>
|
||||
</div>
|
||||
<div class="post-interactive border-bottom">
|
||||
<div class="post-interactive-reply c-grey2">回复 <span class="reply-num">({{blog.comments_count}})</span></div>
|
||||
<div class="post-interactive-reply c-grey2">回复 <span class="reply-num">({{blog.comment_count}})</span></div>
|
||||
<div class="post-interactive-column c-grey2" ng-if="blog.has_praise" ng-click="decreasePraise(blog);">已赞 ({{blog.praise_count}})</div>
|
||||
<div class="post-interactive-column c-grey2" ng-if="!blog.has_praise" ng-click="addPraise(blog);">赞 ({{blog.praise_count}})</div>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var app = angular.module('wechat', ['ngRoute','ngCookies']);
|
||||
var apiUrl = 'http://wechat.trustie.net/api/v1/';
|
||||
var debug = false; //调试标志,如果在本地请置为true
|
||||
var debug = true; //调试标志,如果在本地请置为true
|
||||
|
||||
if(debug===true){
|
||||
apiUrl = 'http://localhost:3000/api/v1/';
|
||||
|
@ -10,7 +10,7 @@ app.factory('auth', function($http,$routeParams, $cookies, $q){
|
|||
var _openid = '';
|
||||
|
||||
if(debug===true){
|
||||
_openid = "6";
|
||||
_openid = "1";
|
||||
}
|
||||
|
||||
var getOpenId = function() {
|
||||
|
|
Loading…
Reference in New Issue