index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!--
  2. ⚠️ 废弃说明(2026-06-15):
  3. 此页面已按照设计决策废弃。教师首页功能已折入 parent-index。
  4. 保留文件仅用于参考,不通过任何路由访问。
  5. -->
  6. <template>
  7. <view class="deprecated-container" :style="{ '--font-scale': fontScale }">
  8. <text class="deprecated-icon">📋</text>
  9. <text class="deprecated-title">服务商功能已整合</text>
  10. <text class="deprecated-desc">服务商工具和待办已迁移至家庭首页</text>
  11. <view class="deprecated-btn" @click="goToHome">回到首页</view>
  12. </view>
  13. </template>
  14. <script>
  15. import fontScaleMixin from '@/mixins/font-scale.js'
  16. export default {
  17. mixins: [fontScaleMixin],
  18. methods: {
  19. goToHome() {
  20. uni.switchTab({ url: '/pages/index-home/index' })
  21. }
  22. }
  23. }
  24. </script>
  25. <style scoped lang="scss">
  26. .deprecated-container {
  27. display: flex;
  28. flex-direction: column;
  29. align-items: center;
  30. justify-content: center;
  31. min-height: 100vh;
  32. background: $app-bg;
  33. padding: 60rpx;
  34. }
  35. .deprecated-icon {
  36. font-size: calc($uni-font-size-5xl * var(--font-scale, 1));
  37. margin-bottom: $uni-space-lg;
  38. }
  39. .deprecated-title {
  40. font-size: calc(36rpx * var(--font-scale, 1));
  41. font-weight: bold;
  42. color: $facade-text-strong;
  43. margin-bottom: 16rpx;
  44. }
  45. .deprecated-desc {
  46. font-size: calc(26rpx * var(--font-scale, 1));
  47. color: $facade-text-muted;
  48. margin-bottom: 48rpx;
  49. text-align: center;
  50. }
  51. .deprecated-btn {
  52. background: $brand-primary;
  53. color: $app-surface;
  54. font-size: calc(30rpx * var(--font-scale, 1));
  55. font-weight: bold;
  56. padding: 20rpx 80rpx;
  57. border-radius: 24rpx;
  58. }
  59. </style>