Files
monisuo/app/App.uvue
sion 7694a34ade Initial commit: Monisuo - 虚拟货币模拟交易平台
功能模块:
- 用户注册/登录/KYC
- 资金账户/交易账户
- 实时行情/币种管理
- 即时交易/充提审核
- 管理后台

技术栈:
- 后端: SpringBoot 2.2.4 + MyBatis Plus
- 前端: uni-app x (Vue3 + UTS)
- 数据库: MySQL

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 20:52:33 +08:00

61 lines
1.6 KiB
Plaintext

<script lang="uts">
export default {
onLaunch: function () {
console.log('模拟所APP启动')
this.checkLoginStatus()
},
onShow: function () {
console.log('APP显示')
},
onHide: function () {
console.log('APP隐藏')
},
methods: {
checkLoginStatus () {
const token = uni.getStorageSync('token') as string
if (token === null || token === '') {
uni.reLaunch({ url: '/pages/login/login' })
}
}
}
}
</script>
<style lang="scss">
@import '@/uni.scss';
page {
background: $bg-color-dark;
font-size: $font-size-base;
color: $text-color-primary;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}
.container {
padding: $spacing-base;
}
.text-primary { color: $primary-color; }
.text-success { color: $success-color; }
.text-warning { color: $warning-color; }
.text-danger { color: $danger-color; }
.bg-primary { background: $primary-color; }
.bg-card { background: $bg-color-card; }
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: $spacing-sm; }
.mt-base { margin-top: $spacing-base; }
.mt-lg { margin-top: $spacing-lg; }
.mb-sm { margin-bottom: $spacing-sm; }
.mb-base { margin-bottom: $spacing-base; }
.mb-lg { margin-bottom: $spacing-lg; }
</style>