创建简单登录页面,然后调试成功

This commit is contained in:
2026-06-07 11:33:38 +08:00
parent 78192a2f61
commit aebd264d91
3 changed files with 181 additions and 3 deletions
+35
View File
@@ -0,0 +1,35 @@
<template>
<view>
<image class="logo" src="/static/logo.png"></image>
<text class="title">{{title}}</text>
<button @click="goLogin()">去登陆</button>
需要一个导航栏
</view>
</template>
<script setup lang="uts">
const title = ref(true)
title.value = false
function goLogin() {
uni.navigateTo({
url: '/pages/auth/login'
})
}
</script>
<style>
.logo {
height: 100px;
width: 100px;
margin: 100px auto 25px auto;
}
.title {
font-size: 18px;
color: #8f8f94;
text-align: center;
}
</style>