Files
frontend-app/App.vue
T

202 lines
3.2 KiB
Vue
Raw Normal View History

2025-08-05 15:25:23 +08:00
<script>
export default {
onLaunch: function() {
console.log('App Launch')
const res = uni.getSystemInfoSync();
uni.setStorageSync('platform', res.platform);
// #ifdef APP-PLUS         
// 获取应用版本信息
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
2025-09-25 15:40:53 +08:00
console.log("版本信息",inf.versionCode)
uni.setStorageSync('version-1', inf.version); // 大版本号
2025-08-05 15:25:23 +08:00
uni.setStorageSync('versionCode', inf.versionCode); // 小版本号
});
let uuid = plus.device.uuid;
// #endif
},
onShow: function() {
console.log('App Show')
// 隐藏原生tabbar
/*#ifdef APP-PLUS*/
uni.hideTabBar({
animation: false
})
/*#endif*/
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
@import "@/uni_modules/uview-plus/index.scss";
@import '@/uni.scss';
@import '@/common.scss';
.container {
padding: 15px;
}
2025-08-13 00:05:08 +08:00
.content {
display: flex;
min-width: 750rpx;
max-width: 750rpx;
height: 100vh;
padding: 0;
margin: 0;
flex-direction: column;
align-items: center;
position: relative;
overflow: hidden;
background-color: $app-bj;
}
2025-09-03 21:06:28 +08:00
.content-one {
display: flex;
min-width: 750rpx;
max-width: 750rpx;
height: calc(100vh - 100rpx);
padding: 0;
margin: 0;
flex-direction: column;
align-items: center;
position: relative;
overflow: hidden;
background-color: $app-bj;
}
2025-08-13 00:05:08 +08:00
.flex-r-lr{
display: flex;
flex-direction: row;
justify-content: space-between;
}
2025-08-13 22:06:38 +08:00
.flex-c-lr{
display: flex;
flex-direction: column;
justify-content: space-between;
}
2025-08-13 00:05:08 +08:00
.flex-c{
display: flex;
align-items: center;
justify-content: center;
}
.flex-r-e{
display: flex;
flex-direction: row;
justify-content: flex-end;
}
2025-08-16 17:46:42 +08:00
.flex-r{
display: flex;
flex-direction: row;
align-items: center;
}
.flex-col{
display: flex;
flex-direction: column;
}
2025-08-13 00:05:08 +08:00
.text-white{
color:#fff;
}
.text-zi{
color:#7934F6;
}
.text-zu{
color:#000;
}
.text-zu1{
color:#333;
}
.text-fu{
color:#666;
}
2025-10-10 13:41:42 +08:00
.text-fu1{
color:#999;
}
2025-08-13 00:05:08 +08:00
.text-lu{
color:#00A776;
}
2025-08-13 21:52:16 +08:00
.mt-12{
margin-top:12rpx;
}
2025-08-13 00:05:08 +08:00
.mt-24{
margin-top:24rpx;
}
2025-08-13 21:52:16 +08:00
.mb-32{
margin-bottom:32rpx;
}
2025-08-13 00:05:08 +08:00
.mt-32{
margin-top:32rpx;
}
.mt-48{
margin-top:48rpx;
}
.mt-88{
margin-top:88rpx;
}
.text-20{
font-size:20rpx;
}
.text-24{
font-size:24rpx;
}
2025-10-10 13:41:42 +08:00
.text-26{
font-size:26rpx;
}
2025-08-13 00:05:08 +08:00
.text-28{
font-size:28rpx;
}
2025-09-03 21:06:28 +08:00
.text-30{
font-size:30rpx;
}
2025-09-03 13:12:44 +08:00
.text-32{
font-size:32rpx;
}
2025-08-13 00:05:08 +08:00
.text-36{
font-size:36rpx;
}
2025-09-03 13:12:44 +08:00
.text-38{
font-size:38rpx;
}
2025-11-11 18:27:56 +08:00
.text-44{
font-size:44rpx;
}
2025-10-10 13:41:42 +08:00
.text-48{
font-size:48rpx;
}
.text-52{
font-size:52rpx;
}
2025-11-11 18:27:56 +08:00
.text-88{
font-size:88rpx;
}
2025-08-13 16:18:54 +08:00
.text-bold{
font-weight:bold;
}
.line-h{
line-height:1.2
}
.mr-32{
margin-right:32rpx;
}
.text-overflow1 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.text-d{
text-decoration: line-through;
}
2025-09-03 21:06:28 +08:00
.text-space{
white-space: nowrap;
}
2025-08-13 16:18:54 +08:00
2025-08-05 15:25:23 +08:00
button {
margin-bottom: 15px;
}
img {
width: 100%;
height: auto; /* 保持图片比例 */
}
</style>