Commit dddc776f by 冷斌

fix bug

parent 77f6cce4
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
} }
</style> </style>
<div id="app"> <div id="app">
<van-sticky> <van-sticky>
<div class="tabs_container"> <div class="tabs_container">
<div @click="onChange(idx)" v-for="(opt, idx) in options" :key="idx" :class="idx == tab ? 'tab_item_selected' : 'tab_item_normal'" > <div @click="onChange(idx)" v-for="(opt, idx) in options" :key="idx" :class="idx == tab ? 'tab_item_selected' : 'tab_item_normal'" >
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
</div> </div>
</div> </div>
</van-sticky> </van-sticky>
<van-list <van-list
v-model="loading" v-model="loading"
:finished="finished" :finished="finished"
finished-text="没有更多了" finished-text="没有更多了"
@load="onLoad"> @load="onLoad">
<template v-if="tab == 0"> <template v-if="tab == 0">
<div v-for="(item, index) in options[0].items" class="layout_h news_hire_info"> <div v-for="(item, index) in options[0].items" class="layout_h news_hire_info">
<van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image> <van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="tab == 1"> <template v-if="tab == 1">
<div v-for="(item, index) in options[1].items" class="layout_h news_hire_info"> <div v-for="(item, index) in options[1].items" class="layout_h news_hire_info">
<van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image> <van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="tab == 2"> <template v-if="tab == 2">
<div v-for="(item, index) in options[2].items" class="layout_h news_hire_info"> <div v-for="(item, index) in options[2].items" class="layout_h news_hire_info">
<van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image> <van-image height="72" width="72" :src="item.cover" fit="cover" ></van-image>
...@@ -72,12 +72,12 @@ ...@@ -72,12 +72,12 @@
</div> </div>
</div> </div>
</template> </template>
</van-list> </van-list>
</div> </div>
<script> <script>
new Vue({ new Vue({
el: "#app", el: "#app",
data: function() { data: function() {
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
return { return {
id: r.id, id: r.id,
title: r.title, title: r.title,
cover: r.image, cover: r.cover,
time: d.format("yyyy-MM-dd") time: d.format("yyyy-MM-dd")
} }
})) }))
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
}) })
}, },
onItem: function(item) { onItem: function(item) {
} }
} }
}) })
......
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