<template>
  <div class="home_wrapper">
    <!--  头部开始  -->
    <div class="header">
      <div class="header_left" @click="onClickLeft">
        <img src="../../../../static/images/agriculturalTrusteeship/return.png">
        <p>保险服务</p>
      </div>
      <p class="header_right">河东河西村</p>
    </div>
    <!--  头部结束  -->

    <!--  内容开始  -->
    <div class="main">
      <van-tabs v-model="active" sticky animated>
        <van-tab title="服务组织">
          <div class="search">
            <img src="../../../../static/images/agriculturalTrusteeship/index/search_icon_01.png" />
            <input type="text" placeholder="输入需求进行搜索" />
            <img src="../../../../static/images/agriculturalTrusteeship/index/search_icon_02.png" />
          </div>

          <van-list
            v-model="loading"
            :finished="finished"
            finished-text="没有更多了"
          >
            <div class="content" v-for="item in 10" :key="item" @click="$router.push({name:'agriculturalTrusteeshipSocietyProjectList'})">

              <div class="tt_box">
                <p class="content_tt">张三李四合伙开公司有限公司</p>
                <div class="tab_box">
                  <div class="tab_left">
                    <p>产品 <span>60</span></p>
                    <p>订单 <span>2851</span></p>
                  </div>
                  <div class="tab_right">
                    <p>渔业</p>
                    <p>牧业</p>
                    <p>农业</p>
                  </div>
                </div>
              </div>

              <div class="content_con">
                <div class="content_con_left">
                  <p>60个产品</p>
                  <p>林巧巧</p>
                  <p>18765332194</p>
                </div>
                <div class="content_con_right">
                  <img src="../../../../static/images/agriculturalTrusteeship/index/test.png">
                  <img src="../../../../static/images/agriculturalTrusteeship/index/test.png">
                  <img src="../../../../static/images/agriculturalTrusteeship/insurance/insurance_go.png">
                </div>
              </div>
            </div>
          </van-list>

        </van-tab>
        <van-tab title="服务项目">
          <div class="search">
            <img src="../../../../static/images/agriculturalTrusteeship/index/search_icon_01.png" />
            <input type="text" placeholder="输入需求进行搜索" />
            <img src="../../../../static/images/agriculturalTrusteeship/index/search_icon_02.png" />
          </div>

          <div class="main_content">
            <div class="main_content_left">
              <van-sidebar v-model="activeKey">
                <van-sidebar-item title="全套服务" />
                <van-sidebar-item title="开垦" />
                <van-sidebar-item title="除草" />
                <van-sidebar-item title="播种" />
                <van-sidebar-item title="灌溉" />
                <van-sidebar-item title="开垦" />
                <van-sidebar-item title="除草" />
                <van-sidebar-item title="播种" />
                <van-sidebar-item title="灌溉" />
                <van-sidebar-item title="开垦" />
                <van-sidebar-item title="除草" />
                <van-sidebar-item title="播种" />
                <van-sidebar-item title="灌溉" />
              </van-sidebar>
            </div>
            <div class="main_content_right">
              <div class="main_content_right_header">
                <p class="main_content_right_header_tit">灌溉</p>
<!--                <van-tabs v-model="active" animated>-->
<!--                  <van-tab title="评分排序"></van-tab>-->
<!--                  <van-tab title="销量排序"></van-tab>-->
<!--                </van-tabs>-->
              </div>
              <div class="main_content_right_nav">
                <p>服务</p>
                <p>服务</p>
                <p>服务</p>
                <p>服务</p>
                <p>服务</p>
              </div>

              <van-list
                v-model="loading"
                :finished="finished"
                finished-text="没有更多了"
              >
                <!--            @load="onLoad"-->
                <div class="main_content_right_list" v-for="item in 10" :key="item">
                  <img src="../../../../static/images/agriculturalTrusteeship/index/test.png">
                  <div class="main_content_right_list_content">
                    <p class="tt">如果只有一行就空着啊啊啊啊啊啊啊啊啊啊啊啊</p>
                    <div class="tab">
                      <p>￥<span>66</span>.00/亩</p>
                      <p><span>销 600</span><span>分 4.7</span></p>
                    </div>
                    <p class="name">张三社会服务旗舰店</p>
                  </div>
                </div>
              </van-list>

            </div>
          </div>

        </van-tab>
      </van-tabs>
    </div>
    <!--  内容结束  -->

  </div>
