<template>
  <div :class="{connectUs: !mobile, connectUsMobile: mobile}">
    <div class="toastBox1" v-if="isShowToast">
      <div class="toastArea1">
        <div class="title">更换背景</div>

        <div class="freeBg">
          <p class="label">免费背景</p>
          <div class="list">
            <div class="cell" v-for="(item, index) in bgList"
             :class="{selected: index===choosedBgIndex}"
              @click="choosedBgIndex=index"
            >
              <img :src="item.url" alt="" />
              <div class="imgSel"></div>
            </div>
          </div>
        </div>

        <div class="myBg">
          <div class="labelArea">
            <p class="label">自定义背景</p>
            <div class="icon"></div>
            <div class="word">会员专享</div>
          </div>
          <div class="uploadInfo">
            <div class="left">
              <el-upload
                class="avatar-uploader"
                action="#"
                :show-file-list="false"
                :multiple="false"
                accept="image/png, image/jpeg"
                :before-upload="(file) => handleFileChange(file, 'bg')"
              >
                <i v-if="bg" class="el-icon-delete avatar-uploader-icon"
                   @click.stop="() => handleDeleteFile('bg') "></i>
                <img v-if="bg" :src="bg" class="avatar"/>
                <div v-else class="noneImage">
                  <i class="el-icon-plus avatar-uploader-icon"></i>
                </div>
              </el-upload>
              <div class="coverIsNotVip" v-if="!checkVip" @click="openToast"></div>
            </div>
            <div class="right">
              <p>建议分辨率2000*500px, 不超过2MB</p>
            </div>
          </div>
        </div>
        <div class="btnList">
          <div class="submitBtn" @click="handleSubmit">
            <p>确定</p>
          </div>
          <div class="cancleBtn" @click="close">
            <p>取消</p>
          </div>
        </div>
        <div class="closeIcon" @click="close"/>
      </div>
    </div>
  </div>
</template>

<script>

  const bgList = [
    {color: "blue", url: "https://filescdn.proginn.com/community/64168/20200402/tbYRzPFDCa.png"}, //蓝色
    {color: "green", url: "https://filescdn.proginn.com/community/64168/20200402/tmqVdIL2MO.png"}, //绿色
    {color: "purple", url: "https://filescdn.proginn.com/community/64168/20200402/rRprryIdvO.png"}, //紫色
    {color: "orange", url: "https://filescdn.proginn.com/community/64168/20200402/N4Bi6xDTna.png"}, //橙色
    {color: "black", url: "https://filescdn.proginn.com/community/64168/20200402/kQlmkC1HXp.png"}, //黑色
    {color: "red", url: "https://filescdn.proginn.com/community/64168/20200402/hhkR6VNTNT.png"}, //红色
  ]
export default {
  props: ["isShowToast", "pId"],
  components: {},
  data() {
    return {
      bg: "",
      bgList: bgList,
      uploading: false,
      choosedBgIndex: 0,
      mobile: false,
    }
  },
  computed: {
    checkVip() {
      let {is_vip, vip_type_id} = this.$store.state.userinfo || {}
      vip_type_id = Number(vip_type_id)
      return is_vip && (vip_type_id === 1 || vip_type_id === 3)
    },
  },
  mounted() {
  },
  methods: {
    close() {
      this.$emit('close')
    },
    ok() {
      this.$emit('ok')
    },
    /** 校验是不是企业会员 **/
    handleSubmit() {
      let url = bgList[this.choosedBgIndex].url
      if (this.checkVip && this.bg) {
        url = this.bg
      }
      let p = {
        id: this.pId,
        url: url
      }
      this.$axios.post('/api/kaifawu/update_bg_image', p).then(res => {
         if (res.data.status === 1) {
           this.$message.success(res.info || '提交成功')
           this.$emit('close')
           this.$emit('ok')
         }
      })
    },
    /** 图片文件上传 **/
    handleFileChange(file) {
      const isJPG = file.type === 'image/jpeg';
      const isPNG = file.type === 'image/png';
      const isLt2M = file.size / 1024 / 1024 < 2;
      if (!isJPG && !isPNG) {
        this.$message.error('上传头像图片只能是 JPG/PNG 格式!');
        return
      }
      if (!isLt2M) {
        this.$message.error('上传头像图片大小不能超过 2MB!');
        return
      }
      const formData = new FormData();
      formData.append("file", file);
      formData.append("original_filename", file.name);
      this.uploading = true;
      this.$axios
        .$post(`/upload_image`, formData, {
          headers: { "Content-Type": "multipart/form-data" }
        })
        .then(res => {
          this.bg = res.filename
        })
        .finally(() => {
          this.uploading = false;
        });
    },
    /** 删除问及爱你 **/
    handleDeleteFile() {
      this.bg = ""
    },
    openToast () {
      const h = this.$createElement;
      this.$msgbox({
        title: '开通会员',
        message: h('p', null, [
          h('span', null, '开通会员，即可自定义上传解决方案背景图片 '),
        ]),
        showCancelButton: true,
        confirmButtonText: '立即开通',
        cancelButtonText: '不了谢谢',
        beforeClose: (action, instance, done) => {
          if (action === 'confirm') {
            location.href = "/type/vip/enterprise"
          } else {
            done();
          }
        }
      }).then(action => {
        this.$message({
          type: 'info',
          message: 'action: ' + action
        });
      });
    }
  }
};
</script>

