完成前往主页的过渡界面,修复身高填写界面,完成除主页外的页面

TODO:登录注册页面弹窗处理和前后端联调
master
Gary 3 months ago
parent f46f07769d
commit 5e84d8b2fe

@ -1,120 +1,120 @@
{
"pages": [
// {
// "path": "pages/transition/page1/page1",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/transition/page2/page2",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/transition/page3/page3",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/transition/page4/page4",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/transition/page5/page5",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/transition/page6/page6",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/transition/page7/page7",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*------------------------------------------------------------------------------------------------------------------*/
"pages": [
{
"path": "pages/transition/page1/page1",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/transition/page2/page2",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/transition/page3/page3",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/transition/page4/page4",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/transition/page5/page5",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/transition/page6/page6",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/transition/page7/page7",
"style": {
"navigationStyle": "custom"
}
},
/*------------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/login/account_login/account_login",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/login/register/register",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/login/forget_password/forget_password",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/login/change_password/change_password",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*------------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/login/account_login/account_login",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/login/register/register",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/login/forget_password/forget_password",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/login/change_password/change_password",
"style": {
"navigationStyle": "custom"
}
},
/*------------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/information/sex/sex",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/information/boy_height_start/boy_height_start",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/information/boy_height_roll/boy_height_roll",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/information/boy_height_end/boy_height_end",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/information/boy_weight_start/boy_weight_start",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/information/boy_weight_roll/boy_weight_roll",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/information/boy_weight_end/boy_weight_end",
// "style": {
// "navigationStyle": "custom"
// }
// },
{
"path": "pages/information/sex/sex",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/boy_height_start/boy_height_start",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/boy_height_roll/boy_height_roll",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/boy_height_end/boy_height_end",
"style": {
"navigationStyle": "custom"
}
},
/*------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/information/boy_weight_start/boy_weight_start",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/boy_weight_roll/boy_weight_roll",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/boy_weight_end/boy_weight_end",
"style": {
"navigationStyle": "custom"
}
},
/*-----------------------------------------------------------------------------------------------------*/
{
"path": "pages/information/girl_height_start/girl_height_start",
@ -122,101 +122,80 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/information/girl_height_end/girl_height_end",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/girl_height_roll/girl_height_roll",
"style": {
"navigationStyle": "custom"
}
}
// {
// "path": "pages/information/girl_weight/girl_weight",
// "style": {
// "navigationStyle": "custom"
// }
// },
// {
// "path": "pages/information/purpose/purpose",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*-------------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/homepages/home/home",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*------------------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/homepages/puppy_chat/puppy_chat",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*---------------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/homepages/community/community",
// "style": {
// "navigationStyle": "custom"
// }
// },
// /*-------------------------------------------------------------------------------------------------------------------*/
// {
// "path": "pages/homepages/user/user",
// "style": {
// "navigationStyle": "custom"
// }
// }
// /*-------------------------------------------------------------------------------------------------------------------*/,
// {
// "path": "pages/girl_height_start/girl_height_start",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "pages/girl_height_roll/girl_height_roll",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "pages/information/girl_height_end/girl_height_end",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "pages/information/girl_weight_start/girl_weight_start",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "pages/information/girl_weight_roll/girl_weight_roll",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "pages/information/girl_wieght_end/girl_wieght_end",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
// }
{
"path": "pages/information/girl_height_roll/girl_height_roll",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/girl_height_end/girl_height_end",
"style": {
"navigationStyle": "custom"
}
},
/*--------------------------------------------------------------------------------------------------------*/
{
"path": "pages/information/girl_weight_start/girl_weight_start",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/girl_weight_roll/girl_weight_roll",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/information/girl_weight_end/girl_weight_end",
"style": {
"navigationStyle": "custom"
}
},
/*----------------------------------------------------------------------------------------------------------*/
{
"path": "pages/information/purpose/purpose",
"style": {
"navigationStyle": "custom"
}
},
/*-------------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/homepages/home/home",
"style": {
"navigationStyle": "custom"
}
},
/*------------------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/homepages/puppy_chat/puppy_chat",
"style": {
"navigationStyle": "custom"
}
},
/*---------------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/homepages/community/community",
"style": {
"navigationStyle": "custom"
}
},
/*-------------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/homepages/user/user",
"style": {
"navigationStyle": "custom"
}
},
/*-------------------------------------------------------------------------------------------------------------------*/
{
"path": "pages/transition/page8/page8",
"style": {
"navigationStyle": "custom"
}
}
/*--------------------------------------------------------------------------------------------------------------*/
],
"uniIdRouter": {},
"tabBar": null

@ -0,0 +1,107 @@
<template>
<!-- 背景 -->
<view class="background">
<!-- 人物 -->
<image class="human" src="/static/information/girl_weight/pictures/human.png"></image>
<!-- 滚动条 -->
<image class="roll" @click="go_to_roll()" src="/static/information/girl_weight/pictures/roll.png"></image>
<!-- 按钮 -->
<image class="button" @click="go_to_height()" src="/static/information/girl_weight/pictures/button.png"></image>
<!-- 进度条 -->
<image class="progress" src="/static/information/girl_weight/pictures/progress.png"></image>
<!-- 文本-->
<text class="text" @click="go_to_roll()">{{weight}}</text>
</view>
</template>
<script>
export default {
data() {
return {
weight: ''
};
},
onLoad(options) {
this.weight = options.weight;
},
methods: {
navigateTo(page) {
uni.navigateTo({
url: page
});
},
go_to_height() {
this.navigateTo('/pages/information/girl_height_start/girl_height_start');
},
go_to_roll() {
this.navigateTo('/pages/information/girl_height_roll/girl_height_roll');
},
}
}
</script>
<style lang="scss">
.background {
background-image: url("/static/information/boy_weight/pictures/img.png");
background-size: cover;
background-position: center;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
/* Human 动画,从页面中部向上移动 */
.human {
position: absolute;
width: 100%;
height: 90%;
top: -10%;
object-fit: contain; /* 保持图片比例 */
}
.progress {
position: absolute;
width: 77%;
height: 7%;
object-fit: contain; /* 保持图片比例 */
opacity: 1;
top: 2%; /* 根据需要调整位置 */
}
/* Text 延迟显示 */
.roll {
position: absolute;
width: 77%;
height: 20%;
object-fit: contain; /* 保持图片比例 */
opacity: 1;
top: 55%; /* 根据需要调整位置 */
}
/* Button 延迟显示并加缩放特效,放在下方 */
.button {
position: absolute;
height: 13%;
width: 80%;
opacity: 1;
right: 10%; /* 距右边 10% */
bottom: 2%; /* 距底部 3.5% */
}
.text {
position: absolute;
text-align: center;
font-size: 1.5em;
width: 100%;
height: 20%;
top: 69%;
color: #ffffff;
}
</style>

@ -1,17 +1,87 @@
<template>
<view>
<view class="container">
<picker-view
@change="onPickerChange"
mask-style="opacity:0%"
indicator-style="height:3rem"
:value="pickerValue"
class="picker_view_box"
>
<picker-view-column>
<view v-for="(item, index) in options" :key="index" class="item">
{{ item }}
</view>
</picker-view-column>
</picker-view>
<image class="button" @click="go_to_weight_end" src="/static/information/girl_weight/pictures/button_roll.png"></image>
</view>
</template>
<script>
export default {
data() {
return {};
}
}
return {
options: this.generateWeightOptions(40, 150),
pickerValue: [15], //
};
},
methods: {
generateWeightOptions(start, end) {
const options = [];
for (let i = start; i <= end; i++) {
options.push(`${i} kg`);
}
return options;
},
onPickerChange(event) {
this.pickerValue = event.detail.value; //
},
navigateTo(page) {
uni.navigateTo({
url: page
});
},
go_to_weight_end() {
const selectedValue = this.options[this.pickerValue[0]]; //
this.navigateTo(`/pages/information/girl_weight_end/girl_weight_end?weight=${selectedValue}`); // boy_weight_end
},
},
};
</script>
<style lang="scss">
<style scoped>
.container {
display: flex;
flex-direction: column;
align-items: center; /* 水平居中 */
justify-content: center; /* 垂直居中 */
height: 100vh; /* 使容器充满整个视口 */
background-image: url("/static/information/girl_weight/pictures/bkg_roll.png");
background-size: cover;
}
</style>
.picker_view_box {
height: 42.8vh; /* 设置 picker-view 的高度 */
width: 80%; /* 宽度自适应 */
}
.item {
line-height: 2rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
height: 3rem;
color: #ffffff;
}
.button {
margin-top: 10px; /* 按钮与选择器之间的间距 */
position: absolute;
height: 13%;
width: 80%;
right: 10%; /* 距右边 10% */
bottom: 2%; /* 距底部 3.5% */
}
</style>

@ -1,17 +1,142 @@
<template>
<view>
<!-- 背景 -->
<view class="background">
<!-- 人物 -->
<image class="human" src="/static/information/girl_weight/pictures/human.png"></image>
<!-- 滚动条 -->
<image class="roll" @click="go_to_roll()" src="/static/information/girl_weight/pictures/roll.png"></image>
<!-- 按钮 -->
<image class="button" @click="go_to_height()" src="/static/information/girl_weight/pictures/button.png"></image>
<!-- 进度条 -->
<image class="progress" src="/static/information/girl_weight/pictures/progress.png"></image>
<!-- 文本-->
<text class="text" @click="go_to_roll()">65 kg</text>
</view>
</template>
<script>
export default {
data() {
return {};
methods: {
navigateTo(page) {
uni.navigateTo({
url: page
});
},
go_to_height() {
this.navigateTo('/pages/information/girl_height_start/girl_height_start');
},
go_to_roll() {
uni.navigateTo({
url:'/pages/information/girl_weight_roll/girl_weight_roll'
})
height:''
},
}
}
</script>
<style lang="scss">
.background {
background-image: url("/static/information/girl_weight/pictures/img.png");
background-size: cover;
background-position: center;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
</style>
/* Human 动画,从页面中部向上移动 */
.human {
position: absolute;
width: 100%;
height: 90%;
top:10%;
object-fit: contain; /* 保持图片比例 */
animation: moveUp 2s ease forwards;
top: 30%; /* 起始位置 */
transform: translateY(-50%); /* 垂直居中 */
}
.progress{
position: absolute;
width: 77%;
height: 7%;
object-fit: contain; /* 保持图片比例 */
animation: fadeIn 1s ease 2s forwards; /* 2秒后显示 */
opacity: 0;
top: 2%; /* 根据需要调整位置 */
}
/* Text 延迟显示 */
.roll {
position: absolute;
width: 77%;
height: 20%;
object-fit: contain; /* 保持图片比例 */
animation: fadeIn 1s ease 2s forwards; /* 2秒后显示 */
opacity: 0;
top: 55%; /* 根据需要调整位置 */
}
/* Button 延迟显示并加缩放特效,放在下方 */
.button {
position: absolute;
height: 13%;
width: 80%;
animation: fadeInScale 1s ease 2.5s forwards; /* 2.5秒后显示并缩放 */
opacity: 0;
right: 10%; /* 距右边 10% */
bottom: 2%; /* 距底部 3.5% */
}
.text{
position: absolute;
font-size: 1.5em;
text-align: center;
width: 100%;
height: 20%;
top: 69%;
animation: fadeIn 1s ease 2s forwards; /* 2秒后显示 */
opacity: 0;
color:#ffffff;
}
/* 定义 human 上移动画 */
@keyframes moveUp {
from {
top: 70%;
}
to {
top: 35%; /* 移动到页面顶部 10% */
}
}
/* Text 和 Button 的渐入动画 */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Button 的缩放渐入动画 */
@keyframes fadeInScale {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
</style>

@ -1,17 +0,0 @@
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {};
}
}
</script>
<style lang="scss">
</style>

@ -45,7 +45,7 @@ export default {
methods: {
click() {
uni.navigateTo({
url: '/pages/homepages/home/home', // 使 navigateTo
url: '/pages/transition/page8/page8', //
});
},
onSwiperChange(e) {

@ -67,7 +67,7 @@ export default {
goToNextPage() {
const targetPage = this.isBoySelected
? "/pages/information/boy_weight_start/boy_weight_start"
: "/pages/information/girl_weight/girl_weight";
: "/pages/information/girl_weight_start/girl_weight_start";
uni.navigateTo({
url: targetPage,
});

@ -0,0 +1,52 @@
<template>
<view class="background">
<!--按钮-->
<image class="button" @click="click" src="@/static/transition/page8/pictures/button.png"></image>
</view>
</template>
<script>
export default {
methods: {
click() {
uni.navigateTo({
url: '/pages/homepages/home/home' //
});
}
}
}
</script>
<style lang="scss">
@keyframes fadeIn {
from {
opacity: 0; /* 起始透明度 */
}
to {
opacity: 1; /* 结束透明度 */
}
}
.background {
background-image: url("@/static/transition/page8/pictures/background.png");
background-size: cover;
background-position: center;
height: 100vh;
display: flex;
flex-direction: column; /* 纵向排列 */
align-items: center; /* 水平居中 */
justify-content: flex-end; /* 使内容向底部对齐 */
position: relative; /* 为绝对定位子元素提供相对定位的上下文 */
}
.button {
position: absolute; /* 绝对定位 */
width: 36%;
height: 6%;
bottom: 5%; /* 距离底部 20% 的位置 */
left: 50%; /* 水平居中 */
transform: translateX(-50%); /* 通过 translateX 使其居中 */
animation: fadeIn 3s forwards; /* 添加渐变动画 */
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

@ -1,8 +1,8 @@
{
"hash": "48f6c93b",
"configHash": "badd50c8",
"hash": "3dcffc29",
"configHash": "cc60d382",
"lockfileHash": "e3b0c442",
"browserHash": "debd2ea0",
"browserHash": "e601f541",
"optimized": {},
"chunks": {}
}
Loading…
Cancel
Save