From 17faaf80544cfe08cb38391f0bc4218cf37fab6e Mon Sep 17 00:00:00 2001 From: tamguo Date: Tue, 10 Jul 2018 19:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/js/chapter/main.js | 2 +- .../src/main/resources/templates/chapter.html | 44 +++---------------- 2 files changed, 6 insertions(+), 40 deletions(-) diff --git a/tamguo-mobile/src/main/resources/static/js/chapter/main.js b/tamguo-mobile/src/main/resources/static/js/chapter/main.js index 064ad94..445e071 100644 --- a/tamguo-mobile/src/main/resources/static/js/chapter/main.js +++ b/tamguo-mobile/src/main/resources/static/js/chapter/main.js @@ -19,7 +19,7 @@ var vm = new Vue({ findChapterList(courseId){ axios({method: 'post',url: mainHttp + 'chapter/findChapterList.html?courseId='+courseId}).then(function(response){ if(response.data.code == 0){ - vm.courseList = response.data.result; + vm.chapterList = response.data.result; } }); } diff --git a/tamguo-mobile/src/main/resources/templates/chapter.html b/tamguo-mobile/src/main/resources/templates/chapter.html index 460f2c8..ab8ea59 100644 --- a/tamguo-mobile/src/main/resources/templates/chapter.html +++ b/tamguo-mobile/src/main/resources/templates/chapter.html @@ -32,48 +32,14 @@ -
- 第一章 社会工作概述 +
+ {{chapter.name}} - + - 1.1 社区的含义、要素及功能 + {{cha.name}} - 1 社会工作的含义、目标与功能 - - - - - - - - - - -
-
- 第一章 社会工作概述 - - - - 1.1 社区的含义、要素及功能 - - 1 社会工作的含义、目标与功能 - - - - - - - - - - - - - 1.1 社区的含义、要素及功能 - - 1 社会工作的含义、目标与功能 + {{cha.name}}