<template>
  <view>
    <template>
      <view class="Wrapper-grid">
        <!-- <view class="serve-title-Box" v-if="userType == 2">
          <view class="serve-content">
            <image src="/static/container.png" class="serve-content-img" mode="aspectFill"></image>
            <text class="serve-content-text">注册专区</text>
          </view>
          <view class="serve-content-box2">
            <text class="serve-content-text">认证资质专区</text>
          </view>
        </view> -->

        <up-grid :border="false" col="3" v-if="userType === 1">
          <up-grid-item v-for="(item, index) in serveiceList" :key="index" @click="handleGridClick(item)">
            <view class="grid-box" :class="index < 3 && 'first-row'">
              <view class="grid-image">
                <image :src="item.businessIcon" class="service-img" mode="aspectFit" />
              </view>
              <view class="grid-content">
                <text class="grid-text">{{ item.businessName }}</text>
                <text class="grid-text-bone">{{ item.businessDescribe }}</text>
              </view>
            </view>
          </up-grid-item>
        </up-grid>
        <up-toast ref="uToastRef" />

        <view v-if="userType === 2" class="flex_c_c serveice-list">
          <view v-for="item in serveiceList" :key="item.id" class="serveice-item flex_c_s"
            @click="handleCertification(item)">
            <view>
              <view class="serveice-name">{{ item.businessName }}</view>
              <view class="serveice-text">{{ item.text }}</view>
            </view>
            <up-icon name="arrow-right" color="#7B7B7B" size="14"></up-icon>
            <view :class="item.class"></view>
          </view>
        </view>

        <view class="paiBanSty" v-if="userType == 2">
          <!-- 背景图片 -->
          <!-- <image src="/static/img/14147@2x.png" class="background-image" mode="aspectFill" /> -->

          <!-- 左侧轮播图 -->
          <swiper class="zhiYuanZheSwiper" vertical circular autoplay :interval="4000" :duration="800"
            @change="onSwiperChange">
            <swiper-item v-for="(imgUrl, index) in volunteerImages" :key="index">
              <view class="swiper-item-container" :class="currentSwiperIndex === index && 'active-swiper'">
                <image :src="imgUrl" class="zhiYuanZhe" mode="aspectFill" />
              </view>
            </swiper-item>
          </swiper>


          <!-- 右侧内容区域 -->
          <view class="content-wrapper">
            <view class="title-button-row">
              <view class="paiBanTitle">我的排班</view>
              <button class="paiBanBtn" @click="DataInit">去管理排班</button>
            </view>
            <view class="paiBanDesc">管理排班时间，合理分配服务订单</view>
          </view>
        </view>
      </view>
    </template>

    <Calendar ref="calendar" class="uni-calendar--hook" :clear-date="false" :date="info.date" :insert="info.insert"
      :lunar="info.lunar" :range="info.range" @change="change" :clearDate="true" @confirm="confirm" :selected="selected"
      @delete="onDelete" />
  </view>

</template>

<script setup>
import {
  ref,
  onMounted,
  watch,
  computed,
  provide
} from 'vue';
import {
  workDate,
  getDataTime,
  getVolunteerInfo
} from '@/api/volunteer.js'
import {
  volunteerSeachgetTreeList,
  volunteerVolunteerPicture
} from "@/api/volunteerDetailsApi/details.js"
import { getTreeList } from '@/api/volunteer'
import Calendar from '../../components/uni-calendar/components/uni-calendar/uni-calendar.vue'
import { getToken } from '@/utils/auth'
const swiperList = ['integral', 'kefu-ermai', 'coupon', 'gift', 'scan', 'pause-circle', 'wifi', 'email', 'list'];

// Toast 控制宫格
const uToastRef = ref(null);
const userType = uni.getStorageSync('userType') //读取本地存储
// 用户/志愿者 识别标识
const userOrWorker = uni.getStorageSync('storage_data').vuex_userOrWorker //读取本地存储

const calendar = ref(null)
const info = ref({
  lunar: true,
  range: true,
  insert: false,
})
const selected = ref([])

const serveiceList = ref([]);

// 志愿者图片
const volunteerImages = ref(['/static/serverImg/home/zyz_pb.png']);

