评论组件化

This commit is contained in:
@fawn-nine
2024-06-18 11:47:37 +08:00
parent b930cfc084
commit dc2f278594
4 changed files with 490 additions and 221 deletions

View File

@@ -27,9 +27,11 @@
</view>
<u-tabs :class="['tabList']" @click="" :current="curTagId"
:activeStyle="activeStyle" :scrollable="scrollable" :list="tabList"
itemStyle="padding-left: 15px; background-color:#fff; padding-right: 15px; height: 50px;"></u-tabs>
<view class="imgcontainer">
<u-tabs :class="['tabList']" @click="" :current="curTagId"
:activeStyle="activeStyle" :scrollable="scrollable" :list="tabList"
itemStyle="padding-left: 15px; padding-right: 15px; height: 50px;"></u-tabs>
</view>
<view class="box">
<rich-text v-if="chapter.detail.content" class="content"
:nodes="formatRichText(chapter.detail.content)"></rich-text>
@@ -82,7 +84,7 @@
color: '#258feb',
},
tabList:[
{id:1, name:"章节介绍"},{id:2, name:"评论"},
{id:1, name:"章节介绍"},{id:3, name:"本节作业"},{id:2, name:"评论"}
],
scrollTop: 0,
courseId: null,
@@ -168,7 +170,9 @@
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
.imgcontainer {
background-color: $imgBg;
}
.scroll-view_H {
white-space: nowrap;
width: 100%;