feat: 我的页显示应用名称和版本
This commit is contained in:
@@ -52,12 +52,17 @@
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</view>
|
||||
<view class="app-meta">
|
||||
<text class="app-name">{{ appName }}</text>
|
||||
<text class="app-version">版本 {{ appVersion }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import CommonNavbar from "@/components/common-navbar/index";
|
||||
import app_upgrade from '@/uni_modules/app-upgrade/js_sdk/index.js';
|
||||
import config from '@/common/config.js';
|
||||
import manifest from '@/manifest.json';
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://aidex.vip All rights reserved.
|
||||
*/
|
||||
@@ -76,6 +81,12 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
appName() {
|
||||
return manifest.name || '';
|
||||
},
|
||||
appVersion() {
|
||||
return manifest.versionName || '';
|
||||
},
|
||||
avatarUrl() {
|
||||
// let url = this.vuex_user.avatarUrl || '/ctxPath/static/images/user1.jpg';
|
||||
// url = url.replace('/ctxPath/', this.vuex_config.baseUrl + '/');
|
||||
@@ -152,4 +163,22 @@ page {
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user