merchapp/java-mall-app-shop-admin/pages/my/versions.vue
2025-06-21 19:10:14 +08:00

43 lines
947 B
Vue
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.

<template>
<view class="versions-container">
<view class="logo-content"></view>
<view class="versions-content">版本号{{ versionNumber }}</view>
<view class="versions-content">appVersionCode{{ appVersionCode }}</view>
</view>
</template>
<script>
export default {
data() {
return {
versionNumber: "",
appVersionCode: "", //热更新
};
},
onShow() {
// 获取当前app的版本
const systemInfo = uni.getSystemInfoSync();
this.versionNumber = systemInfo.appVersion;
this.appVersionCode = systemInfo.appVersionCode;
},
};
</script>
<style lang="scss">
.versions-container {
.logo-content {
margin: 50% auto;
margin-bottom: 32rpx;
width: 228rpx;
height: 228rpx;
background-size: 100% 100%;
background-image: url("../../static/logo-2.png");
border-radius: 12rpx;
overflow: hidden;
}
.versions-content {
text-align: center;
}
}
</style>