const getVolunteerImages = () => {
  volunteerVolunteerPicture({}).then(res => {
    if (Array.isArray(res)) {
      volunteerImages.value = res;
    } else if (res.code === 200 && res.data) {
      volunteerImages.value = res.data;
    }
  })
}
// 当前显示的轮播图索引
const currentSwiperIndex = ref(0);

// 轮播图切换事件
const onSwiperChange = (e) => {
  currentSwiperIndex.value = e.detail.current;
};

// 宫格点击事件
const handleGridClick = async (service) => {
  // 用户
  if (userType == 1) {

    // 动态获取 parentId
    const params = {
      parentId: service.id,
    }
    const res = await volunteerSeachgetTreeList(params)
    console.log("TCL: handleGridClick -> res", res)
    uni.navigateTo({
      url: `/pages_home/pages/client/details?dataList=${encodeURIComponent(JSON.stringify(res.data))}&serviceCategory=${service.id}`
    });
  }
  // 志愿者
  if (userType == 2) {
    const res = await getVolunteerInfo({
      serviceCategory: service.id
    });
    if (res.code === 200 && res.data) {
      //已有注册，跳转详情页面
      uni.navigateTo({
        url: `/pages_home/pages/details/index?data=${encodeURIComponent(JSON.stringify({ ...service, key: service.id }))}`
      })
      return
    }

    uni.navigateTo({
      url: `/pages_home/pages/register/index?data=${encodeURIComponent(JSON.stringify({ ...service, key: service.id }))}`
    })

  }
};

const change = (e) => {
  let dates = [{
    date: e.fulldate,
    info: `${e.time.startTime}~${e.time.endTime}`,
    time: e.time
  }]
  if (e.range.before && e.range.after) {
    dates = e.range.data.map(item => {
      return {
        date: item,
        info: `${e.time.startTime}~${e.time.endTime}`,
        time: e.time
      }
    })
  }
  selected.value = [...selected.value, ...dates]
}

const onDelete = (e) => {
  selected.value = selected.value.filter(item => {

    return item.date !== e.fulldate
  })
}


//排班时间去重处理
const handleDates = computed(() => {
  const parmas = selected.value.map(item => {
    return {
      workDate: item.date,
      workStartTime: item.time.startTime,
      workEndTime: item.time.endTime
    }
  })
  return parmas.reduce((acc, current) => {
    const existing = acc.find(item => item.workDate === current.workDate);
    if (existing) {
      Object.assign(existing, current);
    } else {
      acc.push(current);
    }
    return acc;
  }, []);
});
const confirm = (e) => {
  const parmas = handleDates.value;
  workDate(parmas).then(res => {
    if (res.code == 200) {
      uni.showToast({
        title: '修改成功',
        icon: 'success',
        success: () => {
          setTimeout(() => {
            close();
          }, 1000)
        }
      })

      return;
    }
    uni.showToast({
      title: res.msg,
      icon: 'none'
    })
  })
};
const close = () => {
  calendar.value.close();
}

const init = () => {
  getTreeList({ parentId: '0' }).then(res => {
    serveiceList.value = res.data;
  })
}

const DataInit = () => {
  getDataTime().then(res => {
    if (res.code === 200) {
      selected.value = res.data.map(item => {
        return {
          date: item.workDate,
          info: `${item.workStartTime}~${item.workEndTime}`,
          time: {
            startTime: item.workStartTime,
            endTime: item.workEndTime
          }
        }
      })
      calendar.value.open();
    }


  })
}

const serveInit = () => {
  serveiceList.value = [
    {
      id: '1',
      businessName: '资质认证',
      text: '智慧养老',
      class: 'icon1'
    },
    {
      id: '2',
      businessName: '服务管理',
      text: '智慧养老',
      class: 'icon2'
    },
  ]
}

const handleCertification = (record) => {
  console.log("TCL: handleCertification -> record", record)
  record.id==='1'? uni.navigateTo({
    url: `/pages_home/pages/publicize/index`
  }):''

  // uni.navigateTo({
  //   url: `/pages_home/pages/certification/index?data=${encodeURIComponent(JSON.stringify(record))}`
  // });
}

onMounted(() => {
  userType === 2 ? serveInit() : init();
  const token = getToken();
  token && getVolunteerImages();

 
});
</script>

