Feat: 地标好物(页面&接口)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<view class="culture v12-d-grid-columns-2">
|
||||
<view class="img-item " v-for="item in 10" :key="item"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getCulture,
|
||||
} from "@/api/product"
|
||||
export default {
|
||||
props: {
|
||||
landmarkDataId: null
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
getCulture({landmarkDataId: this.landmarkDataId}).then(res => {
|
||||
this.list = res.data
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.culture{
|
||||
grid-gap: 20rpx 20rpx;
|
||||
padding: 20rpx;
|
||||
}
|
||||
.img-item{
|
||||
height: 320rpx;
|
||||
background: rgba(137,35,35,0.39);
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user