更新页面位置

This commit is contained in:
kron
2026-01-06 10:32:27 +08:00
parent ec48de4970
commit 493591c286
11 changed files with 25 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
<script setup>
import { ref, computed, onMounted, watch } from "vue";
import Score from "@/pages/score.vue";
import History from "@/pages/list.vue";
import Profile from "@/pages/profile.vue";
import Score from "@/pages/score/index.vue";
import History from "@/pages/list/index.vue";
import Profile from "@/pages/profile/index.vue";
import Tabbar from "@/components/Tabbar.vue";
import SModal from "@/components/SModal.vue";
import EditOption from "@/components/EditOption.vue";

View File

@@ -23,6 +23,10 @@ const toSignInPage = () => {
<InputRow type="password" placeholder="confirm password" width="80vw" />
<view :style="{ height: '20rpx' }"></view>
<SButton width="80vw">Submit</SButton>
<view class="to-sign-up">
<text>have an account? </text>
<view hover-class="none" @click.stop="toSignInPage">sign in ></view>
</view>
</view>
</template>
@@ -49,4 +53,17 @@ const toSignInPage = () => {
width: 80vw;
margin-bottom: 20rpx;
}
.to-sign-up {
font-size: 24rpx;
color: #999;
display: flex;
justify-content: center;
align-items: center;
flex: 1;
}
.to-sign-up > view {
font-size: 24rpx;
color: #287fff;
margin-left: 20rpx;
}
</style>

View File

@@ -16,6 +16,10 @@ const toResetPasswordPage = () => {
url: "/pages/reset-pwd",
});
};
const signIn = () => {
uni.navigateBack();
};
</script>
<template>
@@ -27,7 +31,7 @@ const toResetPasswordPage = () => {
<view class="btn-row">
<view @click="toResetPasswordPage"> Forgot Password? </view>
</view>
<SButton width="80vw">login</SButton>
<SButton width="80vw" :onClick="signIn">login</SButton>
<view @click.stop="checked = !checked" class="agreement">
<image :src="`../static/${checked ? 'checked' : 'unchecked'}.png`" />
<text>i read and accept</text>