phoneLogin.wxml 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <view class="pageContainer">
  2. <view class="pageTitle">手机号码登录/注册</view>
  3. <view class="inputContent">
  4. <view class="inputItem flex-c">
  5. <input type='number' maxlength="11" bindinput='changeInput' data-type="1" value="{{phone}}" placeholder='请输入手机号码'></input>
  6. </view>
  7. <view class="inputItem code flex-c-bet">
  8. <view class="inputBox flex-c-bet">
  9. <input type='text' maxlength="11" bindinput='changeInput' data-type="2" value="{{code}}" placeholder='请输入验证码'></input>
  10. <view class="emptyCode flex-c-c" bind:tap="emptyCode" wx:if="{{code}}">
  11. <image class="icon" src="/static/icon/icon_input_x.png"></image>
  12. </view>
  13. </view>
  14. <view class="getCode flex-c-c" wx:if="{{!isCode}}" bind:tap="getCode">获取验证码</view>
  15. <view class="getCode sel flex-c-c" wx:if="{{isCode}}">重新获取{{sunTime}}S</view>
  16. </view>
  17. </view>
  18. <view class="submitLogin flex-c-c {{isOk?'sel':''}}" bind:tap="submitLogin">登录/注册</view>
  19. <view class="explainBox flex-c" bind:tap="changSelected">
  20. <view class="selectBox flex-c-c">
  21. <image wx:if="{{!selected}}" class="icon" src="/static/icon/icon_select_off.png" mode="aspectFill"></image>
  22. <image wx:if="{{selected}}" class="icon" src="/static/icon/icon_select_on.png" mode="aspectFill"></image>
  23. </view>
  24. <view class="explainText flex-c">
  25. <view>已阅读并同意原味公明腊肠优选</view>
  26. <view class="lan" catchtap="toPage" data-type='1'>《服务协议》</view>
  27. <view class="lan" catchtap="toPage" data-type='2'>《隐私协议》</view>
  28. </view>
  29. </view>
  30. </view>