C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.7 KiB

  1. <form bindsubmit="formSubmit">
  2. <view class='section'>
  3. <text>姓名</text>
  4. <input wx:if="{{username}}" name="username" type="text" placeholder='{{username}}' />
  5. <input wx:if="{{!username}}" name="username" type="text" placeholder='请填写名字' />
  6. </view>
  7. <view class="section sec">
  8. <text>生日</text>
  9. <picker mode="date" value="{{date}}" start="1930-09-01" end="2017-09-01" bindchange="bindDateChange">
  10. <input wx:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/>
  11. <view wx:if="{{flag==2}}" class="picker"> {{date}}</view>
  12. </picker>
  13. </view>
  14. <view class="section section_gap">
  15. <text>性别</text>
  16. <radio-group class="radio-group" bindchange="radioChange">
  17. <radio class="radio" wx:for-items="{{items}}" wx:key="name" value="{{item.name}}" checked="{{item.checked}}">
  18. <text>{{item.value}}</text>
  19. </radio>
  20. </radio-group>
  21. </view>
  22. <view class='address' bindtap='address'>
  23. <text>住址</text>
  24. <view class='names' wx:if="{{address}}">{{address}}</view>
  25. <view class='names' wx:if="{{!address}}">请选择地址</view>
  26. </view>
  27. <view class='ques' wx:if="{{question&&question.length>0}}">
  28. <text class='questionTitle'>调查问卷</text>
  29. <view class='answer' wx:for="{{question}}" wx:key="index">
  30. <text>{{index}}.{{item.ques}}</text>
  31. <textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea>
  32. </view>
  33. </view>
  34. <view class='up-img'>
  35. <image src='{{receiptUrl}}' mode="widthFix"></image>
  36. </view>
  37. <view class='camera' bindtap='uploadImg'>
  38. <text>+</text>
  39. </view>
  40. <button class='btn' formType="submit" hover-class='active'>提交</button>
  41. </form>