<style scoped lang="scss">
.serve-title-Box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10rpx;
  margin-top: 24rpx;

  .serve-content {
    display: flex;
    align-items: center;

    .serve-content-img {
      width: 36rpx;
      height: 36rpx;
      margin-left: 34rpx;
    }

    .serve-content-text {
      width: 136rpx;
      height: 40rpx;
      font-family: PingFang SC;
      font-size: 34rpx;
      font-weight: 500;
      line-height: 40rpx;
      letter-spacing: normal;
      color: rgba(0, 0, 0, 0.8);
      margin-left: 10rpx;
    }
  }

  .serve-content-box2 {
    .serve-content-text {
      width: 144rpx;
      height: 42rpx;
      font-family: Yuppy SC;
      font-size: 24rpx;
      font-weight: 500;
      line-height: 42rpx;
      text-align: right;
      letter-spacing: normal;
      color: #E58182;
      margin-right: 40rpx;
    }
  }
}


.grid-box {
  width: 226rpx;
  height: 116rpx;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-right: 5rpx;
  margin-left: 5rpx;
  background: #fff;
  border-radius: 14rpx;
  // background: red;
  background: linear-gradient(180deg, #FFF9F3 0%, #FFFFFF 100%);
  box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.04);
  margin-top: 20rpx;

  .grid-image {
    width: 64rpx;
    height: 68rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 只保留一个针对第一排的样式 */
.grid-box.first-row {
  margin-top: 40rpx;
}

.grid-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  .grid-text {
    width: 112rpx;
    height: 36rpx;
    font-family: PingFang SC;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 36rpx;
    letter-spacing: normal;
    color: #313131;
  }

  .grid-text-bone {
    width: 130rpx;
    height: 28rpx;
    font-family: PingFang SC;
    font-size: 22rpx;
    font-weight: normal;
    line-height: 28rpx;
    letter-spacing: -0.02em;
    color: #818181;
    margin-left: 6rpx;
    margin-top: 10rpx;
  }
}

.paiBanSty {
  margin-top: 30rpx;
  display: flex;
  flex-direction: row;
  background: #FFFFFF;
  background-image: url('/static/img/14147@2x.png');
  background-size: cover;
  // background-position: center;
  border-radius: 20rpx;
  box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0, 0, 0, 0.04);
  overflow: hidden;
  height: 330rpx;

  .background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .zhiYuanZheSwiper {
    width: 196rpx;
    height: 240rpx;
    border-radius: 38rpx;
    overflow: hidden;
    margin: 30rpx;
  }

  .swiper-item-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;

    &.active-swiper {
      transform: scale(1);
    }
  }

  .zhiYuanZhe {
    width: 100%;
    height: 100%;
    border-radius: 38rpx;
    box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.1);
  }

  .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .title-button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12rpx;
    width: 100%;
    margin-top: 129rpx;
    margin-left: 0rpx;
  }

  .paiBanTitle {
    font-family: PingFang SC;
    font-size: 34rpx;
    font-weight: 600;
    line-height: 40rpx;
    letter-spacing: normal;
    color: rgba(0, 0, 0, 0.8);
    width: 136rpx;
    height: 25rpx;
    margin-top: 95rpx;
    margin-left: 33rpx;
  }

  .paiBanDesc {
    font-family: PingFang SC;
    font-size: 26rpx;
    font-weight: normal;
    line-height: 40rpx;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 12rpx;
    margin-left: 33rpx;
  }

  .paiBanBtn {
    width: 200rpx;
    height: 70rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 36rpx;
    background: #D94342;
    font-family: PingFang SC;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 30rpx;
    color: #FFFFFF;
    border: none;
    padding: 0;
    margin-top: 55rpx;
    margin-left: 53rpx;
  }
}

.home-ranking {}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10rpx);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  to {
    opacity: 0.8;
    transform: scale(0.95) translateY(-10rpx);
  }
}


