startup.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="startup">
  3. <view class="status_bar"></view>
  4. <view class="startup_content">
  5. <image class="img1" mode="widthFix" src="../../static/startup_2.png"></image>
  6. </view>
  7. <view class="startup_content_2">
  8. <image class="img2" mode="widthFix" src="../../static/startup_3.png"></image>
  9. </view>
  10. <view class="startup_content_3 mt-40">
  11. Efficiency improvement
  12. </view>
  13. <view class="startup_content_4 mt-30">
  14. 助力酒店、轰趴馆效率提升
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. };
  23. },
  24. mounted() {
  25. //判断是否登录 没登录进 登录直接进主页
  26. setTimeout(()=>{
  27. if(uni.getStorageSync('userInfo')){
  28. uni.switchTab({
  29. url: '../book/index/index',
  30. success: res => {},
  31. fail: () => {},
  32. complete: () => {}
  33. });
  34. }else{
  35. uni.navigateTo({
  36. url: '../index/index',
  37. success: res => {},
  38. fail: () => {},
  39. complete: () => {}
  40. });
  41. }
  42. },1000)
  43. }
  44. }
  45. </script>
  46. <style scoped lang="scss">
  47. .status_bar {
  48. height: var(--status-bar-height);
  49. }
  50. .startup {
  51. width: 100%;
  52. height: 100vh;
  53. overflow: hidden;
  54. background: url(../../static/startup_1.png);
  55. background-size: 100% auto;
  56. background-repeat: no-repeat;
  57. background-position: left bottom;
  58. .startup_content {
  59. text-align: center;
  60. margin-top: 200rpx;
  61. .img1{
  62. width: 200rpx;
  63. border-radius: 100rpx;
  64. box-shadow: 15rpx 20rpx 40rpx #007AFF;
  65. }
  66. }
  67. .startup_content_2{
  68. text-align: center;
  69. margin-top: 50rpx;
  70. .img2{
  71. width: 254rpx;
  72. }
  73. }
  74. .startup_content_3{
  75. text-align: center;
  76. font-size: 36rpx;
  77. color: #555555;
  78. font-weight: bold;
  79. }
  80. .startup_content_4{
  81. text-align: center;
  82. font-size: 30rpx;
  83. color: #999999;
  84. width: 100%;
  85. font-weight: bold;
  86. }
  87. }
  88. </style>