<template>
  <div class="mine">
    <div class="left">
      <div class="user-info">
        <div class="user-img"><img :src="userInfo.image"
               alt=""></div>
        <div class="user-span">
          <div class="name">昵称：<span>{{userInfo.nickname}}</span></div>
          <div class="sex">性别：<span>{{userInfo.sex}}</span></div>
          <div class="age">肤龄：<span>{{userInfo.age==1?'男':userInfo.age==2?'女':'保密'}}</span></div>
          <div class="skin-type">肤质：<span>{{userInfo.skin}}</span></div>
        </div>
      </div>
      <div class="user-record">
        <div class="fraction">
          <div class="title">肌肤得分</div>
          <div class="num">{{userInfo.score}}分</div>
        </div>
        <div class="status">
          <div class="title">皮肤状态</div>
          <div class="tips">{{userInfo.skin_status}}</div>
        </div>
        <div class="times">
          <div class="title">上传检测时间</div>
          <div class="ts">{{userInfo.check_time}}</div>
        </div>
      </div>
      <div class="lable">
        <div class="lable-title">
          面诊标签
        </div>
        <div class="lable-list">
          <div v-for="(item,index) in lableList"
               :key="index"
               class='lable-info'>
            {{item}}
          </div>
        </div>
      </div>
      <div class="ps">
        <div class="ps-title">
          备注
        </div>
        <div class="ps-text">{{remarks | ellipsis(20)}}</div>
      </div>
      <div class="programme">
        <div class="tab">
          <div class="tab-title">执行方案</div>
        </div>
        <div class="programme-list">
          <div :class="['programme-info',item.onSelect?'programme-active':'']"
               v-for="(item,index) in programmeList"
               :key="index"
               @click="onOperation(index)">
            <div class="programme-left">
              <div class="programme-img"><img :src="item.cover_url"
                     alt=""></div>
              <div class="programme-tips">
                <div class="tips-title">{{item.name|ellipsis(9)}}</div>
                <div class="tips-title">{{item.desc|ellipsis(9)}}</div>
                <div class="tips-title">仪器：<span>{{item.device_name|ellipsis(9)}}</span></div>
              </div>
            </div>
            <div class="programme-right">
              <div class="frequency">执行频率：<span>{{item.rate}}</span></div>
              <div class="duration">持续时长：<span>{{item.duration}}</span></div>
            </div>
            <div class="operation"
                 v-if="item.onSelect">
              <div class="edit">编辑</div>
              <div class="delete">删除</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="right">
      <div class="shop-info">
        <div class="shpo-name">预约店铺：<span>{{order_data.store_name}}）</span></div>
        <div class="shpo-address">门店地址：<span>{{order_data.address}}</span></div>
        <div class="shpo-ts">美容时间：<span>{{order_data.order_time}}</span></div>
      </div>
      <div class="project">
        <div class="project-title">
          <div>共<span>{{order_data.project_num}}个</span>项目</div>
          <div class="add-project"
               @click="isProject=true">添加</div>
        </div>
        <div class="project-list">
          <div class="project-info"
               v-for="(item,index) in order_data.project_list"
               :key="index">
            <div class="project-image"><img :src="item.cover_url"></div>
            <div class="project-content">
              <div class="title-price">
                <div class="project-tit">{{item.name | ellipsis(14)}}</div>
                <div class="project-price"><span class="min-size">￥</span>{{item.price}}</div>
              </div>
              <div class="project-tips">{{item.product_names}}</div>
              <div class="project-zoom">
                <div> <span v-if="item.device_name">{{item.device_name}}（{{item.room}}）{{item.use_time}}分钟</span></div>
                <div><img @click="eidt(item)"
                       src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/eidt.png">
                  <img class="delete"
                       src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/delete.png"
                       alt="">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="cost">
        <div class="cost-title">
          <div>预约费用</div>
          <div>¥399</div>
        </div>
        <div class="cost-coupon-list">
          <div class="coupon">
            <div class="coupon-tips">
              <div class="coupon-icon"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/couponIcon.png"
                     alt=""></div>
              <div class="coupon-title">优惠卷</div>
              <div class="coupon-tip">已选推荐优惠</div>
            </div>
            <div class="on-icon">></div>
          </div>
          <div class="coupon-ps">
            <div>【敏感维稳】多元修护加乘维稳</div>
            <div class="cou-price">-¥100</div>
          </div>
        </div>
        <div class="over-price">
          合计： <span class="price-num"><span class="min-size">￥</span>399<span class="min-size">.00</span></span>
        </div>
      </div>
      <div class="payment">{{order_data.status==0?'立即支付':'确定订单'}}</div>
    </div>
    <!-- 选择优惠券 -->
    <mine-pupop :show="isCoupun">
      <div class="coupon-block">
        <div class="delete-pupop"
             @click="isCoupun=false"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
               alt=""></div>
        <div class="coupon-pupop-title">选择优惠券</div>
        <div class="coupon-lists">
          <div class="coupon-info">
            <div class="top">
              <div v-if="false"
                   class="all-free">全免</div>
              <div v-else
                   class="discount">
                <div class="price-num"><span class="size">￥</span>10<span class="size">.00</span></div>
                <div class="price-tips">满100元可用</div>
              </div>
              <div class="coupon-tip">
                <div class="tips-title">仅限指定商品使用</div>
                <div class="tips-ts">有效期至2022.02.07</div>
              </div>
              <div class="choice-icon"><img :src="select"></div>
            </div>
            <div class="bottom">
              <div class="coupon-notes">
                <div class="notes-text min-size">
                  <span v-if="!isOver">{{'优惠卷仅限试用项目优惠卷仅限试用项目优惠卷仅限项目优惠卷仅限试用项目优惠卷仅限试用项目优惠卷仅限项目优惠卷仅限试用项目优惠卷仅限试用项目优惠卷仅限项目' |ellipsis(20)}}</span>
                  <span v-else>优惠卷仅限试用项目优惠卷仅限试用项目优惠卷仅限项目优惠卷仅限试用项目优惠卷仅限试用项目优惠卷仅限项目优惠卷仅限试用项目优惠卷仅限试用项目优惠卷仅限项目</span>
                </div>
                <div class="notes-icon"
                     @click="isOver=!isOver"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/openNotes.png"
                       alt=""></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </mine-pupop>
    <!-- 选择项目 -->
    <mine-pupop :show="isProject">
      <div class="project-block">
        <div class="delete-pupop"
             @click="isProject=false"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
               alt=""></div>
        <div class="project-pupop-title">选择项目</div>
        <div class="project-select">
          <el-select v-model="projectInfo"
                     placeholder="请选择项目"
                     style="width: 295px;"
                     @change="getProducts"
                     size="mini">
            <el-option v-for="item in projectList"
                       :key="item.id"
                       :label="item.name"
                       :value="item.id">
            </el-option>
          </el-select>
        </div>
        <div class="products-select">
          <el-select v-model="productsInfo"
                     placeholder="请选择升级产品包"
                     style="width: 295px;"
                     :disabled="projectInfo.length==0?true:false"
                     size="mini">
            <el-option v-for="item in productsList"
                       :key="item.id"
                       :label="item.name"
                       :value="item.id">
            </el-option>
          </el-select>
        </div>
        <div class="products-button"
             @click="orderUpdate">确定</div>
      </div>
    </mine-pupop>
    <!-- 选择时间 -->
    <mine-pupop :show="isTs">
      <div class="ts-block">
        <div class="delete-pupop"
             @click="isTs=false"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
               alt=""></div>
        <div class="ts-pupop-title">选择时间</div>
        <div class="ts-content">
          <ul class="ts-table">
            <li v-for="item,index in tsTableList"
                :key="index">
              <div>{{item.text}}</div>
              <div>{{item.ts}}</div>
            </li>
          </ul>
          <ul class="ts-boty">
            <li v-for="item,index in tsBodyList"
                :key="index">
              <div>{{item.ts}}</div>
            </li>
          </ul>
        </div>
        <div class="ts-button">确认</div>
      </div>
    </mine-pupop>
    <!-- 皮肤状态 -->
    <mine-pupop :show="isPore">
      <div class="pore-block">
        <div class="delete-pupop"
             @click="isPore=false"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/slices/delete.png"
               alt=""></div>
        <div class="pore-content">
          <ul>
            <li class="pore-info"
                v-for="item,index in poreList"
                :key="index">
              <div class="pore-top">
                <div class="pore-title">
                  <div>RGB毛孔：</div>
                  <div class="pore-medium">粗大毛孔个数{{item.medium}}</div>
                </div>
                <div class="pore-over">
                  <div class="min-size">粗大毛孔个数：{{item.medium}}个</div>
                  <div class="min-size">中等毛孔个数：{{item.small}}个</div>
                  <div class="min-size">细小毛孔个数：{{item.mini}}个</div>
                </div>
              </div>
              <div class="pore-bottom min-size">
                {{'皮肤状态一般，污物阻塞导致，油脂分泌旺盛，皮肤状态一般，污物阻塞导致，油脂分泌旺盛皮肤状态一般，污物阻塞导致，油脂分泌旺盛，皮肤状态一般，污物阻塞导致，油脂分泌旺盛油脂分泌旺盛油脂分泌旺盛旺…' |ellipsis(85)}}
              </div>
            </li>
          </ul>
        </div>
      </div>
    </mine-pupop>
  </div>
