<!--授课统计-详情-->
<template>
  <view class="main_box">

    <view class="main_section">
      <view class="section">
        <fui-textarea placeholder="请输入反馈内容"></fui-textarea>
      </view>

      <view class="section">
       <view class="input_box">
         <view>上传图片</view>
         <AQUplodeImgMulti :inputName="`images_arr`" :inputValue="formData.images_arr || []" @AQUploadSuccess="AQUploadSuccess"/>
       </view>
      </view>

      <view class="section">
        <fui-input label="邮箱方式" borderTop placeholder="请输入邮箱"></fui-input>
      </view>
    </view>
  </view>
</template>

<script>
import user from '@/api/user.js';
import AQUplodeImgMulti from '@/components/AQ/AQUplodeImgMulti';
import AQTabber from "@/components/AQ/AQTabber"


export default {
  components: {
    AQTabber,
    AQUplodeImgMulti,
  },
  data() {
    return {
      formData:{
        images_arr:[]
      },

      //课程下拉菜单相关
      show_course:false,//是否显示下拉菜单
      //课程下拉菜单
      course_name:'课程',//选中的下拉菜单名称
      options_course: [
        {
          text: '请选择课程',
          value: '',
          checked: true
        }, {
          text: '羽毛球课程1',
          value: '1'
        }, {
          text: '篮球课程2',
          value: '2'
        }
      ],

      //课室下拉菜单相关
      show_classroom:false,//是否显示下拉菜单
      //课程下拉菜单
      classroom_name:'课室',//选中的下拉菜单名称
      options_classroom: [
        {
          text: '请选择课室',
          value: '',
          checked: true
        }, {
          text: '羽毛球201',
          value: '1'
        }, {
          text: '篮球室101',
          value: '2'
        }
      ],
    }
  },
  onLoad() {
  },
  methods: {
    //######AQ上传文件组件相关######
    // 上传文件回调
    AQUploadSuccess(res){
      console.log('接收AQ上传回调xxx1',res)
      // 使用 split 方法分割字符串
      let _inputValue = []
      if(res.filePathArr.length){
        _inputValue = res.filePathArr
      }
      this.formData[res.inputName]=_inputValue
      // console.log('接收AQ上传回调xxx1',res)
      // console.log('接收AQ上传回调xxx2',this.formData.member_store_certification_arr)
    },
  }
}
</script>

<style lang="less" scoped>

.main_box{
  background: #292929 ;
}

//自定义导航栏
.navbar_section{
  display: flex;
  justify-content: center;
  align-items: center;
  background: #29d3b4;
  .title{
    padding: 20rpx 0;
    font-size: 30rpx;
    color: #315d55;
  }
}

.main_section{
  min-height: 100vh;
  background: #292929 100%;
  padding: 0 24rpx;
  padding-top: 32rpx;
  padding-bottom: 150rpx;
  font-size: 28rpx;
  color: #fff;
  .section{
    border: 1px solid red;
    .input_box{
      margin-bottom: 20rpx;
      border-bottom: 1rpx solid #f3f3f3;
      padding: 10rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;
      //border: 1px solid red;
      view{
        .required {
          color: red;
          margin-left: 5px; /* 可选：调整 * 的位置 */
        }
      }
      .input{
        padding-bottom: 15rpx;
        width: 70%;
        height: 40rpx;
        font-size: 28rpx;
      }
      .button{
        border: 1px solid #E87375;
        color: #E87375;
        padding: 2rpx 6rpx;
        font-size: 28rpx;
        border-radius: 8rpx;
      }
      .invoice_type_box{
        width: 100%;
        display: flex;
        align-items: center;
        gap: 20rpx;
      }
      .edit-sex-list{
        width: 70%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .label_box{
          display: flex;
          align-items: center;
        }
      }
    }
  }

}


</style>