|
@@ -16,7 +16,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div id="data-screen" class="inner">
|
|
|
+ <div id="data-screen" class="inner" v-if="chapterFree=='true'||bookIsBuy=='true'">
|
|
|
<!-- 显示答案按钮 -->
|
|
|
<!-- <a v-if="chapterId" :class="['answerShow',isAnswerShow?'answerShowTrue':'']" @click="handleAnswerShow">显示答案</a> -->
|
|
|
<!-- <a class="edit-btn" @click="handleEdit">编辑</a> -->
|
|
@@ -91,7 +91,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import TreeView from "@/components/inputModules/common/TreeView";
|
|
|
+import TreeView from "@/components/inputModules/common/TreeView.vue";
|
|
|
import { getContent } from "@/api/ajax";
|
|
|
import Cookies from "js-cookie";
|
|
|
// import Preview from '@/componentsAnswer/PreviewAnswer.vue'
|
|
@@ -120,6 +120,7 @@ export default {
|
|
|
category: "",
|
|
|
FatherTreeData: null,
|
|
|
themeColor: "",
|
|
|
+ chapterFree: 'false', // 课件免费观看
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -139,6 +140,7 @@ export default {
|
|
|
_this.chapterId = id;
|
|
|
_this.chapterName = name;
|
|
|
_this.isAnswerShow = false;
|
|
|
+ _this.chapterFree = free;
|
|
|
_this.onGetData();
|
|
|
if (!_this.treeFlag) {
|
|
|
_this.fullTree = false;
|