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.
49 lines
994 B
49 lines
994 B
<style lang="scss">
|
|
.container{
|
|
min-height: 100%;
|
|
background:#F6F6F6;
|
|
&>map{
|
|
height:348rpx;
|
|
width:100%;
|
|
margin-bottom:-9rpx;
|
|
}
|
|
&>.u-tabs{
|
|
background:#fff;
|
|
box-shadow: 0 6rpx 12rpx 2rpx rgba(0,0,0,0.1);
|
|
}
|
|
|
|
}
|
|
</style>
|
|
<template>
|
|
<view class="container">
|
|
<map/>
|
|
|
|
<u-tabs :list="tabs" :current="tabIndex" activeStyle="color:#10C176;" lineColor="#10C176" lineWidth="50" :scrollable="false" @change="tabIndex=$event.index"/>
|
|
|
|
<plant-plan v-if="tabIndex==0" :id="plantId"/>
|
|
<farmRecord v-else-if="tabIndex==1" />
|
|
<recovery v-else />
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import plantPlan from './plantPlan.vue'
|
|
import farmRecord from './farmRecord.vue'
|
|
import recovery from './recovery.vue'
|
|
export default {
|
|
components:{plantPlan,farmRecord,recovery},
|
|
data(){
|
|
return{
|
|
tabIndex:0,
|
|
tabs:[
|
|
{name:"种植计划",},
|
|
{name:"农事记录",},
|
|
{name:"采收记录",},
|
|
],
|
|
plantId:"",
|
|
}
|
|
},
|
|
onLoad(options){
|
|
this.plantId=options.id
|
|
},
|
|
}
|
|
</script>
|