<template>
  <div class="content">
    <div class="content-top">
      <div class="content-top-left">营销业务12笔</div>
      <div class="content-top-right">
        <div class="search-logo"><img src="../../../../assets/images/search-logo.png" alt="" /></div>
        <div class="search-bar">
          <van-form>
            <van-field class="name" v-model="companyname" name="companyname" placeholder="请输入企业名称" />
          </van-form>
        </div>
        <div class="search">搜索</div>
      </div>
    </div>
    <div class="content-bottm">
      <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 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 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 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 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 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>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Picker } from "vant";
Vue.use(Picker);

@Component({
  name: "MarketingTask",
})
export default class MarketingTask extends Vue {
  companyname = "";
  choose = false;
  choose_content = "";
  type = ["全部营销", "客户拜访", "精准营销专项", "公司精准信息摸排", "招商引资企业营销"];
  choose_t(value: any) {
    this.choose_content = value;
    this.choose = false;
  }
}
</script>

<style scoped>
.content {
  width: 100%;
  height: calc(100vh - 117px);
  padding: 2.5% 3%;
}
.content-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.content-top-left {
  font-family: "Arial Normal", "Arial";
  color: #999999;
}
.content-top-right {
  width: 27.45%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-logo {
  margin-right: -7%;
}
.search-bar {
  width: 99%;
  height: 34px;
}
.name {
  border: 1px solid rgba(228, 228, 228, 1);
  width: 100%;
  line-height: 200%;
  padding-top: 1.48%;
  padding-bottom: 0;
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
  padding-left: 15%;
  display: flex;
  background-color: rgba(255, 255, 255, 0);
}
.search {
  width: 21.85%;
  line-height: 34px;
  background-color: #fd5065;
  color: white;
  font-size: 115%;
  text-align: center;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
::v-deep .van-cell {
  width: 100%;
}
::v-deep .van-field__control:read-only {
  height: 32px;
}
.task-list {
  width: 48%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(242, 242, 242, 1);
  margin-left: 0.4%;
  padding-bottom: 1%;
  padding-top: 2.2%;
}
.task-list-left {
  width: 85%;
  display: flex;
  justify-content: flex-start;
  padding-left: 2%;
}
.task-list-left-logo {
  padding: 1.775%;
  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;
  padding-left: 2.5%;
}
.task-list-name {
  width: 100%;
  font-size: 115%;
  color: #333333;
  margin-top: 0.5%;
  margin-bottom: 1%;
}
.task-list-right {
  width: 14%;
  display: flex;
  align-items: center;
}
.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(2) {
  color: #999999;
}
.task-list-address > div:nth-child(3) {
  margin-left: 1%;
  color: #999999;
}
.content-bottm {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
</style>
