qa-regulatory-gwj-app/pages/mine/agreement/version.vue

71 lines
1.2 KiB
Vue
Raw Normal View History

2023-11-07 10:08:37 +08:00
<template>
<view>
<view class="about-box">
<view class="about-img">
<image src="../../../static/app-logo2.png" mode=""></image>
</view>
</view>
<view style="text-align: center; font-size: 12px;">
当前软件版本 V {{version}}
</view>
<view>
<uni-list>
<uni-list-item title="列表文字"></uni-list-item>
<uni-list-item :disabled="false" title="列表禁用状态"></uni-list-item>
</uni-list>
</view>
</view>
</template>
<script>
// import {
// version
// } from '@/common/tool.js';
import {getVersion} from "../../../api";
export default {
data() {
return {
version: '123'
}
},
onLoad() {
// 获取服务器版本
this.getSVersion();
},
methods: {
getSVersion() {
let _this = this
uni.getSystemInfo({
success: (res) => {
_this.version = res.appVersion
}
});
}
}
}
</script>
<style>
.about-box {
display: flex;
flex-direction: column;
align-items: center;
2024-07-27 15:13:42 +08:00
padding: 120rpx 0;
2023-11-07 10:08:37 +08:00
}
.about-img {
2024-07-27 15:13:42 +08:00
width: 120rpx;
height: 120rpx;
2023-11-07 10:08:37 +08:00
}
.about-img image {
width: 100%;
height: 100%;
}
.cu-list.menu>.cu-item {
2024-07-27 15:13:42 +08:00
min-height: 80rpx;
2023-11-07 10:08:37 +08:00
}
</style>