login.vue
1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<template>
<view class="role-entry-page">
<!-- 全屏背景图 -->
<image class="page-bg" src="@/static/bg.png" mode="aspectFill"></image>
<!-- 顶部 Logo 区域 -->
<view class="header-wrapper">
<view class="logo-box">
<image class="logo" src="@/static/wx_logo.png" mode="aspectFit"></image>
</view>
</view>
<!-- 功能按钮区域 -->
<view class="btn-container">
<view @click="goToPage('/personal/addVip_per')">
<image src="@/static/btn01.png" class="btn-item"></image>
</view>
<view @click="goToPage('/personal/home')">
<image src="@/static/btn02.png" class="btn-item"></image>
</view>
<view @click="goToPage('/login/loginC')">
<image src="@/static/btn03.png" class="btn-item"></image>
</view>
</view>
</view>
</template>
<script setup>
import { ref } from 'vue'
import {onShow} from '@dcloudio/uni-app'
onShow(() => {
uni.hideLoading();
})
const goToPage = (url) => {
uni.navigateTo({
url,
})
}
</script>
<style lang="scss" scoped>
.role-entry-page {
width: 100%;
min-height: 100vh;
position: relative;
padding: 20rpx;
box-sizing: border-box;
}
.page-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.header-wrapper {
text-align: center;
padding: 40rpx 0;
border-radius: 16rpx;
margin-bottom: 40rpx;
}
.btn-container {
display: flex;
justify-content: space-between;
padding: 0 40rpx;
img, image {
width: 90px;
}
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 999;
}
.loading-content {
color: white;
font-size: 28rpx;
}
</style>