Commit ee792349 by cen

fix: 修改样式

1 parent 9f76bc67
...@@ -27,11 +27,23 @@ ...@@ -27,11 +27,23 @@
</view> </view>
</view> </view>
</view> </view>
<template v-if="firstIndex == 0"> <template>
<MyTask ref="myTask" /> <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>
<template v-if="firstIndex == 1"> <template v-if="nothing">
<RecommendCourse /> <view class="end-text">到底了!</view>
</template>
</scroll-view>
</template> </template>
</view> </view>
</view> </view>
...@@ -39,19 +51,11 @@ ...@@ -39,19 +51,11 @@
</template> </template>
<script> <script>
import LearnStatistics from './Study/LearnStatistics.vue' import Card from './Activity/card.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'
export default { export default {
name: 'ActivityCenter', name: 'ActivityCenter',
components: { components: {
LearnStatistics, Card
WeeklyConversionRate,
MyTask,
RecommendCourse,
RadarChart
}, },
data() { data() {
return { return {
...@@ -63,6 +67,7 @@ export default { ...@@ -63,6 +67,7 @@ export default {
{ tabName: '即将开始', num: () => '' }, { tabName: '即将开始', num: () => '' },
{ tabName: '已结束', num: () => '' } { tabName: '已结束', num: () => '' }
], ],
cardList: [],
firstIndex: 0, firstIndex: 0,
firstLeft: ['first', 'second'], firstLeft: ['first', 'second'],
firstClass: ['short-first-nav', 'short-second-nav'], firstClass: ['short-first-nav', 'short-second-nav'],
...@@ -362,5 +367,19 @@ export default { ...@@ -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> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!