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
+}] );