<style lang="scss">
  @import "~@/assets/css/scssCommon.scss";
.connectUs {
  .toastBox1 {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 888;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    .toastArea1 {
      position: relative;
      width: 584px;
      height: 593px;
      background: rgba(255, 255, 255, 1);
      border-radius: 3px;
      padding: 40px 22px;

      .title {
        height:24px;
        font-size:17px;
        font-weight:600;
        color:rgba(34,34,34,1);
        line-height:24px;
        text-align: center;
      }

      .freeBg, .myBg {
        .label {
          height:24px;
          font-size:13px;
          font-weight:600;
          color:rgba(51,51,51,1);
          line-height:24px;
        }
        .list {
          display: flex;
          flex-wrap: wrap;
          margin-top: 3px;
          margin-left: -10px;
          .cell {
            position: relative;
            margin-top: 10px;
            margin-left: 10px;
            img {
              width: 170px;
              height: 90px;
              border-radius: 4px;
            }
            &.selected {
              .imgSel {
                width:34px;
                height:34px;
                border-radius: 50%;
                background:
                  url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAUaElEQVR4Xu2de6xuRXnGn0cI9Q9MVEhISaBQUFKKkaDUK60oHtRCWxVEsAXk0lgRBS9cIppWJQJeAC9wWjlHxVZAONoWWrxw1CjCsV4i6akJp1IopyEh4QiJ/mFJ9W2e78y3z7f32d/+1m1mzaz1vsmXb2fvWTPvPDO/PbPWmnmHcIuigJntAeDZAA4L3/sA2BvA01Z8r/yd/PkFgF/OfM/+PP3bDgDbANyvb5K/jlKRkWfKkde/dfXN7IAAgGCYBeKQ1pnXy+CBWWDCzwJne71sPPWsAg5Izf5gZoLgDwG8MnyeUTOL1MkfB/CN8PkOSY06bhUVcEAWCGVmBwF4cfgICgFSsgkQAXOPPiQfKrk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ngW/omqWUgbhUVcEAqCjUvmZkpfKretUw/ijyunw9pmXXdyx8AoHcSiqCv78mH5Pa6GXn6XQo4IJF6g5ntEUCZAqM99nqjr41fs98rfyePtJlIb6mn37M/T3+nPdxLQJD8daSqjDrb/wdjolHDOcdxTAAAAABJRU5ErkJggg==") no-repeat;
                background-size: cover;
                position: absolute;
                left: calc(50% - 17px);
                top: calc(50% - 17px);

              }
            }
          }

        }
      }
      .myBg {
        margin-top: 30px;
        .labelArea {
          display: flex;
          align-items: center;
          .label {
            height:24px;
            font-size:13px;
            font-weight:600;
            color:rgba(51,51,51,1);
            line-height:24px;
          }
          .icon {
            margin-left: 8px;
            width: 17px;
            height: 14px;
            background: url("~@/assets/img/kaifain/detail/vip_icon@2x.png") no-repeat;
            background-size: cover;
          }
          .word {
            margin-left: 2px;
            height:17px;
            font-size:12px;
            font-weight:500;
            color:rgba(221,175,90,1);
            line-height:17px;
          }
        }
        .uploadInfo {
          margin-top: 10px;
          display: flex;
          .left {
            width: 170px;
            height: 90px;
            flex-shrink: 0;
            overflow: hidden;
            position: relative;
            background: #fff;
            .el-icon-delete {
              display: none;
            }
            .avatar-uploader .el-upload {
              width: 170px;
              height: 90px;
              border: 1px dashed #6f6c6f;
              border-radius: 6px;
              cursor: pointer;
              position: relative;
              overflow: hidden;
              img {
                width: 100%;
                height: auto;
                object-fit: contain;
                object-position: top left;
              }
            }
            .avatar-uploader .el-upload:hover {
              border-color: #409eff;
              .el-icon-delete {
                display: block;
              }
            }
            .avatar-uploader-icon {
              position: absolute;
              top: 0;
              left: 0;
              font-size: 44px;
              color: #6f6c6f;;
              width: 170px;
              height: 90px;
              line-height: 90px;
              text-align: center;
            }
            .avatar {
              width: 170px;
              height: 90px;
              display: block;
            }
            .title {
              position: absolute;
              left: 50%;
              bottom: 40px;
              transform: translateX(-50%);
              font-size: 13px;
              font-weight: 500;
              color: #409eff;
              line-height: 18px;
              text-decoration: underline;
            }
            .rightTips {
              height: 19px;
              font-size: 13px;
              font-weight: 400;
              color: rgba(153, 153, 153, 1);
              line-height: 19px;
              text-align: center;
            }

            .coverIsNotVip {
              position: absolute;
              left: 0;
              top: 0;
              width: 170px;
              height: 90px;
              cursor: pointer;
            }
          }
          .right {
            margin-left: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            p {
              height: 17px;
              font-size: 12px;
              font-weight: 400;
              color: rgba(153, 153, 153, 1);
              line-height: 17px;
            }
          }
        }
      }

      .btnList {
        display: flex;
        margin-top: 37px;
        .submitBtn, .cancleBtn {
          margin-top: 0;
          width:140px;
          height:44px;
          background:rgba(48,142,255,1);
          box-shadow:0px 2px 6px 0px rgba(48,142,255,0.3);
          border-radius:2px;
          display: flex;
          justify-content: center;
          align-items: center;
          p {
            height:20px;
            font-size:14px;
            font-weight:500;
            color:rgba(255,255,255,1);
            line-height:20px;
          }
        }
        .cancleBtn {
          cursor: pointer;
          margin-left: 10px;
          background:rgba(236,236,236,1);
          box-shadow: none;
          p {
            color:rgba(102,102,102,1);
          }
        }
      }

      .closeIcon {
        position: absolute;
        right: 20px;
        top: 34px;
        width: 16px;
        height: 16px;
        background: url('~@/assets/img/credit/closeIcon.png') no-repeat;
        background-size: cover;
        cursor: pointer;
      }
    }

  }

}
.connectUsMobile {
  .toastBox {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 888;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    .toastArea {
      position: relative;
      width: pxtovw(355);
      height: pxtovw(403);
      background: rgba(255, 255, 255, 1);
      border-radius: pxtovw(3);
      padding: pxtovw(30) pxtovw(30);

      .title {
        font-size: pxtovw(19);
        font-weight: 500;
        color: rgba(34, 34, 34, 1);
        line-height: pxtovw(26);
        text-align: center;
      }



      .closeIcon {
        position: absolute;
        right: pxtovw(20);
        top: pxtovw(34);
        width: pxtovw(16);
        height: pxtovw(16);
        background: url('~@/assets/img/credit/closeIcon.png') no-repeat;
        background-size: cover;
        cursor: pointer;
      }
    }

  }
}
</style>
