<template>
  <view class="bg container">
    <meet-sticky :bg="bg">
      <meet-navbar title="会议总结" :isFixed="false"></meet-navbar>
    </meet-sticky>
    <view class="content">
      <!-- 会议标题 -->
      <view class="border-item">
        <image
          src="/static/image/summary/meet_title.png"
          mode="scaleToFill"
          class="img-item"
        />
        <view class="title"> 00 </view>
      </view>
      <!-- 关键词 -->
      <view class="border-item">
        <image
          src="/static/image/summary/key_word.png"
          mode="scaleToFill"
          class="img-item"
        />
        <view class="flex key-box">
          <view class="key-item flex items-center">
            <view>蔡徐坤</view>
            <image
              src="/static/image/summary/close.png"
              mode="scaleToFill"
              class="close"
            />
          </view>
          <image
            src="/static/image/summary/add.png"
            mode="scaleToFill"
            class="add"
            @click="add"
          />
        </view>
      </view>

      <!-- 参会人 -->
      <view class="border-item">
        <image
          src="/static/image/summary/attendee .png"
          mode="scaleToFill"
          class="img-item"
        />
        <view class="flex key-box">
          <view class="key-item flex items-center">
            <view>蔡徐坤</view>
            <image
              src="/static/image/summary/edit.png"
              mode="scaleToFill"
              class="close"
              @click="edit"
            />
          </view>
        </view>
      </view>

      <!-- 会议总结 -->
      <view class="border-item">
        <image
          src="/static/image/summary/summary.png"
          mode="scaleToFill"
          class="img-item"
        />
        <view class="title">
          AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会。
        </view>
      </view>

      <!-- 会议摘要 -->
      <view class="border-item">
        <image
          src="/static/image/summary/abstract.png"
          mode="scaleToFill"
          class="img-item"
        />
        <view class="title">
          AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会。
        </view>
      </view>

      <!-- 会议要点-->
      <view class="border-item">
        <image
          src="/static/image/summary/points.png"
          mode="scaleToFill"
          class="img-item"
        />
        <view class="title">
          AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会、AI会议、智能助手、需求评审会。
        </view>
      </view>

      <!-- 弹窗 -->
      <meet-pop
        :dialogShow="popConfig.show"
        :btnType="popConfig.btnType"
        :dialogTitle="popConfig.title"
        @handleConfirm="confirm"
        @handleCancel="cancel"
      >
        <view>
          <u-input v-model="popConfig.value"></u-input>
        </view>
      </meet-pop>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      bg: "",
      meetData: {},
      popConfig: {
        show: false,
        title: "编辑参会人",
        btnType: 2,
        value: "",
      },
    };
  },
  methods: {
    add() {
      this.popConfig.show = true;
      this.popConfig.title = "编辑参会人";
    },
    edit() {
      this.popConfig.show = true;
      this.popConfig.title = "添加关键词";
    },
    confirm() {
      this.popConfig.show = false;
    },
    cancel() {
      this.popConfig.show = false;
    },
  },
};
</script>

<style lang="scss" scoped>
@import "../common.scss";

.content{
    padding-bottom: 200rpx ;
}
.container {
  padding: 24rpx;
  background-color: #e3edfe;
}
.add {
  width: 148rpx;
  height: 72rpx;
}
.key-box {
  flex-wrap: wrap;
}
.key-item {
  padding: 16rpx 24rpx;
  background-color: #fff;
  border-radius: 12rpx;
  margin-right: 16rpx;
}
.close {
  width: 32rpx;
  height: 32rpx;
  margin-left: 16rpx;
}
.border-item {
  padding: 24rpx;
  border: 2rpx solid #fff;
  border-radius: 24rpx;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  margin-bottom: 20rpx;
  .title {
    padding: 20rpx;
    background-color: #fff;
    border-radius: 20rpx;
    line-height: 1.6;
  }
}
.img-item {
  width: 164rpx;
  height: 40rpx;
  margin-bottom: 16rpx;
}
::v-deep .u-border {
  border-style: none !important;
  height: 80rpx;
  background-color: #e9f1fd;
  border-radius: 16rpx;
  font-weight: 400;
  font-size: 28rpx;
  color: #93999f;
  box-sizing: border-box;
}
</style>