1229 10:50修改
This commit is contained in:
@@ -71,9 +71,9 @@
|
||||
}
|
||||
function toDetail(item) {
|
||||
let info = encodeURIComponent(JSON.stringify(item))
|
||||
// console.log(info)
|
||||
console.log(item)
|
||||
uni.navigateTo({
|
||||
url:"/pages/wikipedia/detail?info="+info+"&id="+item.id
|
||||
url:"/pages/wikipedia/detail?info="+info+"&id="+item.ID
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@@ -82,11 +82,11 @@
|
||||
<view class="list-box">
|
||||
<view class="lb-card" v-if="list.length > 0" v-for="(item,i) in list" @tap="toDetail(item)">
|
||||
<view class="lb-left">
|
||||
<image :src="item.cover_img" mode="aspectFill"></image>
|
||||
<image :src="item.cover" mode="aspectFill"></image>
|
||||
</view>
|
||||
<view class="lb-right">
|
||||
<view class="lb-title">{{item.title}}</view>
|
||||
<view class="lb-content text-ellipsis-1 small-text">{{item.content}}</view>
|
||||
<view class="lb-content text-ellipsis-1 small-text">{{item.introduction}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<emptyCard v-else></emptyCard>
|
||||
|
Reference in New Issue
Block a user