提交 f1b06e79 编写于 作者: guofeng.chen's avatar guofeng.chen

Merge branch 'dev-coursedetail-0817' of...

Merge branch 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam into dev-coursedetail-0817
...@@ -30,9 +30,10 @@ export default { ...@@ -30,9 +30,10 @@ export default {
.download-button-wrapper { .download-button-wrapper {
display: flex; display: flex;
// width: 100%; // width: 100%;
position: fixed; // position: fixed;
position: absolute;
z-index: 1000; z-index: 1000;
top: 15px; top: 10px;
right: 0; right: 0;
height: 30px; height: 30px;
align-items: center; align-items: center;
...@@ -51,6 +52,7 @@ export default { ...@@ -51,6 +52,7 @@ export default {
font-weight: 700; font-weight: 700;
color: #5ba99b; color: #5ba99b;
background: #fff; background: #fff;
box-shadow:0px 2px 10px 0px rgba(0,0,0,0.1);
width: 120px; width: 120px;
&.short { &.short {
width: 10px; width: 10px;
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
<div class="tab-line" :style="{left: `${tabLeft}px`}"></div> <div class="tab-line" :style="{left: `${tabLeft}px`}"></div>
</div> </div>
</van-sticky> </van-sticky>
<DownloadButton v-if="showDownloadButton"></DownloadButton>
</div> </div>
<brief-intro v-show="curtTabIdx === 0" :doctor-list="doctors" :intro="course.intro" :harvest="harvest" /> <brief-intro v-show="curtTabIdx === 0" :doctor-list="doctors" :intro="course.intro" :harvest="harvest" />
<course-catalog v-show="curtTabIdx === 1" :list="chapters" :curtId="curtLectureId" :onToggle="onToggle" :onSelect="selectLecture" :download="download" /> <course-catalog v-show="curtTabIdx === 1" :list="chapters" :curtId="curtLectureId" :onToggle="onToggle" :onSelect="selectLecture" :download="download" />
...@@ -77,7 +78,6 @@ ...@@ -77,7 +78,6 @@
</div> --> </div> -->
<Loading v-if="showLoading" /> <Loading v-if="showLoading" />
<DownloadButton v-if="showDownloadButton"></DownloadButton>
</div> </div>
</template> </template>
...@@ -471,6 +471,7 @@ export default { ...@@ -471,6 +471,7 @@ export default {
} }
} }
.tab-box{ .tab-box{
position: relative; // 用于定位下载按钮
height: 50px; height: 50px;
} }
.tab-inner{ .tab-inner{
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
> >
<span :class="{'focus': tabFlag}" @click="jumpIntro">简介</span> <span :class="{'focus': tabFlag}" @click="jumpIntro">简介</span>
<span :class="{'focus': !tabFlag}" @click="jumpCatalogue">目录</span> <span :class="{'focus': !tabFlag}" @click="jumpCatalogue">目录</span>
<DownloadButton v-if="showDownloadButton"></DownloadButton>
</div> </div>
<div v-show="fixedFlag" class="fixed-flag-height"></div> <div v-show="fixedFlag" class="fixed-flag-height"></div>
<div id="intro-content" class="intro-content"> <div id="intro-content" class="intro-content">
...@@ -179,8 +180,6 @@ ...@@ -179,8 +180,6 @@
@btnClick="download(1)" @btnClick="download(1)"
></CourseCovers> ></CourseCovers>
</div> </div>
<DownloadButton v-if="showDownloadButton"></DownloadButton>
</div> </div>
</template> </template>
<script> <script>
...@@ -905,18 +904,19 @@ export default { ...@@ -905,18 +904,19 @@ export default {
} }
.intro-catalogue-container { .intro-catalogue-container {
.title { .title {
position: relative;
height: 50px; height: 50px;
line-height: 30px; line-height: 30px;
padding: 0 15px; padding: 0 15px;
border-bottom: 1px solid #f0f1f2; border-bottom: 1px solid #f0f1f2;
span { & > span {
display: inline-block; display: inline-block;
line-height: 15px; line-height: 15px;
font-size: 15px; font-size: 15px;
color: #979899; color: #979899;
padding-right: 35px; padding-right: 35px;
} }
span.focus { & > span.focus {
position: relative; position: relative;
color: #373839; color: #373839;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册