chenlw_dev
cxt 9 years ago
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' 'BlogComment'
when :act_id when :act_id
u.id u.id
when :comment_count
u.children.count
end end
end end
end end
@ -41,7 +43,7 @@ module Mobile
blog_comment_expose :blog_id blog_comment_expose :blog_id
blog_comment_expose :title blog_comment_expose :title
blog_comment_expose :content blog_comment_expose :content
blog_comment_expose :comments_count blog_comment_expose :comment_count
blog_comment_expose :created_at blog_comment_expose :created_at
blog_comment_expose :lasted_comment blog_comment_expose :lasted_comment
blog_comment_expose :id blog_comment_expose :id

@ -99,7 +99,7 @@ class BlogComment < ActiveRecord::Base
color:"#173177" color:"#173177"
}, },
keyword3:{ keyword3:{
value:h(truncate(key3, :length=>50, :omission=> '...')), value:self.content.html_safe,
color:"#173177" color:"#173177"
}, },
remark:{ remark:{

@ -260,7 +260,7 @@ class Journal < ActiveRecord::Base
color:"#173177" color:"#173177"
}, },
keyword3:{ keyword3:{
value:h(truncate(key3, :length=>50, :omission=> '...')), value:self.description.html_safe,
color:"#173177" color:"#173177"
}, },
remark:{ remark:{

@ -330,7 +330,7 @@ class JournalsForMessage < ActiveRecord::Base
color:"#173177" color:"#173177"
}, },
keyword3:{ keyword3:{
value:h(truncate(key3, :length=>50, :omission=> '...')), value:self.notes.html_safe,
color:"#173177" color:"#173177"
}, },
remark:{ remark:{

@ -15,7 +15,7 @@
<div class="cl"></div> <div class="cl"></div>
</div> </div>
<div class="post-interactive border-bottom"> <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="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 class="post-interactive-column c-grey2" ng-if="!blog.has_praise" ng-click="addPraise(blog);">赞 ({{blog.praise_count}})</div>
</div> </div>

@ -1,6 +1,6 @@
var app = angular.module('wechat', ['ngRoute','ngCookies']); var app = angular.module('wechat', ['ngRoute','ngCookies']);
var apiUrl = 'http://wechat.trustie.net/api/v1/'; var apiUrl = 'http://wechat.trustie.net/api/v1/';
var debug = false; //调试标志,如果在本地请置为true var debug = true; //调试标志,如果在本地请置为true
if(debug===true){ if(debug===true){
apiUrl = 'http://localhost:3000/api/v1/'; apiUrl = 'http://localhost:3000/api/v1/';
@ -10,7 +10,7 @@ app.factory('auth', function($http,$routeParams, $cookies, $q){
var _openid = ''; var _openid = '';
if(debug===true){ if(debug===true){
_openid = "6"; _openid = "1";
} }
var getOpenId = function() { var getOpenId = function() {

Loading…
Cancel
Save