Commit dddc776f by 冷斌

fix bug

parent 77f6cce4
......@@ -5,7 +5,7 @@
}
</style>
<div id="app">
<van-sticky>
<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'" >
......@@ -13,13 +13,13 @@
</div>
</div>
</van-sticky>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad">
<template v-if="tab == 0">
<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>
......@@ -38,7 +38,7 @@
</div>
</div>
</template>
<template v-if="tab == 1">
<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>
......@@ -55,7 +55,7 @@
</div>
</div>
</template>
<template v-if="tab == 2">
<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>
......@@ -72,12 +72,12 @@
</div>
</div>
</template>
</van-list>
</div>
<script>
new Vue({
el: "#app",
data: function() {
......@@ -129,7 +129,7 @@
return {
id: r.id,
title: r.title,
cover: r.image,
cover: r.cover,
time: d.format("yyyy-MM-dd")
}
}))
......@@ -140,7 +140,7 @@
})
},
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