authInfo.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template name="authInfo">
  2. <view class="plv-auth-info" wx:if="{{ type === 'name' }}">
  3. {{ name }}
  4. <input type="text" data-index="{{ index }}" bindinput="infoInput" placeholder="{{ placeholder }}"/>
  5. </view>
  6. <view class="plv-auth-info" wx:if="{{ type === 'number' }}">
  7. {{ name }}
  8. <input type="digit" data-index="{{ index }}" bindinput="infoInput" placeholder="{{ placeholder }}"/>
  9. </view>
  10. <view class="plv-auth-info" wx:if="{{ type === 'text' }}">
  11. {{ name }}
  12. <input type="text" data-index="{{ index }}" bindinput="infoInput" placeholder="{{ placeholder }}"/>
  13. </view>
  14. <view class="plv-auth-info" wx:if="{{ type === 'mobile' }}">
  15. {{ name }}
  16. <input bindinput="telInput" type="number" placeholder="{{ placeholder }}"/>
  17. </view>
  18. <view wx:if="{{ type === 'mobile' && sms === 'Y' }}">
  19. <view class="plv-auth-info">
  20. <input bindinput="kaptchaInput" placeholder="请输入验证码"/>
  21. <image bindtap="getInfoImage" src="{{ infoImage }}" />
  22. </view>
  23. <view class="plv-auth-info">
  24. <input bindinput="msgInput" placeholder="短信验证码"/>
  25. <button
  26. bindtap="getInfoMsg"
  27. plain
  28. class="plv-info__get__msg {{ disable ? 'btn-disabled' : '' }}">{{ smsBtnText }}</button>
  29. </view>
  30. </view>
  31. <view class="plv-auth-info" wx:if="{{ type === 'option' }}">
  32. <text>{{ name }}</text>
  33. <picker bindchange="bindPickerChange" data-index="{{ index }}" value="{{ infoParams[index] }}" range="{{ options }}">
  34. <view class="picker">
  35. {{ options[infoParams[index]] }}
  36. </view>
  37. </picker>
  38. </view>
  39. </template>