login.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="login">
  3. <view class="img">
  4. <image src="../../static/logo.png" mode="aspectFill"></image>
  5. </view>
  6. <view class="mid">
  7. <!-- <view class="quan"></view> -->
  8. <radio value="r1" @click="radioCheck" :checked="isOK" />
  9. <view class="">
  10. 我已阅读并同意<text>《教育小程序服务条款》</text>和 <text>《 隐私协议》</text>新用户自动注册
  11. </view>
  12. </view>
  13. <button class="btn">一键登录</button>
  14. <view class="footer" @click="goto">
  15. <text>手机号登录/账号密码登录</text>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. isOK:false
  24. };
  25. },
  26. methods:{
  27. goto(){
  28. uni.navigateTo({
  29. url:"/pages/login_two/login_two"
  30. })
  31. },
  32. radioCheck(){
  33. this.isOK=!this.isOK
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. .login{
  40. .img{
  41. // margin-top: 150rpx;
  42. // background-color: #ccc;
  43. padding: 150rpx 0;
  44. width: 750rpx;
  45. display: flex;
  46. justify-content: center;
  47. image{
  48. width: 200rpx;
  49. height: 200rpx;
  50. border-radius: 50%;
  51. }
  52. }
  53. .mid{
  54. display: flex;
  55. justify-content: flex-start;
  56. width: 750rpx;
  57. padding: 0rpx 20rpx;
  58. font-size: 13px;
  59. /deep/ .uni-radio-input{
  60. width: 15px;
  61. height: 15px;
  62. }
  63. text{
  64. color: #4a97f2;
  65. }
  66. }
  67. .btn{
  68. background-color: #0056a8;
  69. color: #ffffff;
  70. border-radius: 30px;
  71. margin: 30rpx 35rpx;
  72. // padding: 0rpx 10rpx;
  73. font-size: 16px;
  74. }
  75. .footer{
  76. display: flex;
  77. justify-content: center;
  78. font-size: 14px;
  79. margin: auto;
  80. color: #666666;
  81. }
  82. }
  83. </style>