| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <div class="farm-page">
- <custom-header name="我的农场"></custom-header>
- <div class="farm-list">
- <div class="list-item" v-for="item in 3" :key="item">
- <div class="item-info">
- <div class="item-top">
- <div class="left-img"></div>
- <div class="left-content">
- <div class="content-title">
- <span>荔枝博览园</span>
- <div class="content-tag" v-if="item === 1">默认</div>
- <div class="content-text" v-else>设为默认</div>
- </div>
- <div class="content-desc">
- <div>服务作物:荔枝-妃子笑、桂味</div>
- <div>农场位置:广东省广州市从化区</div>
- </div>
- </div>
- </div>
- </div>
- <div class="item-btn">查看详情</div>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import customHeader from "@/components/customHeader.vue";
- import { ref } from "vue";
- </script>
- <style scoped lang="scss">
- .farm-page {
- width: 100%;
- height: 100vh;
- .farm-list {
- width: 100%;
- height: 100%;
- background-color: #f7f7f7;
- padding: 12px;
- box-sizing: border-box;
- .list-item {
- background-color: #fff;
- border-radius: 10px;
- padding: 10px;
- display: flex;
- justify-content: space-between;
- .item-info {
- .item-top {
- display: flex;
- align-items: center;
- gap: 12px;
- .left-img {
- width: 68px;
- height: 68px;
- border-radius: 8px;
- background-color: red;
- }
- .left-content {
- .content-title {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-bottom: 4px;
- font-size: 16px;
- font-weight: 500;
- .content-tag {
- background-color: #2199f8;
- color: #fff;
- padding: 2px 8px;
- border-radius: 15px;
- font-size: 12px;
- font-weight: 400;
- }
- .content-text {
- font-size: 12px;
- color: #2199F8;
- font-weight: 400;
- }
- }
- .content-desc {
- font-size: 12px;
- color: #999999;
- line-height: 18px;
- }
- }
- }
- }
- .item-btn {
- color: #a8a8a8;
- }
- }
- .list-item + .list-item {
- margin-top: 12px;
- }
- }
- }
- </style>
|