From 3c23560d770a88bb9cefeb8f4f3887c6fbb01a2a Mon Sep 17 00:00:00 2001
From: guange <8863824@gmail.com>
Date: Fri, 8 Jul 2016 17:11:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E8=B5=84=E6=BA=90=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2=E6=97=A0=E6=95=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/assets/wechat/myresource.html | 8 ++++----
public/javascripts/wechat/controllers/myresource.js | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/public/assets/wechat/myresource.html b/public/assets/wechat/myresource.html
index 1317ac11a..068c503ce 100644
--- a/public/assets/wechat/myresource.html
+++ b/public/assets/wechat/myresource.html
@@ -6,22 +6,22 @@
-
+
暂无课件,
请登录Trustie网站,在PC浏览器中上传课件。
-
{{r.homework_name}}
+
{{r.homework_name}}
暂无作业,
请登录Trustie网站,在PC浏览器中创建作业。
-
{{r.exercise_name}}
+
{{r.exercise_name}}
暂无测验,
请登录Trustie网站,在PC浏览器中创建测验。
diff --git a/public/javascripts/wechat/controllers/myresource.js b/public/javascripts/wechat/controllers/myresource.js
index 462a35842..b371ee8cc 100644
--- a/public/javascripts/wechat/controllers/myresource.js
+++ b/public/javascripts/wechat/controllers/myresource.js
@@ -6,8 +6,11 @@ app.controller('MyResourceController', ['$scope', '$http', 'auth', 'config', '$l
vm.homeworks = null;
vm.exercise = null;
+ vm.searchText = "";
+
vm.tab = function(index){
vm.currentTab = index;
+ vm.searchText = "";
if(index==1 && (!vm.resources || vm.resources.length <= 0 )){
$http.get(config.apiUrl + "resources?token="+auth.token()).then(function(response){
console.log(response.data);
@@ -31,4 +34,4 @@ app.controller('MyResourceController', ['$scope', '$http', 'auth', 'config', '$l
vm.sendFile = function(r){
$location.path("/send_class_list").search({id: r.id});
}
-}] );
\ No newline at end of file
+}] );