index.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="page-box login-box">
  3. <view class="login-form">
  4. <view class="from-title">
  5. <view class="title-list">
  6. <view class="title-text dominant-text-color sys-size-28">验证码登录</view>
  7. <view class="title-text sys-size-28">密码登录</view>
  8. </view>
  9. <view class="title-bg"></view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. components: {
  17. },
  18. data() {
  19. return {
  20. }
  21. },
  22. mounted() {
  23. },
  24. methods: {
  25. login() {
  26. uni.redirectTo({
  27. url: '/pages/index/index'
  28. })
  29. },
  30. },
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. @import "/static/css/login.css";
  35. .page-box{
  36. background-color: #EEF1F7;
  37. padding-top: 370rpx;
  38. .login-form{
  39. margin: 0 30rpx;
  40. height: 630rpx;
  41. border-radius: 50rpx;
  42. background-color: rgba(255,255,255,0.5);
  43. .from-title{
  44. height: 110rpx;
  45. position: relative;
  46. .title-bg{
  47. position: absolute;
  48. border-radius: 50rpx 50rpx 0 0;
  49. top: 0;
  50. left: 0;
  51. height:110rpx;
  52. width: 50%;
  53. background-color: #fff;
  54. transition: .5s ease;
  55. z-index: 0;
  56. }
  57. .title-list{
  58. display: flex;
  59. justify-content: space-between;
  60. z-index: 1;
  61. position: relative;
  62. .title-text{
  63. width: 50%;
  64. height: 110rpx;
  65. }
  66. }
  67. }
  68. }
  69. }
  70. </style>