.icon1 {
  width: 68rpx;
  height: 68rpx;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAkDSURBVHic7Zt/aFXnGcc/z7lXvWPZcJCx/OFYYMIy6B+FCROWYgIdS6iudqSucZbG2da0sTbBdmunrGddrBUb1NnaH5pWqTWp1mk310VmaWRKHfOPDPZHCg4CdSNsGTjINCbnPM/+uNEm8Sb3fc891+6PfuFwOfe+93m+93veH8/7vM+FzzANcqscWd+7rZj8ErEcQh9wkvHgd7JixciUNoshuAt0OUgtMIRFD0njD87eKp63RBB773g7Ijtn+fg8xgDCncDiAp+PMqGN8v1bI0rZBbH3jjVBcLREM6NYXC93NV1IhdQcKKsg9ttjTQT0AFls0lvy12HM6mVF02A5OacuiB3vqWbevGWY1SLSgpGd5s1mePe5x0YQDiH0oxPnZMXqEVJGKoLYb47UItaGSR1QlYZNRwxi0g/WJXevupiGwZIFsV8friWT+QCm9IRbjxGC+Jtp9JigZCqBrMM0iymf4lXJhDSV/FtIQxDTWs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cnUcMrLuk+5Y4qvGByU8UDy5Y9qdir98L3GeXB0F0aWpkZuQgpPpTMjzh/owvZiOX6vgykTxyidcI1XVDkR+iFkFSIRQoNzRGjCpYs4/4NInO3vc/z1p9ipmO+b8Q69YhNGLyMwlvPIGXzhHxT+cciSpZcxsU3MNYkUOwPUe6Toy5/wxw2YlYh9jFO7uQoTRLF29Jf/b4jpKP4aYhHT1DGIT9dxUKnGj2w7xhX96HRVIV88Iam8VtqcRUZyqGJCiIADSdWwQievzY1+nj2WNdxeMTIshYteMJTsvhlqz7DqaqhiQsiAwKco17kB1cMoTHWFc9iey96u3/4rpiSlijGJ6bznEgDIIAiB7jw4zEdRjk6Jo/JjsPZo8Yy7Bk5hdxnQM1UbZdcx5Hvq/grXU5ax9ZXUqttpXLrSHV8zMn36GcuN/FPZ7F5lp028AAAAASUVORK5CYII=);
  background-position: center;
  background-size: 68rpx auto;
  background-repeat: no-repeat;
}

.icon2 {
  width: 68rpx;
  height: 68rpx;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAfwSURBVGiB3VttbFRZGX7ec2emUykVTLP2RzchpgQ0jSkBVtZk3U5oJbhL0l2KFnbj0gRDFPzRBEL4sW5N+KFWUxIhujGmaEpK2SK7kQhKkxkFXHZpsjWypq6NW0NjiiFaYNpOZ845jz/6NUNber8G0Ce5Ofed3Pe9zzN37jnnfc8ZQQhgMhlBeflOgM0A6kFGAPRD1AnZuLHHR7w4Pln2CogaWHsXTvQK7t79vSQSOihXCRqAN643Q9ABoHLxC3BcNm9pdR3v/Wu1EOfXEFQ9EGcEguO4P3lSEomMX76BBPPGtWaC3YXhiAdtgZxBOtuyHFG+d+VFKukGULZUPAEGwWxCnkmM+uHsWzCTyQhWqI+JB57E0hgWwTGkbY8kEumCWO8nayHOEZLNbgIJcF2eef5Zz6QRRPB7yU0Eb/hwzQC4CXAUlDII1m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TiwArG7B2Mp/TjaSpqdgE0p+iQZmyFi9I4hYIIR/pgEA2xAZfypSR2W3WCLiUF0t+5bu8xPr3pvOPgW7H0ANIRkBLlgrPStvm0vSNjs8+Md/AcMlOzfAZ7rNAAAAAElFTkSuQmCC);
  background-position: center;
  background-size: 68rpx auto;
  background-repeat: no-repeat;
}

.serveice-list {
  padding: 0 34rpx;
  gap: 16rpx;
  margin-top: 49rpx;

  .serveice-item {
    flex: 1;

    border-radius: 14rpx;
    background: #FFF7EC;
    padding: 28rpx 51rpx 28rpx 25rpx;

  }

  .serveice-item:first-child {
    background: #FFF6F5;
  }

  .serveice-name {
    font-family: PingFang SC;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 36rpx;
    letter-spacing: normal;
    color: #313131;
    margin-bottom: 10rpx;
  }

  .serveice-text {
    font-family: PingFang SC;
    font-size: 26rpx;
    font-weight: normal;
    line-height: 28rpx;
    letter-spacing: -0.02em;
    color: #818181;
  }

}
</style>