返回优化完成
This commit is contained in:
parent
48b36e5d16
commit
32ffd2a5b5
|
@ -98,6 +98,7 @@ module Mobile
|
|||
end
|
||||
expose :act_type #缺陷/作业/讨论区/留言等类型
|
||||
expose :act_id
|
||||
expose :id
|
||||
expose :container_type #课程/项目/博客/个人
|
||||
expose :author, using: Mobile::Entities::User do |a, opt| #用户信息
|
||||
if a.is_a? ::UserActivity
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
<div class="post-container">
|
||||
<div class="post-wrapper">
|
||||
<div class="post-main">
|
||||
<div class="mb5" dataID = "{{act.act_id}}" onclick="goDetail('issues',act.act_id)" id="{{act.act_id}}">
|
||||
<div class="mb5" dataID = "{{act.act_id}}" ng-click="goDetail('issues',act.act_id, act.id)" id="act_{{act.id}}">
|
||||
<div class="post-avatar fl"><img ng-src="{{replaceUrl(act.author.img_url)}}" width="40" height="40" class="border-radius" /></div>
|
||||
<div class="post-title hidden mb5"><a herf="javascript:void(0);">{{act.author.realname}}</a></div>
|
||||
<div class="post-title hidden"><a herf="javascript:void(0);" class="f12 c-grey2">{{act.course_project_name}}</a></div>
|
||||
|
|
|
@ -117,9 +117,9 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h
|
|||
$scope.loadActData = loadActData;
|
||||
|
||||
//跳到详情页
|
||||
$scope.goDetail = function(type, id){
|
||||
rms.save("yoffset", id);
|
||||
$location.path('/'+type+'/'+id);
|
||||
$scope.goDetail = function(type, act_id,id){
|
||||
rms.save("yoffset", 'act_'+id);
|
||||
$location.path('/'+type+'/'+act_id);
|
||||
}
|
||||
|
||||
$scope.addPraise = function(act){
|
||||
|
|
Loading…
Reference in New Issue