1
0
forked from dyf/APP

一点小优化

This commit is contained in:
liub
2025-09-26 16:31:56 +08:00
parent fd3a046ab3
commit d9e45becff
4 changed files with 28 additions and 9 deletions

View File

@ -7,7 +7,7 @@
</view>
<view class="user-right">
<view class="user-title">武汉星汉</view>
<view class="ID">ID:123456</view>
<view class="ID">ID:{{phone?phone:'123456'}}</view>
</view>
</view>
<view class="content">
@ -24,7 +24,7 @@
</view>
<view class="menu-item" @click="aboutUs">
<image src="/static/images/common/wm.png" class="icon"></image>
<text class="title">关于我们</text>
<text class="title">关于我们 ({{appVersion}})</text>
<uni-icons type="right" size="25" color="rgba(255, 255, 255, 0.4)" class="uniIcon"></uni-icons>
</view>
<view class="menu-item" @click="account">
@ -65,8 +65,27 @@
export default {
data() {
return {
showAgreement: false // 控制弹窗显示
showAgreement: false, // 控制弹窗显示
appVersion:'',
phone:''
}
},
onLoad() {
var these=this;
uni.getSystemInfo({
success(res) {
if(res.uniPlatform=='app'){
plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
const currentVersion = widgetInfo.version;
these.appVersion=currentVersion;
});
}
}
});
this.phone= uni.getStorageSync('phone')
},
methods: {
// 取消