pcLoginSuccess.vue 2.2 KB

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