pcLoginSuccess.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="pcLogins" :class="{bgcolor: !hidden}">
  3. <u-navbar :is-back="false" title="登录成功" :border-bottom="false" title-color="#333333" back-icon-color="#ffffff">
  4. </u-navbar>
  5. <u-line color="#D6D6DB" />
  6. <view class="contents">
  7. <view class="success" :class="{hidsuce: !hidden}">
  8. <image src="/static/me/lg_success.png"></image>
  9. <view class="success_word">登录成功</view>
  10. <view class="pc_learn">你可以在电脑端学习了</view>
  11. </view>
  12. <view class="bg_pic">
  13. <image class="poster" src="/pages4/static/poster.jpg"></image>
  14. </view>
  15. </view>
  16. <view v-if="!hidden" class="toLearn" @click="toHome()"></view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'pcLoginSuccess',
  22. data() {
  23. return {
  24. hidden: true,
  25. }
  26. },
  27. onShow() {
  28. setTimeout(() => {
  29. this.hidden = false
  30. }, 1000)
  31. },
  32. methods: {
  33. toHome() {
  34. uni.switchTab({
  35. url: '/pages/index/index'
  36. })
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .pcLogins {
  43. width: 100%;
  44. height: 100vh;
  45. }
  46. .bgcolor {
  47. background-color: #D2E8FF;
  48. }
  49. .success {
  50. width: 100%;
  51. height: 330rpx;
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. transition: all 0.5s;
  56. >image {
  57. width: 80rpx;
  58. height: 80rpx;
  59. margin: 58rpx 0rpx 32rpx;
  60. }
  61. .success_word {
  62. font-size: 32rpx;
  63. font-weight: 500;
  64. color: #222222;
  65. margin-bottom: 12rpx;
  66. }
  67. .pc_learn {
  68. font-weight: 400;
  69. color: #777777;
  70. font-size: 28rpx;
  71. }
  72. }
  73. .hidsuce {
  74. height: 0rpx;
  75. transition: all 0.5s;
  76. }
  77. .bg_pic {
  78. width: 100%;
  79. height: 1436rpx;
  80. .poster {
  81. width: 100%;
  82. height: 100%;
  83. }
  84. }
  85. .toLearn {
  86. position: fixed;
  87. right: 0;
  88. bottom: 0;
  89. width: 60%;
  90. height: 50vh;
  91. // background: #222222;
  92. }
  93. </style>