暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
+20
View File
@@ -2,9 +2,25 @@
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) {
uni.setStorageSync('version', inf.version); // 大版本号
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')
@@ -24,4 +40,8 @@
button {
margin-bottom: 15px;
}
img {
width: 100%;
height: auto; /* 保持图片比例 */
}
</style>