You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.3 KiB
75 lines
1.3 KiB
<template>
|
|
<view class="cart">
|
|
<u-image :src="info.pagodaMainImg" :width="width" :height="height" mode="scaleToFill" border-radius="12rpx"></u-image>
|
|
<view class="name">
|
|
{{info.pagodaName}}
|
|
</view>
|
|
<view class="positon">
|
|
{{info.graveNum}}墓穴 | {{info.floor}}层
|
|
</view>
|
|
<view class="link" @click.stop="toLink">
|
|
链上查看
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
width: {
|
|
type: String,
|
|
default: "100%"
|
|
},
|
|
height: {
|
|
type: String,
|
|
default: "100%"
|
|
},
|
|
info: {
|
|
type: Object,
|
|
default: () => {
|
|
return {
|
|
imgUrl: "../../static/banner.png",
|
|
name: '云凌藏隐陵园002号神塔',
|
|
position: '72墓穴|5层',
|
|
link: ''
|
|
}
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
toLink() {
|
|
this.$emit('toLink')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.cart {
|
|
.name {
|
|
margin-top: 20rpx;
|
|
color: #303133;
|
|
font-size: 28rpx;
|
|
line-height: 32rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.positon {
|
|
color: #909399;
|
|
font-size: 24rpx;
|
|
margin-top: 5rpx;
|
|
}
|
|
|
|
.link {
|
|
margin-top: 12rpx;
|
|
width: 114rpx;
|
|
height: 44rpx;
|
|
background-color: #edf5ff;
|
|
color: #509EFA;
|
|
font-size: 20rpx;
|
|
text-align: center;
|
|
line-height: 44rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
}
|
|
</style>
|
|
|