|
|
|
|
<div class="post-container">
|
|
|
|
|
<div loading-spinner></div>
|
|
|
|
|
<div class="class-detail-name">我的资源</div>
|
|
|
|
|
<div class="tab-wrap">
|
|
|
|
|
<a ng-click="tab($index+1)" ng-repeat="menu in menus" id="class_tab_1" href="javascript:void(0);" ng-class="['weixin-tab', {'class-tab-active': currentTab == $index+1}]">{{menu}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="class-search-wrap">
|
|
|
|
|
<div class="class-search-inner"> <img src="/images/wechat/search.png" width="18" class="class-search-icon" />
|
|
|
|
|
<input class="class-detail-search" placeholder="输入关键词进行搜索" ng-model="searchText" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div ng-class="{'undis': currentTab!=1}">
|
|
|
|
|
<div ng-repeat="r in resources|filter:{filename:searchText}" ng-class="['class-detail-row', 'f13', 'c-grey3', {'border-top': $first}]">
|
|
|
|
|
<img src="/images/wechat/courseware.png" width="15" class="ml10 fl" /> <a ng-href="{{g_localhost}}/attachments/download/{{r.id}}/{{r.filename}}?type=wechat" target="_blank" class="fl ml10 resource-width">{{r.filename}}</a><a ng-show="r.current_user_is_teacher" ng-click="sendFile(r,1)" class="fr mr10 link-blue2">发送</a><div class="cl"></div>
|
|
|
|
|
<span class="f12 mt5 ml35 c-grey4 fl courseware-from-width hidden">课件来源:{{r.syllabus_title}}<font class="fb" style="height:18px; line-height:18px; vertical-align:top; margin:0 3px;">·</font>{{r.coursename}}</span><span class="f12 ml10 mt5 c-grey4 fl">大小:{{r.attafile_size}}</span><div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="has_more">
|
|
|
|
|
<div id="more" class="more-events mt10" ng-click="loadResourceData(1,page+1);">更多</div>
|
|
|
|
|
</div>
|
|
|
|
|
<p ng-show="resources_tag && resources.length<=0" class="class-test-tip">暂无课件,<br />
|
|
|
|
|
请登录Trustie网站,在PC浏览器中上传课件。</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-class="{'undis': currentTab!=2}">
|
|
|
|
|
<div ng-repeat="r in homeworks|filter:{homework_name: searchText}" ng-class="['class-detail-row', 'f13', 'c-grey3', {'border-top': $first}]"><img src="/images/wechat/homework.png" width="15" class="ml10 fl" /><span ng-click="goHomeworkDetail(r.id)" class="fl ml10 resource-width">{{r.homework_name}}</span><a ng-show="r.current_user_is_teacher" ng-click="sendFile(r,2)" class="fr mr10 link-blue2 ">发送</a><div class="cl"></div>
|
|
|
|
|
<span class="f12 mt5 ml35 c-grey4 fl other-from-width hidden">作业来源:{{r.syllabus_title}}<font class="fb" style="height:18px; line-height:18px; vertical-align:top; margin:0 3px;">·</font>{{r.coursename}}</span><div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div ng-if="homework_has_more">
|
|
|
|
|
<div id="more_homeworks" class="more-events mt10" ng-click="loadResourceData(2,homework_page+1);">更多</div>
|
|
|
|
|
</div>
|
|
|
|
|
<p ng-show="homeworks_tag == true && homeworks.length<=0" class="class-test-tip">暂无作业,<br />
|
|
|
|
|
请登录Trustie网站,在PC浏览器中创建作业。</p>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div ng-class="{'undis': currentTab!=3}">-->
|
|
|
|
|
<!--<div ng-repeat="r in exercise|filter:{exercise_name: searchText}" ng-class="['class-detail-row', 'f13', 'c-grey3', {'border-top': $first}]"><img src="/images/wechat/test.png" width="15" class="ml10 fl" /><span class="fl ml10 resource-width">{{r.exercise_name}}</span><a ng-show="r.current_user_is_teacher" ng-click="sendFile(r,3)" class="fr mr10 link-blue2 undis">发送</a><div class="cl"></div>-->
|
|
|
|
|
<!--<span class="f12 mt5 ml35 c-grey4 other-from-width hidden">题目来源:{{r.coursename}}</span><div class="cl"></div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<div ng-if="exercise_has_more">-->
|
|
|
|
|
<!--<div id="more_exercises" class="more-events mt10" ng-click="loadResourceData(3,exercise_page+1);">更多</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<p ng-show="exercises_tag == true && exercise.length<=0" class="class-test-tip">暂无测验,<br />-->
|
|
|
|
|
<!--请登录Trustie网站,在PC浏览器中创建测验。</p>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
|
|
|
|
</div>
|