info.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <!--pages/contest/contest.wxml-->
  2. <wxs src="../../../utils/util.wxs" module="format" />
  3. <view>
  4. <image mode="widthFix" src="../../../imgs/contest/bg.png" class="bg"></image>
  5. <image src="../../../imgs/contest/ranking/home.png" class="home" style="top:{{statusBar}}px" bindtap="goHome"></image>
  6. <view class="page-title" style="padding-top:{{statusBar}}px">个人信息</view>
  7. <view class="form">
  8. <view class="form-item">
  9. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  10. <view class="content">
  11. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">姓名</view>
  12. <input bindinput="changeInput" id="actualName" value="{{form.actualName}}" placeholder="请输入中文" placeholder-class="phcolor"></input>
  13. </view>
  14. </view>
  15. <view class="{{jgList[0]?'hidden':'warning'}}" wx:if="{{!jgList[0]}}">
  16. <image mode="widthFix" src="../../../imgs/contest/warning.png" class="warning-icon"></image>
  17. <view class="warning-text">请填写姓名</view>
  18. </view>
  19. <view class="form-item">
  20. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  21. <view class="content">
  22. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">性别</view>
  23. <view class="select">
  24. <picker bindchange="bindPicker" value="{{value}}" data-list="sexList" range="{{sexList}}" range-key="label" id="sex">
  25. <view class="picker {{form.sex?'':'phcolor'}}">
  26. {{form.sex?sexList[form.sex-1].label:'请选择'}}
  27. </view>
  28. </picker>
  29. <image class="arrow" src="../../../imgs/contest/arrow.png" mode="widthFix"></image>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="{{jgList[1]?'hidden':'warning'}}" wx:if="{{!jgList[1]}}">
  34. <image mode="widthFix" src="../../../imgs/contest/warning.png" class="warning-icon"></image>
  35. <view class="warning-text">请选择性别</view>
  36. </view>
  37. <view class="form-item">
  38. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  39. <view class="content">
  40. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">生日</view>
  41. <!-- <input bindinput="changeInput" id="age" value="{{form.age}}" maxlength="{{2}}" placeholder="请输入" placeholder-class="phcolor"></input> -->
  42. <view class="select">
  43. <!-- <picker bindchange="bindPicker" value="{{value}}" data-list="ageList" range="{{ageList}}" range-key="label" id="age">
  44. <view class="picker {{form.age?'':'phcolor'}}">
  45. {{form.age?ageList[form.age-1].label:'请选择'}}
  46. </view>
  47. </picker> -->
  48. <picker mode="date" start='1940-01-01' end='{{endDate}}' value="{{form.birthday}}" id="birthday" bindchange="bindPickerData">
  49. <view class="picker {{form.birthday||'phcolor'}}">
  50. {{form.birthday||'请选择'}}
  51. </view>
  52. </picker>
  53. <image class="arrow" src="../../../imgs/contest/arrow.png" mode="widthFix"></image>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="{{jgList[2]?'hidden':'warning'}}" wx:if="{{!jgList[2]}}">
  58. <image mode="widthFix" src="../../../imgs/contest/warning.png" class="warning-icon"></image>
  59. <view class="warning-text">请选择生日</view>
  60. </view>
  61. <view class="form-item">
  62. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  63. <view class="content">
  64. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">区域</view>
  65. <view class="select">
  66. <picker bindchange="bindPickerChange" value="{{value}}" range="{{areaList}}" range-key="areaName" id="area">
  67. <view class="picker {{form.area?'':'phcolor'}}">
  68. {{form.area?form.areaName:'请选择'}}
  69. </view>
  70. </picker>
  71. <image class="arrow" src="../../../imgs/contest/arrow.png" mode="widthFix"></image>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="{{jgList[3]?'hidden':'warning'}}" wx:if="{{!jgList[3]}}">
  76. <image mode="widthFix" src="../../../imgs/contest/warning.png" class="warning-icon"></image>
  77. <view class="warning-text">请选择区域</view>
  78. </view>
  79. <view class="form-item">
  80. <view wx:if="{{showSchool}}" class="form-item-picker">
  81. <view bindtap="handleChooseSchool" data-item="{{item}}" class="form-item-leaf" wx:for="{{schoolList}}" wx:key="index">
  82. {{item.schoolName}}
  83. </view>
  84. </view>
  85. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  86. <view class="content">
  87. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">学校</view>
  88. <!-- <picker bindchange="bindPickerSchool" value="{{value}}" range="{{schoolList}}" range-key="schoolName" id="school">
  89. <view class="picker {{form.school?'':'phcolor'}}">
  90. {{form.school?form.schoolName:'请选择'}}
  91. </view>
  92. </picker> -->
  93. <input
  94. bindfocus="handleShowSchool"
  95. bindinput="handlePickerSchool"
  96. value="{{form.schoolName}}"
  97. id="school"
  98. placeholder="请输入"
  99. placeholder-class="phcolor"></input>
  100. </view>
  101. </view>
  102. <view class="form-item" wx:if="{{format.isIncludes(form.schoolName,'其他')}}">
  103. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  104. <view class="content">
  105. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">其他</view>
  106. <input bindinput="changeInput" id="other" placeholder="请输入学校名称" placeholder-class="phcolor"></input>
  107. </view>
  108. </view>
  109. <view class="{{jgList[4]?'hidden':'warning'}}" wx:if="{{!jgList[4]}}">
  110. <image mode="widthFix" src="../../../imgs/contest/warning.png" class="warning-icon"></image>
  111. <view class="warning-text">请选择学校</view>
  112. </view>
  113. <view class="form-item">
  114. <image class="form-item-bg" mode="widthFix" src="../../../imgs/contest/list-bg.png"></image>
  115. <view class="content">
  116. <view class="form-item-label" style="border-right: 4rpx solid #D8D8D8">年级</view>
  117. <!-- <input bindinput="changeInput" id="grade" placeholder="请输入" placeholder-class="phcolor"></input> -->
  118. <view class="select">
  119. <picker bindchange="bindPicker" value="{{value}}" data-list="gradeList" range="{{gradeList}}" range-key="label" id="grade">
  120. <view class="picker {{form.grade||'phcolor'}}">
  121. {{form.grade||'请选择'}}
  122. </view>
  123. </picker>
  124. <image class="arrow" src="../../../imgs/contest/arrow.png" mode="widthFix"></image>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="{{jgList[5]?'hidden':'warning'}}" wx:if="{{!jgList[5]}}">
  129. <image mode="widthFix" src="../../../imgs/contest/warning.png" class="warning-icon"></image>
  130. <view class="warning-text">请选择年级</view>
  131. </view>
  132. </view>
  133. <view class="button" bindtap="submit">
  134. <!-- <image class="button-bg" mode="widthFix" src="../../../imgs/contest/button-bg.png"></image> -->
  135. <view class="button-text">Start Now !</view>
  136. </view>
  137. </view>