Commit 00c76a3a by 陈超

A

parent d6a266d7
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
<div v-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div> <div v-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div>
<div v-if="item.price == 0" class="button_green layout_center">下载试题</div> <div v-if="item.price == 0" class="button_green layout_center">下载试题</div>
</div> </div>
</div> </div>
<span style="margin-top: 35vh;" v-if="download.length == 0" class="text_14_400 color_999999 self_center">没有找到!</span>
</div> </div>
</van-tab> </van-tab>
...@@ -108,21 +109,24 @@ ...@@ -108,21 +109,24 @@
<div class="text_12_400 color_999999 zhenti_my_collect_cell_time">2020-04-04 03:12:56</div> <div class="text_12_400 color_999999 zhenti_my_collect_cell_time">2020-04-04 03:12:56</div>
</div> </div>
<!-- 项目2 --> <!-- 项目2 -->
<div v-if="myTab == 0" class="class_item layout_h"> <div v-if="myTab == 0" v-for="(item, index) in myYiZuo" :key="index" class="class_item layout_h">
<div class="class_left layout_v weight_full"> <div class="class_left layout_v weight_full">
<div class="layout_h"> <div class="layout_h">
<div class="mark_orange layout_center">付费</div> <div v-if="item.price > 0" class="mark_orange layout_center">付费</div>
<span class="text_14_600 color_333333 weight_full van-multi-ellipsis--l2" style="margin-left: 0.625rem;">2020年国家公务员《行测》试卷(省级)-名师版</span> <div v-if="item.price == 0" class="mark_green layout_center">免费</div>
<span class="text_14_600 color_333333 weight_full van-multi-ellipsis--l2" style="margin-left: 0.625rem;">{{item.title}}</span>
</div> </div>
<div class="layout_h" style="margin-top: 1.25rem;"> <div class="layout_h" style="margin-top: 1.25rem;">
<span class="text_12_400 color_primary">得分:80</span> <span class="text_12_400 color_primary">得分:{{item.score}}</span>
<span class="class_attr text_12_400 color_999999">2020-04-04 03:12:56</span> <span class="class_attr text_12_400 color_999999">{{item.time}}</span>
</div> </div>
</div> </div>
<div class="class_right layout_center"> <div class="class_right layout_center">
<div class="button_green layout_center">查看详情</div> <div class="button_green layout_center">查看详情</div>
</div> </div>
</div> </div>
<span style="margin-top: 35vh;" v-if="myYiZuo.length == 0 && myTab=0" class="text_14_400 color_999999 self_center">没有找到!</span>
<span style="margin-top: 35vh;" v-if="myYiZuo.length == 0 && myTab=1" class="text_14_400 color_999999 self_center">没有找到!</span>
</div> </div>
</van-tab> </van-tab>
...@@ -316,8 +320,6 @@ ...@@ -316,8 +320,6 @@
url: "{:U('home/Home/exams')}" + "?api=1&tab=2", url: "{:U('home/Home/exams')}" + "?api=1&tab=2",
dataType: "json", dataType: "json",
success: function(res) { success: function(res) {
console.log(res)
return
if(res.status == 1) { if(res.status == 1) {
let array = res.data.data.length > 0 ? res.data.data : [] let array = res.data.data.length > 0 ? res.data.data : []
that.download = [].concat(array.map( r => { that.download = [].concat(array.map( r => {
...@@ -325,9 +327,8 @@ ...@@ -325,9 +327,8 @@
id: r.exams_paper_id, id: r.exams_paper_id,
title: r.exams_paper_title, title: r.exams_paper_title,
price: r.price, price: r.price,
count: r.questions_count, time: new Date(r.start_time).format('yyyy-mm-dd HH:MM:ss'),
time: r.reply_time, score: r.score
person: r.exams_user + "已做"
} }
})) }))
} }
......
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