抖音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.

84 regels
3.8 KiB

  1. <!-- <navbar back home text="编辑信息"></navbar>
  2. <view style="height:{{navigationBarHeight}} "></view> -->
  3. <form bindsubmit="formSubmit" tt:if="{{showPage}}">
  4. <view class='section'>
  5. <text>姓名</text>
  6. <input tt:if="{{username}}" name="username" type="text" placeholder='{{username}}' />
  7. <input tt:if="{{!username}}" name="username" type="text" placeholder='请填写名字' />
  8. </view>
  9. <view class="section sec">
  10. <text>生日</text>
  11. <picker mode="date" value="{{date}}" start="1930-09-01" end="{{dateEnd}}" bindchange="bindDateChange">
  12. <input tt:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled />
  13. <view tt:if="{{flag==2}}" class="picker"> {{date}}</view>
  14. </picker>
  15. <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
  16. </view>
  17. <view class='section'>
  18. <text>身高</text>
  19. <input tt:if="{{height}}" name="height" type="text" placeholder='{{height||' 请填写身高单位cm'}}' />
  20. <input tt:if="{{!height}}" name="height" type="text" placeholder="请填写身高单位cm" />
  21. </view>
  22. <view class='section'>
  23. <text>体重</text>
  24. <input tt:if="{{weight}}" name="weight" type="text" placeholder='{{weight||' 请填写体重单位kg'}}' />
  25. <input tt:if="{{!weight}}" name="weight" type="text" placeholder="请填写体重单位kg" />
  26. </view>
  27. <view class="section section_gap">
  28. <text>性别</text>
  29. <radio-group class="radio-group" bindchange="radioChange">
  30. <radio class="radio" tt:for="{{items}}" tt:key="name" value="{{item.name}}" checked="{{item.checked}}">
  31. <text>{{item.value}}</text>
  32. </radio>
  33. </radio-group>
  34. </view>
  35. <view class='address sec' bindtap='address'>
  36. <text>住址</text>
  37. <view class='names' tt:if="{{address}}">{{address}}</view>
  38. <view class='names' tt:if="{{!address}}">请选择地址</view>
  39. <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
  40. </view>
  41. <view class="child_add" bindtap="childAdd">+ 添加子女信息</view>
  42. <view class="child_box" tt:for="{{childArr}}" tt:kye="index">
  43. <view class="contBox">
  44. <view class='contBox_section'>
  45. <text>姓名</text>
  46. <input tt:if="{{item.name}}" type="text" placeholder='{{item.name}}' bindinput="chidName"
  47. data-index="{{index}}" />
  48. <input tt:if="{{!item.name}}" type="text" placeholder='请填写名字' bindinput="chidName" data-index="{{index}}" />
  49. </view>
  50. <view class="contBox_section sec">
  51. <text>生日</text>
  52. <picker class="contBox_picker" mode="date" value="{{date}}" start="1930-09-01" end="{{dateEnd}}"
  53. bindchange="chidBirthday" data-index="{{index}}">
  54. <input tt:if="{{!item.birthdate}}" class='contBox_picker' placeholder='请输入生日' disabled />
  55. <view tt:if="{{item.birthdate}}" class="contBox_picker"> {{item.birthdate}}</view>
  56. </picker>
  57. <image class="rArrow" src="{{chevronUrl}}" mode='widthFix'></image>
  58. </view>
  59. <view class="contBox_section section_gap">
  60. <text>性别</text>
  61. <radio-group class="radio-group" bindchange="childSex" data-index="{{index}}">
  62. <radio class="radio" value="1" checked="{{item.sex==1?true:false}}">
  63. <text>男</text>
  64. </radio>
  65. <radio class="radio" value="2" checked="{{item.sex==2?true:false}}">
  66. <text>女</text>
  67. </radio>
  68. </radio-group>
  69. </view>
  70. </view>
  71. <view class="det_child_box" bindtap="childDel" data-index="{{index}}"> 删除</view>
  72. </view>
  73. <button class='btn' tt:if="{{!username}}" formType="submit" hover-class='active'
  74. style='background: linear-gradient(270deg, #DDAB5A, #B8832D)'>完成</button>
  75. <button class='btn' tt:if="{{username}}" formType="submit" hover-class='active'
  76. style='background: linear-gradient(270deg, #DDAB5A, #B8832D);'>完成</button>
  77. </form>