| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <view class="login-page">
- <view class="gradient-bg"></view>
- <view class="content-wrapper">
- <view class="logo-section">
- <view class="logo-outer">
- <image class="logo-img" :src="assets.logo" mode="aspectFill"></image>
- </view>
- <text class="app-title">ERP 智能下单系统</text>
- <text class="app-subtitle">简洁 · 高效 · 数字化管理</text>
- </view>
- <AccountLogin @login-success="onLoginSuccess" />
- </view>
- </view>
- </template>
- <script>
- import assets from '@/utils/assets.js';
- import AccountLogin from './components/AccountLogin.vue';
- export default {
- components: { AccountLogin },
- data() {
- return {
- assets
- }
- },
- methods: {
- onLoginSuccess() {
- uni.reLaunch({ url: '/pages/index/index' });
- }
- }
- }
- </script>
- <style scoped>
- .login-page {
- width: 100%;
- min-height: 100vh;
- background: #fff;
- position: relative;
- }
- .gradient-bg {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- height: 600rpx;
- background: linear-gradient(180deg, rgba(193, 0, 28, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
- z-index: 1;
- }
- .content-wrapper {
- position: relative;
- z-index: 2;
- }
- .logo-section {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding-top: 200rpx;
- margin-bottom: 60rpx;
- }
- .logo-outer {
- width: 140rpx;
- height: 140rpx;
- background: #fff;
- border-radius: 36rpx;
- 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);
- display: flex;
- align-items: center;
- justify-content: center;
- overflow: hidden;
- margin-bottom: 24rpx;
- }
- .logo-img {
- width: 100%;
- height: 100%;
- }
- .app-title {
- font-size: 40rpx;
- font-weight: bold;
- color: #1a1a1a;
- letter-spacing: 2rpx;
- }
- .app-subtitle {
- font-size: 26rpx;
- color: #999;
- margin-top: 8rpx;
- letter-spacing: 6rpx;
- }
- </style>
|