From 0b1b08bd3d6279f749ca8e4f82afd9507d9bc5b7 Mon Sep 17 00:00:00 2001 From: txz Date: Thu, 7 Apr 2016 14:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E8=B5=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/wechat/activities.html | 24 +++++++++++-------- public/assets/wechat/blog_detail.html | 2 +- public/assets/wechat/course_discussion.html | 2 +- public/assets/wechat/course_notice.html | 2 +- public/assets/wechat/homework_detail.html | 2 +- public/assets/wechat/issue_detail.html | 2 +- public/assets/wechat/jour_message_detail.html | 2 +- public/assets/wechat/project_discussion.html | 2 +- public/javascripts/wechat/app.js | 4 ++++ 9 files changed, 25 insertions(+), 17 deletions(-) diff --git a/public/assets/wechat/activities.html b/public/assets/wechat/activities.html index e63bcf642..130898051 100644 --- a/public/assets/wechat/activities.html +++ b/public/assets/wechat/activities.html @@ -16,7 +16,6 @@ 迟交扣分:{{act.homework_common_detail.late_penalty}}分 匿评开启时间:{{act.homework_common_detail.evaluation_start}}
缺评扣分:{{act.homework_common_detail.absence_penalty}}分/作品 匿评关闭时间:{{act.homework_common_detail.evaluation_end}} - 点击展开 点击展开
{{act.latest_update}} @@ -24,7 +23,8 @@
回复 ({{act.reply_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
@@ -49,8 +49,8 @@
回复 ({{act.reply_count}})
-
一赞 ({{act.activity_praise_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
@@ -73,7 +73,8 @@
回复 ({{act.reply_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
@@ -117,8 +118,8 @@
回复 ({{act.reply_count}})
-
已赞 ({{act.activity_praise_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
@@ -143,7 +144,8 @@
回复 ({{act.reply_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
@@ -180,7 +182,8 @@
回复 ({{act.reply_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
@@ -204,7 +207,8 @@
回复 ({{act.reply_count}})
-
赞 ({{act.activity_praise_count}})
+
赞 ({{act.activity_praise_count}})
+
已赞 ({{act.activity_praise_count}})
diff --git a/public/assets/wechat/blog_detail.html b/public/assets/wechat/blog_detail.html index 1fc92eabb..a2cb70650 100644 --- a/public/assets/wechat/blog_detail.html +++ b/public/assets/wechat/blog_detail.html @@ -17,7 +17,7 @@
回复 ({{blog.comments_count}})
已赞 ({{blog.blog_praise_count}})
-
赞 ({{blog.blog_praise_count}})
+
赞 ({{blog.blog_praise_count}})
diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html index 2c2c210a9..416cfaa22 100644 --- a/public/assets/wechat/course_discussion.html +++ b/public/assets/wechat/course_discussion.html @@ -17,7 +17,7 @@
回复 ({{discussion.replies_count}})
已赞 ({{discussion.message_praise_count}})
-
赞 ({{discussion.message_praise_count}})
+
赞 ({{discussion.message_praise_count}})
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html index eccd91848..737728d95 100644 --- a/public/assets/wechat/course_notice.html +++ b/public/assets/wechat/course_notice.html @@ -17,7 +17,7 @@
回复 ({{news.comments_count}})
已赞 ({{news.news_praise_count}})
-
赞 ({{news.news_praise_count}})
+
赞 ({{news.news_praise_count}})
diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html index 98992da59..5926727e1 100644 --- a/public/assets/wechat/homework_detail.html +++ b/public/assets/wechat/homework_detail.html @@ -19,7 +19,7 @@
回复 ({{homework.whomework_journal_count}})
已赞 ({{homework.whomework_praise_count}})
-
赞 ({{homework.whomework_praise_count}})
+
赞 ({{homework.whomework_praise_count}})
diff --git a/public/assets/wechat/issue_detail.html b/public/assets/wechat/issue_detail.html index 0fb443e67..3be9d0d21 100644 --- a/public/assets/wechat/issue_detail.html +++ b/public/assets/wechat/issue_detail.html @@ -19,7 +19,7 @@
回复 ({{issue.journals_count}})
已赞 ({{issue.issue_praise_count}})
-
赞 ({{issue.issue_praise_count}})
+
赞 ({{issue.issue_praise_count}})
diff --git a/public/assets/wechat/jour_message_detail.html b/public/assets/wechat/jour_message_detail.html index 893d693c8..990055b56 100644 --- a/public/assets/wechat/jour_message_detail.html +++ b/public/assets/wechat/jour_message_detail.html @@ -14,7 +14,7 @@
回复 ({{message.reply_count}})
已赞 ({{message.message_praise_count}})
-
赞 ({{message.message_praise_count}})
+
赞 ({{message.message_praise_count}})
diff --git a/public/assets/wechat/project_discussion.html b/public/assets/wechat/project_discussion.html index 62d6dc728..6c06b95e9 100644 --- a/public/assets/wechat/project_discussion.html +++ b/public/assets/wechat/project_discussion.html @@ -17,7 +17,7 @@
回复 ({{discussion.replies_count}})
已赞 ({{discussion.message_praise_count}})
-
赞 ({{discussion.message_praise_count}})
+
赞 ({{discussion.message_praise_count}})
diff --git a/public/javascripts/wechat/app.js b/public/javascripts/wechat/app.js index 9204d169b..6c8d79c48 100644 --- a/public/javascripts/wechat/app.js +++ b/public/javascripts/wechat/app.js @@ -97,6 +97,10 @@ app.controller('ActivityController',function($scope, $http, auth, rms){ //$http } + $scope.decreasePraise = function(act){ + act.activity_praise_count -= 1; + act.has_praise = false; + } $scope.loadActData = loadActData;