<template>
  <div>
    <div class="task-list">
      <div class="task-list-left">
        <div class="task-list-left-logo">
          <div><img src="../../../../../assets/svg/personal-title-1.svg" alt="" /></div>
        </div>
        <div class="task-list-left-text">
          <div class="task-list-name">
            李泰路-
            <div>电话营销</div>
          </div>
          <div class="task-list-address">
            <div><img src="../../../../../assets/svg/position-2.svg" alt="" /></div>
            <div>0.3km</div>
            <div>成都市武侯区天谷7路腾飞科汇城</div>
          </div>
        </div>
      </div>
      <div class="task-list-right"><div>发送短信</div></div>
    </div>
    <div class="task-list">
      <div class="task-list-left">
        <div class="task-list-left-logo">
          <div><img src="../../../../../assets/svg/personal-title-1.svg" alt="" /></div>
        </div>
        <div class="task-list-left-text">
          <div class="task-list-name">
            李泰路-
            <div>电话营销</div>
          </div>
          <div class="task-list-address">
            <div><img src="../../../../../assets/svg/position-2.svg" alt="" /></div>
            <div>0.3km</div>
            <div>成都市武侯区天谷7路腾飞科汇城</div>
          </div>
        </div>
      </div>
      <div class="task-list-right" @click="doMarket"><div>营销</div></div>
      <div class="task-list-right" @click="invalid"><div>作废</div></div>
    </div>
    <div class="task-list">
      <div class="task-list-left">
        <div class="task-list-left-logo">
          <div><img src="../../../../../assets/svg/personal-title-2.svg" alt="" /></div>
        </div>
        <div class="task-list-left-text">
          <div class="task-list-name">
            京城世纪有限公司-
            <div>营销计划</div>
          </div>
          <div class="task-list-address">
            <div><img src="../../../../../assets/svg/position-2.svg" alt="" /></div>
            <div>0.3km</div>
            <div>成都市武侯区天谷7路腾飞科汇城</div>
          </div>
        </div>
      </div>
      <div class="task-list-right" @click="marketing_plan"><div>营销</div></div>
    </div>
    <base-popup v-model="flagPopup" :showCancel="true" :showConfirm="true" title="作废信息">
      <div class="popup-content">
        <d-select label="作废原因" border="true" :columns="invalid_choose"></d-select>
      </div>
    </base-popup>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import BasePopup from "@/components/general/BasePopup.vue";
@Component({
  name: "UpcomingMarketingTask",
  components: { BasePopup },
})
export default class UpcomingMarketingTask extends Vue {
  flagPopup = false;
  invalid_choose: any = [
    { text: "请选择", value: "1" },
    { text: "营销客群范围选择错误", value: "2" },
    { text: "不符合准入条件", value: "3" },
  ];
  invalid() {
    this.flagPopup = true;
  }
  doMarket() {
    this.$router.push({
      path: "/workbench/upcoming-tasks/marketing-task/marketing-task",
      query: {
        type: "个人任务处理",
      },
    });
  }
  marketing_plan() {
    this.$router.push({
      path: "/workbench/upcoming-tasks/marketing-task/marketing-task",
      query: {
        type: "营销计划",
      },
    });
  }
}
</script>

<style scoped>
.task-list {
  width: 97%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(242, 242, 242, 1);
  margin-left: 0.4%;
  padding-bottom: 2%;
  padding-top: 2.2%;
}
.task-list-left {
  width: 85%;
  display: flex;
  justify-content: flex-start;
  padding-left: 2%;
}
.task-list-left-logo {
  padding: 1.3%;
  border-radius: 7px;
  background-color: #ffecd6;
}
.task-list-left-logo div {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../../../../../assets/svg/orange-circle.svg");
  background-repeat: no-repeat;
}
.task-list-left-logo div img {
  width: 59.1%;
}
.task-list-left-text {
  width: 84%;
  display: flex;
  flex-direction: column;
  /*border: 1px solid red;*/
  padding-left: 1%;
}
.task-list-name {
  width: 100%;
  font-size: 115%;
  color: #333333;
  display: flex;
  align-items: flex-end;
  margin-top: 0.5%;
  margin-bottom: 2%;
}
.task-list-name div {
  width: 50%;
  display: inline-block;
}
.task-list-right {
  width: 12%;
  /*margin-left: 2%;*/
  display: flex;
  align-items: center;
}
.task-list-right div {
  width: 100%;
  height: 48.5%;
  font-size: 93%;
  padding-top: 2%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50px;
  border: 1px solid rgba(215, 215, 215, 1);
}
.task-list-address {
  display: flex;
  align-items: flex-end;
}
.task-list-address > div:nth-child(1) {
  background-image: url("../../../../../assets/svg/position-1.svg");
  background-repeat: no-repeat;
  background-position-x: 50%;
  background-position-y: 50%;
  margin-left: 1.5%;
  margin-right: 1.5%;
}
.task-list-address > div:nth-child(1) img {
  width: 100%;
}
.task-list-address > div:nth-child(2) {
  color: #999999;
}
.task-list-address > div:nth-child(3) {
  margin-left: 1%;
  color: #999999;
}
</style>
