refactor(Welcome): 移除注释代码并使用CDN图片替代本地资源
移除不再使用的header注释代码,并将本地图片资源替换为CDN链接以优化加载性能
Showing
1 changed file
with
3 additions
and
6 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-08-27 17:43:45 | 2 | * @Date: 2025-08-27 17:43:45 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-09-02 18:11:12 | 4 | + * @LastEditTime: 2025-09-05 23:36:28 |
| 5 | * @FilePath: /lls_program/src/pages/Welcome/index.vue | 5 | * @FilePath: /lls_program/src/pages/Welcome/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <view class="min-h-screen flex flex-col bg-white"> | 9 | <view class="min-h-screen flex flex-col bg-white"> |
| 10 | - <!-- Header --> | ||
| 11 | - <!-- <header class="py-5 text-center"> | ||
| 12 | - <h1 class="text-xl font-bold">老来赛</h1> | ||
| 13 | - </header> --> | ||
| 14 | <!-- Main content --> | 10 | <!-- Main content --> |
| 15 | <view class="flex-1 flex flex-col px-4 pb-20"> | 11 | <view class="flex-1 flex flex-col px-4 pb-20"> |
| 16 | <!-- Hero Image --> | 12 | <!-- Hero Image --> |
| ... | @@ -78,10 +74,11 @@ | ... | @@ -78,10 +74,11 @@ |
| 78 | import { ref } from 'vue'; | 74 | import { ref } from 'vue'; |
| 79 | import Taro, { useDidShow } from '@tarojs/taro'; | 75 | import Taro, { useDidShow } from '@tarojs/taro'; |
| 80 | import BottomNav from '../../components/BottomNav.vue'; // 假设BottomNav组件已转换 | 76 | import BottomNav from '../../components/BottomNav.vue'; // 假设BottomNav组件已转换 |
| 81 | -import welcomeHomeImg from '../../assets/images/welcome_home.png'; | ||
| 82 | // 获取接口信息 | 77 | // 获取接口信息 |
| 83 | import { getUserProfileAPI } from '@/api/user'; | 78 | import { getUserProfileAPI } from '@/api/user'; |
| 84 | 79 | ||
| 80 | +const welcomeHomeImg = 'https://cdn.ipadbiz.cn/lls_prog/images/welcome_home.png'; | ||
| 81 | + | ||
| 85 | const userAge = ref(null); | 82 | const userAge = ref(null); |
| 86 | const userInfo = ref({}); | 83 | const userInfo = ref({}); |
| 87 | const canCreateFamily = ref(true); | 84 | const canCreateFamily = ref(true); | ... | ... |
-
Please register or login to post a comment