Commit ee792349 by cen

fix: 修改样式

1 parent 9f76bc67
......@@ -27,11 +27,23 @@
</view>
</view>
</view>
<template v-if="firstIndex == 0">
<MyTask ref="myTask" />
</template>
<template v-if="firstIndex == 1">
<RecommendCourse />
<template>
<scroll-view scroll-y ref="scrollViewRef" :scroll-top="scrollTop" @scrolltolower="pageonReachBottom" :class="[getScrollHeight]">
<template v-if="cardList.length">
<view class="task-list">
<Card v-for="item in cardList" :key="item.taskId" :item="item" />
</view>
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="../../../assets/images/common/noData.png" />
暂无数据
</view>
</template>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</template>
</view>
</view>
......@@ -39,19 +51,11 @@
</template>
<script>
import LearnStatistics from './Study/LearnStatistics.vue'
import WeeklyConversionRate from './Study/WeeklyConversionRate.vue'
import MyTask from './Study/MyTask.vue'
import RecommendCourse from './Study/RecommendCourse.vue'
import RadarChart from 'pages/common/studyDetail/components/RadarChart.vue'
import Card from './Activity/card.vue'
export default {
name: 'ActivityCenter',
components: {
LearnStatistics,
WeeklyConversionRate,
MyTask,
RecommendCourse,
RadarChart
Card
},
data() {
return {
......@@ -63,6 +67,7 @@ export default {
{ tabName: '即将开始', num: () => '' },
{ tabName: '已结束', num: () => '' }
],
cardList: [],
firstIndex: 0,
firstLeft: ['first', 'second'],
firstClass: ['short-first-nav', 'short-second-nav'],
......@@ -362,5 +367,19 @@ export default {
}
}
}
.nothing {
width: 100%;
flex-direction: column;
margin-top: toRpx(270);
font-size: toRpx(28);
color: #999999;
.icon {
width: toRpx(678);
height: toRpx(284);
margin-bottom: toRpx(24);
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!