From b6fdbc11a64fd68cc8463ec605aef2f9124e0cfb Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Thu, 8 Sep 2016 16:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=9B=9E=E5=A4=8D=E6=A1=86?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/wechat/blog_detail.html | 6 +++--- public/assets/wechat/course_discussion.html | 6 +++--- public/assets/wechat/course_notice.html | 4 ++-- public/assets/wechat/homework_detail.html | 6 +++--- public/assets/wechat/issue_detail.html | 6 +++--- public/assets/wechat/jour_message_detail.html | 6 +++--- public/assets/wechat/project_discussion.html | 6 +++--- public/javascripts/wechat/others/factory.js | 12 +++++++++++- 8 files changed, 31 insertions(+), 21 deletions(-) diff --git a/public/assets/wechat/blog_detail.html b/public/assets/wechat/blog_detail.html index 3ed2d573b..0d9e07f9a 100644 --- a/public/assets/wechat/blog_detail.html +++ b/public/assets/wechat/blog_detail.html @@ -74,12 +74,12 @@
{{journal.praise_count}}
- 回复 + 回复
- +
@@ -92,7 +92,7 @@
-
+
diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html index cba34e7b9..ee9cfc054 100644 --- a/public/assets/wechat/course_discussion.html +++ b/public/assets/wechat/course_discussion.html @@ -72,12 +72,12 @@
{{journal.praise_count}}
- +
@@ -89,7 +89,7 @@
-
+
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html index a2c39afef..bc133601b 100644 --- a/public/assets/wechat/course_notice.html +++ b/public/assets/wechat/course_notice.html @@ -87,12 +87,12 @@
{{journal.praise_count}}
- +
diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html index 2e3e6b076..c1d99f8a3 100644 --- a/public/assets/wechat/homework_detail.html +++ b/public/assets/wechat/homework_detail.html @@ -76,12 +76,12 @@
{{journal.praise_count}}
- +
@@ -93,7 +93,7 @@
-
+
diff --git a/public/assets/wechat/issue_detail.html b/public/assets/wechat/issue_detail.html index 47a45a150..7fa7db27e 100644 --- a/public/assets/wechat/issue_detail.html +++ b/public/assets/wechat/issue_detail.html @@ -93,12 +93,12 @@
{{journal.praise_count}}
- +
@@ -110,7 +110,7 @@
-
+
diff --git a/public/assets/wechat/jour_message_detail.html b/public/assets/wechat/jour_message_detail.html index 2ab72f259..390866f83 100644 --- a/public/assets/wechat/jour_message_detail.html +++ b/public/assets/wechat/jour_message_detail.html @@ -71,12 +71,12 @@
{{journal.praise_count}}
- +
@@ -88,7 +88,7 @@
-
+
diff --git a/public/assets/wechat/project_discussion.html b/public/assets/wechat/project_discussion.html index 3b1b12159..b2f315a6c 100644 --- a/public/assets/wechat/project_discussion.html +++ b/public/assets/wechat/project_discussion.html @@ -72,12 +72,12 @@
{{journal.praise_count}}
- +
@@ -88,7 +88,7 @@
更多
-
+
diff --git a/public/javascripts/wechat/others/factory.js b/public/javascripts/wechat/others/factory.js index 2c32a81e2..190dd36b4 100644 --- a/public/javascripts/wechat/others/factory.js +++ b/public/javascripts/wechat/others/factory.js @@ -324,13 +324,23 @@ app.factory('common', ['$http', 'auth', '$routeParams','rms','config','wx','$loc }); }; - args.scope.clickReply = function(act_id,allchidren) { + args.scope.inputfocus = function(data){ + data.notshow = true; + }; + + args.scope.inputblur = function(data){ + data.notshow = false; + }; + + args.scope.clickReply = function(act_id,data) { + allchidren = data.all_children; for(var i in allchidren){ if(allchidren[i].act_id != act_id ){ allchidren[i].showinput = false; } else{ allchidren[i].showinput = !allchidren[i].showinput; + data.notshow = allchidren[i].showinput; } } };