Commit f96b2873 by 陈超

T

parent d773dd05
......@@ -121,7 +121,7 @@
</van-sticky>
<template v-if="tab == 0">
<template v-if="showList(0)">
<div v-for="(item, idx) in options[0].items" :key="idx" class="home_class_item layout_v">
<div class="layout_h">
<van-image
......@@ -140,7 +140,7 @@
</div>
</template>
<template v-if="tab == 1">
<template v-if="showList(1)">
<div v-for="(item, idx) in options[1].items" :key="idx" class="layout_v home_question_item">
<div class="layout_h">
<div class="home_item_mark_green layout_center">免费</div>
......@@ -155,7 +155,7 @@
</div>
</template>
<template v-if="tab == 2">
<template v-if="showList(2)">
<div v-for="(item, idx) in options[2].items" :key="idx" class="home_item_goods layout_h">
<van-image
style="margin-right: 0.75rem;"
......@@ -285,6 +285,15 @@
}]
}
},
computed: {
showList: function() {
let tab = this.tab
let showHot = this.showHistory
return function(idx) {
return (idx == tab) && !showHot
}
}
},
methods: {
onFocus: function() {
this.showHistory = true
......
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