index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <view class='container'>
  2. <form bindsubmit="formSubmit">
  3. <input hidden="hidden" name='id' value="{{userId}}" />
  4. <view style='background-color:#fff;margin-top:20rpx;'>
  5. <view class='content'>
  6. <view class='content_text'>
  7. <view class='form' wx:for="{{items}}">
  8. <view wx:if="{{!item.ignore}}" class="required">*</view>
  9. <view class='form_title'>{{item.title}}</view>
  10. <view class="form_input">
  11. <picker wx:if="{{item.picker}}" value="{{item.picker_index}}" range-key="name" range="{{codeList}}" bindchange="pickerChange" data-_index='{{index}}'>
  12. <view class='picker'>
  13. <text>{{item.picker_name}}</text>
  14. <input name="{{item.field}}" hidden value='{{item.value}}' />
  15. <image style='width:18rpx;height:18rpx;' src='../../../images/bottom.png'></image>
  16. </view>
  17. </picker>
  18. <textarea wx:elif="{{item.textarea}}" name="{{item.field}}" placeholder='请填写{{item.title}}' placeholder-class='place' value="{{item.value}}"></textarea>
  19. <input wx:else name="{{item.field}}" maxlength="{{item.maxLength||50}}" placeholder='请填写{{item.title}}' placeholder-class='place' value="{{item.value}}"></input>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class='btn'>
  26. <button form-type="submit">提交</button>
  27. </view>
  28. </form>
  29. </view>