TuanUnLoginPage.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="un-login-page">
  3. <image class="logo" src="../../../static/images/new-user/fee.icon.png"></image>
  4. <view class="page-title">团蜂</view>
  5. <view class="tip">
  6. <view>为了给您提供更好的服务</view>
  7. <view>我们需要您的授权哦~</view>
  8. </view>
  9. <button class="uni-btn" @click="go('/pages/login/login')">立即登录</button>
  10. <button class="uni-btn skip" @click="handleSkip">暂时跳过</button>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. methods: {
  16. handleSkip() {
  17. uni.switchTab({ url: '/' })
  18. }
  19. }
  20. }
  21. </script>
  22. <style lang="less" scoped>
  23. .un-login-page {
  24. position: fixed;
  25. top: 0;
  26. left: 0;
  27. right: 0;
  28. bottom: 0;
  29. background-color: #fff;
  30. z-index: 1000000;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. flex-direction: column;
  35. .logo {
  36. width: 100upx;
  37. height: 100upx;
  38. border-radius: 50%;
  39. }
  40. .page-title {
  41. font-size: 32upx;
  42. color: #000;
  43. font-weight: 500;
  44. margin-top: 20upx;
  45. margin-bottom: 40upx;
  46. }
  47. .tip {
  48. font-size: 28upx;
  49. line-height: 1.5;
  50. color: #3d3d3d;
  51. > view {
  52. text-align: center;
  53. }
  54. }
  55. .uni-btn {
  56. width: 80vw;
  57. height: 80upx;
  58. color: #fff;
  59. background-color: #fd7b2e;
  60. border-radius: 8upx;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. font-size: 28upx;
  65. margin-top: 100upx;
  66. transition: all 350ms;
  67. &.skip {
  68. background-color: #fff;
  69. margin-top: 20upx;
  70. color: #ccc;
  71. }
  72. &:active {
  73. opacity: 0.7;
  74. }
  75. }
  76. }
  77. </style>