user.wxml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- 未登录 -->
  2. <view class="no_login" wx:if='{{status == 0}}'>
  3. <view class="title">看更多内容请注册报名</view>
  4. <view class='avatar'>
  5. <image src="../../images/logo.png"></image>
  6. </view>
  7. <view class="login">
  8. <!-- <input bindinput='inputchange' placeholder="请输入您的代码" value="{{usercode}}"></input> -->
  9. <button bind:tap="login">注册</button>
  10. </view>
  11. <view class="cancel">
  12. <button bind:tap="cancel">取消</button>
  13. </view>
  14. <!-- <button class="contactus" open-type="contact">咨询</button> -->
  15. </view>
  16. <view class="no_login" wx:if='{{status == 1}}'>
  17. <view class="title">欢迎来到顽主杯实盘大赛</view>
  18. <view class='avatar'>
  19. <image src="../../images/logo.png"></image>
  20. </view>
  21. <view class="login">
  22. <view><input type="number" placeholder-style="color:#999" bindinput='inputchange' placeholder="请输入手机号"></input></view>
  23. <view class="yzm">
  24. <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
  25. <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
  26. <view class="disabled" wx:else>{{text}}</view>
  27. </view>
  28. <button bindtap="login1">登录</button>
  29. </view>
  30. </view>
  31. <view class="no_login" wx:if='{{status == 2}}'>
  32. <view class="title" style="margin-bottom: 50rpx;">为了账号安全,请先绑定手机号</view>
  33. <view class="login">
  34. <view><input type="number" placeholder-style="color:#999" bindinput='inputchange' placeholder="请输入手机号"></input></view>
  35. <view class="yzm">
  36. <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
  37. <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
  38. <view class="disabled" wx:else>{{text}}</view>
  39. </view>
  40. <button bindtap="login2">绑定</button>
  41. </view>
  42. </view>
  43. <view class="no_login" wx:if='{{status == 3}}'>
  44. <view class="title">看更多内容请注册报名</view>
  45. <view class='avatar'>
  46. <image src="../../images/logo.png"></image>
  47. </view>
  48. <navigator url="../apply/apply?type=2"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>报名选手(参赛)</navigator>
  49. <navigator style="background: none;color:#D94B24;" url="../apply/apply?type=1"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>注册游客(观赛)</navigator>
  50. <navigator style="background: none;color:#D94B24;" bind:tap="pushMessage"><image style="width: 18px;" mode="widthFix" src="../../images/zx.png"></image> 联系客服</navigator>
  51. </view>
  52. <!-- 上传头像和昵称 -->
  53. <view wx:if='{{status == 10}}'>
  54. <text class="weui-input">头像:</text>
  55. <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
  56. <image class="avatar" src="{{avatarUrl}}"></image>
  57. </button>
  58. <view class="weui-input"><text>昵称:</text><input type="nickname" bindinput="nameChange" placeholder="请输入昵称"/>
  59. </view>
  60. <button class="btn" bindtap="register">登录</button>
  61. </view>