<!--pages/feedback/index.wxml-->
<view class="sg-container">
  <view class="sg-white-bg sg-pad">
    <view class="sg-pad-tb sg-bottom-border">
      <view class="sg-pad-tb-sm sg-bottom-border">反馈意见</view>
      <textarea value="{{content}}" placeholder="请填写10个字以上的问题描述以便我们提供更好的帮助" bindinput="updateInput" data-name="content" class="sg-pad-tb-sm"></textarea>
      <view class="sg-text-right sg-gray-color">{{content.length ? content.length : 0}}/200</view>
    </view>
    <view class="sg-pad-tb sg-bottom-border">
      <view class="sg-pad-tb-sm">相关截图(选填)({{files.length ? files.length : 0}}/4)</view>
      <view class="sg-pad-tb-sm">
        <van-uploader file-list="{{ files }}" bind:after-read="afterRead" bind:delete="delete"/>
      </view>
    </view>
    <view class="sg-pad-tb sg-flex sg-align-center sg-space-between">
      <view class="sg-margin-right">联系方式</view>
      <input value="{{contact}}" bindinput="updateInput" data-name="contact" placeholder="邮箱/手机号" class="sg-flex-grow"/>
    </view>
  </view>
  <view class="sg-fix-bottom sg-pad sg-text-center sg-white sg-index-bg" bindtap="save">提交</view>
</view>