Commit ece9102e by 冷斌

fix bug

parent 030a7378
......@@ -105,10 +105,12 @@
<div @click="onMyTab(1)" class="layout_center weight_full" :class="myTab == 1 ? 'zhenti_tab_selected' : 'zhenti_tab_normal'">收藏</div>
</div>
<template v-if="myTab == 1">
<!-- <div class="zhenti_my_collect_cell layout_v">-->
<!-- <div class="text_16_600 color_333333"></div>-->
<!-- <div class="text_12_400 color_999999 zhenti_my_collect_cell_time">2020-04-04 03:12:56</div>-->
<!-- </div>-->
<div v-for="(item, index) in myCollect" :key="index" class="class_item layout_h">
<div class="zhenti_my_collect_cell layout_v">
<div class="text_16_600 color_333333">{{item.content}}</div>
<div class="text_12_400 color_999999 zhenti_my_collect_cell_time">{{item.time}}</div>
</div>
</div>
<span style="margin-top: 35vh;" v-if="myCollect.length == 0" class="text_14_400 color_999999 self_center">没有找到!</span>
</template>
<template v-if="myTab == 0">
......@@ -129,31 +131,6 @@
</div>
</div>
<span style="margin-top: 35vh;" v-if="myYiZuo.length == 0" class="text_14_400 color_999999 self_center">没有找到!</span>
<!-- <div class="layout_v list_container">-->
<!-- &lt;!&ndash; 项目1 &ndash;&gt;-->
<!-- <div v-for="(item, index) in zhenti" :key="index" class="class_item layout_h">-->
<!-- <div class="class_left layout_v weight_full">-->
<!-- <div class="layout_h">-->
<!-- <div v-if="item.price > 0" class="mark_orange layout_center">付费</div>-->
<!-- <div v-if="item.price == 0" class="mark_green layout_center">免费</div>-->
<!-- <span class="text_14_600 color_333333 weight_full van-multi-ellipsis&#45;&#45;l2" style="margin-left: 0.625rem;">{{item.title}}</span>-->
<!-- </div>-->
<!-- <div class="layout_h" style="margin-top: 1.25rem;">-->
<!-- <span class="text_12_400 color_999999">题数:{{item.count}}</span>-->
<!-- <span class="class_attr text_12_400 color_999999">推荐用时:{{item.time}}m</span>-->
<!-- <span class="class_attr text_12_400 color_999999">{{item.person}}</span>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="class_right layout_center">-->
<!-- <div @click="startDo(item)" v-if="item.price == 0 || item.is_buy" class="button_green layout_center">开始做题</div>-->
<!-- <div @click="onPay(item)" v-else-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <span style="margin-top: 35vh;" v-if="zhenti.length == 0" class="text_14_400 color_999999 self_center">没有找到!</span>-->
<!-- </div>-->
</template>
</div>
</van-tab>
......@@ -419,11 +396,9 @@
let array = res.data.data.length > 0 ? res.data.data : []
that.myCollect = [].concat(array.map( r => {
return {
id: r.exams_paper_id,
title: r.exams_paper_title,
price: r.price,
time: new Date(r.start_time).format('yyyy-mm-dd HH:MM:ss'),
score: r.score
id: r.question_info.exams_question_id,
content: r.question_info.content,
time: new Date(r.ctime * 1000).format('yyyy-mm-dd HH:MM:ss'),
}
}))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment