edit-child.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="redirect-container">
  3. <view class="redirect-card">
  4. <text class="redirect-icon">👪</text>
  5. <text class="redirect-title">请在「家庭成员」中编辑信息</text>
  6. <text class="redirect-desc">孩子的信息编辑已整合到家庭成员管理中</text>
  7. <button class="redirect-btn" @click="goToFamilyMembers">前往家庭成员</button>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. onShow() {
  14. uni.redirectTo({ url: '/pages/profile-extra/family-members' })
  15. },
  16. methods: {
  17. goToFamilyMembers() {
  18. uni.redirectTo({ url: '/pages/profile-extra/family-members' })
  19. }
  20. }
  21. }
  22. </script>
  23. <style scoped>
  24. .redirect-container {
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. min-height: 100vh;
  29. background: #f5f5f5;
  30. padding: 40rpx;
  31. }
  32. .redirect-card {
  33. background: #fff;
  34. border-radius: 20rpx;
  35. padding: 60rpx 40rpx;
  36. text-align: center;
  37. width: 100%;
  38. }
  39. .redirect-icon {
  40. font-size: 80rpx;
  41. display: block;
  42. margin-bottom: 24rpx;
  43. }
  44. .redirect-title {
  45. font-size: 32rpx;
  46. font-weight: bold;
  47. color: #333;
  48. display: block;
  49. margin-bottom: 16rpx;
  50. }
  51. .redirect-desc {
  52. font-size: 28rpx;
  53. color: #666;
  54. display: block;
  55. margin-bottom: 40rpx;
  56. }
  57. .redirect-btn {
  58. background: #07c160;
  59. color: #fff;
  60. border-radius: 44rpx;
  61. font-size: 30rpx;
  62. padding: 20rpx 60rpx;
  63. }
  64. </style>