</template>
<script>
  import Cookies from "js-cookie";
  export default {
    name: "agriculturalTrusteeshipInsuranceList",
    data() {
      return {
        activeKey: 0,
        active: 0,
        loading: false,
        finished: false,
      };
    },
    created() {

    },
    methods: {

    },
  }
</script>
<style scoped lang="scss">
.home_wrapper{

}
  /*头部*/
  .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(to right , #6E93F3 , #7E89E9 , #54C6E4);
    padding: 2vh 4% 2vh;
    .header_left{
      display: flex;
      align-items: center;
      p{
        font-size: .4rem;
        color: #ffffff;
        line-height: 1;
        margin-left: 10PX;
      }
    }
    .header_right{
      font-size: .35rem;
      background: #ffffff url("../../../../static/images/agriculturalTrusteeship/address.png") no-repeat 10PX center;
      padding: 2PX 15PX 2PX 25PX;
      border-radius: 50PX;
    }
  }

  /* 内容 */
  .main{
    background-image: linear-gradient(to right , #6E93F3 , #7E89E9 , #54C6E4);
    /deep/ .van-tabs__nav{
      border-top-left-radius: 25PX;
      border-top-right-radius: 25PX;
      overflow: hidden;
    }
    /deep/ .van-tabs__line{
      background: #334281!important;
    }
    /deep/ .van-tab--active{
      color: #334281;
    }
    /deep/ .van-tabs__content{
      background: #ffffff;
      padding-top: 2vh;
    }
    .search{
       display: flex;
       justify-content: space-between;
       align-items: center;
       width: 92%;
       margin: 0PX auto;
       border: 1px solid #6E93F3;
       padding: 1PX 1PX 1PX 12PX ;
       border-radius: 50PX;
       input{
         flex: 1;
         background: transparent;
         margin-left: 10PX;
       }
    }
    .content{
      width: 92%;
      margin: 0 auto;
      box-shadow: 0px 0px 10PX rgba(0,0,0,0.1);
      border-radius: 10PX;
      margin-top: 2vh;
      padding: 1.5vh 4%;
      .content_tt{
        font-size: .35rem;
        margin-bottom: 1vh;
      }
      .tt_box{
        border-bottom: 1PX solid #D1D8EB;
        padding-bottom: 1.5vh;
        .tab_box{
          display: flex;
          justify-content: space-between;
          align-items: center;
          .tab_left{
            display: flex;
            p{
              &:nth-child(1){
                border-right: 1px solid;
                padding-right: 8PX;
                margin-right: 8PX;
              }
              span{
                color: #2B7EEC;
              }
              line-height: 1;
            }

          }
          .tab_right{
            display: flex;
            p{
              background: #F3F6FE;
              padding: 5PX 10PX;
              color: #497CE8;
              line-height: 1;
              border-radius: 5PX;
              margin-left: 10PX;
            }
          }
        }
      }
      .content_con{
        display: flex;
        justify-content: space-between;
        margin-top: 1.5vh;
        .content_con_left{
          display: flex;
          flex-direction:column;
          justify-content: space-between;
          p{
            font-size: .35rem;
            padding-left: 18PX;
            &:nth-child(1){
              background: url("../../../../static/images/agriculturalTrusteeship/insurance/insurance_list_project.png") no-repeat left center;
            }
            &:nth-child(2){
              background: url("../../../../static/images/agriculturalTrusteeship/insurance/insurance_list_name.png") no-repeat left center;
            }
            &:nth-child(3){
              background: url("../../../../static/images/agriculturalTrusteeship/insurance/insurance_list_iphone.png") no-repeat left center;
            }
          }
        }
        .content_con_right{
          display: flex;
          justify-content: end;
          align-items: center;
          img{
            border-radius: 10PX;
            width: 40%;
            margin-left: 5%;
            box-shadow: 0px 5PX 10PX rgba(0,0,0,0.2);
            &:last-child{
              width: auto;
              box-shadow: none;
            }
          }
        }
      }
    }
    .main_content{
      display: flex;
      width: 96%;
      margin-top: 2vh;
      height: 79.7vh;
      overflow: hidden;
      .van-sidebar-item{
        text-align: center;
      }
      /deep/ .van-sidebar-item--select::before{
        display: none;
      }
      .main_content_left{
        border-top-right-radius: 15PX;
        height: 100%;
        overflow-y: scroll;
      }
      .main_content_right{
        flex: 1;
        padding-left: 4%;
        height: 100%;
        overflow-y: scroll;
        .main_content_right_header{
          display: flex;
          justify-content: space-between;
          align-items: center;
          .main_content_right_header_tit{
            font-size: .4rem;
            color: #1A1D4A;
          }
        }
        .main_content_right_nav{
          display: flex;
          justify-content: space-between;
          margin-top: 2vh;
          p{
            padding: 5PX 10PX;
            background: #F5F5F5;
            color: #8F8F8F;
            border-radius: 4PX;
          }
        }
        .main_content_right_list{
          display: flex;
          margin-top: 2vh;
          width: 100%;
          img{
            border-radius: 15PX;
            margin-right: 4%;
            width: auto;
          }
          .main_content_right_list_content{
            display: flex;
            flex-direction:column;
            justify-content: space-between;
            .tt{
              color: #333333;
              font-size: .35rem;
            }
            .tab{
              display: flex;
              justify-content: space-between;
              p{
                &:nth-child(1){
                  flex: 1;
                  color: #FF5E00;
                  span{
                    font-size: .4rem;
                  }
                }
                &:nth-child(2){
                  flex: 1;
                  span{
                    width: 50%;
                    display: inline-block;
                    text-align: center;
                    padding: 2PX 2PX;
                    &:nth-child(1){
                      color: #497CE8;
                      background: #E2E9FD;
                      border-top-left-radius: 10PX;
                    }
                    &:nth-child(2){
                      color: #ffffff;
                      background-image: linear-gradient(to right , #5D87FA , #5FD5F5);
                      border-bottom-right-radius: 10PX;
                    }
                  }
                }
              }
            }
            .name{
              color: #8F8F8F;
              background: url("../../../../static/images/agriculturalTrusteeship/index/name_icon.png") no-repeat left center;
              padding-left: 14PX;
            }
          }
        }
      }
    }
    .main_content_right_list{
      display: flex;
      margin: 0 auto;
      margin-top: 2vh;
      width: 92%;
      img{
        border-radius: 15PX;
        margin-right: 4%;
        width: 20%;
      }
      .main_content_right_list_content{
        display: flex;
        flex-direction:column;
        justify-content: space-between;
        .tt{
          color: #333333;
          font-size: .35rem;
        }
        .tab{
          display: flex;
          justify-content: space-between;
          p{
            &:nth-child(1){
              flex: 1;
              color: #FF5E00;
              span{
                font-size: .4rem;
              }
            }
            &:nth-child(2){
              flex: 1;
              span{
                width: 50%;
                display: inline-block;
                text-align: center;
                padding: 2PX 2PX;
                &:nth-child(1){
                  color: #497CE8;
                  background: #E2E9FD;
                  border-top-left-radius: 10PX;
                }
                &:nth-child(2){
                  color: #ffffff;
                  background-image: linear-gradient(to right , #5D87FA , #5FD5F5);
                  border-bottom-right-radius: 10PX;
                }
              }
            }
          }
        }
        .name{
          color: #8F8F8F;
          background: url("../../../../static/images/agriculturalTrusteeship/index/name_icon.png") no-repeat left center;
          padding-left: 18PX;
        }
      }
    }
  }
</style>
