login.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="login">
  3. <statusBar :item='navBarData'></statusBar>
  4. <view class="img">
  5. <image src="http://43.139.158.220:5007/img/static/yym/image7.png" mode="aspectFill"></image>
  6. </view>
  7. <view class="mid">
  8. <view class="quan"></view>
  9. <!-- <radio value="r1" @click="radioCheck" size="10" :checked="isOK" /> -->
  10. <view class="">
  11. 我已阅读并同意<text>《教育小程序服务条款》</text>和 <text>《 隐私协议》</text>新用户自动注册
  12. </view>
  13. </view>
  14. <button class="btn" @click="gotoIndex">一键登录</button>
  15. <view class="footer" @click="goto">
  16. <text>手机号登录/账号密码登录</text>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. isOK: false,
  25. navBarData: {
  26. title: '首页',
  27. btn: 1 //判断是否显示返回按钮
  28. },
  29. };
  30. },
  31. methods: {
  32. gotoIndex() {
  33. const value = uni.setStorageSync('login', '1');
  34. uni.switchTab({
  35. url: '/pages/index/index'
  36. })
  37. },
  38. goto() {
  39. uni.navigateTo({
  40. url: "/pages/login_two/login_two"
  41. })
  42. },
  43. radioCheck() {
  44. this.isOK = !this.isOK
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss">
  50. .login {
  51. background-color: #ffffff;
  52. height: 100vh;
  53. .img {
  54. // margin-top: 150rpx;
  55. // background-color: #ccc;
  56. padding: 10vh 0;
  57. width: 750rpx;
  58. display: flex;
  59. justify-content: center;
  60. image {
  61. width: 200rpx;
  62. height: 200rpx;
  63. border-radius: 50%;
  64. }
  65. }
  66. .mid {
  67. display: flex;
  68. justify-content: flex-start;
  69. width: 750rpx;
  70. padding: 0rpx 20rpx;
  71. font-size: 13px;
  72. ::v-deep uni-radio .uni-radio-input {
  73. width: 10rpx;
  74. height: 10rpx;
  75. }
  76. .quan {
  77. flex-shrink: 0;
  78. width: 15px;
  79. height: 15px;
  80. border-radius: 50%;
  81. margin-top: 5rpx;
  82. // background-color: #4a97f2;
  83. margin-right: 10rpx;
  84. border: 1px #bdbdbd solid;
  85. }
  86. text {
  87. color: #4a97f2;
  88. }
  89. }
  90. .btn {
  91. background-color: #0056a8;
  92. color: #ffffff;
  93. border-radius: 30px;
  94. margin: 30rpx 55rpx;
  95. // padding: 0rpx 10rpx;
  96. font-size: 16px;
  97. }
  98. .footer {
  99. display: flex;
  100. justify-content: center;
  101. font-size: 14px;
  102. margin: auto;
  103. color: #666666;
  104. }
  105. }
  106. </style>