dev_pull
parent
7df9fe7d60
commit
c501af70ba
@ -0,0 +1 @@
|
|||||||
|
{"access_token":"_-LoF1vaOEfUwHI2E5iF7IOIyhvTQAhdkyrwp0ISL0q2Nqb8QMcO9K4Z_kNXxporFsN3xJxOdd8EcCPLVxxzqbBm02m9gmGdp_ENBf9K5nHcneKNTpdoIII7B-9FXHRwCYPaADAJFW","expires_in":7200,"got_token_at":1466770839}
|
@ -0,0 +1,10 @@
|
|||||||
|
<div class="post-container">
|
||||||
|
<div class="blue-title">课程列表</div>
|
||||||
|
<div class="course-list-row f13 c-grey3 mt10"><img src="/images/wechat/plus.png" width="15" class="fl ml10 mt11 spread-btn" /><img src="/images/wechat/minus.png" width="15" class="fl ml10 mt11 retract-btn undis" /><span class="fl ml10">未命名课程</span><img src="/images/wechat/setting.png" width="15" class="fr mr10 mt10" /></div>
|
||||||
|
<ul class="class-list f13 c-grey3">
|
||||||
|
<li ng-repeat="course in courses" ng-class="{'border-bottom-none': $last}"><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="fr c-grey4">></span><span class="students-amount f12 fr mt10">10人</span></li>
|
||||||
|
<!--<li><img src="/images/wechat/dot.png" width="15px" class="class-list-dot" /><span class="fl ml10 class-list-name hidden">分布式计算环境B班</span><span class="fr c-grey4">></span><span class="students-amount f12 fr mt10">10人</span></li>-->
|
||||||
|
<!--<li class="border-bottom-none"><img src="/images/wechat/dot.png" width="15px" class="class-list-dot" /><span class="fl ml10 class-list-name hidden">分布式计算环境C班</span><span class="fr c-grey4">></span><span class="students-amount f12 fr mt10">10人</span></li>-->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
@ -0,0 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* Created by guange on 16/6/27.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
app.controller('ClassListController', ['$scope','config','auth','$http', function($scope, config, auth, $http){
|
||||||
|
var vm = $scope;
|
||||||
|
vm.courses = [];
|
||||||
|
|
||||||
|
$http.get(config.apiUrl + "courses?token="+ auth.token() + "&per_page_count=10&page=1").then(
|
||||||
|
function(response){
|
||||||
|
console.log(response.data);
|
||||||
|
vm.courses = response.data.data;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
}]);
|
Loading…
Reference in new issue