application.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <view class="number">
  2. <view class="number-list">
  3. <view class="number-shu">
  4. <view class="number-text" style="background:#6282f4;">1</view>
  5. <view class="number-xian" style="color:{{current>0?'#6282f4':'#999'}};">-----------</view>
  6. <view class="number-text" style="background:{{current>0?'#6282f4':'#999'}};">2</view>
  7. <view class="number-xian" style="color:{{current==2?'#6282f4':'#999'}};">-----------</view>
  8. <view class="number-text" style="background:{{current==2?'#6282f4':'#999'}};">3</view>
  9. </view>
  10. <view class="number-title">
  11. <view style="color:#6282f4;">上传图片</view>
  12. <view style="color:{{current>0?'#6282f4':'#999'}};">填写资料</view>
  13. <view style="color:{{current==2?'#6282f4':'#999'}};">提交审核</view>
  14. </view>
  15. </view>
  16. </view>
  17. <form bindsubmit="formSubmit">
  18. <swiper current="{{swipercurrent}}" bindchange="swiper">
  19. <swiper-item>
  20. <view class="photo">
  21. <view class="photo-title">拍摄一张免冠头像照</view>
  22. <view class="photo-content">照片要保证光线充足,半身照要足够清晰</view>
  23. <view class="photo-images" bindtap="photo" wx:if='{{!photo}}'>
  24. <image src="/images/photo.png"></image>
  25. <text>选择图库</text>
  26. </view>
  27. <image wx:if='{{photo}}' bindtap="photo" mode="aspectFill" class='photo-show' src='{{photo}}'></image>
  28. </view>
  29. </swiper-item>
  30. <swiper-item wx:if='{{photo}}'>
  31. <view class="form">
  32. <view class="input">
  33. <view class="input-name"><text>访</text><text>客</text><text>姓名</text></view>
  34. <view>:</view>
  35. <input bindblur="name" name='name'></input>
  36. </view>
  37. <view class="input">
  38. <view class="input-name"><text>身</text><text>份</text><text>类</text><text>型</text></view>
  39. <view>:</view>
  40. <view class="picker">
  41. <picker name='type' bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
  42. <view class="weui-input">
  43. <view>{{array[index]}}</view>
  44. <image src='/images/jiantou-bottom.png'></image>
  45. </view>
  46. </picker>
  47. </view>
  48. </view>
  49. <view class="input">
  50. <view class="input-name"><text>身</text><text>份</text><text>证</text><text>号</text></view>
  51. <view>:</view>
  52. <input bindblur="idcard" maxlength="18" type="number" name='idcard'></input>
  53. </view>
  54. <view class="input">
  55. <view class="input-name"><text>手</text><text>机</text><text>号</text><text>码</text></view>
  56. <view>:</view>
  57. <input bindblur="phone" maxlength="11" type="number" name='phone'></input>
  58. </view>
  59. <!-- <view class="input">
  60. <view class="input-name"><text>验</text><text>证</text><text>码</text></view>
  61. <view>:</view>
  62. <input maxlength="6" type="number" name='code' style="width:240rpx"></input>
  63. <button bindtap="{{codetext>0?'':'code'}}" class="code">{{codetext}}</button>
  64. </view> -->
  65. <view class="textarea">
  66. <view class="input-name"><text>通</text><text>行</text><text>原</text><text>因</text></view>
  67. <view>:</view>
  68. <textarea maxlength="28" placeholder="最多输入28个汉字" bindblur="text" name='text'></textarea>
  69. </view>
  70. </view>
  71. </swiper-item>
  72. <swiper-item wx:if='{{photo&&isYesno}}'>
  73. <view class="result">
  74. <view style="padding-top:40rpx;text-align:center">
  75. <view wx:if='{{!photo}}' class="photo-images" style="margin:auto;">
  76. <image style="width:130rpx;height:130rpx;" src="/images/default-urser.png"></image>
  77. </view>
  78. <image wx:if='{{photo}}' bindtap="previewImage" mode="aspectFill" style="margin-top:0rpx;" class='photo-show' src='{{photo}}'></image>
  79. <view class="result-content" style="margin-top:20rpx;">
  80. <view class="result-name">访客姓名:</view>
  81. <view class="result-data">{{name?name:'未填'}}</view>
  82. </view>
  83. <view class="result-content">
  84. <view class="result-name">身份类型:</view>
  85. <view class="result-data">{{array[index]}}</view>
  86. </view>
  87. <view class="result-content">
  88. <view class="result-name">身份证号:</view>
  89. <view class="result-data">{{idcard?idcard:'未填'}}</view>
  90. </view>
  91. <view class="result-content">
  92. <view class="result-name">手机号码:</view>
  93. <view class="result-data">{{phone?phone:'未填'}}</view>
  94. </view>
  95. <view class="result-content">
  96. <view class="result-name">通行原因:</view>
  97. <view class="result-data1" style="text-align:left;word-break:break-all;">{{text?text:'未填'}}</view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="ps">
  102. <image src="/images/ps.png"></image>
  103. <view>审核结果会以短信形式发送到当前手机号,请注意查收</view>
  104. </view>
  105. </swiper-item>
  106. </swiper>
  107. <view class="bottom">
  108. <button class="next" bindtap="{{current>0?'up':''}}" wx:if="{{current>0}}">上一步</button>
  109. <button class="next" bindtap="{{current==2?'':'next'}}" formType="{{current==2?'submit':''}}">{{current==2?'提交':'下一步'}}</button>
  110. </view>
  111. </form>