<template>
  <view class="container">
    <!-- =====================证件类型===================== -->
    <view class="content-box">
      <view class="content-item">
        <view class="item-l"> 证件类型 </view>
        <view class="item-r2"> 营业执照 </view>
      </view>
      <view class="content-item">
        <view class="item-l"> 证件编号 </view>
        <view class="item-r">
          <u--input placeholder="请输入证件有效期" border="surround" v-model="value" type='number'></u--input>
        </view>
      </view>
      <view class="content-item">
        <view class="item-l"> 有效期 </view>
        <view class="item-r">
          <u--input placeholder="请输入证件有效期" border="surround" v-model="value" type='number'></u--input>
        </view>
      </view>
      <view class="content-item">
        <imgs-upload :filelist.sync="filelist"></imgs-upload>
      </view>
      <p class='upload-text'>证件正面图</p>
    </view>

    <!-- =====================证件类型===================== -->
    <view class="content-box">
      <view class="content-item">
        <view class="item-l"> 证件类型 </view>
        <view class="item-r2"> 经营许可证 </view>
      </view>
      <view class="content-item">
        <view class="item-l"> 证件编号 </view>
        <view class="item-r">
          <u--input placeholder="请输入证件编号" border="surround" v-model="value" type='number'></u--input>
        </view>
      </view>
      <view class="content-item">
        <view class="item-l"> 有效期 </view>
        <view class="item-r">
          <u--input placeholder="请输入证件有效期" border="surround" v-model="value" type='number'></u--input>
        </view>
      </view>
      <view class="content-item">
        <imgs-upload :filelist.sync="filelist"></imgs-upload>
      </view>
      <p class='upload-text'>证件正面图</p>
    </view>


    <button class="btn" @click="handlerSkipNext">提交审核</button>
  </view>
</template>

<script>
  import ImgsUpload from "@/pages/tabbar/mine/openStore/components/ImgsUpload.vue"
  export default {
    data() {
      return {
        value: '',
        current: 0,
        sex_list:[
          {name:'男',id:0},
          {name:'女',id:1},
          {name:'沃尔玛塑料袋',id:2},
        ],
        filelist: [],
      }
    },
    components:{ImgsUpload},
    methods: {
      // 跳转到提交成功页面
      handlerSkipNext() {
        uni.navigateTo({
          url: '/pages/tabbar/mine/openStore/messageSubmit'
        })
      },
      change(e) {
        console.log("e:", e);
      },
      // 选择性别
      handlerSelectGender(item){
        this.current = item.id
        console.log('current',this.current);
      }
    }
  }
</script>

<style lang="scss" scoped>
  .container {
    background-color: #F7F7F7 !important;
    padding-bottom: 40rpx;
    .top-box {
      color: #666666;
      font-size: 26rpx;
      text-align: center;
      padding: 20rpx 40rpx;
      background-color: #fff;
    }

    .content-box {
      padding: 20rpx 40rpx;
      background-color: #fff;
      margin: 10rpx 0;

      .content-item,.content-item2 {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        margin: 20rpx 0;

        .item-l {
          width: 30%;
        }

        .item-r,.item-r2 {
          width: 70%;
          background-color: #F7F7F7;
          border-radius: 20rpx;
          display: flex;

          .data_select {
            width: 90%;
          }
        }
        .item-r2{
          background-color: #fff;
          display: flex;
          justify-content: space-between;
          .sex-item{
            padding: 20rpx 30rpx;
            background-color: #F7F7F7;
            border-radius: 10rpx;
            text-align: center;
            font-size: 28rpx;
          }
          .act-sex{
            border: 2rpx solid #5992BB;
            background-color: #5992BB;
            color: #fff !important;
          }
        }

      }
      .content-item2{
        display: none;
      }
      .upload-text{
        text-align: center;
        color: #666666;
        font-size:28rpx;
        margin-top: 20rpx;
      }
    }

    .btn {
      background-color: #5992BB !important;
      color: #fff;
      font-size: 32rpx;
      border-radius: 40rpx;
      margin-top: 40rpx;
      width: 95%;
    }
  }

  ::v-deep .u-input__content__field-wrapper__field.data-v-fdbb9fe6 {}

  ::v-deep .uni-select {
    border: none !important;
  }

  ::v-deep .uni-select__input-placeholder {
    font-size: 28rpx !important;
    color: #CBCED4 !important;
  }
</style>
