| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <template>
- <view class="redirect-container">
- <view class="redirect-card">
- <text class="redirect-icon">👪</text>
- <text class="redirect-title">已将孩子管理整合到家庭成员</text>
- <text class="redirect-desc">孩子的信息请在「家庭成员」中添加和管理</text>
- <button class="redirect-btn" @click="goToFamilyMembers">前往家庭成员</button>
- </view>
- </view>
- </template>
- <script>
- export default {
- onShow() {
- // 自动跳转到家庭成员页面
- uni.redirectTo({ url: '/pages/profile-extra/family-members' })
- },
- methods: {
- goToFamilyMembers() {
- uni.redirectTo({ url: '/pages/profile-extra/family-members' })
- }
- }
- }
- </script>
- <style scoped>
- .redirect-container {
- display: flex;
- justify-content: center;
- align-items: center;
- min-height: 100vh;
- background: #f5f5f5;
- padding: 40rpx;
- }
- .redirect-card {
- background: #fff;
- border-radius: 20rpx;
- padding: 60rpx 40rpx;
- text-align: center;
- width: 100%;
- }
- .redirect-icon {
- font-size: 80rpx;
- display: block;
- margin-bottom: 24rpx;
- }
- .redirect-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- display: block;
- margin-bottom: 16rpx;
- }
- .redirect-desc {
- font-size: 28rpx;
- color: #666;
- display: block;
- margin-bottom: 40rpx;
- }
- .redirect-btn {
- background: #07c160;
- color: #fff;
- border-radius: 44rpx;
- font-size: 30rpx;
- padding: 20rpx 60rpx;
- }
- </style>
|