更新页面位置
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, onMounted, watch } from "vue";
|
import { ref, computed, onMounted, watch } from "vue";
|
||||||
import Score from "@/pages/score.vue";
|
import Score from "@/pages/score/index.vue";
|
||||||
import History from "@/pages/list.vue";
|
import History from "@/pages/list/index.vue";
|
||||||
import Profile from "@/pages/profile.vue";
|
import Profile from "@/pages/profile/index.vue";
|
||||||
import Tabbar from "@/components/Tabbar.vue";
|
import Tabbar from "@/components/Tabbar.vue";
|
||||||
import SModal from "@/components/SModal.vue";
|
import SModal from "@/components/SModal.vue";
|
||||||
import EditOption from "@/components/EditOption.vue";
|
import EditOption from "@/components/EditOption.vue";
|
||||||
@@ -23,6 +23,10 @@ const toSignInPage = () => {
|
|||||||
<InputRow type="password" placeholder="confirm password" width="80vw" />
|
<InputRow type="password" placeholder="confirm password" width="80vw" />
|
||||||
<view :style="{ height: '20rpx' }"></view>
|
<view :style="{ height: '20rpx' }"></view>
|
||||||
<SButton width="80vw">Submit</SButton>
|
<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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -49,4 +53,17 @@ const toSignInPage = () => {
|
|||||||
width: 80vw;
|
width: 80vw;
|
||||||
margin-bottom: 20rpx;
|
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>
|
</style>
|
||||||
@@ -16,6 +16,10 @@ const toResetPasswordPage = () => {
|
|||||||
url: "/pages/reset-pwd",
|
url: "/pages/reset-pwd",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const signIn = () => {
|
||||||
|
uni.navigateBack();
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -27,7 +31,7 @@ const toResetPasswordPage = () => {
|
|||||||
<view class="btn-row">
|
<view class="btn-row">
|
||||||
<view @click="toResetPasswordPage"> Forgot Password? </view>
|
<view @click="toResetPasswordPage"> Forgot Password? </view>
|
||||||
</view>
|
</view>
|
||||||
<SButton width="80vw">login</SButton>
|
<SButton width="80vw" :onClick="signIn">login</SButton>
|
||||||
<view @click.stop="checked = !checked" class="agreement">
|
<view @click.stop="checked = !checked" class="agreement">
|
||||||
<image :src="`../static/${checked ? 'checked' : 'unchecked'}.png`" />
|
<image :src="`../static/${checked ? 'checked' : 'unchecked'}.png`" />
|
||||||
<text>i read and accept</text>
|
<text>i read and accept</text>
|
||||||
Reference in New Issue
Block a user