AssetManager.UniApp/main.js
claw_bot 99094eeed8 feat(P4): 首页添加骨架屏,加载时显示占位动画
- 资产卡片区域:深色骨架屏匹配原有卡片风格
- 持仓列表区域:模拟卡片布局的骨架占位
- 添加 loading 状态控制,数据加载完成后切换
- 骨架屏带渐变动画效果,提升用户体验
2026-03-13 03:02:33 +00:00

36 lines
674 B
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import api from './utils/api'
import uView from 'uview-ui'
console.log('🚀 应用启动导入api模块')
export function createApp() {
const app = createSSRApp(App)
// 全局注册api
app.config.globalProperties.$api = api
console.log('✅ api已全局注册为 $api')
// 注册uView UI 2.0
app.use(uView)
console.log('✅ uView UI 2.0 已全局注册')
return {
app
}
}
// #endif