Files
ops2_uniapp/pages/user/user.vue
T
kevin 8dce0346a7 up
Signed-off-by: 吴文峰 <kevin@lmve.net>
2026-04-17 20:46:21 +08:00

56 lines
866 B
Vue
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="container">
<view class="header">
<text class="settings-icon" @click="goToSettings"></text>
</view>
<button class="login-btn" @click="goToLogin">登录</button>
</view>
</template>
<script setup>
const goToLogin = () => {
uni.navigateTo({
url: '/pages/login/login'
})
}
const goToSettings = () => {
uni.navigateTo({
url: '/pages/settings/settings'
})
}
</script>
<style scoped>
.container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
background-color: #f5f5f5;
}
.header {
width: 100%;
display: flex;
justify-content: flex-end;
padding: 20rpx 30rpx;
}
.settings-icon {
font-size: 48rpx;
}
.login-btn {
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
background-color: #007AFF;
color: #FFFFFF;
font-size: 28rpx;
border-radius: 40rpx;
margin-top: 200rpx;
}
</style>