feat: 登录与我的页展示应用名并更新至1.1.9

This commit is contained in:
2026-10-10 10:44:35 +08:00
parent 92b89f145c
commit fc6a514076
3 changed files with 45 additions and 3 deletions
+2 -2
View File
@@ -2,8 +2,8 @@
"name" : "浩拓ERP", "name" : "浩拓ERP",
"appid" : "__UNI__F79F300", "appid" : "__UNI__F79F300",
"description" : "浩拓ERP", "description" : "浩拓ERP",
"versionName" : "1.1.8", "versionName" : "1.1.9",
"versionCode" : 108, "versionCode" : 109,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
"optimization" : { "optimization" : {
+14 -1
View File
@@ -4,6 +4,7 @@
<view class="haotoplogo"> <view class="haotoplogo">
<image src="/static/haotop/image/logo/Start.jpg" mode="aspectFit" class="logoimg"></image> <image src="/static/haotop/image/logo/Start.jpg" mode="aspectFit" class="logoimg"></image>
</view> </view>
<view class="app-name">{{ appName }}</view>
<!-- <div v-if="loginType === 'currentPhone'">--> <!-- <div v-if="loginType === 'currentPhone'">-->
<!-- <u-tabs :list="list" :is-scroll="false" :current="current" @change="onClickItem"></u-tabs> --> <!-- <u-tabs :list="list" :is-scroll="false" :current="current" @change="onClickItem"></u-tabs> -->
<!-- <view v-if="current === 0"> --> <!-- <view v-if="current === 0"> -->
@@ -160,6 +161,9 @@ export default {
}; };
}, },
computed: { computed: {
appName() {
return manifest.name || '';
},
appVersion() { appVersion() {
return manifest.versionName; return manifest.versionName;
}, },
@@ -483,7 +487,16 @@ export default {
height: 150rpx; height: 150rpx;
// max-width: 5%; // max-width: 5%;
// max-height: 5%; // max-height: 5%;
margin: 10rpx auto 10rpx auto; margin: 10rpx auto 0 auto;
}
.app-name {
margin: 8rpx 0 24rpx;
color: #242820;
font-size: 40rpx;
font-weight: 700;
line-height: 1.3;
text-align: center;
} }
.logoimg { .logoimg {
+29
View File
@@ -52,12 +52,17 @@
</u-cell-group> </u-cell-group>
</view> </view>
</view> </view>
<view class="app-meta">
<text class="app-name">{{ appName }}</text>
<text class="app-version">版本 {{ appVersion }}</text>
</view>
</view> </view>
</template> </template>
<script> <script>
import CommonNavbar from "@/components/common-navbar/index"; import CommonNavbar from "@/components/common-navbar/index";
import app_upgrade from '@/uni_modules/app-upgrade/js_sdk/index.js'; import app_upgrade from '@/uni_modules/app-upgrade/js_sdk/index.js';
import config from '@/common/config.js'; import config from '@/common/config.js';
import manifest from '@/manifest.json';
/** /**
* Copyright (c) 2013-Now http://aidex.vip All rights reserved. * Copyright (c) 2013-Now http://aidex.vip All rights reserved.
*/ */
@@ -76,6 +81,12 @@ export default {
}, },
computed: { computed: {
appName() {
return manifest.name || '';
},
appVersion() {
return manifest.versionName || '';
},
avatarUrl() { avatarUrl() {
// let url = this.vuex_user.avatarUrl || '/ctxPath/static/images/user1.jpg'; // let url = this.vuex_user.avatarUrl || '/ctxPath/static/images/user1.jpg';
// url = url.replace('/ctxPath/', this.vuex_config.baseUrl + '/'); // url = url.replace('/ctxPath/', this.vuex_config.baseUrl + '/');
@@ -152,4 +163,22 @@ page {
height:50rpx; height:50rpx;
} }
} }
.app-meta {
padding: 48rpx 30rpx 40rpx;
text-align: center;
}
.app-name {
display: block;
color: #242820;
font-size: 36rpx;
font-weight: 700;
line-height: 1.4;
}
.app-version {
display: block;
margin-top: 8rpx;
color: #8a8f86;
font-size: 32rpx;
line-height: 1.3;
}
</style> </style>