post.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <form wx:if="{{type == 3 || type == 1}}" catchsubmit="next">
  2. <view class="item">
  3. <label>姓名</label>
  4. <input value="{{name}}" name='name' placeholder="请输入您的姓名"></input>
  5. </view>
  6. <view class="item">
  7. <label>性别</label>
  8. <picker name='sex' data-name='sex' bindchange="pickerChange" value="{{sex}}" range="{{sexArray}}">
  9. <view class="picker">
  10. {{sexArray[sex]}}
  11. </view>
  12. </picker>
  13. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  14. </view>
  15. <view class="item">
  16. <label>身份证</label>
  17. <input value="{{idno}}" name='idno' type="idcard" placeholder="请输入您的身份证"></input>
  18. </view>
  19. <view class="item">
  20. <label>文化程度</label>
  21. <picker name='education' data-name='record' bindchange="pickerChange" value="{{record}}" range="{{recordArray}}">
  22. <view class="picker">
  23. <text wx:if="{{record<0}}">请选择</text>
  24. {{recordArray[record]}}
  25. </view>
  26. </picker>
  27. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  28. </view>
  29. <view class="item">
  30. <label>手机号</label>
  31. <input value="{{phone}}" name='phone' type="number" placeholder="请输入您的手机号"></input>
  32. </view>
  33. <view class="item">
  34. <label>单位全称</label>
  35. <input placeholder-style="color:#358BFF" value="{{company}}" name='company' placeholder="单位全称(无单位可不填写)"></input>
  36. </view>
  37. <view class="item" wx:if="{{type != 3}}" style="margin-top:10px;">
  38. <label>作业类别</label>
  39. <picker data-name='category' bindchange="pickerChange" value="{{category}}" range="{{categoryArray}}" range-key="name">
  40. <view class="picker">
  41. <text wx:if="{{category<0}}">请选择</text>
  42. {{categoryArray[category].name}}
  43. </view>
  44. </picker>
  45. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  46. <view wx:if="{{categoryArray[category].intro}}" class="intro">{{categoryArray[category].intro}}</view>
  47. </view>
  48. <view class="item" wx:if='{{dev!=""}}' bindtap="open">
  49. <label>设备种类</label> <text class="dev_text">{{dev}}</text>
  50. </view>
  51. <view class="item" wx:if="{{type != 3}}">
  52. <label wx:if="{{z_type == '特种作业人员'}}">准操项目</label>
  53. <label wx:if="{{z_type == '特种设备培训'}}">项目代码</label>
  54. <label wx:if="{{z_type !== '特种设备培训'&&z_type !== '特种作业人员'}}">资格类型</label>
  55. <picker data-name='subject' bindchange="pickerChange" value="{{subject}}" range="{{subjectArray}}" range-key="name">
  56. <view class="picker">
  57. <text wx:if="{{subject<0}}">请选择</text>
  58. {{subjectArray[subject].name}}
  59. </view>
  60. </picker>
  61. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  62. <view wx:if="{{subjectArray[subject].intro}}" class="intro">{{subjectArray[subject].intro}}</view>
  63. </view>
  64. <view class="item">
  65. <label>培训类型</label>
  66. <picker name='train_type' data-name='train' bindchange="pickerChange" value="{{train}}" range="{{trainArray}}" range-key="name">
  67. <view class="picker">
  68. <text wx:if="{{train<0}}">请选择</text>
  69. {{trainArray[train].name}}
  70. </view>
  71. </picker>
  72. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  73. <view wx:if="{{train>=0}}" class="intro">{{trainArray[train].intro}}</view>
  74. </view>
  75. <view class="item" wx:if="{{type != 3&&z_type!='特种作业人员'&&classList.length>0}}">
  76. <label>班级</label>
  77. <picker data-name='class_' bindchange="pickerChange" value="{{class_}}" range="{{classList}}" range-key="name">
  78. <view class="picker">
  79. <text wx:if="{{class_<0}}">请选择</text>
  80. {{classList[class_].name}}
  81. </view>
  82. </picker>
  83. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  84. <view wx:if="{{class_>=0}}" class="intro">{{classList[class_].remark}}</view>
  85. </view>
  86. <!-- <view class="item">
  87. <label>培训时间</label>
  88. <picker name='time' data-name='time' value="{{time}}" mode="date" bindchange="pickerChange">
  89. <view class="picker">
  90. {{time}}
  91. </view>
  92. </picker>
  93. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  94. </view> -->
  95. <!-- <view class="item">
  96. <label>领取方式</label>
  97. <picker name='receive_card' data-name='receive' bindchange="pickerChange" value="{{receive}}" range="{{receiveArray}}">
  98. <view class="picker">
  99. {{receiveArray[receive]}}
  100. </view>
  101. </picker>
  102. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  103. </view> -->
  104. <view class="item" wx:if="{{receive==1}}">
  105. <label>所在地区</label>
  106. <picker name='area' data-name='area' value="{{area}}" mode="region" bindchange="pickerChange">
  107. <view class="picker">
  108. {{area[0]}}{{area[1]}}{{area[2]}}
  109. </view>
  110. </picker>
  111. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  112. </view>
  113. <view class="item" wx:if="{{receive==1}}">
  114. <label>详细地址</label>
  115. <input name='address' placeholder="请输入您的详细地址"></input>
  116. </view>
  117. <view class="item">
  118. <label>备注</label>
  119. <input name='remark' placeholder="请输入您的备注"></input>
  120. </view>
  121. <view class="fee">
  122. <label>培训费用</label>¥{{price}}
  123. </view>
  124. <view class="fee">
  125. <label>审核后需支付费用</label>¥{{price}}
  126. </view>
  127. <view class="post"><button formType="submit">下一步,上传资料</button></view>
  128. </form>
  129. <form wx:if="{{type == 2}}" catchsubmit="next">
  130. <view class="item">
  131. <label>姓名</label>
  132. <input value="{{data.name}}" name='name' placeholder="请输入您的姓名"></input>
  133. </view>
  134. <view class="item">
  135. <label>性别</label>
  136. <picker name='sex' data-name='sex' bindchange="pickerChange" value="{{sex}}" range="{{sexArray}}">
  137. <view class="picker">
  138. {{sexArray[sex]}}
  139. </view>
  140. </picker>
  141. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  142. </view>
  143. <view class="item">
  144. <label>身份证</label>
  145. <input name='idno' value="{{data.idno}}" type="idcard" placeholder="请输入您的身份证"></input>
  146. </view>
  147. <view class="item">
  148. <label>文化程度</label>
  149. <picker name='education' data-name='record' bindchange="pickerChange" value="{{record}}" range="{{recordArray}}">
  150. <view class="picker">
  151. {{recordArray[record]}}
  152. </view>
  153. </picker>
  154. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  155. </view>
  156. <view class="item">
  157. <label>手机号</label>
  158. <input name='phone' value="{{data.phone}}" type="number" placeholder="请输入您的手机号"></input>
  159. </view>
  160. <view class="item">
  161. <label>单位全称</label>
  162. <input name='company' value="{{data.company}}" placeholder="请输入您的单位名称"></input>
  163. </view>
  164. <view class="item" wx:if="{{!class_id}}">
  165. <label>作业类别</label>
  166. <picker data-name='category' bindchange="pickerChange" value="{{category}}" range="{{categoryArray}}" range-key="name">
  167. <view class="picker">
  168. <text wx:if="{{category<0}}">请选择</text>
  169. {{categoryArray[category].name}}
  170. </view>
  171. </picker>
  172. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  173. <view wx:if="{{categoryArray[category].intro}}" class="intro">{{categoryArray[category].intro}}</view>
  174. </view>
  175. <view class="item" wx:if='{{dev!=""}}' bindtap="open">
  176. <label>设备种类</label> <text class="dev_text">{{dev}}</text>
  177. </view>
  178. <view class="item" wx:if="{{!class_id}}">
  179. <label wx:if="{{z_type == '特种作业人员'}}">准操项目</label>
  180. <label wx:if="{{z_type == '特种设备培训'}}">项目代码</label>
  181. <label wx:if="{{z_type !== '特种设备培训'&&z_type !== '特种作业人员'}}">资格类型</label>
  182. <picker data-name='subject' bindchange="pickerChange" value="{{subject}}" range="{{subjectArray}}" range-key="name">
  183. <view class="picker">
  184. <text wx:if="{{subject<0}}">请选择</text>
  185. {{subjectArray[subject].name}}
  186. </view>
  187. </picker>
  188. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  189. <view wx:if="{{subjectArray[subject].intro}}" class="intro">{{subjectArray[subject].intro}}</view>
  190. </view>
  191. <view class="item">
  192. <label>培训类型</label>
  193. <picker name='train_type' data-name='train' bindchange="pickerChange" value="{{train}}" range="{{trainArray}}" range-key="name">
  194. <view class="picker">
  195. <text wx:if="{{train<0}}">请选择</text>
  196. {{trainArray[train].name}}
  197. </view>
  198. </picker>
  199. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  200. <view wx:if="{{train>=0}}" class="intro">{{trainArray[train].intro}}</view>
  201. </view>
  202. <view class="item" wx:if="{{!class_id&&z_type!='特种作业人员'&&classList.length>0}}">
  203. <label>班级</label>
  204. <picker data-name='class_' bindchange="pickerChange" value="{{class_}}" range="{{classList}}" range-key="name">
  205. <view class="picker">
  206. <text wx:if="{{class_<0}}">请选择</text>
  207. {{classList[class_].name}}
  208. </view>
  209. </picker>
  210. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  211. <view wx:if="{{class_>=0}}" class="intro">{{classList[class_].remark}}</view>
  212. </view>
  213. <!-- <view class="item">
  214. <label>培训时间</label>
  215. <picker name='time' data-name='time' value="{{time}}" mode="date" bindchange="pickerChange">
  216. <view class="picker">
  217. {{time}}
  218. </view>
  219. </picker>
  220. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  221. </view> -->
  222. <!-- <view class="item">
  223. <label>领取方式</label>
  224. <picker name='receive_card' data-name='receive' bindchange="pickerChange" value="{{receive}}" range="{{receiveArray}}">
  225. <view class="picker">
  226. {{receiveArray[receive]}}
  227. </view>
  228. </picker>
  229. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  230. </view> -->
  231. <view class="item" wx:if="{{receive==1}}">
  232. <label>所在地区</label>
  233. <picker name='area' data-name='area' value="{{area}}" mode="region" bindchange="pickerChange">
  234. <view class="picker">
  235. {{area[0]}}{{area[1]}}{{area[2]}}
  236. </view>
  237. </picker>
  238. <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  239. </view>
  240. <view class="item" wx:if="{{receive==1}}">
  241. <label>详细地址</label>
  242. <input name='address' value="{{data.address}}" placeholder="请输入您的详细地址"></input>
  243. </view>
  244. <view class="item">
  245. <label>备注</label>
  246. <input name='remark' value="{{data.remark}}" placeholder="请输入您的备注"></input>
  247. </view>
  248. <view class="fee">
  249. <label>培训费用</label>¥{{data.price}}
  250. </view>
  251. <view class="fee">
  252. <label>审核后需支付费用</label>¥{{data.price}}
  253. </view>
  254. <view class="post"><button formType="submit">下一步,上传资料</button></view>
  255. </form>
  256. <view class="bg_dev" style="display:{{show_dev?'block':'none'}}">
  257. <view class="dev">
  258. <view>设备种类</view>
  259. <checkbox-group bindchange="checkboxChange">
  260. <label class="checkbox" wx:for="{{device_cats}}" wx:key='*this'>
  261. <checkbox value="{{item}}"/>{{item}}
  262. </label>
  263. </checkbox-group>
  264. <button bindtap="sure">确定</button>
  265. </view>
  266. </view>