<template>
    <div class="activeApplication">
      <div class="appFirstBox">
        <img src="https://www.idea-co-sf.com/gardenProduct/image/img1.png" class="firstImg"/>
        <div class="appTitle">
          <span class="titleName">互联网私募如何入门？</span>
          <span class="titleType">进行中</span>
        </div>
        <div @tap.stop="clickColl()" class="joinBox">
          <span class="joinName">26人参加</span>
          <span class="shoucang"><img :src="isColl ? heartSel : heart" class="scImg" /> 收藏</span>
        </div>
        <div class="contactBox">
          <span class="contackLeft">
            <span style="color: #666666;font-size: 28rpx">联系电话：</span>
            <span style="color: #18172A;font-size: 36rpx;font-weight: 600">0510-680**808</span>
          </span>
          <img src="./image/phoneIcon.png" class="phoneIcon">
        </div>
      </div>
      <div class="appSecondBox">
         <div class="secondBoxItem">
           <span class="secondBoxTitle">活动举办</span>
           <span class="secondBoxInfo">活动举办</span>
         </div>
         <div class="secondBoxItem">
           <span class="secondBoxTitle">活动内容</span>
           <span class="secondBoxInfo">这是活动内容，这是活动内容，这是活动内容，这是活动内容，这是活动内容，这是活动内容。</span>
         </div>
         <div class="secondBoxItem">
           <span class="secondBoxTitle">活动时间</span>
           <span class="secondBoxInfo">2024-06-15  09：00  ~  2024-06-15  17：00</span>
         </div>
         <div class="secondBoxItem">
           <span class="secondBoxTitle">活动地址</span>
           <span class="secondBoxInfo dhInfo">
             <span>无锡市经开区基金PARK E栋203会议室</span>
             <img src="./image/dhIcon.png" class="dhIcon">
           </span>
         </div>
         <div class="secondBoxItem">
           <span class="secondBoxTitle">报名条件</span>
           <span class="secondBoxInfo">
             企业营销部门主管、有兴趣人事
           </span>
         </div>
         <div class="secondBoxItem">
           <span class="secondBoxTitle">报名时间</span>
           <span class="secondBoxInfo">
             2024-06-06  ~  2024-06-12
           </span>
         </div>
         <div class="secondBoxItem">
           <span class="secondBoxTitle">活动参与</span>
           <span class="secondBoxInfo">
             还有 15 个名额
           </span>
         </div>
      </div>
      <button class="bmBtn" @tap="toApplication">我要报名</button>
    </div>
</template>

<script>
export default {
  name: "activeApplication",
  data(){
    return{
      heartSel: "https://www.idea-co-sf.com/gardenProduct/image/heartSel.png",
      heart: "https://www.idea-co-sf.com/gardenProduct/image/heart.png",
      isColl: true,
    }
  },
 methods:{
   clickColl(){
     this.isColl = !this.isColl
   },
   toApplication(){
     uni.navigateTo({
       url:'/pages/subPackages/parkActivity/applicationInfo'
     })
   }
 }
}
</script>

<style lang="scss">
    .activeApplication{
      padding-bottom: 120rpx;
      .appFirstBox{
        margin: 24rpx 0;
        padding: 24rpx 32rpx;
        background: white;
        display: flex;
        flex-direction: column;
        .firstImg{
          width: 686rpx;
          height: 300rpx;
        }
        .appTitle{
          display: flex;
          align-items: center;
          margin: 24rpx 0;
          .titleName{
            font-size: 32rpx;
            color: rgba(24, 23, 42, 1);
          }
          .titleType{
            background: rgba(3, 101, 249, 0.20);
            font-size: 28rpx;
            color: rgba(3, 101, 249, 1);
            width: 112rpx;
            height: 48rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 2px 2px 2px 2px;
          }
        }
        .joinBox{
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding-bottom: 24rpx;
          .joinName{
            font-size: 28rpx;
            color: rgba(136, 136, 136, 1);
          }
          .shoucang {
            display: flex;
            align-items: center;
            font-size: 28 rpx;
            color: rgba(24, 23, 42, 1);
            .scImg {
              width: 32rpx;
              height: 28rpx;
              margin-right: 8rpx;
            }
          }
        }
        .contactBox{
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding:24rpx 0;
          border-top: 1px solid #E6E6E6;
          .contackLeft{
            display: flex;
            align-items: center;
          }
          .phoneIcon{
            width: 64rpx;
            height: 64rpx;
          }
        }
      }
      .appSecondBox{
        padding: 32rpx;
        background: white;
        .secondBoxItem{
          display: flex;
          flex-direction: column;
          margin-bottom: 48rpx;
          .secondBoxTitle{
            color: #222222;
            font-size: 32rpx;
            font-weight: 600;
            margin-bottom: 16rpx;
          }
          .secondBoxInfo{
            font-size: 28rpx;
            color: #666666;
            line-height: 40rpx;
          }
          .dhInfo{
            display: flex;
            justify-content: space-between;
            .dhIcon{
              width: 36rpx;
              height: 36rpx;
              padding-left: 20rpx;
              border-left: 1px solid #E6E6E6;
            }
          }
        }
      }
      .bmBtn{
        width: 654rpx;
        height: 96rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        background: #0365F9;
        border-radius: 8rpx;
        margin: 48rpx 48rpx 0rpx 48rpx;
      }
    }
</style>
