index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="login-page">
  3. <view class="gradient-bg"></view>
  4. <view class="content-wrapper">
  5. <view class="logo-section">
  6. <view class="logo-outer">
  7. <image class="logo-img" :src="assets.logo" mode="aspectFill"></image>
  8. </view>
  9. <text class="app-title">ERP 智能下单系统</text>
  10. <text class="app-subtitle">简洁 · 高效 · 数字化管理</text>
  11. </view>
  12. <AccountLogin @login-success="onLoginSuccess" />
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import assets from '@/utils/assets.js';
  18. import AccountLogin from './components/AccountLogin.vue';
  19. export default {
  20. components: { AccountLogin },
  21. data() {
  22. return {
  23. assets
  24. }
  25. },
  26. methods: {
  27. onLoginSuccess() {
  28. uni.reLaunch({ url: '/pages/index/index' });
  29. }
  30. }
  31. }
  32. </script>
  33. <style scoped>
  34. .login-page {
  35. width: 100%;
  36. min-height: 100vh;
  37. background: #fff;
  38. position: relative;
  39. }
  40. .gradient-bg {
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. right: 0;
  45. height: 600rpx;
  46. background: linear-gradient(180deg, rgba(193, 0, 28, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  47. z-index: 1;
  48. }
  49. .content-wrapper {
  50. position: relative;
  51. z-index: 2;
  52. }
  53. .logo-section {
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. padding-top: 200rpx;
  58. margin-bottom: 60rpx;
  59. }
  60. .logo-outer {
  61. width: 140rpx;
  62. height: 140rpx;
  63. background: #fff;
  64. border-radius: 36rpx;
  65. box-shadow: 0 30rpx 60rpx rgba(193, 0, 28, 0.3), 0 8rpx 20rpx rgba(0, 0, 0, 0.08), inset 0 4rpx 10rpx rgba(255, 255, 255, 0.8);
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. overflow: hidden;
  70. margin-bottom: 24rpx;
  71. }
  72. .logo-img {
  73. width: 100%;
  74. height: 100%;
  75. }
  76. .app-title {
  77. font-size: 40rpx;
  78. font-weight: bold;
  79. color: #1a1a1a;
  80. letter-spacing: 2rpx;
  81. }
  82. .app-subtitle {
  83. font-size: 26rpx;
  84. color: #999;
  85. margin-top: 8rpx;
  86. letter-spacing: 6rpx;
  87. }
  88. </style>