</template>

<script>
import minePupop from '../../../components/minePupop/index.vue'
import api from '../../../server/home'

export default {
  components: { minePupop },
  data () {
    return {
      select: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/select.png',
      unSelect: 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/unSelect.png',
      userInfo: {
      },
      //面部标签
      lableList: [],
      //执行方案
      programmeList: [],
      order_data: {},//门店
      //项目列表
      projectList: [],
      //升级包列表
      productsList: [],
      //时间列表（头部）
      tsTableList: [
        {
          text: '今天',
          ts: '10-27',
        },
        {
          text: '今天',
          ts: '10-27',
        },
        {
          text: '今天',
          ts: '10-27',
        },
        {
          text: '今天',
          ts: '10-27',
        },
        {
          text: '今天',
          ts: '10-27',
        },
        {
          text: '今天',
          ts: '10-27',
        },
        {
          text: '今天',
          ts: '10-27',
        },
      ],
      //时间列表（body）
      tsBodyList: [
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
        {
          id: 0,
          ts: '10:00'
        },
      ],
      //皮肤状态列表
      poreList: [
        {
          medium: 133,
          small: 344,
          mini: 242
        },
        {
          medium: 133,
          small: 344,
          mini: 242
        },
        {
          medium: 133,
          small: 344,
          mini: 242
        }
      ],

      couponList: [
        {

        }
      ],
      timesInfo: '',
      projectInfo: '',
      productsInfo: '',
      weekInfo: '',
      programmeIndex: '',
      remarks: '',
      isCoupun: false,//是否展示优惠券弹窗
      isOver: false,//优惠券注释
      isProject: false,//是否展示选择项目弹窗
      isTs: false,//是否展示选择时间弹窗
      isPore: false,//皮肤状态弹窗
      id: 0,//订单id
    };
  },
  computed: {

  },
  watch: {},

  methods: {
    getOrderInfo () {
      api.getOrderInfo({ id: this.id }).then(res => {
        this.userInfo = res.data.user
        this.lableList = res.data.tags
        this.remarks = res.data.remark
        this.programmeList = res.data.scheme_list
        this.order_data = res.data.order_data
      })
    },
    getProjectList () {
      api.getProjectList().then(res => {
        this.projectList = res.data.list
      })
    },
    getProducts (e) {
      this.productsInfo = ''
      api.getProducts({ id: e }).then(res => {
        this.productsList = res.data.list
      })
    },
    eidt () {

    },
    //新增
    orderUpdate () {
      if (this.projectInfo.length == 0) return
      //项目包重组
      let projectInfo = {}, nowProjectInfo = {}, productsInfo = {}
      this.projectList.forEach(item => {
        if (this.projectInfo == item.id) {
          nowProjectInfo = item
        }
      })
      if (this.productsInfo.length != 0) {
        this.productsList.forEach(item => {
          if (item.id == this.productsInfo) {
            productsInfo = item
          }
        })
      }
      console.log(nowProjectInfo, 'nowProjectInfo', productsInfo);
      projectInfo['name'] = nowProjectInfo.name
      projectInfo['cover_url'] = nowProjectInfo.cover_url
      projectInfo['device_name'] = ''
      projectInfo['room'] = ''
      projectInfo['use_time'] = ''
      projectInfo['price'] = nowProjectInfo.price
      projectInfo['product_names'] = ''

      if (Object.keys(productsInfo).length > 0) {
        projectInfo['product_id'] = productsInfo.id
        projectInfo.product_names = productsInfo.name
        projectInfo.price += Number(productsInfo.price)
      }
      this.order_data.project_list.push(projectInfo)
      this.isProject = false

    },
    onOperation (index) {
      if (this.programmeList[index].onSelect) {
        this.$set(this.programmeList[index], 'onSelect', !this.programmeList[index].onSelect)
      } else {
        this.$set(this.programmeList[index], 'onSelect', true)
      }
    },
    onSubmit () {

    },
    submitFrequency () { },
  },

  created () {
    let id = this.$route.query.id
    if (id) {
      this.id = id
    }
    this.getOrderInfo()
    this.getProjectList()
  },

  mounted () {

  },
}

