feedback.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="container">
  2. <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
  3. <view class="picker">
  4. <view class="fb-type">
  5. <view class="type-label">{{array[index]}}</view>
  6. <van-icon class="type-icon" name="arrow-down" />
  7. </view>
  8. </view>
  9. </picker>
  10. <view class="fb-body">
  11. <textarea class="content" placeholder="对我们网站、商品、服务,你还有什么建议吗?你还希望在商城上买到什么?请告诉我们..." bindinput="contentInput" maxlength="500" auto-focus="true" value="{{content}}" />
  12. <view class="weui-uploader__files" id="uploaderFiles">
  13. <block wx:for="{{files}}" wx:key="*this">
  14. <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
  15. <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
  16. </view>
  17. </block>
  18. <view class="weui-uploader__input-box" wx:if="{{ files.length < 5 }}">
  19. <view class="weui-uploader__input" bindtap="chooseImage"></view>
  20. </view>
  21. </view>
  22. <view class="text-count">{{contentLength}}/500</view>
  23. </view>
  24. <view class="fb-mobile">
  25. <view class="label">手机号码</view>
  26. <view class="mobile-box">
  27. <input class="mobile" maxlength="11" type="number" placeholder="方便我们与你联系" bindinput="mobileInput" value="{{mobile}}" />
  28. <van-icon class="clear-icon" name="close" wx:if="{{ mobile.length > 0 }}" catchtap="clearMobile"/>
  29. </view>
  30. </view>
  31. <view class="fb-btn" bindtap="submitFeedback">提交</view>
  32. </view>