141 lines
2.8 KiB
Vue
141 lines
2.8 KiB
Vue
|
|
<!-- 提交成功页面 -->
|
|||
|
|
<template>
|
|||
|
|
<s-layout title="提交成功">
|
|||
|
|
<view class="success-page">
|
|||
|
|
<!-- 底图 -->
|
|||
|
|
<image class="bg-img" src="/static/img/success-icon.png" mode="widthFix" />
|
|||
|
|
|
|||
|
|
<!-- 内容层(叠加在底图上) -->
|
|||
|
|
<view class="content-layer">
|
|||
|
|
<!-- 成功提示文字 -->
|
|||
|
|
<text class="success-text">提交成功,请耐心等待审核!</text>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<!-- 底部按钮 - 固定在底部 -->
|
|||
|
|
<view class="bottom-btn-wrapper">
|
|||
|
|
<button class="primary-btn" @tap="goAuth">继续认证房屋</button>
|
|||
|
|
<button class="secondary-btn" @tap="goHome">返回</button>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</s-layout>
|
|||
|
|
</template>
|
|||
|
|
|
|||
|
|
<script setup>
|
|||
|
|
|
|||
|
|
// 返回首页
|
|||
|
|
const goHome = () => {
|
|||
|
|
uni.switchTab({
|
|||
|
|
url: '/pages/index/index'
|
|||
|
|
});
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
// 继续认证房屋
|
|||
|
|
const goAuth = () => {
|
|||
|
|
uni.redirectTo({
|
|||
|
|
url: '/pages/index/auth-form'
|
|||
|
|
});
|
|||
|
|
};
|
|||
|
|
</script>
|
|||
|
|
|
|||
|
|
<style lang="scss" scoped>
|
|||
|
|
/* 页面容器 */
|
|||
|
|
.success-page {
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
align-items: center;
|
|||
|
|
min-height: calc(100vh - 176rpx);
|
|||
|
|
position: relative;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 底图 - 铺满宽度,高度自适应 */
|
|||
|
|
.bg-img {
|
|||
|
|
width: 100%;
|
|||
|
|
display: block;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 内容层 - 叠加在底图上方 */
|
|||
|
|
.content-layer {
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
align-items: center;
|
|||
|
|
width: 100%;
|
|||
|
|
margin-top: -200rpx; /* 向上叠加到底图上 */
|
|||
|
|
position: relative;
|
|||
|
|
z-index: 1;
|
|||
|
|
padding-bottom: 180rpx; /* 为底部固定按钮留空间 */
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 提示文字 */
|
|||
|
|
.success-text {
|
|||
|
|
font-size: 30rpx;
|
|||
|
|
color: #666666;
|
|||
|
|
text-align: center;
|
|||
|
|
line-height: 1.6;
|
|||
|
|
padding: 0 60rpx;
|
|||
|
|
margin-bottom: 80rpx;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 底部按钮区域 - 固定在页面底部 */
|
|||
|
|
.bottom-btn-wrapper {
|
|||
|
|
position: fixed;
|
|||
|
|
left: 0;
|
|||
|
|
right: 0;
|
|||
|
|
bottom: 0;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
gap: 24rpx;
|
|||
|
|
padding: 20rpx 48rpx;
|
|||
|
|
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
|||
|
|
width: 100%;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
|
|||
|
|
/* 主按钮 - 橙色填充 */
|
|||
|
|
.primary-btn {
|
|||
|
|
flex: 1.4;
|
|||
|
|
height: 96rpx;
|
|||
|
|
background-color: #FF6B35;
|
|||
|
|
border-radius: 48rpx;
|
|||
|
|
border: none;
|
|||
|
|
font-size: 30rpx;
|
|||
|
|
font-weight: 500;
|
|||
|
|
color: #FFFFFF;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
|
|||
|
|
&::after {
|
|||
|
|
border: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
&:active {
|
|||
|
|
opacity: 0.85;
|
|||
|
|
transform: scale(0.98);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 次按钮 - 白底橙边 */
|
|||
|
|
.secondary-btn {
|
|||
|
|
flex: 1;
|
|||
|
|
height: 96rpx;
|
|||
|
|
background-color: #FFFFFF;
|
|||
|
|
border-radius: 48rpx;
|
|||
|
|
border: 2rpx solid #FFB899;
|
|||
|
|
font-size: 30rpx;
|
|||
|
|
font-weight: 400;
|
|||
|
|
color: #FF6B35;
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
|
|||
|
|
&::after {
|
|||
|
|
border: none;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
&:active {
|
|||
|
|
opacity: 0.8;
|
|||
|
|
transform: scale(0.98);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
</style>
|