</script>

<style lang='less' scoped>
.mine {
  height: 100%;
  display: flex;
  .left {
    width: 318px;
    padding: 12px 12px 0 12px;
    background: #ffffff;
    box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #999999;
    line-height: 18px;
    overflow: scroll;
    height: 100%;
    .user-info {
      display: flex;
      align-items: center;
      .user-img {
        width: 96px;
        img {
          width: 100%;
          display: block;
        }
      }
      .user-span {
        margin-left: 12px;

        span {
          color: #333333;
        }
      }
    }
    .user-record {
      margin-top: 16px;
      display: flex;
      justify-content: space-between;
      .num {
        font-size: 18px;
        font-family: OPPOSans-B, OPPOSans;
        font-weight: normal;
        color: #fa7d22;
        line-height: 29px;
      }
      .tips {
        font-size: 13px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333333;
        line-height: 30px;
      }
      .ts {
        font-size: 13px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333333;
        line-height: 30px;
      }
    }
    .lable {
      margin-top: 23px;
      width: 100%;
      overflow: scroll;
      background: #ffffff;
      .lable-title {
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 20px;
        margin-bottom: 14px;
      }
      .lable-list {
        width: 100%;
        min-height: 105rpx;
        .lable-info {
          display: inline-block;
          padding: 0 12px;
          margin-left: 10px;
          height: 24px;
          line-height: 24px;
          border-radius: 2px;
          border: 1px solid #d6d6d6;
          margin-bottom: 10px;
        }
        .add-lable {
          display: inline-block;
          width: 27px;
          height: 24px;
          line-height: 24px;
          font-size: 12px;
          font-family: PingFang-SC-Regular, PingFang-SC;
          font-weight: 400;
          color: #333333;
          text-align: center;
          margin-left: 10px;
          border-radius: 2px;
          border: 1px solid #d6d6d6;
        }
      }
      .remarks {
        /deep/ .el-textarea__inner:focus {
          border-color: #fa852f;
        }
      }
    }
    .ps {
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 20px;
      .ps-text {
        margin-top: 10px;
        font-size: 12px;
        font-weight: 400;
        color: #666666;
        line-height: 17px;
      }
    }
    .programme {
      margin-top: 20px;
      width: 100%;
      background: #ffffff;
      border-radius: 8px;

      .tab {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .tab-title {
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 20px;
        }
      }
      .programme-list {
        margin-top: 10px;
        position: relative;
        z-index: 1;
        .programme-info {
          position: relative;
          margin-bottom: 10px;
          border-radius: 4px;
          border: 1px solid #f5f5f5;
          display: flex;
          justify-content: space-between;
          padding: 8px 8px 8px 10px;
          align-items: center;
          .programme-left {
            display: flex;
            align-items: center;
            .programme-img {
              width: 48px;
              display: inline-block;
              img {
                width: 100%;
                display: block;
              }
            }
            .programme-tips {
              display: inline-block;
              margin-left: 10px;
              font-size: 10px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #999999;
              line-height: 14px;
              zoom: 0.83;
            }
          }
          .programme-right {
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #333333;
            line-height: 17px;
            .duration {
              margin-top: 14px;
            }
          }
          .operation {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 10px;
            z-index: 10;
            width: 44px;
            background: #ffffff;
            box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05),
              0px 6px 16px 0px rgba(0, 0, 0, 0.08),
              0px 3px 6px -4px rgba(0, 0, 0, 0.12);
            border-radius: 2px;
            padding: 10px;
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #333333;
            line-height: 17px;
            .delete {
              margin-top: 20px;
            }
          }
        }
        .programme-active {
          border: 1px solid #fa852f;
        }
      }
    }
  }
  .right {
    margin-left: 18px;
    position: relative;
    flex: 1;
    .shop-info {
      background: #ffffff;
      box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
      border-radius: 8px;
      padding: 12px;
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #999999;
      line-height: 24px;
      span {
        font-weight: 500;
        color: #333333;
      }
    }
    .project {
      margin-top: 18px;
      background: #ffffff;
      box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
      border-radius: 8px;
      padding: 16px 12px 12px 12px;
      .project-title {
        padding-bottom: 7px;
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        span {
          color: #fa7d22;
        }
        .add-project {
          width: 60px;
          height: 28px;
          background: #fa7d22;
          border-radius: 8px;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #ffffff;
          line-height: 28px;
          text-align: center;
        }
      }
      .project-list {
        padding-top: 10px;
        height: 130px;
        overflow: scroll;
        .project-info {
          margin-bottom: 10px;
          display: flex;
          .project-image {
            width: 60px;
            height: 60px;
            img {
              width: 100%;
              display: block;
            }
          }
          .project-content {
            flex: 1;
            margin-left: 10px;
            .title-price {
              display: flex;
              justify-content: space-between;
              font-size: 14px;
              font-family: PingFangSC-Medium, PingFang SC;
              font-weight: 500;
              color: #292929;
              line-height: 22px;
            }
            .project-tips {
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #999999;
              line-height: 18px;
            }
            .project-zoom {
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #fa7d22;
              line-height: 18px;
              display: flex;
              align-items: center;
              justify-content: space-between;
              img {
                width: 20px;
              }
              .delete {
                margin-left: 10px;
              }
            }
          }
        }
      }
    }
    .cost {
      overflow: scroll;
      background: #ffffff;
      border-radius: 8px;
      margin-top: 18px;
      padding: 10px 19px 11px 12px;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #333333;
      line-height: 20px;
      .cost-coupon-list {
        border-bottom: 1px solid #f9f9f9;
      }
      .cost-title {
        display: flex;
        justify-content: space-between;
      }
      .coupon {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        .coupon-tips {
          display: flex;
          align-items: center;
          .coupon-icon {
            width: 16px;
            img {
              width: 100%;
              display: block;
            }
          }
          .coupon-title {
            margin-left: 3px;
          }
          .coupon-tip {
            margin-left: 10px;
            background: #ffefeb;
            border-radius: 4px;
            border: 1px solid #ff3007;
            font-size: 10px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #ff3007;
            line-height: 14px;
            padding: 2px 6px;
            zoom: 0.83;
          }
        }
      }
      .coupon-ps {
        margin-left: -6px;
        margin-top: 11px;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #333333;
        line-height: 17px;
        .cou-price {
          font-weight: 500;
          color: #ff3007;
        }
      }
      .over-price {
        margin-top: 14px;
        text-align: right;
        .price-num {
          font-size: 18px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #ff3007;
          line-height: 25px;
        }
      }
    }
    .payment {
      position: relative;
      margin-top: 18px;
      left: 50%;
      transform: translateX(-50%);
      width: 176px;
      height: 28px;
      background: #fa7d22;
      border-radius: 14px;
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #ffffff;
      line-height: 28px;
      text-align: center;
    }
  }
  .coupon-block {
    width: 540px;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    padding: 42px;
    .delete-pupop {
      width: 32px;
      position: absolute;
      right: 5px;
      top: 5px;
      img {
        width: 100%;
      }
    }
    .coupon-pupop-title {
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 20px;
      text-align: center;
    }
    .coupon-lists {
      display: inline-block;
      position: relative;
      left: 50%;
      transform: translateX(-50%);
      margin-top: 20px;
      height: 228px;
      overflow: scroll;
      .coupon-info {
        width: 345px;
        padding: 20px 14px 10px 14px;
        position: relative;
        background: #fff4e6;
        border-radius: 12px;
        .top {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding-bottom: 10px;
          border-bottom: 1px dashed #ffdfb6;
          .all-free {
            font-size: 22px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #ff3007;
            line-height: 30px;
          }
          .discount {
            .price-num {
              font-size: 28px;
              font-family: PingFangSC-Medium, PingFang SC;
              font-weight: 500;
              color: #ff3007;
              line-height: 40px;
              .size {
                font-size: 14px;
                line-height: 20px;
              }
            }
            .price-tips {
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #ff3007;
              line-height: 17px;
            }
          }
          .coupon-tip {
            .tips-title {
              font-size: 16px;
              font-family: PingFangSC-Medium, PingFang SC;
              font-weight: 500;
              color: #875617;
              line-height: 22px;
            }
            .tips-ts {
              margin-top: 4px;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #875617;
              line-height: 17px;
            }
          }
          .choice-icon {
            width: 20px;
            img {
              width: 100%;
            }
          }
        }
        .bottom {
          padding-top: 9px;
          .coupon-notes {
            display: flex;
            justify-content: space-between;

            .notes-text {
              width: 314px;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #c38029;
              line-height: 18px;
            }
            .notes-icon {
              width: 24px;
              img {
                width: 100%;
              }
            }
          }
        }
      }
    }
  }
  .project-block {
    width: 540px;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    padding: 42px;
    .delete-pupop {
      width: 32px;
      position: absolute;
      right: 5px;
      top: 5px;
      img {
        width: 100%;
      }
    }
    .project-pupop-title {
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 20px;
      text-align: center;
    }
    .project-select {
      text-align: center;
      margin-top: 26px;
    }
    .products-select {
      text-align: center;
      margin-top: 20px;
    }
    .products-button {
      position: absolute;
      bottom: 42px;
      left: 50%;
      transform: translateX(-50%);
      width: 176px;
      height: 28px;
      background: #fa7d22;
      border-radius: 14px;
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #ffffff;
      line-height: 28px;
      text-align: center;
    }
  }
  .ts-block {
    width: 540px;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    padding: 42px 105px;
    .delete-pupop {
      width: 32px;
      position: absolute;
      right: 5px;
      top: 5px;
      img {
        width: 100%;
      }
    }
    .ts-pupop-title {
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 20px;
      text-align: center;
    }
    .ts-content {
      .ts-table {
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #999999;
        line-height: 20px;
        padding: 9px 0;
        display: flex;
        justify-content: space-between;
        li {
          text-align: center;
        }
      }
      .ts-boty {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        li {
          margin-top: 10px;
          width: 68px;
          height: 30px;
          line-height: 30px;
          text-align: center;
          background: #f9f9f9;
          border-radius: 8px;
          font-size: 16px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #333333;
        }
      }
    }
    .ts-button {
      position: absolute;
      bottom: 42px;
      left: 50%;
      transform: translateX(-50%);
      width: 176px;
      height: 28px;
      background: #fa7d22;
      border-radius: 14px;
      font-size: 14px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #ffffff;
      line-height: 28px;
      text-align: center;
    }
  }
  .pore-block {
    width: 540px;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    position: relative;
    padding: 42px;
    .delete-pupop {
      width: 32px;
      position: absolute;
      right: 5px;
      top: 5px;
      img {
        width: 100%;
      }
    }
    .pore-content {
      overflow: scroll;
      height: 310px;
      .pore-info {
        margin-top: 10px;
        border-radius: 4px;
        border: 1px solid #f5f5f5;
        .pore-top {
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #666666;
          line-height: 20px;
          padding: 10px;
          .pore-title {
            .pore-medium {
              font-size: 18px;
              color: #fa7d22;
              line-height: 25px;
            }
          }
          .pore-over {
            font-size: 12px;
          }
        }
        .pore-bottom {
          padding: 6px 8px;
          background: #f5f5f5;
          border-radius: 4px;
          font-size: 12px;
          font-family: PingFang-SC-Regular, PingFang-SC;
          font-weight: 400;
          color: #333333;
          line-height: 14px;
        }
      }
    }
  }
}
</style>
