点回复按钮回复框获取焦点;班级通知内容冗余;班级、项目邀请文字更友善;班级、项目中人数后箭头与人数对齐;邀请码提示增加间距;回复中@删除链接;二维码页面增加默认加入身份提示;公众号联系我们文字更改
This commit is contained in:
parent
66357c4024
commit
e85f9373c8
|
@ -137,7 +137,7 @@ class WechatsController < ActionController::Base
|
||||||
on :fallback, respond: 'fallback message'
|
on :fallback, respond: 'fallback message'
|
||||||
|
|
||||||
on :click, with: 'FEEDBACK' do |request, key|
|
on :click, with: 'FEEDBACK' do |request, key|
|
||||||
request.reply.text "如有反馈问题,请直接切换至输入框,发微信给我们即可"
|
request.reply.text "如有问题反馈,请您:\n1、直接切换至输入框,发微信给我们。\n2、加入QQ群:173184401,我们直接互动。\n欢迎大家积极反馈,谢谢啦!"
|
||||||
end
|
end
|
||||||
|
|
||||||
on :click, with: 'MY_NEWS' do |request, key|
|
on :click, with: 'MY_NEWS' do |request, key|
|
||||||
|
|
|
@ -173,7 +173,7 @@ class News < ActiveRecord::Base
|
||||||
count = ShieldWechatMessage.where("container_type='User' and container_id=#{m.user_id} and shield_type='Course' and shield_id=#{self.course_id}").count
|
count = ShieldWechatMessage.where("container_type='User' and container_id=#{m.user_id} and shield_type='Course' and shield_id=#{self.course_id}").count
|
||||||
if count == 0
|
if count == 0
|
||||||
ws = WechatService.new
|
ws = WechatService.new
|
||||||
content = strip_html self.author.try(:realname) + " 发布了通知:" + self.title.html_safe, 200
|
content = self.title.html_safe, 200
|
||||||
ws.class_notice m.user_id, "course_notice", self.id, "#{l(:label_new_notice_template)}", self.course.name, self.author.show_name, format_time(self.created_on), content, "点击查看通知详情"
|
ws.class_notice m.user_id, "course_notice", self.id, "#{l(:label_new_notice_template)}", self.course.name, self.author.show_name, format_time(self.created_on), content, "点击查看通知详情"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
<script src="/javascripts/wechat/directives/input_auto.js"></script>
|
<script src="/javascripts/wechat/directives/input_auto.js"></script>
|
||||||
<script src="/javascripts/wechat/directives/loading_spinner.js"></script>
|
<script src="/javascripts/wechat/directives/loading_spinner.js"></script>
|
||||||
<script src="/javascripts/wechat/directives/ellipsis.js"></script>
|
<script src="/javascripts/wechat/directives/ellipsis.js"></script>
|
||||||
|
<script src="/javascripts/wechat/directives/input_focus.js"></script>
|
||||||
|
<script src="/javascripts/wechat/directives/at_delete_link.js"></script>
|
||||||
<script src="/javascripts/wechat/controllers/reg.js"></script>
|
<script src="/javascripts/wechat/controllers/reg.js"></script>
|
||||||
<script src="/javascripts/wechat/controllers/login.js"></script>
|
<script src="/javascripts/wechat/controllers/login.js"></script>
|
||||||
<script src="/javascripts/wechat/controllers/activity.js"></script>
|
<script src="/javascripts/wechat/controllers/activity.js"></script>
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
<div ng-if="blog.praise_count && !blog.has_praise" ng-click="addPraise(blog);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{blog.praise_count}}</span></div>
|
<div ng-if="blog.praise_count && !blog.has_praise" ng-click="addPraise(blog);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{blog.praise_count}}</span></div>
|
||||||
<div ng-if="blog.has_praise" ng-click="decreasePraise(blog);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{blog.praise_count}}</span></div>
|
<div ng-if="blog.has_praise" ng-click="decreasePraise(blog);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{blog.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!blog.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!blog.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="blog.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{blog.comment_count}}</span></a>
|
<a ng-if="blog.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{blog.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb50" id="all_blog_reply">
|
<div class="mb50" id="all_blog_reply" at-delete-link>
|
||||||
|
|
||||||
<div ng-if="blog.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="blog.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="journal in blog.all_children">
|
<div class="post-reply-wrap" ng-repeat="journal in blog.all_children">
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<li ng-show="course.id" ng-click="goClass(course.id)" ng-repeat="course in syllabus.courses" ng-class="{'border-bottom-none': $last}">
|
<li ng-show="course.id" ng-click="goClass(course.id)" ng-repeat="course in syllabus.courses" ng-class="{'border-bottom-none': $last}">
|
||||||
<img src="/images/wechat/dot.png" width="15px" class="class-list-dot" />
|
<img src="/images/wechat/dot.png" width="15px" class="class-list-dot" />
|
||||||
<span class="fl ml10 class-list-name hidden">{{course.name}}</span>
|
<span class="fl ml10 class-list-name hidden">{{course.name}}</span>
|
||||||
<span class="fr c-grey4">></span>
|
<span class="fr c-grey4 amount-arrow">></span>
|
||||||
<span class="students-amount f12 fr mt10 mr5">{{course.member_count}}人</span>
|
<span class="students-amount f12 fr mt10 mr5">{{course.member_count}}人</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<li ng-show="course.id" ng-click="goClass(course.id)" ng-repeat="course in syllabus.courses" ng-class="{'border-bottom-none': $last}">
|
<li ng-show="course.id" ng-click="goClass(course.id)" ng-repeat="course in syllabus.courses" ng-class="{'border-bottom-none': $last}">
|
||||||
<img src="/images/wechat/dot.png" width="15px" class="class-list-dot" />
|
<img src="/images/wechat/dot.png" width="15px" class="class-list-dot" />
|
||||||
<span class="fl ml10 class-list-name hidden">{{course.name}}</span>
|
<span class="fl ml10 class-list-name hidden">{{course.name}}</span>
|
||||||
<span class="fr c-grey4">></span>
|
<span class="fr c-grey4 amount-arrow">></span>
|
||||||
<span class="students-amount f12 fr mt10 mr5">{{course.member_count}}人</span>
|
<span class="students-amount f12 fr mt10 mr5">{{course.member_count}}人</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -23,14 +23,14 @@
|
||||||
<div ng-if="discussion.praise_count && !discussion.has_praise" ng-click="addPraise(discussion);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
<div ng-if="discussion.praise_count && !discussion.has_praise" ng-click="addPraise(discussion);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
||||||
<div ng-if="discussion.has_praise" ng-click="decreasePraise(discussion);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
<div ng-if="discussion.has_praise" ng-click="decreasePraise(discussion);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{discussion.comment_count}}</span></a>
|
<a ng-if="discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{discussion.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb50" id="all_course_message_reply">
|
<div class="mb50" id="all_course_message_reply" at-delete-link>
|
||||||
<div ng-if="discussion.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="discussion.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="journal in discussion.all_children">
|
<div class="post-reply-wrap" ng-repeat="journal in discussion.all_children">
|
||||||
<div class="post-reply-row">
|
<div class="post-reply-row">
|
||||||
|
|
|
@ -22,14 +22,14 @@
|
||||||
<div ng-if="news.praise_count && !news.has_praise" ng-click="addPraise(news);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{news.praise_count}}</span></div>
|
<div ng-if="news.praise_count && !news.has_praise" ng-click="addPraise(news);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{news.praise_count}}</span></div>
|
||||||
<div ng-if="news.has_praise" ng-click="decreasePraise(news);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{news.praise_count}}</span></div>
|
<div ng-if="news.has_praise" ng-click="decreasePraise(news);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{news.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!news.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!news.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="news.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{news.comment_count}}</span></a>
|
<a ng-if="news.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{news.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb50" id="all_news_reply">
|
<div class="mb50" id="all_news_reply" at-delete-link>
|
||||||
<div ng-if="news.comments == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="news.comments == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="comments in news.comments">
|
<div class="post-reply-wrap" ng-repeat="comments in news.comments">
|
||||||
<div class="post-reply-row">
|
<div class="post-reply-row">
|
||||||
|
|
|
@ -27,13 +27,13 @@
|
||||||
<div ng-if="homework.praise_count && !homework.has_praise" ng-click="addPraise(homework);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{homework.praise_count}}</span></div>
|
<div ng-if="homework.praise_count && !homework.has_praise" ng-click="addPraise(homework);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{homework.praise_count}}</span></div>
|
||||||
<div ng-if="homework.has_praise" ng-click="decreasePraise(homework);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{homework.praise_count}}</span></div>
|
<div ng-if="homework.has_praise" ng-click="decreasePraise(homework);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{homework.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!homework.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!homework.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="homework.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{homework.comment_count}}</span></a>
|
<a ng-if="homework.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{homework.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb50" id="all_homework_reply">
|
<div class="mb50" id="all_homework_reply" at-delete-link>
|
||||||
|
|
||||||
<div ng-if="homework.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="homework.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="journal in homework.all_children">
|
<div class="post-reply-wrap" ng-repeat="journal in homework.all_children">
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
<p/>
|
<p/>
|
||||||
<div class="share-code-instruction"> 1.点击右上角"发送给朋友",邀请同学加入班级<br />
|
<div class="share-code-instruction"> 1.点击右上角"发送给朋友",邀请同学加入班级<br />
|
||||||
2.长按二维码,通过“识别图中二维码”功能加入班级<br />
|
2.长按二维码,通过“识别图中二维码”功能加入班级<br />
|
||||||
3.通过“加入班级”菜单输入邀请码加入班级(长按邀请码可以复制哦~)</div>
|
3.通过“加入班级”菜单输入邀请码加入班级(长按邀请码可以复制哦~)<br/>
|
||||||
|
4.扫码默认以学生身份加入班级
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -28,14 +28,14 @@
|
||||||
<div ng-if="issue.praise_count && !issue.has_praise" ng-click="addPraise(discussion);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{issue.praise_count}}</span></div>
|
<div ng-if="issue.praise_count && !issue.has_praise" ng-click="addPraise(discussion);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{issue.praise_count}}</span></div>
|
||||||
<div ng-if="issue.has_praise" ng-click="decreasePraise(issue);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{issue.praise_count}}</span></div>
|
<div ng-if="issue.has_praise" ng-click="decreasePraise(issue);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{issue.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!issue.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!issue.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="issue.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{issue.comment_count}}</span></a>
|
<a ng-if="issue.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{issue.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb50" id="all_issue_reply">
|
<div class="mb50" id="all_issue_reply" at-delete-link>
|
||||||
<div ng-if="issue.issue_journals == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="issue.issue_journals == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="journal in issue.issue_journals">
|
<div class="post-reply-wrap" ng-repeat="journal in issue.issue_journals">
|
||||||
<div class="post-reply-row">
|
<div class="post-reply-row">
|
||||||
|
|
|
@ -22,14 +22,14 @@
|
||||||
<div ng-if="message.praise_count && !message.has_praise" ng-click="addPraise(message);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{message.praise_count}}</span></div>
|
<div ng-if="message.praise_count && !message.has_praise" ng-click="addPraise(message);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{message.praise_count}}</span></div>
|
||||||
<div ng-if="message.has_praise" ng-click="decreasePraise(message);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{message.praise_count}}</span></div>
|
<div ng-if="message.has_praise" ng-click="decreasePraise(message);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{message.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!message.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!message.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="message.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{message.comment_count}}</span></a>
|
<a ng-if="message.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{message.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb50" id="all_message_reply">
|
<div class="mb50" id="all_message_reply" at-delete-link>
|
||||||
|
|
||||||
<div ng-if="message.child_reply == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="message.child_reply == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="journal in message.all_children">
|
<div class="post-reply-wrap" ng-repeat="journal in message.all_children">
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<div ng-if="discussion.praise_count && !discussion.has_praise" ng-click="addPraise(discussion);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
<div ng-if="discussion.praise_count && !discussion.has_praise" ng-click="addPraise(discussion);"><img src="/images/wechat/w_praise.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
||||||
<div ng-if="discussion.has_praise" ng-click="decreasePraise(discussion);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
<div ng-if="discussion.has_praise" ng-click="decreasePraise(discussion);"><img src="/images/wechat/w_praised.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span>{{discussion.praise_count}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fr mr25 f13">
|
<div class="fr mr25 f13" input-focus>
|
||||||
<a ng-if="!discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
<a ng-if="!discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">回复</span></a>
|
||||||
<a ng-if="discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{discussion.comment_count}}</span></a>
|
<a ng-if="discussion.comment_count"><img src="/images/wechat/w_reply.png" width="20" style="vertical-align:top; margin-top:2px;" class="mr5" /><span style="vertical-align:top;">{{discussion.comment_count}}</span></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb50" id="all_course_message_reply">
|
<div class="mb50" id="all_course_message_reply" at-delete-link>
|
||||||
<div ng-if="discussion.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
<div ng-if="discussion.all_children == ''" style="border-top:1px solid #ccc;"></div>
|
||||||
<div class="post-reply-wrap" ng-repeat="journal in discussion.all_children">
|
<div class="post-reply-wrap" ng-repeat="journal in discussion.all_children">
|
||||||
<div class="post-reply-row">
|
<div class="post-reply-row">
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
<p/>
|
<p/>
|
||||||
<div class="share-code-instruction"> 1.点击右上角"发送给朋友",邀请朋友加入项目<br />
|
<div class="share-code-instruction"> 1.点击右上角"发送给朋友",邀请朋友加入项目<br />
|
||||||
2.长按二维码,通过“识别图中二维码”功能加入项目<br />
|
2.长按二维码,通过“识别图中二维码”功能加入项目<br />
|
||||||
3.通过“加入项目”菜单输入邀请码加入项目(长按邀请码可以复制哦~)</div>
|
3.通过“加入项目”菜单输入邀请码加入项目(长按邀请码可以复制哦~)<br/>
|
||||||
|
4.扫码默认以报告人员身份加入项目
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -7,7 +7,7 @@
|
||||||
<div ng-repeat="project in projects" style="position:relative;">
|
<div ng-repeat="project in projects" style="position:relative;">
|
||||||
<div ng-click="goProject(project.id)" ng-show="project.is_creator" class="course-list-row f13 c-grey3 border-top-none">
|
<div ng-click="goProject(project.id)" ng-show="project.is_creator" class="course-list-row f13 c-grey3 border-top-none">
|
||||||
<span class="fl ml15 class-list-name hidden">{{project.name}}</span>
|
<span class="fl ml15 class-list-name hidden">{{project.name}}</span>
|
||||||
<span class="fr c-grey4 mr10">></span>
|
<span class="fr c-grey4 mr10 amount-arrow">></span>
|
||||||
<span class="students-amount f12 fr mt10 mr5">{{project.member_count}}人</span>
|
<span class="students-amount f12 fr mt10 mr5">{{project.member_count}}人</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<div ng-click="goProject(project.id)" ng-repeat="project in projects" style="position:relative;">
|
<div ng-click="goProject(project.id)" ng-repeat="project in projects" style="position:relative;">
|
||||||
<div ng-show="!project.is_creator" class="course-list-row f13 c-grey3 border-top-none">
|
<div ng-show="!project.is_creator" class="course-list-row f13 c-grey3 border-top-none">
|
||||||
<span class="fl ml15 class-list-name hidden">{{project.name}}</span>
|
<span class="fl ml15 class-list-name hidden">{{project.name}}</span>
|
||||||
<span class="fr c-grey4 mr10">></span>
|
<span class="fr c-grey4 mr10 amount-arrow">></span>
|
||||||
<span class="students-amount f12 fr mt10 mr5">{{project.member_count}}人</span>
|
<span class="students-amount f12 fr mt10 mr5">{{project.member_count}}人</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
|
@ -13,7 +13,7 @@ app.controller('InviteCodeController', ['$scope','$http', '$routeParams','config
|
||||||
console.log(response.data);
|
console.log(response.data);
|
||||||
vm.course = response.data.data;
|
vm.course = response.data.data;
|
||||||
|
|
||||||
var desc = "班级邀请:"+vm.course.name+" 班级";
|
var desc = "您的好友邀请您加入班级:\n"+vm.course.name+"\n和小伙伴一起踏上便捷的学习之旅吧!";
|
||||||
var link = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d" +
|
var link = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d" +
|
||||||
"&redirect_uri=https://test.forge.trustie.net/wechat/user_activities?id="+vm.course.id+
|
"&redirect_uri=https://test.forge.trustie.net/wechat/user_activities?id="+vm.course.id+
|
||||||
"&response_type=code&scope=snsapi_base&state=invite_code&connect_redirect=1#wechat_redirect";
|
"&response_type=code&scope=snsapi_base&state=invite_code&connect_redirect=1#wechat_redirect";
|
||||||
|
|
|
@ -13,7 +13,7 @@ app.controller('ProjectInviteCodeController', ['$scope','$http', '$routeParams',
|
||||||
console.log(response.data);
|
console.log(response.data);
|
||||||
vm.project = response.data.data;
|
vm.project = response.data.data;
|
||||||
|
|
||||||
var desc = "项目邀请:"+vm.project.name+" 项目";
|
var desc = "您的好友邀请您加入项目:\n"+vm.project.name+"\n和小伙伴一起踏上便捷的研发之旅吧!";
|
||||||
|
|
||||||
var link = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d" +
|
var link = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxc09454f171153c2d" +
|
||||||
"&redirect_uri=https://test.forge.trustie.net/wechat/user_activities?id="+vm.project.id+
|
"&redirect_uri=https://test.forge.trustie.net/wechat/user_activities?id="+vm.project.id+
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**
|
||||||
|
* Created by ttang on 2016/8/10.
|
||||||
|
*/
|
||||||
|
app.directive('atDeleteLink',["$timeout",function(timer){
|
||||||
|
return{
|
||||||
|
restrict: 'A',
|
||||||
|
scope: {},
|
||||||
|
link: function(scope, element){
|
||||||
|
timer(function(){
|
||||||
|
$(".at a").each(function(){
|
||||||
|
var atText = $(this).text();
|
||||||
|
$(this).parent().html(atText);
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]);
|
|
@ -0,0 +1,14 @@
|
||||||
|
/**
|
||||||
|
* Created by ttang on 2016/8/10.
|
||||||
|
*/
|
||||||
|
app.directive('inputFocus',function(){
|
||||||
|
return{
|
||||||
|
restrict: 'A',
|
||||||
|
scope: {},
|
||||||
|
link: function(scope, element){
|
||||||
|
element.on('click',function(){
|
||||||
|
$("#postInput1").focus();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
|
@ -372,7 +372,7 @@ app.factory('common', ['$http', 'auth', '$routeParams','rms','config','wx','$loc
|
||||||
}
|
}
|
||||||
|
|
||||||
if(imgUrl == null || imgUrl == ""){
|
if(imgUrl == null || imgUrl == ""){
|
||||||
imgUrl = 'http://www.trustie.net/images/logo2.png';
|
imgUrl = 'http://www.trustie.net/images/wechat/wx_logo.jpg';
|
||||||
}
|
}
|
||||||
|
|
||||||
wx.ready(function(){
|
wx.ready(function(){
|
||||||
|
|
|
@ -178,7 +178,7 @@ a.underline {text-decoration:underline;}
|
||||||
.invitation-code-wrap {text-align:center; font-size:18px; color:#3b3b3b; padding:16px;}
|
.invitation-code-wrap {text-align:center; font-size:18px; color:#3b3b3b; padding:16px;}
|
||||||
.share-code-wrap {width:100%; background-color:#efeff4;}
|
.share-code-wrap {width:100%; background-color:#efeff4;}
|
||||||
.share-code-btn, .finish-btn {width:145px; height:35px; color:#fff; font-size:15px; line-height:35px; text-align:center; vertical-align:middle; background-color:#ff7239; margin:18px auto 20px auto; border-radius:50px; display:block;}
|
.share-code-btn, .finish-btn {width:145px; height:35px; color:#fff; font-size:15px; line-height:35px; text-align:center; vertical-align:middle; background-color:#ff7239; margin:18px auto 20px auto; border-radius:50px; display:block;}
|
||||||
.share-code-instruction {max-width:228px; font-size:12px; color:#666; line-height:20px; margin:0 auto;}
|
.share-code-instruction {max-width:228px; font-size:12px; color:#666; line-height:20px; margin:20px auto 30px;}
|
||||||
|
|
||||||
/*20160613班级详情*/
|
/*20160613班级详情*/
|
||||||
.class-detail-name, .blue-title {width:100%; height:45px; line-height:45px; vertical-align:middle; background-color:#3b94d6; color:#fff; font-size:18px; text-align:center;}
|
.class-detail-name, .blue-title {width:100%; height:45px; line-height:45px; vertical-align:middle; background-color:#3b94d6; color:#fff; font-size:18px; text-align:center;}
|
||||||
|
@ -216,6 +216,7 @@ a.underline {text-decoration:underline;}
|
||||||
.border-bottom-none {border-bottom:none !important;}
|
.border-bottom-none {border-bottom:none !important;}
|
||||||
.border-top-none {border-top:none !important;}
|
.border-top-none {border-top:none !important;}
|
||||||
.students-amount {height:14px; line-height:14px; vertical-align:middle; padding:2px 5px; background-color:#e6e6e6; border-radius:10px;}
|
.students-amount {height:14px; line-height:14px; vertical-align:middle; padding:2px 5px; background-color:#e6e6e6; border-radius:10px;}
|
||||||
|
.amount-arrow {height:14px; line-height:14px; vertical-align:middle; margin-top:12px;}
|
||||||
.new-class-btn {font-size:15px; color:#fff; background-color:#3b94d6; padding:10px 40px; border-radius:20px; display:inline-block; margin:0 auto;}
|
.new-class-btn {font-size:15px; color:#fff; background-color:#3b94d6; padding:10px 40px; border-radius:20px; display:inline-block; margin:0 auto;}
|
||||||
.join-class-btn {font-size:15px; color:#444; background-color:#ccc; padding:10px 40px; border-radius:20px; display:inline-block; margin:0 auto;}
|
.join-class-btn {font-size:15px; color:#444; background-color:#ccc; padding:10px 40px; border-radius:20px; display:inline-block; margin:0 auto;}
|
||||||
.new-class-input {width:60%; color:#555; height:16px; line-height:16px; vertical-align:middle; border:none; outline:none; padding:8px 0;}
|
.new-class-input {width:60%; color:#555; height:16px; line-height:16px; vertical-align:middle; border:none; outline:none; padding:8px 0;}
|
||||||
|
|
Loading…
Reference in New Issue