123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <div class="list">
- <div
- class="containerBox animated fadeInDown"
- v-for="(item, index) in list"
- :key="index"
- >
- <div class="left">
- <p class="title">{{ item.名称 }}</p>
- <p>种植数量:{{ item.已种植 }}</p>
- <p>目标完成率:{{ item.完成率 }}%</p>
- <p>地址:{{ item.地址 }}</p>
- </div>
- <div class="right">
- <img :src="item.图片[0]" alt="风景图" />
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: `LayoutExample`,
- data() {
- return {}
- },
- props: {
- list: {
- type: Array,
- default: () => [],
- },
- },
- async created() {},
- }
- </script>
- <style scoped lang="less">
- .list {
- padding: 16px;
- width: 357px;
- height: 750px;
- overflow: auto;
- .containerBox {
- cursor: pointer;
- margin-bottom: 15px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- color: #fff;
- background: rgba(168, 168, 168, 0.15);
- backdrop-filter: blur(8px);
- padding: 10px;
- .left {
- .title {
- font-size: 20px;
- line-height: 1.2em;
- color: #fff;
- }
- p {
- padding: 0;
- margin: 0;
- color: #bec1cc;
- line-height: 1.5em;
- font-size: 14px;
- margin-bottom: 5px;
- }
- }
- .right {
- padding-left: 10px;
- img {
- width: 105px;
- height: 105px;
- border-radius: 10px;
- }
- }
- }
- }
- </style>
|