<template>
  <view class="switch-roles">
    <nav-bar title="公司信息" color="#000"></nav-bar>
    <view class="roles-content">
      <view class="content">
        <view class="title">公司信息</view>
        <u-input
          placeholder="公司信息将被审核，请确保您输入的信息真实有效"
          v-model="companyMsg"
          type="textarea"
          clearable
          class="custom-textarea"
        >
          <!-- :customStyle="{ padding: '8rpx 24rpx ',border:'none' }" -->
          <template #prefix>
            <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
          </template>
        </u-input>
        <view class="form-item">
          <view class="item-label"> 公司全称 </view>
          <u-input
            placeholder="请输入公司全称"
            v-model="companyName"
            type="textarea"
            clearable
            class="custom-textarea"
          >
            <!-- :customStyle="{ padding: '8rpx 24rpx ',border:'none' }" -->
            <template #prefix>
              <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
            </template>
          </u-input>
        </view>
        <view class="form-item">
          <view class="item-label"> 公司简称（选填） </view>
          <u-input
            placeholder="建议填写公司简称"
            v-model="address"
            clearable
            class="custom-input"
            :customStyle="{ padding: '8rpx 24rpx ' }"
          >
            <template #prefix>
              <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
            </template>
          </u-input>
        </view>
        <view class="form-item">
          <view class="item-label"> 人员规模 </view>
          <u-input
            placeholder="请选择人员规模"
            v-model="addressDetail"
            clearable
            class="custom-input"
            :customStyle="{ padding: '8rpx 24rpx ' }"
          >
            <template #prefix>
              <u-icon name="phone" size="36rpx" color="#999" marginRight="20rpx"></u-icon>
            </template>
          </u-input>
        </view>
      </view>
    </view>
    <view class="submit-btn" @click="goWorkAddress">确定</view>
  </view>
</template>
<script>
import navBar from "@/components/nav-bar/index.vue";
export default {
  data() {
    return {
      address: "",
      addressDetail: "",
      companyMsg: "",
      companyName: "",
    };
  },
  components: {
    navBar,
  },
  onLoad(options) {
    if (options.text) {
      this.text = options.text;
    }
  },
  methods: {
    onInput(e) {
      //   console.log(e);
      // 如果需要额外的输入控制
      //   this.text = e.detail.value;
    },
    goWorkAddress() {
      uni.navigateTo({ url: "/package/jobIntention/workAddress" });
    },
  },
};
</script>
<style lang="scss" scoped>
.switch-roles {
  background-color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  .roles-content {
    width: 100%;
    flex: 1;
    overflow: hidden;
    overflow-y: auto;
    .content {
      padding: 40rpx;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .title {
        color: #333;
        width: 100%;
        font-family: DM Sans;
        font-size: 40rpx;
        font-weight: 600;
      }
    }
  }
  .submit-btn {
    flex-shrink: 0;
    border-radius: 999px;
    background: #ff6600;
    color: rgba(255, 255, 255, 1);
    font-family: DM Sans;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 48rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16rpx 32rpx;
    box-sizing: border-box;
    margin: 60rpx 20rpx;
  }
}
.form-item {
  margin-bottom: 32rpx;
  width: 100%;
}
.item-label {
  color: rgba(18, 26, 44, 1);
  font-family: Roboto;
  font-size: 32rpx;
  font-weight: 400;
  line-height: 51.2rpx;
  letter-spacing: 0px;
  text-align: left;
  padding-bottom: 6rpx;
  padding: 10rpx 0;
  box-sizing: border-box;
}

.custom-input {
  box-sizing: border-box;
  border: 2rpx solid rgba(158, 161, 168, 1);
  border-radius: 100rpx;
  background: rgba(255, 255, 255, 1);
  padding: 8rpx 24rpx !important;
}
.custom-textarea {
  width: 100%;
  margin-top: 22rpx;
}
::v-deep .u-input {
  text-align: left !important;
}
</style>
