hldy_xcx/pages/oldmanindex/oldmansuccess.vue

134 lines
2.8 KiB
Vue
Raw Normal View History

2025-09-19 17:12:59 +08:00
<template>
<div class="container">
<!-- <view class="white-content"> -->
2025-10-17 10:51:10 +08:00
<image style="width: 200rpx;height:200rpx" :src="isjianhu?`https://www.focusnu.com/media/directive/index/jumpImge/jianhu.png`: `https://www.focusnu.com/media/directive/index/jumpImge/addold.png`" />
2025-09-19 17:12:59 +08:00
<view class="white-font">
2026-02-09 15:06:54 +08:00
尊敬的用户您已成功{{ ischange? '修改':"添加" }}{{ isjianhu?`监护人`: `长者` }}信息
2025-09-19 17:12:59 +08:00
</view>
<view class="bottom-font">
2026-02-09 15:06:54 +08:00
<!-- <text style="color: #068DFF;">{{ seconds }}秒后</text>自动跳转到长者端 ... -->
{{ ischange? '请等待机构审核':"" }}
2025-09-19 17:12:59 +08:00
</view>
<!-- </view> -->
2026-02-09 15:06:54 +08:00
<view class="bottom-button" @click="goToBack">
我的长者
</view>
2025-09-19 17:12:59 +08:00
</div>
</template>
<script setup>
import {
ref,
reactive
} from 'vue'
import {
onLoad,
onUnload
} from '@dcloudio/uni-app';
2026-02-09 15:06:54 +08:00
// const seconds = ref(6)
2025-09-19 17:12:59 +08:00
const goBack = () => {
uni.navigateBack()
}
let timer = null
const ischange = ref(false)
2025-09-28 10:58:31 +08:00
const isjianhu = ref(false)
2025-09-19 17:12:59 +08:00
onLoad((element) => {
// 保证每次进页面都从 6 开始
2026-02-09 15:06:54 +08:00
// seconds.value = 6
2025-09-28 11:18:34 +08:00
// console.log("????",element)
2025-09-19 17:12:59 +08:00
if(element.type){
ischange.value = true
}
2025-09-28 10:58:31 +08:00
if(element.jianhu){
isjianhu.value = true;
}
2025-09-19 17:12:59 +08:00
// 每 1 秒减 1减到 0 清理计时器(不做其他动作)
2026-02-09 15:06:54 +08:00
// timer = setInterval(() => {
// if (seconds.value > 0) {
// seconds.value -= 1
// } else {
// clearInterval(timer)
// timer = null;
// goToBack()
// }
// }, 1000)
2025-09-19 17:12:59 +08:00
})
// 页面卸载时清理(防止内存泄漏)
onUnload(() => {
2026-02-09 15:06:54 +08:00
// if (timer) {
// clearInterval(timer)
// timer = null
// }
2025-09-19 17:12:59 +08:00
})
const goToBack = () => {
uni.reLaunch({
url: '/pages/oldmanindex/index'
})
}
</script>
<style lang="scss" scoped>
.container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
2026-02-09 15:06:54 +08:00
background-color: #F7F7F7;
2025-09-19 17:12:59 +08:00
justify-content: center;
align-items: center;
.white-content {
width: 70%;
height: 600rpx;
border-radius: 50rpx;
background-color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: -50rpx;
position: relative;
.white-font {
font-size: 38rpx;
font-weight: 600;
margin-top: 40rpx;
}
.bottom-font {
position: absolute;
bottom: 100rpx;
left: 0;
width: 100%;
font-size: 28rpx;
color: #666666;
text-align: center;
}
}
}
2026-02-09 15:06:54 +08:00
.bottom-button {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 0rpx;
margin-top: 80rpx;
margin-bottom: 90rpx;
width: 80%;
height: 90rpx;
border-radius: 35rpx;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF;
color: #007CFF;
font-size: 33rpx;
display: flex;
justify-content: center;
align-items: center;
z-index: 3;
}
2025-09-19 17:12:59 +08:00
</style>