Signed-off-by: 吴文峰 <kevin@lmve.net>

This commit is contained in:
2026-04-16 20:36:03 +08:00
commit 3bb51d0794
29 changed files with 1063 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<template>
<view class="container">
<text class="placeholder">主页</text>
</view>
</template>
<script setup>
</script>
<style scoped>
.container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.placeholder {
font-size: 32rpx;
color: #999;
}
</style>
+64
View File
@@ -0,0 +1,64 @@
<template>
<view class="container">
<view class="form">
<input class="input" type="text" v-model="username" placeholder="请输入用户名" />
<input class="input" type="password" v-model="password" placeholder="请输入密码" />
<button class="submit-btn" @click="handleLogin">登录</button>
</view>
</view>
</template>
<script setup>
import { ref } from 'vue'
const username = ref('')
const password = ref('')
const handleLogin = () => {
if (!username.value || !password.value) {
uni.showToast({
title: '请输入用户名和密码',
icon: 'none'
})
return
}
// TODO: 调用登录接口
console.log('登录信息:', username.value, password.value)
}
</script>
<style scoped>
.container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
padding: 40rpx;
}
.form {
width: 100%;
}
.input {
height: 90rpx;
line-height: 90rpx;
padding: 0 30rpx;
margin-bottom: 30rpx;
background-color: #FFFFFF;
border-radius: 10rpx;
font-size: 28rpx;
}
.submit-btn {
width: 100%;
height: 90rpx;
line-height: 90rpx;
background-color: #007AFF;
color: #FFFFFF;
font-size: 32rpx;
border-radius: 10rpx;
margin-top: 20rpx;
}
</style>
+23
View File
@@ -0,0 +1,23 @@
<template>
<view class="container">
<text class="placeholder">消息</text>
</view>
</template>
<script setup>
</script>
<style scoped>
.container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.placeholder {
font-size: 32rpx;
color: #999;
}
</style>
+23
View File
@@ -0,0 +1,23 @@
<template>
<view class="container">
<text class="placeholder">订单</text>
</view>
</template>
<script setup>
</script>
<style scoped>
.container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.placeholder {
font-size: 32rpx;
color: #999;
}
</style>
+23
View File
@@ -0,0 +1,23 @@
<template>
<view class="container">
<text class="placeholder">设置</text>
</view>
</template>
<script setup>
</script>
<style scoped>
.container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
background-color: #f5f5f5;
}
.placeholder {
font-size: 32rpx;
color: #999;
}
</style>
+54
View File
@@ -0,0 +1,54 @@
<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>